🌍 Public
Viewing a saved revision (read-only)
90303578ce364789a4036b68c14b826f
Activity 6_Task 1
This horizontal bar chart displays the population of 20 countries in 2010, sorted by country name. The visualization uses React with D3 v5 scales (scaleBand and scaleLinear) to position bars and axes within an SVG, with tick marks and labels rendered by custom AxisBottom and AxisLeft components. Population values are loaded from a CSV file, formatted using d3.format's SI notation (converting G to B), and tooltips appear on hover via SVG title elements.
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.