Pie Chart
✓ Published0🌍 Public
This example visualizes the top 10 most populous countries as a horizontal bar chart, with country names on the y-axis and population on the x-axis. The visualization uses React to render SVG elements, with d3.scaleBand and d3.scaleLinear for positioning, and d3.csv to load UN World Population Prospects 2019 data. Hovering over each bar reveals a tooltip via the native SVG `<title>` element, while d3.format shortens population labels like "1.4B".
AI-generated descriptionA program that shows the top 10 most populous countries as a bar chart.
MIT Licensed