Fork of Stylized Bar Chart
✓ Published0🌍 Public
This example displays the top 10 most populous countries as horizontal bars, with country names on the left and population counts on the x-axis. Built with React and D3 v5, it uses `scaleBand` for the categorical y-axis and `scaleLinear` for the population values. SVG rectangles render the bars, with tooltips formatted using D3’s `format('.2s')` and hover titles provided by native SVG `<title>` elements. Data comes from the United Nations World Population Prospects 2019, loaded via `d3.csv`, showing a clean stylized design with teal bars.
AI-generated descriptionA program that shows the top 10 most populous countries as a bar chart.
MIT Licensed