Filtering
Learn how to apply a filter to D3 objects with the help of an example.
We'll cover the following
Filtering a subset of objects
Imagine a scenario where you want to select (or should we say filter) a particular range of objects from a larger set.
For example, what if we wanted to use our scatter plot example to show the line as normal? But, we are particularly interested in the points where the values of the points fall below 400. Therefore, when the value falls below 400, we want them highlighted with a circle as we have done with the scatter plot points previously.
So we end up with something that looks a little like this:
Get hands-on with 1400+ tech skills courses.