lines
✓ Published0🌍 Public
This example shows monthly COVID-19 case counts from the New York Times rolling-averages dataset as a line chart with circular markers, rendered as SVG using React and D3 v7. The code aggregates daily data by month using `d3.rollup` and `d3.sum`, scales time and linear values with `d3.scaleTime` and `d3.scaleLinear`, and draws the line with `d3.line`. A `d3.brushX` brush overlay is attached to the chart, logging selected date ranges to the console, while axes are generated by custom React components.
AI-generated descriptionA scatter plot of The Iris Dataset.
MIT Licensed