Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to get Dash-Cytoscape graph tooltips?

Here is an example cytoscape graph that I created using this site as reference here

I was wondering if its possible to show the tooltips when hovering on each node in a graph in the same way that plotly can do to its graphs (like this)

like image 674
xyiong Avatar asked Feb 07 '21 09:02

xyiong


1 Answers

Dash Cytoscape does not have a built-in tooltip. It's possible to use hover callbacks (documented in the event callback guide) to update the content of a separate component (such as a html.P on the side). However that will not behave the same way as a tooltip.

You might also be able to build a custom component (using the component boilerplate) that follows your cursor and display custom information (given by the hoverData prop) whenever it is updated by a hover callback. However, that would require knowledge of JavaScript and React, which can be learned from the React for Python developers primer.

like image 138
xhlulu Avatar answered Nov 19 '22 23:11

xhlulu