Filtering in v6
✓ Published0🌍 Public
Dd3noob
Last edited Sep 14, 2020
Created on Sep 14, 2020
A line chart plots daily closing stock prices from a CSV file on SVG axes using d3.scaleTime and d3.scaleLinear. Red circles, added via appended SVG circle elements, highlight only the data points whose close value falls below 400, using the filter method on a data join with d3.csv. The full line path remains visible, while the filtered scatterplot overlays show the selected subset.
AI-generated descriptionThis is a simple graph demonstrating filtering. Specifically filtering graph points that fall below 400.
This graph is part of the code samples for the update to the book D3 Tips and Tricks to version 6 of d3.js.
mit Licensed