Multiple series¶
Multiple series compare entities or time periods on one shared graph. Use them to see related measurements together instead of switching between separate graphs.
Each Cartesian series can have its own entity, name, color, chart type, and Y-axis. A radial series can choose line, area, or dots with chart_variant. The graph shares its period, bins, X-axis, drawing area, and tooltip across all series.
Basic configuration¶
This complete example compares three rooms over the latest 24 hours:
Without a configured name, legend and tooltip labels combine the Home Assistant area with the short entity or attribute name. Related sensors therefore remain distinguishable, for example Living room Temperature and Bedroom Temperature. A series[].name overrides that label and accepts the same name choices.
Configuration options¶
| Option | Type | Required | Default | Description |
|---|---|---|---|---|
series[].id | string | Yes | - | Sets the unique name for the series inside the graph. |
series[].entity_index | entity index | Yes | - | Selects the entity whose history is displayed. |
series[].name | string or structured name | No | area and entity name | Sets the name shown in the legend and tooltip. |
series[].color | color | No | automatic palette | Sets a fixed color for the series. |
series[].sparkline | mapping | No | shared sparkline settings | Changes the chart type or chart-specific settings for this series. |
series[].sparkline.line.show.minmax | boolean | No | shared line setting (false) | Shows the minimum-to-maximum range around this line series. |
series[].sparkline.area.show.minmax | boolean | No | shared area setting (false) | Shows the minimum-to-maximum range around this area series. |
series[].period | mapping | No | shared period | Selects a supported period override, such as an earlier day. |
series[].y_axis_id | string | No | primary | Uses the primary or secondary Y-axis. |
sparkline.show.legend | boolean | No | false | Shows or hides the legend. |
legend.position | string | No | top | Places the legend at the top, bottom, left, or right. |
legend.rows | number | No | 1 | Divides a top or bottom legend over this number of rows. |
legend.gap | number | No | 4 | Sets the space between the legend and graph. |
legend.item_gap | number | No | 1 | Sets the space between a marker and its label. |
Compare several entities¶
When series is present, every graph line or bar is defined in that list:
The parent sparkline supplies the period, bins, axes, grid, and tooltip. A series can override some of the settings.
Show the range within each interval¶
A line or area normally shows one aggregated value for every interval. Enable show.minmax when the lowest and highest measurements within those intervals should remain visible too.
Set it on the parent to show the range for every matching series:
A series can override the shared choice:
The average remains the main line or area. The additional filled range shows the variation that occurred inside each interval.
Compare today with yesterday¶
Both series use the same time-of-day X-axis. The tooltip identifies the series and shows the source time for its value.
Show a legend¶
Set show.legend to true to show the series names and colors:
Use top or bottom for a horizontal legend and left or right for a vertical legend.
Use two Y-axes¶
Use two axes when the series have different units or ranges.
Combine radial variants¶
A radial graph keeps chart_type: radial for every series. Choose the visible form with chart_variant:
All radial series use the same arc and time bins. Each series keeps its own color and Y-axis assignment.