Skip to content

Interface: D3PLegendItem ​

Defined in: core/renderers/base.ts:50

One line of a legend. Most renderers have one (themselves); a pie has one per slice.

Methods ​

toggle() ​

ts
toggle(): void;

Defined in: core/renderers/base.ts:60

Shows or hides what the entry stands for.

Returns ​

void

Properties ​

color ​

ts
color: string;

Defined in: core/renderers/base.ts:56

Color of the entry.


key ​

ts
key: string;

Defined in: core/renderers/base.ts:52

Unique among the items of a renderer.


label ​

ts
label: string;

Defined in: core/renderers/base.ts:54

Text of the entry.


visible ​

ts
visible: boolean;

Defined in: core/renderers/base.ts:58

Whether it is shown.