off event for highlighting not firing for 3d marker/scatter3d
未关闭
还没有人认领这个 Issue。
plotly.js
- 主要语言
- R
- 星标
- 2.7k
- 派生
- 641
- PR 合并指标
- 30 天内没有已合并 PR
描述
I have not found a way to deselect highlighted markers in 3d. No off events appear to work when z coordinates are specified with add_markers.
library(plotly)
d<-data.frame(x=rnorm(10),y=rnorm(10),z=rnorm(10),grp=sample(1:2,10,T),clr=rnorm(10)) %>% highlight_key(~grp)
# off event fires as expected
plot_ly(d) %>%
add_markers(x=~x,y=~y,text=~grp,hoverinfo='text',color=~clr) %>%
highlight(on='plotly_click',off='plotly_doubleclick')

# no off event fires
plot_ly(d) %>%
add_markers(x=~x,y=~y,z=~z,text=~grp,hoverinfo='text',color=~clr) %>%
highlight(on='plotly_click',off='plotly_doubleclick')

Looping gif makes it look like it's deselecting, but it's not.
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先运行 issue 中的两个可复现 R 示例,比较带有和不带 z 坐标的 add_markers,以及 highlight(on='plotly_click', off='plotly_doubleclick') 的行为。跟踪 3D 标记/scatter3d 的高亮路径,并验证在提供 z 坐标时双击会取消选择已高亮的标记。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- r
- 领域
- data-visualization
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 25/100