🌍 Public
Viewing a saved revision (read-only)
f44039bf47e64d73ac59dc12b098fdc0
Activity_6
A horizontal bar chart displays the 2020 populations of 30 countries, sourced from a CSV file via the D3 `csv` function. The visualization uses React to render SVG elements, with D3's `scaleBand` and `scaleLinear` mapping country names and population values to positions. Tooltips reveal exact population figures, and axes include custom tick formatting that abbreviates large numbers. The chart applies a green fill to marks and a blue stroke to axis lines.
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.