Filtering in v5
A scatterplot displays date-versus-value data from a CSV file, drawing a steelblue line for the full series and red dots only for points with values below 400. The example, built with d3.js v5, uses `d3.csv` to load data, `d3.scaleTime` and `d3.scaleLinear` to map coordinates, and applies a `.filter()` operation during circle creation to highlight only the low-value entries. SVG rendering shows the filtered points alongside the complete line and axes.
AI-generated descriptionThis is a simple graph demonstrating filtering. Specifically filtering graph points that fall below 400. This was written using d3.js v5 and is a follow on to the simple scatter plot example here.
This graph is part of the code samples for the update to the book D3 Tips and Tricks to version 5 of d3.js.