hd-sparkline
A small history line with live updates, an hd-series inside per line (up to 3, any devices, also for one line); no axes, legend or tooltip, so label the lines around it. Lines with the same unit share a scale.
| Attribute | What it is |
|---|---|
range | How far back: 1h, 6h, 24h, 7d, 30d, 1y.Default 24h. |
resolution | Bucket size; a larger one calms a busy line down to averages.One of auto, raw, 1m, 5m, 15m, 1h, 1d. Default auto. |
aggregate | How buckets are combined; each hd-series can have its own.One of avg, min, max, last, delta. Default avg. |
variant | A line, a filled area, columns, stacked columns, or steps; each hd-series can have its own.One of line, area, bar, stacked, step. Default area. |
smooth | Gently curved lines.Default false. |
live | Keep adding live points.Default true. |
<hd-sparkline range="24h"> <hd-series bind="{{ cap.measure_power }}"></hd-series></hd-sparkline>