Skip to content

@sqlrooms/color-scales / getDiscreteNumericColors

Function: getDiscreteNumericColors()

getDiscreteNumericColors(options): any[]

Parameters

ParameterType
options{ scheme: "Blues" | "BuGn" | "BuPu" | "GnBu" | "Greens" | "Greys" | "OrRd" | "Oranges" | "PuBu" | "PuBuGn" | "PuRd" | "Purples" | "RdPu" | "Reds" | "YlGn" | "YlGnBu" | "YlOrBr" | "YlOrRd" | "BrBG" | "PRGn" | "PiYG" | "PuOr" | "RdBu" | "RdGy" | "RdYlBu" | "RdYlGn" | "Spectral"; bins: number; reverse?: boolean; }
options.scheme"Blues" | "BuGn" | "BuPu" | "GnBu" | "Greens" | "Greys" | "OrRd" | "Oranges" | "PuBu" | "PuBuGn" | "PuRd" | "Purples" | "RdPu" | "Reds" | "YlGn" | "YlGnBu" | "YlOrBr" | "YlOrRd" | "BrBG" | "PRGn" | "PiYG" | "PuOr" | "RdBu" | "RdGy" | "RdYlBu" | "RdYlGn" | "Spectral"
options.binsnumber
options.reverse?boolean

Returns

any[]