This is a follow on from the simple scatterplot used as an example in the book D3 Tips and Tricks.
It is aimed at demonstrating a the use of an if
statement to select elements in d3.js. It should be taken in context with the text of the book which can be downloaded for free from Leanpub.
forked from d3noob's block: if selection in d3.js
Modified http://d3js.org/d3.v3.min.js to a secure url
https://d3js.org/d3.v3.min.js