This post describes how to build a very basic
chord diagram with d3.js. You can see many
other examples in the
chord diagram section of the gallery.
Learn more about the theory of chord diagram in
data-to-viz.com. This example works with d3.js v4
and v6
div
that will be modified by d3 later on.
svg
area. It specify the chart size and its
margin. Read more.
d3.chord()
function
that computes the position of the outer arcs and inside
connections.
d3.arc()
and d3.ribbon()
to be
drawn.