plotly.R icon indicating copy to clipboard operation
plotly.R copied to clipboard

Feature request: Option for alt text for plotly plot in shiny app

Open aosmith16 opened this issue 3 years ago • 1 comments

I was recently trying to add alt text for a plotly-based animated plot within a shiny app. I saw that there is a comparatively recent option to add alt text via an alt argument in, e.g., package shiny's renderPlot(). I didn't see anything similar in R plotly. Is it possible something similar could be extended for renderPlotly()?

I was able to get alt text added to my plot via htmltools::tagAppendAttributes() in the UI code, although it took me a bit to get it (apparently) right.

aosmith16 avatar Feb 14 '22 16:02 aosmith16

@aosmith16, would you mind sharing your solution with tagAppendAttributes?

yvanrichard avatar Sep 14 '22 03:09 yvanrichard