I am working on a dynamic scatter plot using D3. (Current draft)
I would like to include a form at the bottom of the page that hides or grays out some of the circles depending on the form.
The form will have checkboxes and sliders. This question only asks about sliders. At the moment I'm stuck at how to make D3 elements respond to a form
Following this tutorial I made a slider that calls an update
function when the user interacts with the slider. This SO answer gives the code for changing the color fill of a data point.
The console.log
statement inside the update
function suggests that I am not selecting the proper D3 element.
How do I access/link the proper D3 elements?