Skip to main content

Accessibility

Victory provides a number of features to make your charts more accessible. This guide will walk you through some of the most important features.

Basic

Containers like VictoryChart set the role attribute to img and expose the desc prop to provide a description of the chart for screen readers.

Chart types like VictoryLine and VictoryBar expose aria props like aria-label to provide additional context for screen readers. Adding a tabIndex attribute will make the data components focusable. (click on chart and press TAB key to focus)

Live View
Loading...
Live Editor

Groups

Use VictoryAccessibleGroup to wrap a group of chart components. This will add a role="group" attribute to the SVG element, which will make the chart more accessible to screen readers. Adding a tabIndex attribute will make the group focusable. (click on chart and press TAB key to focus)

Live View
Loading...
Live Editor

Like this project? You'll love working with us.

Contact us to learn more about our full range of services and offerings.

Learn More