Skip to content

Interface: ColorInfo

Defined in: color/colormap.ts:46

A colormapped layer's scale, surfaced to the plot so it can draw a colorbar. Returned by Layer.colorInfo() / Layer3D.colorInfo().

Properties

colormap

ts
colormap: ColormapSpec;

Defined in: color/colormap.ts:47


domain

ts
domain: readonly [number, number];

Defined in: color/colormap.ts:49

The value range the colormap spans, after any auto-fit.


label?

ts
optional label?: string;

Defined in: color/colormap.ts:51

Caption for the bar — usually the series name.

MIT licensed. WebGL2 required.