Skip to content

Interface: DiscreteColorOptions ​

Discrete color grouping: one trace (and legend item) per value of color.

Extended by ​

Properties ​

PropertyModifierTypeDescription
color?readonlyColumnRefColumn to color by.
colorDiscreteMap?readonlyReadonly<Record<string, string>> | "identity"Fixed colors per value of color ({ Asia: 'red' }); other values continue with the sequence. 'identity': the values are colors themselves (no legend entries for them).
colorDiscreteSequence?readonlyreadonly string[]Colors for the values of color, in order. Default: the template's colorway.

Released under the MIT License.