Adding lines to the SVG

Add the following to the bottom of app.js:

var links = d3.select("#links")
    .selectAll("line")
    .data(linksData)
    .enter()
    .append("line");

This will create a line for each element in our linksData array. Our Developer tools should look as follows:

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.188.35.158