EnterpriseComplianceWCAG 2.1 AAA· 5 min read
Accessibility & WCAG 2.1 Compliance
Screen reader support, ARIA live announcements, keyboard navigation (arrow keys, focus traps), and high-contrast colorblind modes.
Enterprise software deployed in financial institutions and government organizations must comply with WCAG 2.1 AA/AAA and US Section 508 accessibility guidelines. Canvas-based charting has traditionally lacked semantic HTML accessibility; QuaCharts solves this by generating an off-screen accessible DOM shadow tree that mirrors chart data in real time.
Accessibility Features
| Feature | Specification | Implementation Behavior |
|---|---|---|
| Screen Reader Shadow Table | ARIA roles: table, row, cell | Automatically translates graphical series into an invisible HTML data table accessible to NVDA, JAWS, and VoiceOver |
| Keyboard Navigation | WAI-ARIA Slider & Grid | Arrow keys navigate point-by-point; Home/End jumps to start/end of series; Enter selects point |
| Live Region Alerts | aria-live="polite" | Announces new data extremes (e.g. "AAPL reached new 52-week high at $245.00") without visual disruption |
| Colorblind Safety | Deuteranopia / Protanopia | Automatic hatch and dashed stroke pattern fills, avoiding red/green ambiguity |
Enabling Accessibility Options
accessibility-config.ts
1
const chart = createChart('#chart', {
2
accessibility: {
3
enabled: true,
4
description: 'Quarterly GAAP Net Income for S&P 500 components from 2024 to 2026.',
5
keyboardNavigation: {
6
enabled: true,
7
focusBorder: '2px solid #0284c7',
8
},
9
screenReaderSection: {
10
beforeChartFormat: '<h3>{chartTitle}</h3><p>{chartDescription}</p>',
11
},
12
announceNewData: {
13
enabled: true,
14
minInterval: 5000, // Debounce announcements to every 5 seconds
15
},
16
},
17
});