Feature request: Option for alt text for plotly plot in shiny app
未关闭
还没有人认领这个 Issue。
- 主要语言
- R
- 星标
- 2.7k
- 派生
- 641
- PR 合并指标
- 30 天内没有已合并 PR
描述
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.
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先跟踪 renderPlotly() 入口点,并比较为 shiny 的 renderPlot() 所描述的 alt 参数行为。现有的 htmltools::tagAppendAttributes() 变通方案展示了所需的结果;完成应意味着能够以等效方式为 shiny 应用中的 plotly 图表提供 alt 文本。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- r
- 领域
- accessibility, data-visualization
- Issue 类型
- 功能
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100