d3 / d3-force

Force-directed graph layout using velocity Verlet integration.
https://d3js.org/d3-force
ISC License
1.82k stars 377 forks source link

not support IE #150

Closed ghost closed 5 years ago

ghost commented 5 years ago

Link.js used the arrow function on line 56.

let i, n = nodes.length, m = links.length, nodeById = new Map(nodes.map((d, i) => [ id(d, i, nodes), d ])), link;

mbostock commented 5 years ago

https://github.com/d3/d3-force/releases/tag/v2.0.0

jaspreetnabha commented 4 years ago

@mbostock, I am getting same error. I am using amcharts which internally using d3-force ^2.0.1 version. Please let me what version needs to be used ?

gordonwoodhull commented 4 years ago

Please look at the above link.

Clearly you need 1.x

jaspreetnabha commented 4 years ago

@gordonwoodhull , The issue is that I am using AMCharts which internally uses D3 and D3-force. I can't refer lower versions of D3. Please advise how can I transpile it or use older version of D3-force.

gordonwoodhull commented 4 years ago

AFAIK if amCharts is using d3-force v2 then it is not compatible with IE and there’s no point reporting it here.

It says on their compatibility page that their force-directed tree is not compatible with IE. You’d probably have to take it up with them or downgrade your amCharts.