Interface: DiscreteColorOptions
Discrete color grouping: one trace (and legend item) per value of color.
Extended by
LineOptionsScatterOptionsBarOptionsTimelineOptionsHistogramOptionsDensityContourOptionsEcdfOptionsScatterMatrixOptionsPieOptionsFunnelAreaOptionsFunnelOptionsHierarchyOptionsPolarOptionsChart3dOptionsGeoOptionsGraphDataOptions
Properties
| Property | Modifier | Type | Description |
|---|---|---|---|
color? | readonly | ColumnRef | Column to color by. |
colorDiscreteMap? | readonly | Readonly<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? | readonly | readonly string[] | Colors for the values of color, in order. Default: the template's colorway. |