Added Accessibility Support for Screenreaders #4936
Conversation
add: support for user generated description
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
PR Checklist:
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.