Skip to content

grafit-charts


Interface: PartValueLabelOptions<P>

The value half of a part label. type chooses what the number says: the share of the total, or the value itself.

Extends

Type Parameters

P

P = unknown

Properties

color?

optional color?: string

Inherited from

FontOptions.color


enabled?

optional enabled?: boolean

Inherited from

Switchable.enabled


fontFamily?

optional fontFamily?: string

Inherited from

FontOptions.fontFamily


fontSize?

optional fontSize?: number

Inherited from

FontOptions.fontSize


fontStyle?

optional fontStyle?: FontStyle

Inherited from

FontOptions.fontStyle


fontWeight?

optional fontWeight?: FontWeight

Inherited from

FontOptions.fontWeight


format?

optional format?: string

Serializable format string (',.2f', '.0%').


formatter?

optional formatter?: (params) => string

Parameters

params

P

Returns

string


type?

optional type?: "percent" | "value"

'percent' — share of the total; 'value' — the value field itself.