Skip to main content
100%

Population Density

✓ Published1🌍 Public
Mmartin
Last edited Jul 11, 2021
Created on Jul 9, 2021
Forked from PopulationRanking

This bar chart ranks the top 20 densest cities or regions by population density, using data from the World Population Review 2021. The SVG visualization uses d3.scaleBand for the categorical y-axis and d3.scaleLinear for the continuous x-axis, with d3.axisBottom and d3.axisLeft rendering the gridlines and labels. Values are normalized by dividing population density by 1000, and the chart includes rotated axis labels and a title. The bars are drawn as SVG rect elements with a steelblue fill, styled via CSS.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

This bar chart shows population density of the top 20 densest cities or region.World Ropulation Review 2021

MIT Licensed

Similar vizzes