🌍 Public
Viewing a saved revision (read-only)
fab9a05eeeaf47459b69bb2162b9a31b
Refactored barchart
The chart displays the populations of the ten most populous countries as horizontal bars, sorted by country name along the vertical axis. It loads the UN Population 2020 dataset via the d3.csv utility and uses React state to store the loaded data. The visualization is built with React and rendered as SVG, using d3.scaleBand for the categorical y-axis, d3.scaleLinear for the quantitative x-axis, and reusable React components for the axes and marks.
AI-generated descriptionA program that loads in some data using d3 utilities and use react state to store the data