block by d3noob 08fc05bceeb48f8e8310c7456f6c27cd

Using an 'if' statement in v5

Full Screen

This is a simple graph demonstrating the addition of filtering using an if statement with a graph. This was written using d3.js v5 and is a follow on to the simple scatter plot example here.

This graph is part of the code samples for the update to the book D3 Tips and Tricks to version 5 of d3.js.

index.html

data.csv