Legend name not passed when using frame animation
未关闭
还没有人认领这个 Issue。
- 主要语言
- R
- 星标
- 2.7k
- 派生
- 641
- PR 合并指标
- 30 天内没有已合并 PR
描述
Hi,
Legend names are sometimes not passed when using frame option.
#This is working (without frame)
plot_ly()%>%add_markers(1:3,2:4)%>%add_markers(1:3,2:4,name="New name")
#This is not (with frame)
plot_ly()%>%add_markers(1:3,2:4,frame=c(1,1,2))%>%add_markers(1:3,2:4,frame=c(1,2,2),name="New name")
#This is working (with frame) !
#This works apparently because frame 1 is repeated twice (frame=c(1,1,2) is okay but frame=c(1,2,3) is not)
plot_ly()%>%add_markers(1:3,2:4,frame=c(1,1,2))%>%add_markers(1:3,2:4,frame=c(1,1,2),name="New name")
[Package plotly version 4.10.4]
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
使用 plotly R 版本 4.10.4 重现 issue 中的三个 plot_ly() 示例,比较 frame 值重复与不同时的图例名称。跟踪 frame 动画处理,以确定第二个 trace 的名称在哪里丢失;当不同 frame 的命名图例项得以保留且不会破坏正常工作的情况时,即视为完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- r
- 领域
- data-visualization
- Issue 类型
- 缺陷
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 45/100