Isosurface and other 3D types prevent Scatterplot hover
未关闭
还没有人认领这个 Issue。
bug
P3
- 主要语言
- JavaScript
- 星标
- 18.3k
- 派生
- 2k
- 平均合并
- 2 天 12 小时
- 30 天内合并 PR
- 28
描述
As this is ultimately a plotly.js issue, I'm referencing the following issue from plotly.py
Isosurface and other 3D types prevent Scatterplot hover
When plotting an Isosurface, Mesh3D etc, and also a Scatter3D trace,
the Isosurface object seems to prevent the hover functionality of the Scatter-Plot when trying to hover over a Scatter3D marker,
even though the Isosurface's hoverinfo parameter has been set to "skip".
reproducible example (written in Python, but illustrates the issue and produces the HTML and JS):
from pandas import DataFrame as DF
import plotly.graph_objects as go
df = DF([(20,10,400)])
plot = go.Figure()
plot.add_trace(go.Isosurface(
x=[5,5,5,5,50,50,50,50],
y=[25,0,25,0,25,0,25,0],
z=[500,500,0,0,500,500,0,0],
value=[1,2,3,4,5,6,7,8],
hoverinfo='skip',
opacity=0.05,
colorscale=[[0,'yellow'],[1,'yellow']],
showscale=False
)
)
plot.add_trace(go.Scatter3d(
x=df[0], y=df[1], z=df[2],
mode='markers', marker={'color': 'midnightblue', 'size': 5}, opacity=1,
name='scatterplot'
)
)
plot.show()
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
从 issue 中可复现的示例开始,将 Isosurface 或 Mesh3D 与 hoverinfo 设置为 "skip" 的 Scatter3D trace 进行比较。即使存在叠加的 3D trace,悬停在 Scatter3D marker 上仍能正常工作时,该 issue 就完成了。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- javascript
- 领域
- data-visualization
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 25/100