Question 1.2
✓ Published1🌍 Public
This visualization shows a horizontal bar chart comparing the populations of 20 countries for the year 2010. Rectangular marks are drawn using React and SVG, with their widths proportional to population values from a CSV file loaded via `d3.csv`. D3's `scaleBand` and `scaleLinear` position the bars and axes, while `d3.format` with the SI prefix `'.2s'` converts large numbers to abbreviated labels like "1.2B". Custom `AxisBottom` and `AxisLeft` components render the tick marks and labels.
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