Activity 6_Task 1
✓ Published1🌍 Public
This example shows a horizontal bar chart of the 2020 populations for the top 30 countries, using a dataset of country-level population values from a CSV hosted on GitHub. The bars are drawn as SVG `<rect>` elements, with axes rendered using custom components that leverage D3’s `scaleBand` and `scaleLinear` to map country names and population numbers to screen coordinates. The visualization is built with React, using D3 v5 for data loading and scaling, and follows a tidy narrative. Tooltips reveal the exact population value (in billions) when hovering over each bar.
AI-generated descriptionA demonstration of how to start using D3 version 6.
MIT Licensed