Activity6_Question1.2
✓ Published0🌍 Public
This example displays a horizontal bar chart of population data for 20 countries in 2010, with each bar’s length proportional to the country’s population. The visualization uses React components to render SVG elements, with D3 v5’s `scaleBand` and `scaleLinear` handling the y- and x-axis mappings, respectively. Data is loaded via D3’s `csv` method from a GitHub-hosted dataset, and the bars include a native SVG `<title>` element for tooltips. The axes are customized with pink tick lines and a formatted tick label that converts values into billions (e.g., using `format('.2s')`).
AI-generated descriptionA demonstration of how to start using D3 version 6.
MIT Licensed