interface
Source: types.ts ↗
IColorMapping
export interface IColorMapping
Properties
Property | Modifiers | Type | Description |
|---|---|---|---|
Color to assign. | |||
string | (Optional) Optional stable identifier of the mapped item. | ||
Predicate function which will be called for each entity that will be charted. |
Property details
IColorMapping.colorproperty
Color to assign.
color: IColor;
Remarks
It is possible to assign color from colorPalette or provide custom color as RGB code.
IColorMapping.idproperty
Optional stable identifier of the mapped item.
id?: string;
Remarks
Consumers may use this to build stable fingerprints without depending on predicate function identity.
IColorMapping.predicateproperty
Predicate function which will be called for each entity that will be charted.
predicate: IHeaderPredicate;
Remarks
If matched, the color will assigned to that entity when it is rendered (be it as a bar, column, point, slice etc)