Skip to content

Interface: LegendOptions ​

Defined in: plot.ts:66

Legend placement + styling. legend: true uses all defaults.

Properties ​

background? ​

ts
optional background?: string;

Defined in: plot.ts:71


border? ​

ts
optional border?: string;

Defined in: plot.ts:72


font? ​

ts
optional font?: string;

Defined in: plot.ts:74


interactive? ​

ts
optional interactive?: boolean;

Defined in: plot.ts:79

Click a legend entry to show/hide its series (axes re-fit to what is left). Entries are focusable and respond to Enter/Space. Default true.


orientation? ​

ts
optional orientation?: "vertical" | "horizontal";

Defined in: plot.ts:70

Stack entries vertically (default) or in a row.


position? ​

ts
optional position?: "top-left" | "top-right" | "bottom-left" | "bottom-right";

Defined in: plot.ts:68

Corner within the plot region. Default "top-right".


textColor? ​

ts
optional textColor?: string;

Defined in: plot.ts:73

MIT licensed. WebGL2 required.