Line Chart Template
✓ Published1🌍 Public
This example plots daily COVID-19 case counts in Hubei province over time as a smooth, maroon line. The chart uses a time-scaled x-axis for dates and a linear y-axis for case numbers, with gridlines and labeled axes for clarity. Built with D3 v5, it loads data from a CSV file using `d3.csv`, scales it with `scaleTime` and `scaleLinear`, and renders the line via the `d3.line` generator with a `curveBasis` interpolation. The visualization is drawn as SVG elements, including axes, a title, and the line path.
AI-generated descriptionMIT Licensed