🌍 Public
Viewing a saved revision (read-only)
18930a9a81c3476ebd86ef72b260dceb
Fork of Refactored Bar Chart
This bar chart visualizes the top 10 most populous countries using 2020 data from the United Nations World Population Prospects 2019, rendered as horizontal bars with SVG and React. It shows population values with formatted tick labels (e.g., "1.4B") and a tooltip on each bar. The visualization uses d3.scaleBand and d3.scaleLinear for layout, while React components handle axes and marks. The code also includes a custom axis tick formatter that converts SI units from "G" to "B".
AI-generated descriptionA program that shows the top 10 most populous countries as a pathetic bar chart with no axes.