Created
May 31, 2018 20:02
-
-
Save jesusalber1/0b0ff4369c94b3911b0e9f09c49bf96d to your computer and use it in GitHub Desktop.
neo4jd3 onNodeClick example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var neo4jd3 = new Neo4jd3('#neo4jd3', { | |
onNodeClick: function(node) { | |
if (node.id == 5) { // your node id | |
$.ajax({ | |
url: "/endpoint", // your API endpoint | |
dataType: 'json', // if you receive a JSON | |
success: function(data) { | |
neo4jd3.updateWithNeo4jData(data); | |
} | |
}); | |
} | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
How to get data from Neo4j server initially. is there any way we can do without chnanging the code like using options.neo4jDataUrl.