add_svg_sparkline
Create in-cell SVG sparklines for Power BI measures, with line, area, or gradient-area styles, optional last-point marker, and zero baseline intercept.
Instructions
Author an SVG SPARKLINE measure (DataCategory=ImageUrl): a min-max scaled line/area over a category column, rendered in-cell. kind=line|area|gradient-area. showLastPoint adds a terminal marker; intercept draws a zero baseline. categoryColumn = Table[Column].
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | line | area | gradient-area | line |
| name | Yes | ||
| table | Yes | ||
| width | No | svg width in px | |
| height | No | svg height in px | |
| intercept | No | draw a dashed zero baseline | |
| lineColor | No | line colour hex | #2E86AB |
| sessionId | Yes | ||
| valueMeasure | Yes | the value measure plotted per category | |
| showLastPoint | No | draw a marker on the final point | |
| categoryColumn | Yes | the category column, e.g. Calendar[Month] |