Accessible Charts and Data Visualization, Done Properly
Designing charts, graphs and dashboards so the information they carry is available to people who cannot see color differences, cannot see the chart at all, or use a keyboard or screen reader.
On this page
Where most projects go wrong
The usual mistakes:
- Legends that match series by color alone
- Red and green as the only distinction between good and bad
- Charts rendered as images with an empty alt attribute
- Interactive tooltips that only work with a mouse
What good looks like instead
- Pair color with labels, patterns or direct annotations
- Offer the underlying data as an accessible table
- Write a text summary stating what the chart shows
- Check series colors for contrast against each other and the background
- Test charts with a color vision deficiency simulator
Why it matters
A chart that relies on color alone or has no text alternative hides the data from part of your audience, and both are explicit WCAG failures.
The specs that matter
| Measure | Figure |
|---|---|
| WCAG 1.4.1 Use of Color, A | color cannot be the only way information is conveyed |
| WCAG 1.4.11 Non-text Contrast, AA | chart elements needed to understand the data need 3:1 contrast with adjacent colors |
| WCAG 1.1.1 Non-text Content, A | charts need a text alternative that conveys the same information |
| Complex images | W3C suggests a short description plus a longer one, such as a data table |
Knowing when to hand it over
Tip: Bring in help when dashboards are central to your product, when a customer asks for an accessibility conformance report, or when charts are generated automatically.
Where this comes from
- W3C Web Accessibility Initiative — Understanding SC 1.4.1 Use of Color
- W3C Web Accessibility Initiative — Understanding SC 1.4.11 Non-text Contrast
- W3C Web Accessibility Initiative — Complex images tutorial
The figures and practices above come from the sources listed.
Working on something like this?
We take on UI & UX Design work for teams who want it done once, properly. Tell us what you are building and we will tell you honestly whether we are the right studio for it. Start a project.
Where to go next
Spotted something wrong? Report an error on this page. We correct on the page and say what changed.