Feature request: Option for alt text for plotly plot in shiny app
Nobody has claimed this yet.
- Dominant language
- R
- Stars
- 2.7k
- Forks
- 641
- PR merge metrics
- No merged PRs in 30d
Description
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.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing the renderPlotly() entry point and compare the alt argument behavior described for shiny's renderPlot(). The existing htmltools::tagAppendAttributes() workaround shows the desired outcome; done should mean an equivalent way to provide alt text for plotly plots in a shiny app.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- r
- Domain
- accessibility, data-visualization
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100