Skip to content

Instantly share code, notes, and snippets.

@jesusalber1
Created May 31, 2018 20:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jesusalber1/0b0ff4369c94b3911b0e9f09c49bf96d to your computer and use it in GitHub Desktop.
Save jesusalber1/0b0ff4369c94b3911b0e9f09c49bf96d to your computer and use it in GitHub Desktop.
neo4jd3 onNodeClick example
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);
}
});
}
}
});
@veerareddyakkili
Copy link

How to get data from Neo4j server initially. is there any way we can do without chnanging the code like using options.neo4jDataUrl.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment