new Legend(chart, options)
The overview of the chart's series. The legend object is instanciated
internally in the chart constructor, and is available from the
property. Each chart has only one legend.
The chart instance.
<readonly> allItems :Array.<(Highcharts.Point|Highcharts.Series)>
All items for the legend, which is an array of series for most series and an array of points for pie series and its derivatives.
<readonly> options :Highcharts.LegendOptions
Set the legend item text.
Name Type Description
Highcharts.Point | Highcharts.Series
The item for which to update the text in the legend.
update(options [, redraw])
Update the legend with new options. Equivalent to running
chart.updatewith a legend configuration option.
Name Type Argument Default Description
Whether to redraw the chart after the axis is altered. If doing more operations on the chart, it is a good idea to set redraw to false and call Highcharts.Chart#redraw after. Whether to redraw the chart.