eisman / neo4jd3

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

Do not work in IE 11 #21

Open amarpandav opened 6 years ago

amarpandav commented 6 years ago

Hi, Its not working in IE 11. What I see is only white screen. There are no js errors in the console.

giuseppepantaleo commented 5 years ago

Maybe it's too late, but this could help someone else in future. I solved the problem with IE visualization replacing all occurrences of 'parentElement' with 'parentNode' inside initSimulation and zoomFit functions.
In Internet Explorer parentElement is undefined for SVG elements, whereas parentNode is defined. (see: https://stackoverflow.com/questions/8685739/difference-between-dom-parentnode-and-parentelement). This solution seems to be cross-browser.