API / Series/General / BaseSeriesLegend

Defined in: src/core/types/chart/base.ts:150

Extends

Properties

Property Type Description
enabled? boolean -
groupId? string For multiple series with the same groupId, only one label in the legend will be displayed. The legend element uses the name and symbol from the first series of the group. Set a stable ID to preserve the group's selection across data updates and renaming.
itemDistance? number Pixel distance between items within a horizontal legend row. Default 20
itemStyle? BaseTextStyle CSS styles for each legend item
itemText? string The text is displayed in the legend instead of the series name.