Set up interactive legend
Charts are used to visually present data, but it's up to the readers to decode what all the circles, bars, and colors represent. The chart and axis titles are not always enough to help the reader decode your chart. Because of this, you might want to include a legend and describe the chart components using color and symbols.
Set up chart legend
-
In the upper-right corner, click EDIT.
-
In the right-hand sidebar, click Legend to access the legend customization menu.
-
From the Position dropdown, choose the legend position, or turn it off by clicking None.
Enable interactivity
When two or more series are graphed in the chart you're editing, the Behavior options bar will appear below the Position dropdown, which allows you to enable interactivity. When the interactivity is enabled, readers can click any of the symbols in the legend, and it will affect the series in the chart represented by the symbol. Here's what each behavior does when readers click on a symbol in the legend:
- Hide – The series represented by that symbol will be completely hidden.
- Gray out – The series represented by that symbol will be grayed out, but still visible in the chart.
- Focus – The series represented by that symbol will be emphasized, while the remaining series will be grayed out.
- None – Readers will not be able to interact with the legend.
Series by default option – you can set a specific series to be hidden, grayed out, or emphasized when the chart loads. Remember that readers can switch from the default series to another series by clicking the corresponding symbol in the legend.
Enable Toggle-all option – enabling this option for Hide or Gray out behavior will add additional interactivity to the legend for all series. By clicking on All in the legend, all series can be hidden or grayed out on the chart.