Functions
-
getColorValuesFromPalette(palette, bins, options) : {Array.<string>}
-
Returns an array of colors from the corresponding color palette and range values.
Parameters:
Name Type Argument Description palette
'viridis' | 'magma' | 'inferno' | 'plasma' the color Palette where the values are from. Options are 'viridis', 'magma', 'inferno', and 'plasma'. bins
number <optional>
the number of color values to be returned, all the colors will be returned if set to 0 or null. Color values may be repeated if the number of bins exceeds the number of colors defined in the specified palette options
Options <optional>
Additional configuration options for the colors to be returned. Returns:
An array containing CSS color strings from the corresponding color palette
- Type
- Array.<string>