I am using this React
Neovis
component to connect to Neo4j
, to create a graph which works. However I need to add a click listener to each element on the graph so that I can show 2nd level information related to a particular node (or an item) in the graph. Is there a way to add a Click event/listener to NeoVis in Javascript?
For the code, please use the example in this documentation.
You may have already find the answer but, I respond for all of future ones who will find this page.
If you want to have as a preview on the div of
neoVis.js
:If you want to add an event on click of a node.