Create a line chart
A line chart shows how a value changes over time, such as enrollments by quarter. You need a date column for the timeline, plus a text column to count or a number column to calculate.
Before you start:
- Ensure your UpMetrics login is assigned an Org Admin or Editor role.
- Confirm the data table you want to use is in Collect, ready for Advanced Analytics, and includes at least one date column. For details, see Prepare your data for Advanced Analytics.
Steps
- From the Charts tab or your dashboard, click + in the upper right corner and select Chart. The Create a new chart screen displays.
- Select your data table from the Choose a data table drop-down list and the Line Chart chart type, then click Create new chart. The chart builder displays.
- Enter a descriptive name for the chart at the top of the window, then drag a date field from the Columns list to the X-axis field. If your data table has more than one date field, a dialog box titled The X-axis is not on the filters list appears. Click OK to close it. The date field is added to the Filters field.
- Drag a column from the Columns list to the Metric field to choose what you're measuring. In the My metric dialog box, select a calculation from the aggregate drop-down list (it defaults to COUNT_DISTINCT), then use the pencil icon at the top of the dialog box to rename the metric to something easier to read. Click Save.
- Select a value from the Time Grain drop-down list to set how the timeline is broken down, such as by day, week, month, or year.

- Click Create chart. A simple line chart displays in the preview area.
- (Optional) Add a running total, a line for each category, value labels, and other options (see Customization options below), then click Update chart to see your changes.

- Click Save. In the Save chart dialog box, enter or edit the name in the Chart name field, select a dashboard from the Add to dashboard drop-down list or enter a name for a new one (optional), then click Save or Save & go to dashboard.
Customization options
Use these options to change how your line chart groups and displays data over time. After you change a Data tab option, click Update chart to see the result. Changes on the Customize tab display in the preview right away.
| Option | Where to find it | What it does |
|---|---|---|
| Time Grain | Data tab | Sets how the timeline is broken down, such as by day, week, month, or year. A grain that's too small can make steady progress look like random spikes. |
| Rolling function | Data tab, in the Advanced analytics area (click the down arrow to expand it) | Select cumsum to show a running (cumulative) total over time instead of the value for each period. |
| Dimensions | Data tab | Splits the data by another column, adding a separate line for each category. |
| Show Value | Customize tab | Displays the value of each point on the line. |
The Customize tab includes other formatting options as well.
Line chart best practices
Keep these practices in mind when you design line charts:
- Use line charts to show change over time.
- Choose the time frame and grouping (day, week, month, or year) that best fits your data.
- Use an area chart to show mass, volume, or cumulative totals.
- Consider whether a bar chart with values grouped by date would be more effective.
- Make the chart large enough that variations in the line are easy to see.
- When you add a dimension, make sure every line can still be seen clearly. If they can't, create a separate line chart for each dimension.
- Use clearly different colors for each line, and consider colorblind viewers.
- Add value labels only if they add more clarity than clutter.
- Relabel metrics so viewers know exactly what they're looking at.
Needs improvement: The time grain (day) is too small for this data, the metric isn't relabeled, the data doesn't show progress over time, and the y-axis doesn't make sense for the metric.

Improved: This version uses a longer time grain, shows whole numbers on the y-axis, relabels the metric as Enrollments, and shows change over time.
