Course contentsShow
← Web Development
Lesson 1144 of 2,98220. Screen Readers and Assistive TechnologyFree lesson

Alt Text for Charts and Graphs

Describing trends and key data points in data visualizations while providing full data in accessible formats.

Alt Text for Charts and Graphs

What you'll learn: How to write effective alternative text for data visualizations that conveys their purpose and key insights to screen reader users.

Charts and graphs present a unique challenge for accessibility. Unlike photos or icons, they contain complex information that can't be fully captured in a short description. The goal isn't to describe every visual detail, but to communicate the purpose and main takeaway of the visualization.

The Two-Part Approach

Think of alt text for charts as a headline, not the full article:

1. Alt text describes the trend or key insight:

<img src="sales-chart.png" alt="Sales increased 40% in Q4, reaching an all-time high">

This tells screen reader users what the chart means, not just what it shows. Focus on the actionable insight—what should someone take away from this data?

2. Provide the full data in an accessible format:

The alt text alone isn't enough. You must also offer the complete dataset through:

  • A linked data table nearby
  • A text summary following the chart
  • longdesc attribute (though browser support varies)
  • An adjacent <details> element with the raw data
<img src="trend.png" alt="Website traffic grew 25% year-over-year">
<details>
  <summary>View full data table</summary>
  <!-- accessible table with all data points -->
</details>

What to Include

  • Type of chart: "Bar chart showing..."
  • Main trend: increase, decrease, stable, correlation
  • Key numbers: significant data points or percentages
  • Context: what the data represents

Key Takeaway: Alt text for charts should convey the main insight or trend, while the complete data must be available in an accessible format like a table or text summary nearby.