Check 17.15 · Videos, PDFs and multimedia

Provide a text alternative for charts

Give every chart a short alt, a description of its key message and a data table, whether it is an image, SVG, canvas, iframe, in WordPress or in office documents.

Priority
Complementary
Difficulty
Easy
Estimated time
15 to 30 min per chart
Free, no account: your progress is saved in this browser.

Ask an AI to check this point on your site

Opens the assistant with a ready-made question: this check, its goal and your site URL.

For Gemini, Copilot or another assistant, copy the question. The link opens the chosen service directly: nothing goes through this site.

In short

A chart conveys figures and a conclusion, but in visual form. Its text alternative gives the same information as text: a short alt that says what it is about, a description of the main message and, for data charts, a table with the values. Once the task is done, a screen reader, a search engine crawler or a generative engine gets the same information as a person looking at the chart.

Why it matters

A chart as an image, as SVG or drawn in a <canvas> generally contains no data readable as text. As a result:

  • Screen readers announce “image” or nothing at all. A visually impaired person loses the information, which WCAG (success criterion 1.1.1, non-text content) asks you to avoid.
  • Search engines understand an image from its alt, its caption and the surrounding text, according to Google's image documentation. The values of a line chart only appear in the index if they are written somewhere.
  • Generative engines mainly read the text of pages. Some models can analyze an image, but nothing indicates that they do so for every chart on the pages they consult. A figure that only exists as pixels is unlikely to be cited correctly.

For complex images, the W3C recommends a two-part alternative: a short description that identifies the image, and a long description available to everyone, preferably in the page content.

What it improves

  • Accessibility Compliance with WCAG success criterion 1.1.1 for charts.
  • Understanding by search engines The figures and the conclusion become indexable text.
  • AI citations Data in text form, with unit, period and source, is easier to reuse. Possible effect, never guaranteed.
  • Google Images A descriptive alt and caption help it understand the subject of the image.
  • Readability for everyone The concluding sentence also helps readers in a hurry, and the table helps those who want the exact values.

How to check

  1. Inventory: go through the pages that contain charts (studies, reports, results pages, data articles).
  2. Code: in the developer tools, inspect each chart. An image must have a non-empty, descriptive alt; an SVG needs role="img" and an accessible name; a <canvas> needs an aria-label or fallback content.
  3. Automated tools: axe DevTools, WAVE or Lighthouse flag images without alt (axe rules image-alt and svg-img-alt). They do not judge the quality of the text. See test with axe, WAVE or Lighthouse (opens in a new tab).
  4. Reading test: mentally hide the chart. Is the page text enough to know the trend, the key values and the conclusion? If not, the alternative is incomplete.

Compliant result: every informative chart has a short name, its main message in visible text, and its values in a table or a link to the data.

How to implement

Before you start

Write the alternative before touching the code. Three levels:

Element Role Example (Thé des Lisières, fictitious data)
Short alt Chart type, subject, period Line chart of monthly matcha sales in 2026
Key message (caption or paragraph) The conclusion a sighted person draws from the chart Matcha sales doubled between January and June 2026, rising from 410 to 830 orders, before leveling off at around 800 in the second half of the year.
Data table All values, with units Month, orders, change

Choose according to complexity:

Chart Sufficient alternative
Two or three values (simple pie chart, gauge) An alt that contains the values
Trend (line chart, bar chart) Short alt + key message in the caption
Many data points (multiple series, map) Short alt + key message + table or data file
Decorative chart (illustration with no data) alt="": see use empty ALT for decorative images (opens in a new tab)

Writing rules: state the units, the period and the source; do not start with “Image of”; do not repeat the title displayed above; do not add keywords unrelated to the chart. The general principles are in provide ALT text for informative images (opens in a new tab).

Chart as an image (PNG, JPEG, WebP, SVG file)

Recommended structure: a <figure>, a short alt, the key message in <figcaption>, and the table in a collapsible block.

