eisman / neo4jd3

Neo4j graph visualization using D3.js
https://eisman.github.io/neo4jd3/
MIT License
1.38k stars 424 forks source link

How to properly reset it wihout reloading the page #53

Closed CrashLaker closed 5 years ago

CrashLaker commented 5 years ago

Hi all,

As I'm dynamically change the root node based on the user's click I'd need to reset the data along with its data.

When I try to load a new function by setting: neo4j = new Neo4J(...) nothing really happens.

Is there a alway to reset the data before calling updateWithNeo4jData?

thanks.

CrashLaker commented 5 years ago

nvm.. got it.

just needed to instantiate a new Neo4jD3()..

My real problem was related to vue though.. the struggle is real..