Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Area chart

Public visualization

Area chart

0 stars0🌍 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

Comments

Sign in to join the discussion.

MIT Licensed