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
| Parameter | Type |
|---|---|
record | Readonly<Record<string, ColorscaleInput>> |
options | { overwrite?: boolean; } |
options.overwrite? | boolean |
Returns
void