Skip to content

Variable: highContrast ​

ts
const highContrast: Template;

For low vision, projectors and print (WCAG 2.2 oriented): black 14 px text on white (21:1), black 1.5 px axis lines with outside ticks, a darker #bdbdbd grid, and a colorway in which every color has at least 3:1 contrast against white (WCAG 1.4.11 non-text contrast; the first four at least 5:1) with hues spread for color-vision deficiencies. Lines are 2.5 px, markers 8 px with a white rim so overlapping points separate; bars get a black outline. Cividis (designed for color-vision deficiency) for sequential data, ColorBrewer PuOr for diverging data. Hover labels are white on black.

Released under the MIT License.