Accessibility in TypeScript Charts

The Chart component supports accessibility features based on ADA, Section 508, WCAG 2.2, and relevant WAI-ARIA specifications.

Accessibility support can vary based on the chart configuration, enabled modules, browser, operating system, screen reader, and component version. Supplement automated validation with keyboard and screen reader testing.

Accessibility support

Standards

Accessibility Criteria Compatibility
WCAG 2.2 Support Yes
Section 508 Support Yes
Screen Reader Support Yes
Right-To-Left Support Yes
Color Contrast Yes
Mobile Device Support Yes
Keyboard Navigation Support Yes
Accessibility Checker Validation Yes
Axe-core Accessibility Validation Yes
Yes - All features of the control meet the requirement.
Intermediate - Some features of the control do not meet the requirement.
No - The control does not meet the requirement.

WAI-ARIA roles and attributes

The rendered chart uses WAI-ARIA roles and attributes to expose its structure and interactive elements to assistive technologies. The exact output depends on the enabled chart features.

Role or attribute Usage
role="img" Identifies non-interactive chart graphics exposed as images.
role="button" Identifies interactive chart elements, such as actionable legend items or controls.
role="region" Identifies a chart area that users can navigate to as a distinct region.
aria-label Provides an accessible name or description for the chart and its interactive elements.
aria-hidden Hides decorative or duplicate content from assistive technologies.
aria-pressed Communicates the current state of a toggleable interactive element.

Use the component’s accessibility-related configuration options to provide meaningful labels where available. Verify generated names, roles, states, and values by inspecting the rendered output and testing with a screen reader.

Keyboard interaction

Keyboard commands work when focus is within the chart and the related feature is enabled. Browser or operating system shortcuts can override some key combinations.

Move focus to and within the chart

Press Action Context
Alt + J Moves focus to the chart element. The chart is available on the page.
Tab Moves focus to the next focusable chart element. Focus is within the chart.
Shift + Tab Moves focus to the previous focusable chart element. Focus is within the chart.
Press Action Context
Down Arrow Moves focus to the previous data point. A data point is focused.
Up Arrow Moves focus to the next data point. A data point is focused.
Left Arrow Moves focus to the next series. A data point or series is focused.
Right Arrow Moves focus to the previous series. A data point or series is focused.
Enter or Space Selects the focused data point. Selection is enabled and a data point is focused.
Esc Closes the data point tooltip. A tooltip is open.
Press Action Context
Down Arrow or Left Arrow Moves focus to the legend item to the left of the selected item. A legend item is focused.
Up Arrow or Right Arrow Moves focus to the legend item to the right of the selected item. A legend item is focused.
Enter or Space Toggles the visibility of the corresponding series. A legend item is focused.

Zoom, pan, and reset

Press Action Context
Ctrl + Plus (+) Zooms in on the chart. Zooming is enabled and focus is within the chart.
Ctrl + Minus (-) Zooms out of the chart. Zooming is enabled and focus is within the chart.
Down Arrow or Up Arrow Pans the chart vertically. Panning is enabled and active.
Left Arrow or Right Arrow Pans the chart horizontally. Panning is enabled and active.
R Resets the zoomed chart. The chart is zoomed and focus is within the chart.
Ctrl + P Opens the browser print dialog for the chart or page. Printing is supported; browser behavior can vary.

Some arrow keys have different actions depending on whether focus is on a data point, series, legend item, or the zoomed plot area.

Ensuring accessibility

The Chart component is evaluated during automated testing with Accessibility Checker and axe-core. Automated tools help identify common accessibility issues, but they do not establish complete accessibility conformance. Also perform manual keyboard, focus, color contrast, zoom, and screen reader testing.

Open the accessibility sample in a new window to evaluate the Chart component with automated accessibility tools and supported assistive technologies.

Troubleshooting

  • The chart does not receive focus: Ensure the chart is rendered, visible, and not inside an inactive or hidden container. Then use Tab or Alt + J to move focus to it.
  • A keyboard command does not work: Confirm that focus is within the chart and that the related feature or module is enabled.
  • Arrow keys perform an unexpected action: Check which chart element currently has focus because data points, legends, and the zoomed plot area use arrow keys differently.
  • A shortcut triggers browser behavior: Use an alternative supported interaction when the browser or operating system reserves the shortcut.
  • The screen reader announces an unclear label: Inspect the rendered WAI-ARIA output and configure a meaningful accessible label where the component API supports it.
  • Automated testing reports no violations: Complete manual keyboard, focus, zoom, contrast, and screen reader testing because automated tools cannot identify every accessibility issue.

See also