eisman / neo4jd3

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

D3.js data format not working ?! #13

Open zakibenz opened 7 years ago

zakibenz commented 7 years ago

I am trying to replace my old 3Djs visualization with neo4jd3 plugin and in my old code I am using D3js data format and when switching to your plugin using the same format I am getting the error below:

neo4jd3.min.js?v=0.0.1:1 Uncaught TypeError: Cannot read property 'forEach' of undefined at P (neo4jd3.min.js?v=0.0.1:1) at fe (neo4jd3.min.js?v=0.0.1:1) at neo4jd3.min.js?v=0.0.1:1 at Object. (d3.min.js:7) at d.call (d3.min.js:4) at XMLHttpRequest.e (d3.min.js:7)

in my init I am setting data url option as below: neo4jDataUrl: 'assets/json/test.json'

where test.json is in D3.js format.

please help or provide an example using D3.js format. Thanks.

yampelo commented 6 years ago

It looks like you can't load in D3.JS data, you must load in neo4j data