This is a simple graph demonstrating the addition of filtering using an if statement with a graph.
if
This graph is part of the code samples for the update to the book D3 Tips and Tricks to version 6 of d3.js.