Skip to main content
100%

Question1

✓ Published0🌍 Public
Vvishu.valandas@gmail.com
Last edited Oct 22, 2024
Created on Oct 22, 2024
Forked from Hello VizHub

This example displays a stacked bar chart of population by country, segmented by religion, with an interactive color legend that highlights corresponding chart segments on hover. It loads data from a CSV file and uses D3 v5 APIs including `scaleOrdinal`, `schemeCategory10`, and `select`, while relying on `observeResize` from `@curran/responsive-axes` for responsive sizing. The visualization is built through local ES6 modules that separate the chart, legend, and data-parsing logic, with population values converted to millions for readability.

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