add add_vrect and add_hrect to plotly R library
还没有人认领这个 Issue。
- 主要语言
- R
- 星标
- 2.7k
- 派生
- 641
- PR 合并指标
- 30 天内没有已合并 PR
描述
I am trying to add vertical lines and rectangles that span an entire plot axis. The created polygon or line should not affect the autoscale functionality of plotly. This functionality is implemented in the python library using the functions add_hrect and add_vrect as exemplified here: https://plotly.com/python/horizontal-vertical-shapes/
In the python tab section 'Adding Text Annotations' the autoscaling functionality is maintained when toggling on/off legend items. This is not the case for the R-version of the script.
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先检查 R library 现有的多边形、线条和图例切换行为,然后将其与 issue 中链接的 Python horizontal-vertical-shapes example 进行比较。完成标准是:R library 中提供 add_vrect 和 add_hrect,跨越绘图轴的 shapes 不影响 autoscaling,并且切换图例项时 autoscaling 仍然正确。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- python, r
- 领域
- data-visualization
- Issue 类型
- 功能
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 42/100