Line chart¶
A line chart shows how a numeric value changes over time without filling the area below it.
Use it for a clear continuous trend. Its light visual weight also makes several series easier to compare in the same graph.
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 | Displays a line chart. |
line.line_width | number | No | 1 | Sets the width of the line. |
line.styles | mapping | No | default line styles | Applies styles such as opacity or a dashed stroke. |
state_values.smoothing | boolean | No | true | Uses smooth or straight connections. |
show.points | boolean | No | false | Adds a point for every displayed interval. |
dots.radius | number | No | 2 | Sets the radius of optional points. |
series[].color | color | No | automatic palette | Gives each series a recognizable fixed color. |
Basic line chart¶
Smooth or straight connections¶
Disable smoothing when every change should use a straight connection.