Skip to main content
100%

Population Bar Chart with axis

✓ Published1🌍 Public
SSam Hege
Last edited Sep 14, 2022
Created on Sep 14, 2022

A horizontal bar chart displays the top 10 countries by projected 2020 population, with a linear x-axis and categorical y-axis. Bars are drawn as SVG `<rect>` elements, with scales and axis ticks generated using `d3.scaleBand`, `d3.scaleLinear`, and `d3.max`. The chart renders within a React component using React hooks (`useState`, `useEffect`) and updates after loading CSV data asynchronously via `d3.csv`. Data comes from a GitHub-hosted UN Population 2019 dataset.

AI-generated description

A program that loads and visualizes some data

MIT Licensed

Similar vizzes