MPAndroidChart icon indicating copy to clipboard operation
MPAndroidChart copied to clipboard

Added Accessibility Support for Screenreaders

Open ish-joshi opened this issue 5 years ago • 2 comments

PR Checklist:

  • [X] I have tested this extensively and it does not break any existing behavior.
  • [X] I have added/updated examples and tests for any new behavior.
  • [x] If this is a significant change, an issue has already been created where the problem / solution was discussed: [N/A, or add link to issue here]

PR Description

The PR adds support for screen-readers. The chart can now be detected and a description is generated dynamically for bar, line and pie charts common use case scenarios.

Previously, the charts were just ignored by the screen-reader. This is a major improvement and paves the way forward for better accessibility implementation for this amazing library.

Adds autogenerated description for screenreader as well as the ability for the user to add accessibility description which will be read out when the screen-reader focuses on the chart.

chart.setAccessibilitySummaryDescription("This is a customizable description on user end");

Accessibility is really important, 2.2 billion users have some sort of vision-impairment according to the WHO. This enables access for those sets of users who cannot see and makes the library charts accessible.

ish-joshi avatar Jul 10 '20 07:07 ish-joshi

If you really need this, you should continue here

hannesa2 avatar Mar 15 '23 07:03 hannesa2

It's merged in https://github.com/AppDevNext/AndroidChart/pull/112

hannesa2 avatar Jul 11 '23 07:07 hannesa2