Line chart¶
A Line chart is the simplest continuous way to draw Sparkline history. It connects the displayed values over time with one line, keeping the graph visually light while still showing the direction and shape of the trend.
This page shows how to select the Line chart, change line width and color, show variation within each interval, switch smoothing on or off, and add points.
Show a line chart¶
Use a line chart when the main goal is to see how a numeric value changes over time.
Make the line thicker or thinner¶
Adjust line width when the trend is too faint or too dominant compared with the rest of the card.
Show the variation inside each interval¶
Show the min/max band when the line’s average values hide short peaks and dips inside each displayed interval.
Change the line color¶
Use a fixed stroke:
colorstop, colorstopinterpolated, or colorstopgradient with color_stops. See Color stops. Use smooth or straight connections¶
Use smoothing for a flowing trend; turn it off when straight interval-to-interval changes are more informative.
true for smooth connections. Add points to the line¶
Add points when the individual aggregated intervals should remain visible on top of the connecting line.
Configuration options¶
Required applies to the specific form described by that table: Yes means you need the field for that form; No means you can leave it out. Not set means the card adds no explicit value when the option is omitted.
| Option | Type | Required | Default | Description |
|---|---|---|---|---|
sparkline.show.chart_type | line | No | line | Uses the default connected Line chart. |
sparkline.show.item_style | auto, fixed, colorstop, colorstopinterpolated, colorstopgradient | No | auto | auto uses the chart's normal automatic color; fixed uses the configured fixed line color; colorstop picks the discrete stop color for the current value; colorstopinterpolated blends one color between neighboring stops for the current value; colorstopgradient draws the configured value colors across the graph. |
sparkline.line.line_width | number | No | 1 | Line thickness. |
sparkline.line.color_filter | mapping | No | Not set | Adjusts selected line color. |
sparkline.line.styles | mapping | No | Default line style | Additional line appearance. |
sparkline.line.show.minmax | boolean | No | false | Adds the minimum-to-maximum range for each interval when the line alone hides short peaks and dips. |
sparkline.line.minmax.color_filter | mapping | No | Not set | Adjusts min/max color. |
sparkline.line.minmax.styles | mapping | No | Line color with 0.25 opacity | Min/max appearance. |
sparkline.state_values.smoothing | boolean | No | true | true draws smooth connections between interval values; false connects them with straight segments. |
sparkline.show.points | boolean | No | false | Shows one point per interval. |
sparkline.dots.radius | number | No | 2 | Size of optional points drawn on the line; larger values emphasize the individual displayed intervals. |
series[].color | color | No | Automatic palette | Per-series fixed color. |