Skip to main content
100%

some ks

✓ Published0🌍 Public
MMNoichl
Last edited Feb 9, 2018
Created on Feb 9, 2018

This example displays two lines on a single graph, using data from a CSV file with columns for the x-axis and two distinct y-value series. The first series is omitted from rendering, while the second is drawn as a red path. Built with d3.js v4, it uses `d3.line` to generate the path and `d3.scaleLinear` for both axes, with `d3.axisBottom` and `d3.axisLeft` providing the tick marks. The SVG output is positioned using margin conventions.

AI-generated description

This is a simple graph demonstrating the display of multiple lines. This was written using d3.js v4 and is a follow on to the simple graph example here.

This graph is part of the code samples for the update to the book D3 Tips and Tricks to version 4 of d3.js.

forked from <a href='http://bl.ocks.org/d3noob/'>d3noob</a>'s block: <a href='http://bl.ocks.org/d3noob/4db972df5d7efc7d611255d1cc6f3c4f'>Multiple line graph in v4</a>

mit Licensed

Similar vizzes