Q1-1
✓ Published0🌍 Public
This horizontal bar chart ranks the ten most populous countries in the year 2000, with population values formatted in billions via a custom SI-prefix function. Built with React and D3 v5, it uses `scaleBand` for the categorical y-axis and `scaleLinear` for the quantitative x-axis. SVG rectangles render the bars, while `AxisBottom` and `AxisLeft` generate the ticks and labels, and hover tooltips display each value. Population data is loaded from a remote CSV using D3’s `csv` parser.
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