Legend

Settings
Description

This sample shows that we can click the legend to show/hide the bar series. This feature is very useful if you have a lot of data on single chart. It allows user to toggle series visibility and compare different sets of data with each other.

Test the features

  • Hover over a bar point to see the tooltip.
  • Note the legend at the right of the chart.
  • Click series items in the legend to toggle their visibility on the chart surface.
  • Play with legend options in the panel below to see it features.
  • Note the chart adjusts to the free space changes.
Documentation