plotly / react-cytoscapejs

React component for Cytoscape.js network visualisations
MIT License
472 stars 69 forks source link

Does this pkg suport tooltip on hover? #65

Open anfa1014 opened 3 years ago

anfa1014 commented 3 years ago

hi, i want to add tooltip on each node , does this pkg provide this feature ?

ztyree42 commented 3 years ago

Did you find a solution to this? If it's not available in-library you can use the cy prop on whatever your favorite Tooltip library to do this. ` <CytoscapeComponent elements={[]} cy={(cy) => { cy.on("mouseover", "node", ({ target }) => { const data = target.data()

throw the data onto redux/mobx/whatever

         #pipe through Tippy
          console.log({...data.obj})
        })
      }}
    />`