block by d3noob 635735a3de2909ae06669096fbadc0ed

Multi-line graph 4 with v7: Toggle

Full Screen

This is used as an example in the book D3 Tips and Tricks v7. The stock data was sourced from Mike Bostock’s small multiples example.

It is the fourth 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 ability to toggle the lines off and on by clicking on the appropriate legend text.

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