Skip to main content
100%

World Population Area Chart Example

✓ Published0🌍 Public
NNico Donovan
Last edited Jul 15, 2020
Created on Jul 13, 2020

This example shows the change in world population over time using a smooth area chart. The area path is generated with d3.area and a curveBasis interpolation, while d3.scaleTime and d3.scaleLinear map the year and population values to SVG coordinates. The chart loads population data from a CSV file, formats the y-axis ticks with d3.format (converting billions to “B”), and includes labeled axes and a title. The code uses d3.axisBottom, d3.axisLeft, and appends the chart elements to an SVG canvas within a React framework.

AI-generated description

A bare minimum HTML page.

See also React Starter.

MIT Licensed

Similar vizzes