Accessibility features
@elastic/charts v68.0.2
Elastic Charts provides some accessibility features for all users.
Available a11y-related features
- Chart titles
- Chart descriptions
- Chart data in tabular form*
- Texture fill*
- Semantic groupings*
*Not all chart types that may benefit from this feature have it implemented as of yet
Titles
ariaLabel
and ariaLabelledBy
props can be set through the <Settings />
component.
ariaLabel
takes a string label which will be visually hidden whereas theariaLabelledBy
prop can tie the chart to other accessible elements elsewhere in your app.
tsx code block: