Country vs population
✓ Published0🌍 Public
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 descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.
MIT Licensed