<figure>
  <img src="/images/ventes-matcha-2026.webp" width="800" height="450"
       alt="Line chart of monthly matcha sales in 2026">
  <figcaption>
    Matcha sales doubled between January and June 2026 (from 410 to 830 orders),
    then leveled off at around 800 orders a month. Source: shop orders.
    <details>
      <summary>Show the chart data</summary>
      <table>
        <caption>Monthly matcha orders, 2026</caption>
        <thead>
          <tr><th scope="col">Month</th><th scope="col">Orders</th></tr>
        </thead>
        <tbody>
          <tr><th scope="row">January</th><td>410</td></tr>
          <tr><th scope="row">June</th><td>830</td></tr>
          <tr><th scope="row">December</th><td>790</td></tr>
        </tbody>
      </table>
    </details>
  </figcaption>
</figure>

The content of a collapsed <details> element is still present in the HTML. If the table is long, place it in a dedicated section of the page and point to it from the caption with an anchor link.

Inline SVG chart

An inline SVG must have an accessible role and name. <title> provides the name, <desc> the description:

<svg role="img" aria-labelledby="ventes-titre ventes-desc" viewBox="0 0 800 450">
  <title id="ventes-titre">Line chart of monthly matcha sales in 2026</title>
  <desc id="ventes-desc">From 410 orders in January to 830 in June, then steady at around 800.</desc>
  <!-- chart paths -->
</svg>

If the SVG is generated by a library (D3, Recharts…), add these attributes in the component. Still keep the key message and the table as visible text: <desc> is only read by assistive technologies.

Canvas chart (Chart.js)

The content of a <canvas> is not exposed to screen readers. The Chart.js documentation recommends a role, a name and fallback content:

<figure>
  <canvas id="ventesMatcha" role="img"
          aria-label="Line chart of monthly matcha sales in 2026: from 410 to 830 orders between January and June, then steady at around 800">
    <p>Matcha sales 2026: 410 orders in January, 830 in June, 790 in December.</p>
  </canvas>
  <figcaption>Matcha sales doubled in the first half of 2026.</figcaption>
</figure>

Add the full table below the figure, as for an image. The fallback content is not displayed when the canvas works: it does not replace visible text. See also avoid information available only in Canvas (opens in a new tab).

Highcharts chart

Load the accessibility module after the export modules:

<script src="https://code.highcharts.com/highcharts.js"></script>
<script src="https://code.highcharts.com/modules/exporting.js"></script>
<script src="https://code.highcharts.com/modules/export-data.js"></script>
<script src="https://code.highcharts.com/modules/accessibility.js"></script>
Highcharts.chart('container', {
  title: { text: 'Monthly matcha sales, 2026' },
  accessibility: {
    description: 'Sales doubled between January and June, from 410 to 830 orders, then leveled off at around 800.',
  },
  series: [{ name: 'Orders', data: [410, 480, 560, 650, 740, 830, 810, 800, 790, 805, 800, 790] }],
});

The export-data module can also display the data as a table. Highcharts itself advises preferring a visible description to hidden text: repeat the sentence on the page.

Highcharts versions change over time: in production, pin a specific version or host the files yourself.

Chart embedded in an iframe (Datawrapper, Flourish, Looker Studio)

The iframe's content is served from the tool's domain. Google sometimes tries to associate it with the page that embeds it, with no guarantee, and other crawlers do not necessarily do so: do not count on it.

  • Fill in the iframe's title attribute (“Chart: monthly matcha sales in 2026”).
  • Use the description field for screen readers if the tool offers one, and enable the link to the data if available.
  • Write the key message and the main values on the page itself, below the iframe.
  • For a study, also publish the raw data: see offer public CSV/JSON files if relevant (opens in a new tab).

WordPress

Versions WordPress 6.5 to 7.1 (block editor).

  • Image block: select the image, then in the block settings panel, use the “Alternative text” field. The caption is typed below the image. Alt text entered in the Media Library serves as the default value for new insertions, not for images already placed.
  • Data: add a “Table” block below the image, or a “Details” block containing the table to collapse it.
  • Chart plugins: check that they output an aria-label, an alt or a table; otherwise, add the key message and the table by hand.

Shopify

Versions Shopify admin, all plans, November 2026.

