Open nirkai opened 2 years ago
I'm needing this too to pass an accessibility compliance work. to make the graphics accessible we also need the SVG to have role="img" to tell assistive technologies that the element is not purely presentational that it is informational and is desctibed in aria-image="chart"
There is no option to add
title
anddesc
elements for accessibility purpose.The
svg
element required alternative text (like images), which should be implemented withtitle
(and optionaldesc
) element. The default charts usingsvg
and so it missing this important elements.Here are some references: https://developer.mozilla.org/en-US/docs/Web/SVG/Element/title https://www.deque.com/blog/creating-accessible-svgs/ https://css-tricks.com/accessible-svgs/