Making Line Visuals Interactive with Legends

A line chart display can become very crowded, making it difficult to discern which line models a particular series. For example, the World Life Expectancy dataset models data for over 200 countries. Arcadia Enterprise makes it easy to find a particular series by making the chart legend interactive.

The following steps demonstrate how to add a legend that makes a line chart interactive. We are using the line of the World Life Expectancy dataset [data source samples.world_life_expectancy]. To create this chart, follow the instructions in Line Visuals.

  1. In Apps, find the visual World Population - Lines.
  2. Click on the icon for that visual, and then click Edit.
  3. Follow the steps outlined in Legend.
  4. Note that the legend appears on the right side of your visual.

  5. Click on one of the items on the legend, such as Bangladesh.

  6. Note that the visual auto-refreshes to show only the Bangladesh life expectancy time series.

  7. Click Refresh Visual.
  8. Change the title to World Population - Line, Interactive.
  9. Above the left navigation bar, click Save.

  10. This graph is interactive in edit mode, either as a visual (by itself), or inside an application. To make it fully responsive, use it in an application that includes filter controls that match some or all of the fields on the Filters shelf.