Interface: LegendOptions
Extends
Properties
background?
optionalbackground?:LegendBackgroundOptions
Panel behind the items.
data?
optionaldata?:LegendItemOptions[]
Custom items; fully replaces the auto-derived series items.
enabled?
optionalenabled?:boolean
Inherited from
floating?
optionalfloating?:boolean
Overlay the whole chart area (CSS position:absolute style) instead of reserving space.
item?
optionalitem?:object
label?
optionallabel?:FontOptions
marker?
optionalmarker?:object
marker.size?
optionalsize?:number
offset?
optionaloffset?:object
Floating only: inset from the anchored edges; along a centered axis — a shift right/down.
x?
optionalx?:number
y?
optionaly?:number
position?
optionalposition?:LegendPlacement
The docking side (first token) plus an optional alignment along it: 'top-right' docks to the top edge, right-aligned ('top' centers). With floating: true the same value anchors the legend over the chart.
toggleSeries?
optionaltoggleSeries?:boolean
Clicking an item toggles series visibility (true by default).