Skip to content

Line Chart

6 min read · Updated 11 Nov 2026

A Line Chart data object displays chart data in a line or lines. Line charts suit continuous axes, such as time or numeric dimensions, and are best used to look at trends and to compare trends between periods or entities.

The video below shows a line chart being added to a sheet in a workbook.

You can display the data as a line or as a line area, where the space between the line and the axis or the next value is shaded. The chart type depends on how many dimensions and measures the chart uses (Table 1). Adding a second measure to a line chart makes a multi-line chart.

Table 1: Line chart types

Chart type Data Description
Small chart type icon showing a purple filled area shape. Line / Line Area 1 dimension, 1 measure Line and line area charts show how values change over time, or through a sequence.
Small chart type icon showing a few thin lines, one orange and one blue, on a light background. Multi-Line 1 dimension, 2 or more measures Show and compare how multiple values change over time, or through a sequence.
Small chart type icon showing layered purple and orange filled areas. Stacked Area 2 dimensions, 1 measure Compare the totals of values across categories over time, or through a sequence.

In the Data tab, you define the data to use in the chart and the settings for each measure. A line chart uses either two dimensions and one measure, or one dimension and one or more measures.

Measure settings panel for Revenue with Color, Format, Line style, Line size, Shape, Advanced calculation and axis options.

  • Color: set the color and opacity of the line.

  • Format: set the number format for the measure.

  • Line style: set the line style: solid, dashed or dotted.

  • Line size: set the line width.

  • Shape: set the shape for the data points. A measure needs a shape before its points can show labels. The image below shows a measure with a shape.

    Line chart of Revenue by month with circle data points, beside the measure settings where Shape is Circle and Shape size is 5.

  • Advanced calculation: apply advanced calculations in the chart, such as period-over-period and moving average. See Advanced chart calculations.

  • Axis: set the axis for the measure.

Trendlines panel with a Revenue measure selected, an Exponential trendline type, and line style, width and colour controls.

  • Select a measure to calculate the trendline and a type of trendline.

  • Customize the line’s style, width and color.

  • Add multiple trendlines.

Reference lines panel with a label name field, On Y-Axis and On X-Axis options, a Value field, Line width and Line color.

  • Add a reference line on either axis to show goals or important timestamps.

  • Customize the reference line display.

  • Set the reference line’s value to a static value or to a variable. With a variable, viewers can move the line as they explore the data. See Creating variables to use with objects.

Forecasting panel with Revenue selected, a Linear type, All data, Forecasted points set to 5, and a Show reference line option.

Chart styling panel with Line Type set to Curve, Labels shown with density Low, a Per measure (Height) colour palette and Data gaps.

  • Line: show the data as a line or as an area.

  • Line type: select the line type.

  • Labels:

    • Show: show labels in the chart. Labels appear only for measures with a shape (see Shape under Measure settings). In the image below, labels appear only on the line with points.

      Revenue line chart with data labels on only some points, next to the Labels settings with Show on and density Low.

    • Label density: select how many labels appear on each line. Labels are off by default. The examples below show each option on the same chart.

      • Low

        Line chart of Revenue with Label density set to Low, showing only a few value labels on the line.

      • Medium

        Line chart of Revenue with Label density set to Medium, showing more value labels along the line.

      • High

        Line chart of Revenue with Label density set to High, showing value labels on most data points.

    • Colored label: customize the label font and backdrop color. By default, labels use the color of the line.

      Line chart with Colored label turned on and Backdrop selected, showing value labels on dark blue backdrops.

  • Color: customize the coloring of the chart.

  • Legend: set the legend position and title.

  • Data gaps: set how the lines handle gaps in the data.

Control how the axes display, and add gridlines and a scroll bar.

Dimension axis settings with Title, Ticks, Labels and Line checkboxes, axis tooltips, continuous axis, invert axis and label length options.

  • Control the color and display of labels, titles, ticks and lines.

  • Show axis tooltips: hovering over the axis shows a vertical dashed line across the chart, as in the image below.

    Line chart of weekly Distance (km) with a vertical dashed line labelled 2024 W-8 across the chart.

  • Enable continuous axis: set the number of labels on the axis automatically, changing it with the range of values on the axis. The image below shows the same chart as above with a continuous axis. A continuous axis also lets the scroll bar show as a mini chart.

    Line chart of weekly Distance (km) with a continuous axis enabled, showing fewer, evenly spaced axis labels.

  • Invert axis: reverse the order of the labels from left to right.

  • Axis labels: set how labels behave when they overlap.

    • Auto: distributes labels evenly.

    • Show last: always shows the last label.

  • Label length: set the length of the labels, or keep it on auto-fit.

  • Limit visible domain (scroll bar): set a limit on the width or number of data points shown. When the chart reaches the limit, a scroll bar appears below the axis. The scroll bar depends on whether the axis is continuous.

    With Enable continuous axis off, set the limit in one of two ways:

    • Minimum size: the number of pixels for each data point. This suits charts built for different screen sizes.

    • Minimum count: the number of data points. This makes it simpler to control when the scroll bar appears.

    With Enable continuous axis on:

    • Show mini chart: show a mini chart below the chart, which you can use to zoom into part of the axis.

  • Gridlines: add vertical gridlines to the chart.

Control the display and range of the measure axis.

Measure axis settings panel with Title, Labels, Line options, Default axis name, Range set to Auto, Start at 0, Gridlines and Axis bands.

  • Control the color and display of labels, titles, ticks and lines.

  • Default axis name: override the axis title with your own text.

  • Range: control the range of values shown on the axis.

  • Gridlines: show horizontal gridlines.

  • Axis bands: define ranges that color the chart’s background, to show when values fall outside the expected range. Set each band’s range with static values or variables. Viewers can change a variable’s value with inputs, or actions can change it, so you can build control charts, for example.

    Axis bands dialog defining a red band from 0 to 20 and a green band from 40 to 100, shown as colored backgrounds on the line chart.

To filter what the chart shows, see Chart filters.