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
| Parameter | Type | Default value |
|---|---|---|
spec | ColormapSpec | undefined |
stops | number | GRADIENT_STOPS |
Returns
string