Feature Library

Charts everyone can read

0.24 CPU ms
A still of the Charts everyone can read demo
Still
The live demo starts when it’s in view.Edit the palette · hover a warning · click the chart and use the arrow keys · Compare for two years side by side

An accessibility kit for charts and data views.

What it costs a frame

0.24 ms
GPU
not used
CPU, median
0.24 ms
CPU, 95th pct
0.39 ms
Draw calls
0
Weight
Light

Measured 3 November 2026 on 13th Gen Intel(R) Core(TM) i9-13900H, Chrome 156, 1920×1080 at 1×. 600 frames × 3 rounds, median kept. What ran: Measured with the palette check (every pair of six colours under four visions, CIEDE2000) and the four simulated charts recomputed every frame. Live they run only when a colour or a control changes, so an idle chart costs nothing. Phones: tiers are being measured next.

On every machine it was measured on
MachineGPU msCPU msCPU p95
unknown GPU · 13th Gen Intel(R) Core(TM) i9-13900Hreference · measuring toolnot timed0.240.39
apple · Apple A19 Proin a browser tab · 16 November 2026not timed0.400.44
Intel Arc 140V (Xe2-LPG) · Intel Core Ultra 7 258Vin a browser tab · 15 November 2026not timed0.420.57

Bars against one 16.7 ms frame. A browser-tab run is timed in a visible tab without the tool’s scripted input, so read it as close, not exact.

What it needs

Renders with
DOM and CSSPlain DOM and CSS: every current browser.
Your browser
Runs hereNo WebGPU needed
Depends on
NothingNo other packages

What it’s for

  1. Chart and dashboard palettes
  2. Status colours
  3. Design-system colour checks in tests
  4. "show as table" for any chart
  5. Copy to a spreadsheet
  6. Two scenarios or periods compared, for screen readers
  7. Keyboard-navigable charts and diagrams

Pitfalls, in brief

  1. Compare sides by name (and where): a figure renamed between two versions shows as one gone and one new.
  2. A palette that passes the check still needs a second channel: direct labels, shapes (the status signs ● ◆ ▲), patterns or position.
  3. Check every pair, not neighbours: a legend, a tooltip and a filtered chart put any two colours side by side.
  4. Achromatopsia leaves only lightness, so six colours rarely all pass it: check it for status colours and for two or three series, not for a categorical palette of eight.
  5. Simulate in linear RGB, as here; matrices applied to sRGB values darken or brighten mid-tones wrongly.
3 more in brief
  1. Severity below 100% blends toward the full-severity matrix: a fair stand-in for anomalous trichromacy, but not the paper’s own intermediate matrices; for those, use its tables.
  2. Copy numbers to the table as the chart writes them (num), not raw floats: a reader comparing chart and table should see the same figures, and a column of numbers is detected from the words.
  3. role="application" on the chart lets the arrow keys reach it under a screen reader; give it an aria-label that says the keys, keep it one Tab stop, and announce each stop through an aria-live region.
8 pitfalls in full, the hook-up guide, the module source and its tests come with the part.

Where it comes from

From SpaciousPro. Fully custom code.

Machado, Oliveira and Fernandes, “A Physiologically-based Model for Simulation of Color Vision Deficiency” (IEEE TVCG, 2009): The protan, deutan and tritan matrices are the paper’s, at full severity, applied in linear RGB. Lower severities blend toward them (an approximation of the paper’s tabulated steps).

CIE 142-2001, CIEDE2000 colour difference; Sharma, Wu and Dalal, “The CIEDE2000 color-difference formula: implementation notes” (2005): deltaE00 is the published formula, written from the standard; its mean hue and hue difference follow the implementation notes, and it gives their test data’s values to four decimals.

Masataka Okabe and Kei Ito, Color Universal Design (2008): The demo’s “Okabe & Ito” preset is six colours of their palette.

W3C WCAG 2: Use of Color (1.4.1) and Non-text Contrast: The rule the kit serves: never colour alone. Guidance, no code.

accessibilitycolour blindnessCIEDE2000palettescreen readerskeyboardtablesCSVcomparescenariosno dependencies

Near it in the frame