Line Chart
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.
Line chart types
Section titled “Line chart types”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 |
|---|---|---|
Line / Line Area |
1 dimension, 1 measure | Line and line area charts show how values change over time, or through a sequence. |
Multi-Line |
1 dimension, 2 or more measures | Show and compare how multiple values change over time, or through a sequence. |
Stacked Area |
2 dimensions, 1 measure | Compare the totals of values across categories over time, or through a sequence. |
Building a line chart
Section titled “Building a line chart”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
Section titled “Measure settings”-
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.

-
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
Section titled “Trendlines”-
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
Section titled “Reference lines”-
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
Section titled “Forecasting”-
Add a forecast to the line chart using a selected measure.
-
Customize the display of the forecasting line.
Styling a line chart
Section titled “Styling a line chart”-
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.

-
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

-
Medium

-
High

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

-
-
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.
Axes settings of a line chart
Section titled “Axes settings of a line chart”Control how the axes display, and add gridlines and a scroll bar.
Dimension axis
Section titled “Dimension axis”-
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.

-
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.

-
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.
Measure axis
Section titled “Measure axis”Control the display and range of the measure axis.
-
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.

To filter what the chart shows, see Chart filters.
Line / Line Area
Multi-Line
Stacked Area





