When there are multiple dataSeries in the chart, legends help to identify each dataSeries with a predefined symbol and name of the series.
Change Legend Position
There are pre-defined positions for the legend to be placed.
You can place the legends at the following places
Legend positioned to top
Aligning legend horizontally
Horizontally, you can align the legend using the following
Legend aligned to right horizontally
Interactivity with Legend
Enable show/hide a series when it is clicked
When a user clicks a legend, the series associated with that legend is toggled in appearance.
Highlighting a series when legend is hovered
When a user hovers over a legend item, the series associated with that legend is highlighted and all other series are grayed out.
To set global options for the legend, it should be defined in