block by d3noob 88d2a87b72ea894c285c

Multi-line graph 2: Colours

Full Screen

This is a derivative of the simple d3.js graph used as an example in the book D3 Tips and Tricks. The stock data was sourced from Mike Bostock’s small multiples example.

It is the second graph in a series that is building a multi-line graph that incorperates an automatically developed legend and a system that can toggle the lines off and on as desired.

This version is demonstrating the application of unique colours to the graph lines.

The graph should be taken in context with the text of the book which can be downloaded for free from Leanpub.

index.html

stocks.csv