These methods can be used to set the accessor functions for the source, target, and values in the data array.
The diagram on the left uses the default accessors d=>d[0]
, d=>d[1]
, and d=>d[2]
for source, target and value respectively.
The diagram on the right over rides these deafults.
Modified http://vizjs.org/viz.v1.1.0.min.js to a secure url
https://d3js.org/d3.v4.min.js
https://vizjs.org/viz.v1.1.0.min.js