Isosurface and other 3D types prevent Scatterplot hover
Nessuno ha ancora preso questa issue.
- Lingua principale
- JavaScript
- Stelle
- 18.3k
- Fork
- 2k
- Merge medio
- 2g 12h
- PR unite (30g)
- 28
Descrizione
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()
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Inizia con l’esempio riproducibile nell’issue e confronta Isosurface o Mesh3D con una traccia Scatter3D il cui hoverinfo è impostato su "skip". L’issue è completata quando il passaggio del mouse sul marker Scatter3D funziona nonostante la traccia 3D sovrapposta.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- javascript
- Ambito
- data-visualization
- Tipo di issue
- Bug
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Da chiarire
- Idoneità per principianti
- 25/100