🌍 Public
Viewing a saved revision (read-only)
e76020e4eb804f0893bb2c893f471344
Fork of Stylized Bar Chart
This example displays the average unemployment rate for the top 10 most populous countries, rendered as a horizontal stylized bar chart with an SVG output using React. The chart uses d3.scaleBand and d3.scaleLinear to map countries and values, while d3.format formats tick labels. Data comes from the United Nations World Population Prospects 2019. Blue bars include a native SVG `<title>` element for tooltips, and loading states show "Loading..." via React hooks and the `useData` custom hook.
AI-generated descriptionA program that shows the top 10 most populous countries as a bar chart.