ilios / ember-simple-charts

Some easy to use charts made with ember and D3
https://ember-simple-charts.netlify.app/
MIT License
5 stars 7 forks source link

add support for descriptions on chart components #1011

Closed stopfstedt closed 1 year ago

stopfstedt commented 1 year ago

currently, we have the ability to label chart components, but not to add long-text descriptions to them.

the solution would be to add <desc> elements alongside the already existing <text> elements to the SVG, and then fill them with passed in data. the descriptive data would most likely be the texts that are currently rendered on the tool tips.

this should help in making our charts more accessible for visually impaired users.

see https://developer.mozilla.org/en-US/docs/Web/SVG/Element/desc