🌍 Public
Viewing a saved revision (read-only)
1b56bbc8db0840b7a5b8f0cbd6917f81
activity 6_Task 1
This horizontal bar chart ranks the ten most populous countries in the year 2000, using bars colored light green against a blue-axis plot. Data is loaded from a CSV via `csv` and sorted in descending order, with the top ten slices selected for display. The chart uses React components (`AxisBottom`, `AxisLeft`, `Marks`) and D3’s `scaleBand` and `scaleLinear` to position bars, while `format(.2s)` converts population values into abbreviated text such as "1.2B".
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.