sankey chart to replicate a chord chart
click on either the left or right stacked bars to select/highlight paths—double click to reset
notes:
this chart takes data as per sampleData.js:
const sampleData = [
{
label: 'Region-a',
values: [
{label: 'Ash', value: 4},
{label: 'Birch', value: 3},
{label: 'Maple', value: 1}
]
},
...
nodesAndLinks.js for d3-sankeycreateDOM.js, to allow control/ease over internal selectionslistInfo.js and updateTitle.js functions