Skip to main content
100%

Question_2

✓ Published0🌍 Public
Eeedaraajay02@gmail.com
Last edited Apr 15, 2024
Created on Apr 15, 2024
Forked from Hello VizHub

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 description

An example showing the capabilities of VizHub:

  • Loads D3 via UNPKG.
  • Demonstrates use of import from "d3".
  • Demonstrates use of import from local ES6 modules.
MIT Licensed

Similar vizzes