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.
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 |