Shiny: request: pass ALT text to renderPlot

Created on 9 Oct 2014  路  5Comments  路  Source: rstudio/shiny

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.

Novice Low Critical Accessibility Type

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???

All 5 comments

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Stophface picture Stophface  路  3Comments

snowman55 picture snowman55  路  5Comments

Toniiiio picture Toniiiio  路  4Comments

zji90 picture zji90  路  5Comments

HarlanH picture HarlanH  路  3Comments