🌍 Public
Viewing a saved revision (read-only)
d576dc6735ce4f0eb9aac608e6942eb5
Activity 6_Task 1
This horizontal bar chart displays the 2020 population estimates for the top 30 countries, ranked by country name on the y-axis. Built with React and D3 v5, the visualization uses `scaleBand` for the categorical axis and `scaleLinear` for the population values, rendering SVG rectangles whose lengths encode the data. Tooltips show formatted population numbers via the `title` element. The x-axis uses `format('.2s')` to abbreviate values in billions, while the data is fetched from a CSV file.
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.