Accessibility for charts
We have several charts of different types across our application (donut, bar, line) that have their data fed in through APIs based on user selection (and therefore I have no control over the amount of elements within the charts - a bar chart could have 2 bars or 200)
With regards to screen readers and accessibility, I have seen several articles that talk about having a londesc
which references an HTML representation of the data (as well as an aria-describedby
/alt
atrribute for the screenreader to announce)
If you have a chart with hundreds of elements, is it good practice to provide an HTML table with all the data? Is this useful to a visually impaired user? Would they listen to the screen reader announce every single row? Charts by their very nature are a quick visual representation of data/trends