Skip to main content
100%

Pseudo Line Chart with D3

✓ Published0🌍 Public
11807589994@qq.com
Last edited Sep 26, 2024
Created on Sep 26, 2024

This visualization displays the average population growth rate for each continent across five decades, from 1970 to 2010, using a pseudo line chart. Six distinct colored lines represent Asia (yellow), Africa (orange), North America (green), South America (purple), Europe (blue), and Oceania (red). Built with D3 v7, the code uses `scaleLinear` for both axes, `line()` generators to create each path, and `axisLeft` for the y-axis. The chart includes a gray inner rectangle background, axis labels for "Decades" and "Growth Rate(%)", and hardcoded data from the `index.js` file, with each line appended as an SVG path with a stroke width of 2.

AI-generated description

Line chart for average population growth rate of each continent. (Asia to yellow, Africa to orange, North America to green, South America to purple, Europe to blue, Oceania to red)

MIT Licensed

Similar vizzes