Line

d3_line.html ● d3.min.js ● data/fruit.csv

Line

This is a very short example to help you to get ready for A2. I tried to do it very simple. Best practice would be to also use d3.max() to calculate your scales etc.

The most difficult thing about lines is to get the data in the right shape for plotting lines. Take a look at the code:

Example

More about lines