Skip to content

Function: getColorway() ​

ts
function getColorway(name): readonly string[] | undefined;

A named colorway's colors (case-insensitive), or undefined. Safe (CARTO's colorblind-safe palette, plan E17.5) is always available, like plotly.js's colorscale names; registering a colorway of that name replaces it. Shared: do not mutate.

Parameters ​

ParameterType
namestring

Returns ​

readonly string[] | undefined

Released under the MIT License.