Question 2
✓ Published0🌍 Public
A horizontal bar chart displays population change for ten countries from 1950 to 2020, with each row representing a year and bar length scaled to population. The chart uses D3 v7’s `scaleBand` for the year axis, `scaleLinear` for population, and `scaleOrdinal` with `schemeCategory10` for country colors. Interactive tooltips appear on mouseover, showing the exact year and population value. Data comes from a local CSV file loaded and parsed by D3.
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