Skip to main content
100%

Area chart World Population

✓ Published0🌍 Public
SSophia Murage
Last edited Apr 5, 2020
Created on Apr 4, 2020

This area chart visualizes world population growth over time, with a smooth, curved area filling the space beneath the line and axes labeled “Time” and “Population.” The code loads CSV data using `d3.csv`, parses years as dates and populations as numbers, then scales the data with `d3.scaleTime` and `d3.scaleLinear`. It renders axes via `d3.axisBottom` and `d3.axisLeft`, and draws the area path using `d3.area` with `curveBasis`. The SVG output includes gridlines, tick labels, and a title, with formatting via `d3.format` for compact population values.

AI-generated description

A program that loads and parses some CSV data: CSS Named Colors.

MIT Licensed

Similar vizzes