Closed coleweusthem closed 3 years ago
Should this be tagged "Dash"?
@nfee006, I had the same question, do we have the specific rule we need to follow? We may be able to put the alt text on a wrapper div or something similar. If not then it will be a dash issue.
Do you know if that would be acceptable from a WCAG 2.0 perspective?
If you look at Examples of Success Criterion 1.1.1 example one, we should just need to have a brief description of what the graph shows. If that is acceptable with Comms we won't need to edit the element itself, just add a label. https://www.w3.org/TR/UNDERSTANDING-WCAG20/text-equiv-all.html
I'll run it by them - thanks.
@nfee006, did we get an answer on this?
Not yet - I'll check in.
Heres an attempt at adding text versions of graphs using Dash provided functionalities. Here, I used a summary element with a details element and wrapped a dash_table.DataTable element inside. Currently this is a test table containing arbitrary values to see what Dash generates in terms of html elements. Here is a preview:
And here is the associated html elements for the table alone:
It seems like the table generated is just a list of divs with some special styles. This should not be an issue but worth considering. This is currently being worked on on the Text-Version-Graph branch.
To clarify: the intent of David's work is proof of concept.
@nfee006 & @dreneuw, are you implementing your table for alouette as well?
@coleweusthem yes i will be working on this as soon as I've completely finished the Scisat instance
Implemented in master.
The graphs/maps must have alternative text. Graphs would normally require a corresponding data table. However, in order to keep acceptable perfomance. Since there is a lot of data, this table can (for example) be generated on another page using a hyperlink.