attr("width", width + margin.left + margin.right)
              .attr("height", height + margin.top + margin.bottom)
              .append("g")
              .attr("transform",`translate(${margin.left},${margin.top})`);

// Read dummy data
d3.json("https://raw.githubusercontent.com/holtzy/D3-graph-gallery/master/DATA/data_network.json").then(function(data) {

  // List of node names
  const allNodes = data.nodes.map(d=>d.name)

  // A linear scale to position the nodes on the X axis
  const y = d3.scalePoin