Skip to content

Function: registerColorscales() ​

ts
function registerColorscales(record, options?): void;

Register many colorscales at once. With overwrite: false, names that already resolve (a registered scale or a plotly.js built-in) are skipped — how the built-in sets are added without changing what existing names mean.

Parameters ​

ParameterType
recordReadonly<Record<string, ColorscaleInput>>
options{ overwrite?: boolean; }
options.overwrite?boolean

Returns ​

void

Released under the MIT License.