add_second_y_axis
Add a secondary Y axis to an existing graph and plot a second dataset with specified columns and plot type.
Instructions
Add a right-side Y axis layer and plot a second dataset on it.
Args: graph_name: Existing graph data_book, data_sheet: Source data x_col, y_col: Columns for the right-axis series (1-based) plot_type: scatter, line, line+symbol, column, bar, area
Returns: Success message
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"graph_name": "<graph_name>",
"data_book": "<data_book>",
"data_sheet": "<data_sheet>",
"x_col": "<x_col>",
"y_col": "<y_col>"
},
"name": "add_second_y_axis"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| graph_name | Yes | ||
| data_book | Yes | ||
| data_sheet | Yes | ||
| x_col | Yes | ||
| y_col | Yes | ||
| plot_type | No | line+symbol |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |