activity 6-Q1.2
✓ Published0🌍 Public
This horizontal bar chart displays the populations of 20 countries for 2010, sorted by country name along the y-axis with population values on the x-axis. Built with React and D3 v5, it uses `scaleBand` and `scaleLinear` to position the rectangles, while custom `AxisBottom` and `AxisLeft` components render the ticks. The data is loaded from a CSV file via `csv()` and formatted with `format('.2s')` to abbreviate large numbers (e.g., "1.2B"). SVG output is generated through React components, with hover tooltips provided by SVG `<title>` elements.
AI-generated descriptionA demonstration of how to start using D3 version 6.
MIT Licensed