Skip to main content

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:
timeResult

Create a Line chart​

To add a panel with a line chart:

  1. Create or open a dashboard and click Add Panel > Time Series.
    time series icon
  2. Provide a metric or log query and press Enter for it to run.
  3. After the query runs, make sure the chart type is set to Line.
    New line chart setting
  4. Modify the chart as desired.
  5. Click the Add to Dashboard button on the top right of the window to add the panel to your dashboard.
    Add to Dashboard button
Legal
Privacy Statement
Terms of Use
CA Privacy Notice

© 2010 – 2026 Sumo Logic, Inc.