Skip to main content
100%

Country vs population

✓ Published0🌍 Public
Ssravaniboggaram
Last edited Jul 7, 2021
Created on Jul 7, 2021
Forked from Customizing Axes

This visualization shows the populations of countries worldwide, with each country represented as a horizontal bar scaled by its population size. The code uses D3 v6 APIs including `scaleLinear` for the x-axis, `scaleBand` for the y-axis, and `axisLeft` and `axisBottom` for the axes. Data is loaded from a CSV file via `csv()`, and the bars are rendered as SVG rectangles. The x-axis uses a custom tick format that replaces the standard "G" with "B" to label billions.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes