Documentation

@kanunilabs/pivotgrid-enterprise


@kanunilabs/pivotgrid-enterprise / CHART_COLORS

Variable: CHART_COLORS

const CHART_COLORS: string[]

The eight series colours, React's palette unchanged — the two editions must chart the same data in the same colours.

It lives here rather than beside the transformer because the PIE needs it too, and for a reason worth stating: a pie's slices are CATEGORIES, so they must be coloured from the palette by category index. Indexing the SERIES array instead — which is what React does and what the first version of this port did — paints every slice of an ordinary one-series pie the same colour.