Skip to content

grafit-charts


Interface: LegendItemOptions

Properties

label?

optional label?: FontOptions

Per-item label font; falls back to item.label, then the theme.


marker?

optional marker?: object

color?

optional color?: string

size?

optional size?: number


name

name: string

Display text of the item.


series?

optional series?: string

Binds the item to a series: matched against the series id first, then its name (for pie-like series — the sector label). A bound item toggles the series on click and dims when it is hidden; an unbound item is static.


value?

optional value?: string

Value to the right of the label ("label … value").