Activity8_task1_Q1.2
✓ Published0🌍 Public
This interactive bar chart displays the population of 20 countries for the year 2010, organized along a horizontal axis with country names on the vertical band scale. Built with React and D3 v5, it uses `scaleBand` and `scaleLinear` to map data, rendered as SVG rectangles with a green fill. Each bar includes a tooltip showing the unformatted population value via the `<title>` element. Data is loaded asynchronously from a remote CSV file using D3's `csv` utility, with x-axis labels formatted using `format('.2s')` and replacing 'G' with 'B' for billions. The chart includes custom axes, margins, and axis labels.
AI-generated descriptionA demonstration of how to start using D3 version 6.
MIT Licensed