Question 1.2
✓ Published0🌍 Public
A horizontal bar chart displays the populations of 20 countries in 2010, sorted alphabetically by country name. Using React with D3 v5 modules, the visualization employs `d3.scaleBand` for the categorical y-axis and `d3.scaleLinear` for the quantitative x-axis, with SVG rectangles as marks. Population values are transformed from the CSV data by multiplying by 1000, and axis labels use `d3.format` with abbreviated notation, replacing "G" with "B" for 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.
MIT Licensed