Question_2
✓ Published0🌍 Public
A population treemap displays yearly population values for several countries as horizontal bars on a band scale. Hovering highlights a bar and reveals a tooltip with the specific year and population figure. The visualization uses D3 v7 APIs including `d3.scaleBand`, `d3.scaleLinear`, `d3.axisLeft`, and `d3.schemeSet3` for color encoding. Population data is loaded from a CSV file and rendered as SVG rectangles, with axes formatted using `d3.format`.
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