Skip to content

Function: colormapGradient() ​

ts
function colormapGradient(spec, stops?): string;

Defined in: render/colorbar.ts:45

A CSS linear-gradient for a colormap. to top puts the domain minimum at the bottom, matching the tick labels drawn beside it.

Parameters ​

ParameterTypeDefault value
specColormapSpecundefined
stopsnumberGRADIENT_STOPS

Returns ​

string

MIT licensed. WebGL2 required.