add_sparkline
Add a native sparkline column to a table or matrix to display per-row trends across categories, using a value measure and category field for the line axis.
Instructions
Add a NATIVE SPARKLINE column to a table/matrix: a per-row mini line driven by a value measure across a category (e.g. trend over month). Writes objects.sparkline with the line measure + category bindings. valueTable/valueMeasure = the line measure; categoryTable/categoryField = the axis.
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>",
"page": "<page>",
"visual": "<visual>",
"valueTable": "<valueTable>",
"valueMeasure": "<valueMeasure>",
"categoryTable": "<categoryTable>",
"categoryField": "<categoryField>"
},
"name": "add_sparkline"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | Yes | page name or displayName | |
| visual | Yes | the table/matrix visual name | |
| lineColor | No | optional line colour hex | |
| valueTable | Yes | value measure's table | |
| valueMeasure | Yes | value measure name | |
| categoryField | Yes | category (axis) field | |
| categoryTable | Yes | category (axis) table | |
| reportSessionId | Yes |