Interface: ScatterOptions
Defined in: layers/scatter.ts:21
Properties
color?
optional color?: string | Color;Defined in: layers/scatter.ts:24
colorBy?
optional colorBy?: {
colormap?: ColormapSpec;
domain?: Range;
values: ArrayLike<number>;
};Defined in: layers/scatter.ts:48
Color each point by a value through a colormap.
colormap?
optional colormap?: ColormapSpec;domain?
optional domain?: Range;Value range mapped to [0,1]. Defaults to the data min/max.
values
values: ArrayLike<number>;colors?
optional colors?: readonly (string | Color)[];Defined in: layers/scatter.ts:36
Explicit per-point colors. Overrides color; ignored when colorBy is set (that drives the same per-point buffer).
labels?
optional labels?: ArrayLike<string>;Defined in: layers/scatter.ts:46
Optional per-point text shown when a point is clicked (one entry per point, parallel to x/y). Lets you attach your own info instead of the default coordinate readout.
marker?
optional marker?: MarkerShape;Defined in: layers/scatter.ts:38
Marker glyph. Default "circle".
name?
optional name?: string;Defined in: layers/scatter.ts:39
renderType?
optional renderType?: RenderType;Defined in: layers/scatter.ts:55
Buffer-usage hint; set "dynamic" when streaming via setData. Default "static".
size?
optional size?: number;Defined in: layers/scatter.ts:26
Marker diameter in CSS pixels.
sizes?
optional sizes?: ArrayLike<number>;Defined in: layers/scatter.ts:31
Per-point diameter in CSS pixels — a bubble chart. Overrides size wherever it is > 0; entries of 0 fall back to the uniform size.
x
x: ArrayLike<number>;Defined in: layers/scatter.ts:22
y
y: ArrayLike<number>;Defined in: layers/scatter.ts:23
yAxis?
optional yAxis?: string;Defined in: layers/scatter.ts:40