add_chart
Creates a chart on a report page for visualizing a measure across a category field. Supports column, bar, line, pie, donut, and area chart types.
Instructions
Add a chart. chartType = clusteredColumnChart | clusteredBarChart | lineChart | pieChart | donutChart | areaChart. Category is the axis, value is the measure.
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": {
"reportSessionId": "<reportSessionId>",
"pageName": "<pageName>",
"chartType": "<chartType>",
"categoryTable": "<categoryTable>",
"categoryField": "<categoryField>",
"valueTable": "<valueTable>",
"valueMeasure": "<valueMeasure>"
},
"name": "add_chart"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | ||
| y | No | ||
| title | No | ||
| width | No | ||
| height | No | ||
| pageName | Yes | ||
| chartType | Yes | ||
| valueTable | Yes | value table | |
| seriesField | No | optional legend/series field | |
| seriesTable | No | optional legend/series table | |
| valueMeasure | Yes | value measure | |
| categoryField | Yes | axis/category field (column) | |
| categoryTable | Yes | axis/category table | |
| reportSessionId | Yes |