It would be helpful if renderPlot() were to accept an optional argument (a string) that would become the value of an alt attribute in the resulting image tag:
e.g:
renderPlot(...,alt="alternative text",...)
produces
<img ... alt="alternative text" ...>
in the output HTML.
Incorporating the alt argument into a list of attributes, as in renderImage(), would also be fine, if it's feasible.
There is a big need for this feature, esp. for people building Shiny apps that must meet ADA guidelines. Can the priority be raised???
+1
Default the alt
value to the plot title. Via https://github.com/rstudio/shiny/issues/2846
I need this, too -- why can't Shiny just send HTML code to the browser?? It's not accessible at all right now.
@pfeiffss, we will close this issue soon via #3006. Thanks for your patience.
Most helpful comment
There is a big need for this feature, esp. for people building Shiny apps that must meet ADA guidelines. Can the priority be raised???