Charts and graphs are visual ways to add information to your website. However, they can pose some difficulties for users with disabilities. For example, users who are blind will be unable to see the chart and instead rely on screen readers to provide them with textual information about the chart. Users with mobility disabilities may be unable to use a mouse to hover over the graph, so they may need to be able to tab to each section of the graph. There are a few things you can do to make your chart or graph more accessible to users with disabilities.
- Add brief alternative text to the chart or graph. We typically describe images using alternative text (ALT attribute), captions, or nearby bodies of text. Good alternative text provides the information conveyed in the image, including all relevant details. For example, a graph showing sale increases might have alternative text that reads, "Graph of sales 2017-2019". For more information about alternate text, visit the Images page.
- Thoroughly describe the chart or graph in nearby text. In an adjacent paragraph, describe the purpose and function of the chart or graph. Include an analysis of the data presented. For example, a graph showing sale increases might have a description as follows: "This is a graph showing sale increases for the fiscal years of 2017 through 2019. In 2018, sales in Division 1 increased by 12 percent from 2017, while sales in Division 2 increased by 15 percent. From 2018 to 2019, Division 1 sales increased by 16 percent, and sales from Division 2 increased by 14 percent."
- Supplement the chart or graph by providing the data in table format. Tables are inherently more accessible than charts or graphs because users can tab or use the arrow keys to move through them. You can provide the table alongside the chart or graph, link to it, or offer a downloadable version of the table. The visualization plugin offers an option to select downloadable formats (Advanced>Frontend Actions>Actions, select Print, CSV or Excel). A table of sale increases may look like this:
2017 2018 2019 Division 1 sales 118 132 153 Division 2 sales 130 150 171