Fork of activity 6_Task 1_Question1-2
✓ Published0🌍 Public
This example displays a horizontal bar chart of the top 20 countries by 2010 population. The visualization uses React with D3 v5 utilities, including `scaleBand` for the categorical y-axis, `scaleLinear` for the numeric x-axis, and custom `AxisBottom` and `AxisLeft` components. Population values are loaded from a remote CSV file using `csv()`, with the data formatted in billions using D3’s `format` function. Rectangular marks are rendered as SVG elements, each with a tooltip showing the formatted population value.
AI-generated descriptionA demonstration of how to start using D3 version 6.
MIT Licensed