🌍 Public
Viewing a saved revision (read-only)
0ce85f9869f64e7189b64c90791b70aa
Activity 6_Tutorial Task 1_Harini
This horizontal bar chart displays the populations of 30 countries in 2020, ranked with the largest population at the top. The visualization pairs React with D3 v5, using `scaleBand` for the categorical y-axis and `scaleLinear` for the numeric x-axis. Population values from the CSV source are formatted in billions using D3's `format('.2s')`. The SVG marks are simple rectangles, with blue axis ticks and lines styled through CSS, and x-axis labels translated from gigabytes notation to billions.
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.