🌍 Public
Viewing a saved revision (read-only)
5eac4c473d8d47408ba0e0cdfbf49324
Activity6_population
This chart displays the top 10 countries by population in the year 2000, using a horizontal bar chart where bar length corresponds to population. The visualization is built with React and D3 v5, rendering SVG elements. The data is loaded from a remote CSV file using D3’s `csv` function. Axes are generated with `scaleBand` and `scaleLinear`, while the bars themselves are created as SVG `<rect>` elements with tooltips showing the population value using D3’s `format` function.
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.