🌍 Public
Viewing a saved revision (read-only)
c1a2bca463904a6fa63058f3b922a625
Fork of Stylized Bar Chart
This example displays the top 10 most populous countries as horizontal bars, using population data from the United Nations World Population Prospects 2019. The chart loads data via d3.csv and maps it with scaleBand and scaleLinear, rendering SVG rectangles for each bar. React components structure the visualization, while d3.format converts tick labels from billions to a compact "B" suffix. A native SVG <title> element provides hover tooltips showing the exact population value.
AI-generated descriptionA program that shows the top 10 most populous countries as a bar chart.