ggplotly tool tip disappearing for some points
未关闭
还没有人认领这个 Issue。
reproducible example needed
- 主要语言
- R
- 星标
- 2.7k
- 派生
- 641
- PR 合并指标
- 30 天内没有已合并 PR
描述
Developing a Shiny app in R3.6.3 with ggplotly version4.9.2.
Plotting a scatter plot from ggplotly with tooltip of each point.
As the tool tip for each point grows larger (more rows), the points toward the top of the graph lose the tooltip even if the tool tip is the same for each point.
If the tooltip is the same, why do some points lose the tool tip and others can display it?
In the code below vary numRows or the size of the plot and points from top towards the bottom lose the tooltip.
numRows = 20
ggiris <- ggplot(data = iris,
aes(x = Petal.Width,
y = Sepal.Length,
color = Species,
text = paste(rep(LETTERS, length.out = numRows), collapse = "<br>"))) +
geom_point()
ggplotly(ggiris, tooltip = "text")
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先运行提供的 R ggplotly 示例,并改变 numRows 和图表大小,以重现缺失的工具提示。跟踪 ggplotly 如何为图表顶部附近的点渲染较大的工具提示内容;当工具提示文本相同时每个点都保留其工具提示,即表示完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- r
- 领域
- data-visualization
- Issue 类型
- 缺陷
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 42/100