Area chart¶
An area chart combines a trend line with a filled area. Use it when the magnitude of the value should have more visual weight.
It works well for temperature, humidity, power, air quality, and other continuous measurements where both direction and magnitude should be immediately visible.

See: Sparkline History Template Card #060
Basic configuration¶
This example shows the average value over the latest 24 hours:
Configuration options¶
| Option | Type | Required | Default | Description |
|---|---|---|---|---|
show.chart_type | string | No | line | Set to area to display an area chart. |
show.item_style | string | No | auto | Chooses a fixed color, one color from the current state, or a gradient across the graph. |
show.line | boolean | No | true | Shows or hides the line along the area. |
show.area | boolean | No | false | Shows or hides the filled surface. |
show.fill | string | No | solid | Uses a solid fill or fade. |
show.points | boolean | No | false | Adds a point for every displayed interval. |
area.show.minmax | boolean | No | false | Shows the minimum-to-maximum range in every interval. |
area.color_filter | mapping | No | Not set | Adjusts the selected area color. |
area.minmax.color_filter | mapping | No | Not set | Adjusts the min/max color independently from the area. |
line.line_width | number | No | 1 | Sets the width of the trend line. |
state_values.smoothing | boolean | No | true | Uses smooth or straight connections. |
Basic area chart¶
Fade the fill¶
Show the value range¶
The range shows the minimum and maximum values represented by each time bin.
Choose the area color¶
Keep the area at one configured color with fixed:
Use colorstop or colorstopinterpolated when the complete area should follow the current entity state. Use colorstopgradient when the colors should follow the complete vertical value range.
The area fill and its optional minimum-to-maximum range use the same selected color. A visible line uses its corresponding line paint. See Color stops.
Use area.color_filter to adjust the complete area color. Add area.minmax.color_filter when its minimum-to-maximum range needs a separate adjustment:
The area and min/max filters are independent. Filtering the area does not change the min/max range.
See Color filters for all available adjustments.