Accessibility
What's built in, and what it doesn't cover.
Built in
- Structure. Every chart is a
<figure>labelled by its title, with a screen-reader summary of what the chart shows (ranges, extremes, first and last values) linked througharia-describedby. - Keyboard. Each plot is focusable. Arrow keys move through points, bars, cells or slices; Home and End jump to the ends; Escape clears. The tooltip for the focused item is announced through a polite live region.
- Table view. The Table button replaces the chart with a real
<table>(header cells, row headers) of the underlying data. CSV downloads it. - Not colour alone. Favorable and unfavorable changes carry an arrow and the words "favorable" or "unfavorable" for screen readers. Candlesticks use hollow vs filled. Forecasts are dashed and labelled. Legends always accompany two or more series.
- Contrast. Text uses ink tokens, never series colours. Light-mode series colours that fall below 3:1 against white are relieved by labels and the table view.
- Reduced motion. The only transitions (hover dimming) are disabled under
prefers-reduced-motion. - Focus visibility. A 2px focus ring on every interactive element.
What we tested
Automated checks run in Chromium for every chart page: landmark structure, labelled controls, focusable plots and keyboard navigation. See TEST_REPORT.md in the repository for the exact coverage.
Not yet tested: manual walkthroughs with screen readers (NVDA, JAWS, VoiceOver). We don't claim WCAG conformance. If you need a formal audit, test the charts in your own product context.
Your part
- Write a real title. The title is the chart's accessible name, and "Chart" tells nobody anything.
- Put units in the subtitle.
- Don't hide the toolbar unless the data is also available another way on the page.