0

I'm new to D3 and looking at one of the examples for the force directed graph.

This example was built using v4, so the only update I'm making is to change from v4:

<script src="https://d3js.org/d3.v4.min.js"></script>

to v5:

<script src="https://d3js.org/d3.v5.min.js"></script>

However now nothing shows.

I've read where there were significant differences between v3 to v4, but here it states: "D3 5.0 introduces only a few non-backwards-compatible changes" and among those I don't see anything mentioned about the force directed graph.

Was there a breaking change in v5 that would have this affect?

Where could I update this code to show the graph under v5?

Loren Maxwell
  • 307
  • 3
  • 12

0 Answers0