Write a text alternative for a campaign chart

Give readers the comparison and exact values behind a campaign chart, even when they cannot see it.

Creative operations3 min read

A chart can make a campaign result look obvious while hiding the numbers from anyone who cannot see the image. A short image description identifies the chart; the explanation and data alongside it let readers evaluate the result themselves.

Start with the decision the chart supports

Suppose a report compares completed sign-ups from three campaign channels over the same week. A chart with three bars makes the ranking quick to see. The report also needs the exact counts and the meaning of the comparison in text.

This is a constructed example, not a real campaign. The numbers below are exact for the example:

Completed sign-ups by channel for one example week. The figures follow below.

Completed sign-ups by channel, example week

ChannelCompleted sign-ups
Email80
Search140
Social105

Search produced the most sign-ups: 35 more than Social and 60 more than Email. These counts alone do not establish which channel was most efficient; spend and attribution are not provided.

If the chart alone is published, a reader who cannot see it cannot recover either the ranking or the counts. Even “Search wins” is misleading as the only alternative: it leaves out the size of the differences and may suggest that the chart establishes the best use of budget. A link to a spreadsheet is useful as an additional download, but should not be the only route to the information in a simple chart.

Give each layer a job

Short alt text identifies the image and points to the nearby detail. For this example: “Bar chart of completed sign-ups by channel; the comparison and values follow.” The W3C guidance for complex images describes this short description plus a longer text alternative. Avoid trying to cram every value into the alt attribute when the chart needs a fuller explanation.

Adjacent interpretation states the meaningful comparison in ordinary text, including relevant limits. The paragraph after the table does that: it names the leader, differences, and what the data cannot establish. Keep the explanation available to everyone, not only as text revealed to assistive technology.

A semantic data table gives readers the exact values. Use actual table cells and headers, not an image of a table or text aligned with spaces. Give the table a concise caption such as “Completed sign-ups by channel, example week,” and associate headers with their cells. W3C's tables tutorial explains header associations; its caption guidance covers identifying the table. For a more complex table, the required associations depend on its structure.

If your publishing tool cannot create a semantic table, provide the values as readable text with the channel attached to each number while arranging a proper table in the publishing surface. Do not replace the data with a screenshot of a spreadsheet.

Copy this table into the report HTML and replace the three counts. Put the reporting period in the caption and update the chart and its interpretation together.

HTML
<table>
  <caption>Completed sign-ups, example week</caption>
  <thead><tr><th scope="col">Channel</th><th scope="col">Completed sign-ups</th></tr></thead>
  <tbody>
    <tr><th scope="row">Email</th><td>80</td></tr>
    <tr><th scope="row">Search</th><td>140</td></tr>
    <tr><th scope="row">Social</th><td>105</td></tr>
  </tbody>
</table>

Check the published version

Read the page without looking at the chart: can you identify the measure, period, ranking, exact values and the limit of the conclusion? Check the table's headers and caption in the published output, then navigate it with a screen reader. If the data or time period changes, update the chart, interpretation and table together. For a chart with many values, include the values needed to understand its claim and provide an accessible route to the complete data.

Developer tools
All guides
Write a text alternative for a campaign chart | Formatry Media — Formatry