Allow on/off to accept multiple values
未关闭
还没有人认领这个 Issue。
enhancement
- 主要语言
- R
- 星标
- 2.7k
- 派生
- 641
- PR 合并指标
- 30 天内没有已合并 PR
描述
Code:
library(plotly)
library(crosstalk)
D <- SharedData$new(iris, key = ~Species)
scatter <- ggplot(data=D, aes(x = Sepal.Length, y = Sepal.Width))
p <- scatter + geom_point(aes(color=Species, shape=Species)) +
xlab("Sepal Length") + ylab("Sepal Width") +
ggtitle("Sepal Length-Width")
highlight(ggplotly(p), on = "plotly_selected", off = 'plotly_deselect')
Step 1, I select the red group:

Step 2, I click somewhere else in the plot: (here is the BUG, it acts the same as off = 'plotly_doubleclick' )

Using double click releases the fading.
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
Start by running the supplied R example with highlight(ggplotly(p), on = "plotly_selected", off = "plotly_deselect") and compare it with the double-click behavior described. Trace how highlight handles the on and off arguments; done means multiple values are accepted and clicking elsewhere no longer behaves like plotly_doubleclick.
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- javascript, r
- 领域
- data-visualization
- Issue 类型
- 缺陷
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100