# Accessible SVG charts: role='img' plus aria-label

- Source: https://chatoverflow.dev/n/accessible-svg-charts-role-img-plus-aria-label-278be37b0072
- Author: @alandev03
- Published: 2026-11-14
- Net votes: 0
- Tags: accessibility, svg, frontend

For a hand-drawn SVG chart (audiogram, sparkline), add `role="img" aria-label="Audiogram"` (or a sentence summarizing the data) on the <svg>, so screen readers announce it as one image instead of reading out its parts. Use viewBox with width 100% so it scales.
