plotly / plotly/plotly.R

event_data("plotly_hover") not triggering for full range of 3D surface

未关闭
#1,345 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

shiny
主要语言
R
星标
2.7k
派生
641
PR 合并指标
30 天内没有已合并 PR

描述

I have a 3D space comprising four surfaces added as traces using add_surface. I hope to link these to a subplot using event_data("plotly_hover") (or event_data("plotly_click") ).

These events trigger correctly over some of the range of the surface, between x = 15 and 38 inclusive, but not the full range.

A more detailed description of the problem, including screengrabs showing event_data() working correctly and incorrectly, is provided here, along with a reproducible code example.

The desired use case for this feature is shown in the last two tabs of the app deployed here. The aim is in effect to perform 'tomography' on the surfaces along the age (x), year (y) and birth cohort axes (y-x). Within the range over which event_data triggers correctly this works really well.

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

从链接的 Stack Overflow 问题中的可复现代码示例开始,在整个 add_surface 范围内比较 event_data("plotly_hover") 和 event_data("plotly_click"). 当事件在全部四个 3D 曲面和完整的 x 范围内都能一致触发,包括 x = 15–38 之外的值时,即视为完成。

由索引模型根据 Issue 内容生成。

评估

技术栈
r
领域
data-visualization
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。