You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fx is not present in plotly.js anymore (isn't it?), and I can't find a way to find a Plotly's Plot instance (not the wrapper's instance) in order to try different methods.
Does anyone know how I could achieve a similar effect?
What I have so far looks something like:
import{FC,useEffect,useMemo,useRef}from"react";import{BoxPlotData,Layout}from'plotly.js'importPlotfrom'react-plotly.js';exportconstMyPlot: FC=()=>{constboxplotRef=useRef<Plot>(null)useEffect(()=>{if(boxplotRef.current){// What now?// I would like to do something like// boxplotRef.current.plot.hover([ { pointNumber: 1 }, { pointNumber: 2 }, { pointNumber: 3 } ])}},[]);constmyLayout=useMemo((): Layout=>{ ... },[])constmyData=useMemo((): Partial<BoxPlotData>=>{ ... },[])return(<Plotref={boxplotRef}data={myData}layout={myLayout}/>)}
The text was updated successfully, but these errors were encountered:
I am building something like this: https://plotly.com/javascript/hover-events/#coupled-hover-events, but I can't find a way to reproduce this behavior with react-plotly.js
Fx
is not present inplotly.js
anymore (isn't it?), and I can't find a way to find a Plotly'sPlot
instance (not the wrapper's instance) in order to try different methods.Does anyone know how I could achieve a similar effect?
What I have so far looks something like:
The text was updated successfully, but these errors were encountered: