Accessible Charts: Text, Data Tables and Color
Also called: Accessible graphs, Accessible data visualization, Chart alt text
Definition
Accessible charts are graphs, diagrams and data visualizations that people can understand without seeing them: they have a short text alternative, a long description or data table with the essential information, and they don't rely on color alone.
Accessible charts present the information of a bar chart, line graph or pie chart in a form that screen reader users, people with low vision and people with color blindness can use as well. A chart usually carries far more than a short phrase can say, so it needs two text parts: a short alternative that names it and a longer description or table with the actual data.
What it means
WCAG success criterion 1.1.1 Non-text Content (Level A) requires that all non-text content has a text alternative that serves the equivalent purpose. Charts are the classic case where a short alt text is not enough. The W3C Understanding page for 1.1.1 names charts and diagrams as content where short and long text alternatives are used together, and for data charts it says: "Where possible and practical, the actual data is provided in a table."
The W3C images tutorial calls such graphics "complex images" and describes the two parts:
| Part | Purpose | Where it goes |
|---|---|---|
| Short description | Identifies the chart and, where needed, says where the long description is | alt of the image |
| Long description | Textual representation of the essential information | Text or a data table next to the chart, a <figcaption> or a separate page |
Text alternatives are only half the job. Other WCAG 2.2 criteria apply to the chart itself: Use of Color (1.4.1) forbids color as the only way to tell series apart, and Non-text Contrast (1.4.11) asks for 3:1 for the graphical parts people need to understand the chart, such as bars and lines.
Examples
<figure role="group">
<img src="visitors-2025.png"
alt="Bar chart: website visitors per quarter 2025. Data in the table below.">
<figcaption>
<p>Visitors rose every quarter; Q4 had more than twice as many as Q1.</p>
<table>
<caption>Website visitors 2025</caption>
<tr><th scope="col">Quarter</th><th scope="col">Visitors</th></tr>
<tr><th scope="row">Q1</th><td>4,200</td></tr>
<tr><th scope="row">Q2</th><td>5,100</td></tr>
<tr><th scope="row">Q3</th><td>6,800</td></tr>
<tr><th scope="row">Q4</th><td>9,300</td></tr>
</table>
</figcaption>
</figure>For an interactive SVG chart built with a library, the same rule applies: give the <svg> a name (see accessible SVG) and offer the data as an accessible table or a downloadable file.
Give the chart a short alt that names its type and topic, add a summary of the key finding and the full data in a real table, label lines and bars directly, and use patterns, markers or labels in addition to color.
Write alt="chart", put all numbers into a 300-word alt, show the data only in a hover tooltip, or use a legend that only works by matching colors.
How to check your charts
Questions
How do you write alt text for a chart?
Keep it short: the chart type, the topic and, if helpful, the main trend – for example "Line chart: monthly orders 2025, rising from 120 to 410". Put the detailed values in a table or text next to the chart and mention in the alt text where they are.
Do accessible charts need a data table?
WCAG does not require a table in every case, but the W3C Understanding page for 1.1.1 says the actual data should be provided in a table where possible and practical. For bar and line charts with real numbers, a table is usually the clearest long description.
Can I use aria-describedby for a chart description?
Yes, for a description that is plain text. W3C points out that screen readers don't get headings or tables through aria-describedby, so for structured data use a visible table or a <figure> with a <figcaption> instead.
How do I make chart colors accessible?
Never use color as the only difference. Add direct labels, patterns or marker shapes, and make sure bars and lines reach 3:1 contrast against the background.
How can I find charts without text alternatives on my site?
Run the free WCAG scanner on your page; it lists images without a text alternative. Whether a description really conveys the chart's information still needs a person to check.
Related terms
Alt text
Alt text is a short written description of an image. Screen readers read it aloud, and browsers show it when the image can't load – so people who can't see the image still get its meaning.
Read definition: Alt textAccessible Tables: Headers, Captions and Scope
Accessible tables are data tables marked up so that their structure is available to software: real table elements, header cells (th) linked to their data cells with scope or headers and id, and a caption. This is how they meet WCAG 1.3.1 Info and Relationships at Level A.
Read definition: Accessible Tables: Headers, Captions and ScopeNon-text Contrast: 3:1 for Icons, Borders and Focus
Non-text Contrast is WCAG success criterion 1.4.11. The visual parts needed to identify user interface components and their states, and the parts of graphics needed to understand content, must have a contrast ratio of at least 3:1 against adjacent colors.
Read definition: Non-text Contrast: 3:1 for Icons, Borders and FocusUse of Color: Never Rely on Color Alone
Use of Color is WCAG success criterion 1.4.1. Color must not be the only visual means of conveying information, indicating an action, prompting a response or distinguishing a visual element.
Read definition: Use of Color: Never Rely on Color Alone