Skip to main content
100%

Area chart

✓ Published0🌍 Public
AAparna Desi Reddy
Last edited Mar 26, 2026
Created on Mar 25, 2026
Forked from HTML Starter

This area chart tracks electric vehicle sales in thousands over a sequence of years, using D3.js v7 with SVG rendering. The code loads a CSV dataset via `d3.csv`, sorts the data chronologically, and applies linear scales with `d3.scaleLinear` for both axes. It generates a filled area path using `d3.area` and overlays a stroked line with `d3.line`, plus data point circles. Axis labels and a bold title are included, with the chart drawn within a defined margin using the SVG coordinate system.

AI-generated description
MIT Licensed

Similar vizzes