Skip to main content
100%

PopulationRanking

✓ Published1🌍 Public
Mmartin
Last edited Jul 9, 2021
Created on Jul 8, 2021
Forked from Hello VizHub

This example shows a horizontal bar chart ranking ten countries by population, using a bar length proportional to each country’s population value. The visualization loads data from a CSV file, then uses `d3.csv` and `scaleLinear` for the x-axis and `scaleBand` for the categorical y-axis, with `axisLeft` and `axisBottom` to render the axes. The bars are drawn as SVG `rect` elements in a React-free setup, using D3 v7 and a plain HTML page. Population values are multiplied by 1000 before rendering.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes