🌍 Public
Viewing a saved revision (read-only)
8a3fbf4f61744c0db05e97fa5fa1f7b9
Activity6_population2
A horizontal bar chart displays the populations of twenty countries in 2010, sorted by country name. The visualization uses React with D3 v5, employing `scaleBand` for the categorical y-axis and `scaleLinear` for the quantitative x-axis. SVG rectangles are rendered via custom `Marks` components, with axes generated by `AxisBottom` and `AxisLeft`. Population values are loaded from a remote CSV file, formatted using D3's `format` function to display values in 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.