Untitled
✓ Published1🌍 Public
This example displays a horizontal bar chart of the top 10 most populous countries from the United Nations World Population Prospects 2019 dataset. The bars are rendered as SVG rectangles using React, with scales from d3.scaleBand and d3.scaleLinear mapping country names and population values. Axes are generated as custom React components, with the x-axis formatted using d3.format to abbreviate numbers in billions. The chart uses a Poppins font and teal-colored bars, with data loading handled asynchronously via d3.csv.
AI-generated descriptionA program that shows the top 10 most populous countries as a pathetic bar chart with no axes.
MIT Licensed