block by d3noob 6d50c569ee39ee5d6f26435e7586bc03

Independent scale multi-line graph

Full Screen

This is a derivative of the Multi-line graph 4 with v4: Toggle as used in the book D3 Tips and Tricks v4. The stock data was sourced from Mike Bostock’s small multiples example.

It is a variation on all the graphs in that multi-line series in that the y axis scales to bounds of the graph for each line. This might sound like a waste of time, but it is done with the intention to allow the viewer to more easily percieve common (related) features in the graph independant of scale

You can toggle the lines off and on by clicking on the appropriate legend text.

index.html

stocks.csv