# Accessible Charts: Text, Data Tables and Color

Source: https://allyway.ai/glossary/accessible-charts

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](https://allyway.ai/glossary/alt-text) is not enough. The W3C [Understanding page for 1.1.1](https://www.w3.org/WAI/WCAG22/Understanding/non-text-content.html) 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](https://allyway.ai/regulations/wcag-2-2) criteria apply to the chart itself: [Use of Color](https://allyway.ai/glossary/use-of-color) (1.4.1) forbids color as the only way to tell series apart, and [Non-text Contrast](https://allyway.ai/glossary/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.

> **Tip:** > **Write the long description for everyone**
> W3C recommends making long descriptions available to all users. A visible summary like "Sales grew every quarter, Q4 was strongest" helps people who skim, people with cognitive disabilities and anyone reading on a small screen.

## Examples

```html title="Example"
<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](https://allyway.ai/glossary/accessible-svg)) and offer the data as an [accessible table](https://allyway.ai/glossary/accessible-tables) or a downloadable file.

**Do:** Do

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.

**Don't:** Don't

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

Q: How do you write alt text for a chart?
A: 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.

Q: Do accessible charts need a data table?
A: 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.

Q: Can I use aria-describedby for a chart description?
A: 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.

Q: How do I make chart colors accessible?
A: 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.

Q: How can I find charts without text alternatives on my site?
A: Run the free [WCAG scanner](https://allyway.ai/free-wcag-accessibility-scanner-for-websites) 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.
