activity 6_Task 1 Q2
✓ Published0🌍 Public
This interactive bar chart displays the population of the top 20 countries for the year 2010, sorted in descending order. Built with React and D3 v5, it uses the `scaleBand` and `scaleLinear` functions to map country names and population values to SVG rectangles. The data is loaded from a CSV file via D3’s `csv` function, and hovering over a bar reveals a tooltip with the population in a compact SI format.
AI-generated descriptionAn example showing the capabilities of VizHub:
- Loads D3 via UNPKG.
- Demonstrates use of
importfrom"d3". - Demonstrates use of
importfrom local ES6 modules.
MIT Licensed