Legend.item
configurationThe configuration of the Chart legend item.
To override the marker configuration of individual series, use the series.legendItem settings of the series.
legend.item
Objectlegend.item.area
ObjectSets the configuration of the legend items of type area.
By default, all series except line and scatter use this legend type.
legend.item.cursor
StringThe cursor style of the legend item.
legend.item.highlight
ObjectThe highlight configuration of the legend item.
legend.item.line
ObjectSets the configuration of the legend items of type line.
This is the default legend item type for all line and scatter series.
legend.item.markers
ObjectThe configuration of the Chart legend item markers.
By default, the marker configuration will be the same as the series.markers settings of the displayed series.
legend.item.type
StringSets the type of the legend items. The default value is based on the series type.
The supported values are:
"line"—the legend items are rendered as a line. This is the default value for line charts.
"area"—the legend items are rendered as a filled rectangle. This is the default value for area charts.
legend.item.visual
FunctionA function that can be used to create a custom visual for the legend items. The available argument fields are:
options—The item options.createVisual—A function for getting the default visual.series—The item series.pointIndex—The index of the point in the series. Available for the Pie, Donut, and Funnel series.