Line Charts
Line charts are useful for displaying how data changes over time. The Y axis shows the count of an item, and the X axis is a timeline.
To create a line chart, use a query that provides more than one data point in the Aggregates tab. See aggregate operators for details. The chart draws a line between the data points to show the change.
For example, you'd use the following query to create a Line chart:
error | timeslice 1m | count by _timeslice
This query produces results such as:
Create a Line chart
To add a panel with a line chart:
- Create or open a dashboard and click Add Panel > Time Series.

- Provide a metric or log query and press Enter for it to run.
- After the query runs, make sure the chart type is set to Line.

- Modify the chart as desired.
- Click the Add to Dashboard button on the top right of the window to add the panel to your dashboard.