In Content > Files or in the text editor of a page or blog post, edit the image to enter its alt text. Add the key message in the following paragraph and the values in a table in the rich text editor.

Webflow

Versions Webflow Designer, all plans, November 2026.

In the Assets panel, open the image's settings to enter its alt text; on an image already placed, check the “Alt text” setting in the element settings. Add the key message in a Figcaption element or a paragraph, and the table in HTML through an Embed element if needed.

Next.js

Versions Next.js 15 and 16 (next/image).

With next/image, the alt attribute is required: pass it the short description, and render the key message and the table on the server, so that they are in the initial HTML rather than loaded afterwards.

import Image from 'next/image';

export function GraphiqueVentes() {
  return (
    <figure>
      <Image src="/images/ventes-matcha-2026.webp" width={800} height={450}
             alt="Line chart of monthly matcha sales in 2026" />
      <figcaption>Matcha sales doubled in the first half of 2026, from 410 to 830 orders.</figcaption>
    </figure>
  );
}

Office documents and PDFs

Charts in reports exported to PDF need the same alternatives:

  • Word, Excel, PowerPoint (Microsoft 365, Windows): right-click the chart, “View Alt Text” (“Edit Alt Text” in Office 2016 to 2024). For a chart, select its border, then the “Format Chart Area” pane, “Alt Text” section.
  • PDF export: check “Document structure tags for accessibility” (Word, Windows) or “Tagged PDF” (LibreOffice); otherwise the alt text is lost.
  • In the document: also write the key message in the text and add the data table as an appendix.

Finally, for an important report, publish an HTML version: see offer an HTML version of critical resources (opens in a new tab).

Common mistakes

  • alt="chart" or a file name: no information.
  • Putting everything in the alt: a 600-character alt with thirty values is tedious to listen to and invisible to sighted users. The details go in the caption and the table.
  • A hidden description only (aria-label, <desc>, off-screen text): sighted users and some crawlers do not benefit from it.
  • A data table as an image: the problem is simply moved elsewhere.
  • Figures with no unit or period (“+45%”): impossible to cite correctly.
  • A Datawrapper or Looker Studio chart with no text on the page: the content lives in an iframe served by the tool.
  • A key message that contradicts the chart after a data update: review both together.

Frequently asked questions

What should a chart's alt text say?

A chart's alt text should identify the chart type, its subject and its period, for example “Line chart of monthly matcha sales in 2026”. For a simple chart with two or three values, add them directly. For a rich chart, keep the alt short and put the conclusion in a visible caption, then the detailed values in an HTML table below the chart.

Is a data table needed in addition to the alt text?

A data table is recommended as soon as a chart contains more than a few values. The alt text stays short and cannot carry all the data without becoming unreadable. The HTML table, with a caption and column headers, gives the exact values to screen readers, to people who want to check a figure and to search engines that read the page text.

Do generative engines read the figures in a chart image?

Nothing guarantees that generative engines read the figures in a chart image. They mainly rely on the text of pages, and no vendor documents a systematic analysis of images on the pages they consult. For a figure to be reused correctly, write it as text with its unit, period and source, in a caption, a paragraph or an HTML table.

How do I make a Chart.js chart accessible?

A Chart.js chart is drawn in a canvas element, whose content is not exposed to screen readers. Add a role="img" attribute and an aria-label summarizing the chart to the canvas, place meaningful fallback text between the canvas tags, then display a concluding sentence and a table of values below the chart. This is the approach recommended by the Chart.js documentation.

Updated on

Topic checklist (PDF)

And now?

In the “Videos, PDFs and multimedia” topic

  1. Optimize video titles and descriptions
  2. Create relevant thumbnails
  3. Add subtitles and transcripts
  4. Add chapters
  5. Create a dedicated video page if strategic
  6. Implement VideoObject
  7. Create a video sitemap if needed
  8. Check access to videos and thumbnails
  9. Monitor video indexing
  10. Optimize related YouTube videos
  11. Optimize public PDFs
  12. Check that PDFs contain selectable text
  13. Fill in PDF titles and metadata
  14. Offer an HTML version of critical resources
  15. Provide a text alternative for charts