Skip to main content
100%

Bar Chart

✓ Published1🌍 Public
GGabriel
Last edited Apr 20, 2022
Created on Apr 11, 2022

This bar chart displays the top 10 countries by population for 2020, using horizontal bars ranked from largest to smallest. The visualization is built with React and rendered as SVG, leveraging D3 v7’s `scaleBand` for the categorical y-axis and `scaleLinear` for the numeric x-axis. Population values are loaded via `d3.csv` from a UN dataset and formatted with SI notation, converting “G” to “B” for billions. Axes are generated by custom React components, and hover tooltips appear through native SVG `<title>` elements.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes