d3 intro
✓ Published0🌍 Public
This example displays the top 10 most populous countries as a horizontal bar chart using React and D3 v5. The bars’ lengths are mapped from population values via `d3.scaleLinear`, while the y-axis uses `d3.scaleBand` for country names. It loads data from a United Nations World Population Prospects 2019 CSV file using `d3.csv`. The SVG rendering is split into reusable components: `AxisBottom`, `AxisLeft`, and `Marks`, with tooltips provided through SVG `<title>` elements.
AI-generated descriptionA program that shows the top 10 most populous countries as a bar chart.
MIT Licensed