Create and use a line graph

Insights in ArcGIS Online
Insights in ArcGIS Enterprise
Insights desktop

Line graphs show information as a series of data points that are connected by straight line segments. Categories are shown along the x-axis, and statistics are shown along the y-axis. Unlike time series graphs, which only use date and time along the category axis, line graphs allow you to use string fields along the category axis.

Line graphs can answer questions about data, such as: How are numeric values distributed or summarized by category?

Example

An environmental organization is tracking the drought conditions in Southern California and wants to compare precipitation levels across the region to determine which cities are most vulnerable. The organization uses a line graph to show the total precipitation for each city.

Line graph showing precipitation across Southern California cities
The line graph above shows how precipitation values fluctuate by city.

Create a line graph

To create a line graph, complete the following steps:

  1. Select one of the following combinations of data:
    • One or two string fields String field
    • One or two string fields String field and a number field Number field or a rate/ratio field Rate/ratio field
    Note:

    If you do not select a number or rate/ratio field, the data will be aggregated and a count will be displayed.

    You can search for fields using the search bar in the data pane.

  2. Create the chart using the following steps:
    1. Drag the selected fields to a new card.
    2. Hover over the Chart drop zone.
    3. Drop the selected fields on Line Graph.
Tip:

Drag-N Drop Drag a matching string field from a second dataset onto your line graph to create a combo chart.

Tip:

You can also create charts using the Chart menu above the data pane or the Visualization type button Visualization type on an existing card. For the Chart menu, only charts that are compatible with the data selection will be enabled. For the Visualization type menu, only compatible visualizations (including maps, charts, or tables) will be displayed.

Usage notes

This visualization creates a result dataset Results in the data pane, which includes the fields used to create the chart. The result dataset can be used to create additional visualizations, rename the fields on the chart axes or in the pop-ups, or apply filters to the chart.

The trends for the line graph can be symbolized as a count of features over time or as a number or rate/ratio field. If a field is used, the values in the trend line can be calculated as the sum, minimum, maximum, average, percentile, or median of values from the field for each point in time.

Note:

Median and percentile are not available for certain remote feature layers. If the remote feature layer does not support median or percentile, you can copy the layer to your workbook.

An optional Subgroup field can be selected on the x-axis. The Subgroup field must be a string field and will be used to create separate lines for each subcategory.

Tip:

You can style related maps with the same field you used to group the chart. When you interact with the chart or map, you can see simultaneous categorical and spatial patterns.

Use the Layer options button Layer options to open the Layer options pane and do the following to update the configuration options:

  • Use the Legend tab Legend to view the symbols on the chart. The pop-out legend button Pop out legend displays the legend as a separate card on the page. You can use the legend to make selections on the chart (available for unique symbols).

    To change the color or pattern associated with a value, click the symbol and choose a color from the palette, provide a hexadecimal value, or select a pattern. Changing the symbol on the Legend tab is only available for unique symbols.
  • Use the Symbology tab Symbology to apply the Smooth line parameter and turn labels on or off. A smooth line is best in situations when you are displaying trends in your data without sudden changes, rather than when you want to see specific values. For example, showing trends in monthly temperature using a smooth line is an effective way to analyze seasonality.

    Labels display the number values associated with the chart. The following configurations are available for labels:
    • Decimal places—You can choose a number of decimal places from zero to five, or choose Default or Auto for the labels. The Default option abbreviates large numbers, and the Auto option assigns an appropriate precision.
    • Label alignment—Three alignment options are available for line graphs: Horizontal, outside,Vertical, outside, and Angled.
    • Context label—Characters, such as a symbol or unit, can be added to the label. The context label can be placed on either side of the value.
  • Use the Appearance tab Appearance to change the symbol color (single symbol only) and change the pattern and thickness of the line.

Use the Chart statistics button Chart statistics to display the mean, median, upper quartile, lower quartile, or a custom value.

Use the Card filter button Card filter to remove any unwanted data from the card, or to show only the top or bottom n values. Filters can be applied to all string, number, rate/ratio, and date/time fields. A card filter does not affect other cards using the same dataset.

Use the Selection tools button Selection tools to select features on the chart using the single select tool, or invert the selection.

Use the Visualization type button Visualization type to switch directly between a line graph and other visualizations, such as a summary table, column chart, or bubble chart.

Use the Sort button Sort to change the sort order of the chart. The chart can be sorted in ascending, descending, alphabetical, or reverse alphabetical order. The default order is alphabetical (Sort A to Z).

Use the Maximize button Maximize to enlarge the card. Other cards on the page will be reduced to thumbnails. The card can be returned to its previous size using the Restore down button Restore down.

Use the Enable cross filters button Enable cross filters to allow filters to be created on the card using selections on other cards. Cross filters can be removed using the Disable cross filters button Disable cross filters.

Use the Flip card button Flip card to view the back of the card. The Card info tab Card info provides information about the data on the card, the Export image tab Export image allows users to export an image of the card, and the Export data tab Export data allows users to export the data from the card.

Use the Card options button Card options to access the following options:

  • Appearance button Appearance—Change the background color, foreground color, and border of the card.
  • Edit labels button Edit labels—Create custom labels for the chart axes. To edit the labels, click the Edit labels button and click the axis to make it editable.
  • Order button Order—Move the card forward or move the card backward relative to other cards on the page.
  • Delete button Delete—Remove the card from the page. If you did not intend to delete the card, you can retrieve it using the Undo button Undo.

Resources

Use the following resources to learn more about charts: