Activity 6 Task 1
✓ Published0🌍 Public
This interactive SVG bar chart displays the 2020 populations of 30 countries, ranked from largest to smallest, using a horizontal layout. Built with React and D3 v5, it visualizes data from a CSV file, rendering bars with a light green fill and blue tick marks on the axes. The chart leverages D3’s `scaleBand` and `scaleLinear` to map countries and population values to screen coordinates, while the `AxisBottom`, `AxisLeft`, and `Marks` components generate the SVG elements. Tooltips are provided via native SVG `<title>` elements, and axis labels use a formatted scale for readability.
AI-generated descriptionA demonstration of how to start using D3 version 6.
MIT Licensed