charton API / @chart-on/core / index / colorSafeUpDown
Variable: colorSafeUpDown
constcolorSafeUpDown:Readonly<Record<"dark"|"light",Partial<ChartTheme>>>
Defined in: packages/core/src/theme.ts:293
Rising and falling colours that stay apart for the common colour-vision deficiencies (red-green and blue-yellow): blue for up, orange for down, also differing in lightness. Merge the one for your canvas into any theme: applyOptions({ theme: colorSafeUpDown.dark }). The ask line takes the down colour, as in the default themes.