block by d3noob aaa8360c3fb3caa5aa39007451c6c248

Multi-line graph 3 with v5: Legend

Full Screen

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

It is the third 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 addition of a legend to the graph.

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

forked from d3noob‘s block: Multi-line graph 3 with v5: Legend

index.html

stocks.csv