freedomofpress / pressfreedomtracker.us

Code for the U.S. Press Freedom Tracker project website
https://pressfreedomtracker.us
GNU Affero General Public License v3.0
18 stars 7 forks source link

How do we make our charts more accessible if possible? #1628

Open SaptakS opened 1 year ago

SaptakS commented 1 year ago

I have few concerns regarding the accessibility of the charts. Firstly, I think the way Vertical bar Charts is really much more accessible compared to what we have for our homepage, since we have a separate field for the description of the svg chart. That helps the screenreader users to get an idea about the visualization. I think we should have a similar <desc> element in homepage with dynamic content (since it's a little bit more dynamic, but if someone has idea for static content, I am fine with that).

But there are few other points that bugs me, mainly because our charts are interactive:

These are some of the points that come to my mind. There can obviously be more discussion points. I feel at the very least, we should definitely have a <desc> for the homepage visualization, even if it's a static one.

harrislapiroff commented 1 year ago

I have one example of an accessible chart I attempted from the pre accurat days (specifically the US map on that page and not the bar chart). There were two specific things I did for this:

  1. Used actual <a> link elements for the interactive components and
  2. Added aria roles and labels to the marks on the chart in order to get a screenreader to read them in a human-friendly way

I bet we could achieve these with React Animated Dateset, but we may have to coerce it a bit or fork it.

harrislapiroff commented 1 year ago

Part of the work here is being done in #1651. Let's keep this ticket open for ongoing assessment of how we're doing here.