hd-chart
A history chart with an hd-series inside per line (up to 8, any devices, also for one line); can sit behind the widget content as a background. Lines with the same unit share an axis, a second unit goes on the right; from two lines on it has a legend, and its tooltip lists every line at that moment.
| Attribute | What it is |
|---|---|
range | How far back: 1h, 6h, 24h, 7d, 30d, 1y.Default 24h. |
from | Start time (ISO), instead of range. |
to | End time (ISO). |
resolution | Bucket size.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 | Chart style: a line, a filled area, columns (side by side for several lines), stacked columns, or steps; each hd-series can have its own, and with several lines only the first is an area.One of line, area, bar, stacked, step. Default area. |
placement | Inline, or behind the content.One of inline, background. Default inline. |
smooth | Gently curved lines.Default false. |
live | Keep adding live points.Default true. |
<hd-chart range="24h"> <hd-series bind="{{ cap.measure_power }}"></hd-series></hd-chart>