API REFERENCE

ScatterColorMap

The ScatterColorMap type declaration and related types. Optional fields are marked with ?.

Type declaration

typescript
export interface ScatterColorMap {
  field?: 'z' | 'y' | string;
  domain?: 'auto' | readonly [number, number];
  stops: ReadonlyArray<ScatterColorMapStop | readonly [number, string]>;
  fallback?: string;
}