Skip to content

Color options

Type: ColorOptions

Type: keyof typeof colorSchemes
Default: none

Name of a predefined color scheme. See Schemes below for the available names and the order of their colors.

When neither scheme nor range is set, category is used.

Type: string[]
Default: none

Custom range of colors. Has to be a list of color strings. Takes precedence over scheme.

Type: string[]
Default: none

Ordered list of group names that the colors are mapped to. The first group name receives the first color of the scheme or range.

When not set, the group names are taken from the data, in the order they first appear.

Every scheme is applied as an ordinal scale: colors are assigned to groups in order, and the scheme repeats if there are more groups than colors.

SVP
SP
FDP
Die Mitte
GPS
GLP
EVP
EDU
Lega
AL
SD
BDP
CSP
CVP
andere
female
male
female1
female2
male1
male2