ACTIVITY8_TASK1
✓ Published0🌍 Public
This example displays a horizontal bar chart ranking the 2020 populations of 30 countries, drawn from a CSV file with D3’s `csv` loader. React components render SVG axes (`AxisBottom`, `AxisLeft`) and rectangle marks, with scales mapping population values to bar widths. D3 v5 provides the scale functions and tick formatting, while JSON tooltips on each bar reveal the exact population figure. The chart uses a simple, clean layout with labeled axes to compare relative population sizes across nations.
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