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 the use of the .filter
statement in d3.js and should be taken in context with the text of the book which can be downloaded for free from Leanpub.
Is it there a way to select the columns in a dynamic way? Like I was d.Wage_2011 and d.Wage_2022, but I want to select a certain column depending on a user checkbox...Which way would you recommend? By the way, thanks for the way to filter rows.