Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Area Chart

Public visualization

Area Chart

0 stars0🌍 Public
Ttarungunda
Last edited Mar 28, 2022
Created on Mar 28, 2022

This area chart visualization tracks annual per-capita CO2 emissions in India over time, using a yellow filled area to highlight changes against a light gray grid. The chart employs D3 v5’s `scaleTime` and `scaleLinear` for axes, while the `area` generator with `curveBasis` creates the smooth filled path from CSV data. Axis labels and a title are appended as SVG text, with tick lines spanning the plot area for readability. The data is loaded via `d3.csv` from a GitHub gist, and the SVG rendering includes margins and rotated y-axis label.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed