Recently we started using Observable Plot, more specific the y-bar chart.
While writing tests, we noticed that the graph is not WCAG compliant.
The graph should be reachable via tabbing.
The generated html looks like this : <g aria-label="y-grid" stroke="currentColor" stroke-opacity="0.1" transform="translate(0,0.5)"><!-- ... --></g>
The error I get :
→ aria-label attribute cannot be used on a g with no valid role attribute.
Thank you for using Plot! I don’t have a precise answer yet, but agree that there are things that can be improved. Can you point to the WCAG reference for this particular issue? And what do you think the solution would be in SVG?
Do you have a pointer to a notebook or webpage with a graph generated using Plot that exhibits the problem? A precise description of the tools you used to analyze the plot would be nice as well.