Color options
Options
Section titled “Options”Type: ColorOptions
scheme
Section titled “scheme”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.
domain
Section titled “domain”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.
Schemes
Section titled “Schemes”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.
category
Section titled “category”categoryPairs
Section titled “categoryPairs”category12
Section titled “category12”politicalParties
Section titled “politicalParties”SVP
SP
FDP
Die Mitte
GPS
GLP
EVP
EDU
Lega
AL
SD
BDP
CSP
CVP
andere
gender
Section titled “gender”female
male
genderPairs
Section titled “genderPairs”female1
female2
male1
male2