Skip to content

Interface: ContourOptions

Defined in: layers/contour.ts:8

Properties

color?

ts
optional color?: string | Color;

Defined in: layers/contour.ts:17

Single line color; if omitted, levels are colored by a colormap.


colormap?

ts
optional colormap?: ColormapSpec;

Defined in: layers/contour.ts:18


cols

ts
cols: number;

Defined in: layers/contour.ts:11


extent

ts
extent: {
  x: Range;
  y: Range;
};

Defined in: layers/contour.ts:13

x

ts
x: Range;

y

ts
y: Range;

levels?

ts
optional levels?: number | number[];

Defined in: layers/contour.ts:15

Iso levels: an explicit list, or a count of evenly-spaced levels.


name?

ts
optional name?: string;

Defined in: layers/contour.ts:20

Series name — used as the colorbar caption.


renderType?

ts
optional renderType?: RenderType;

Defined in: layers/contour.ts:22

Buffer-usage hint; set "dynamic" when streaming via setData. Default "static".


rows

ts
rows: number;

Defined in: layers/contour.ts:12


values

ts
values: ArrayLike<number>;

Defined in: layers/contour.ts:10

Row-major grid values, length cols * rows (row 0 at the bottom).


yAxis?

ts
optional yAxis?: string;

Defined in: layers/contour.ts:23

MIT licensed. WebGL2 required.