Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of MIAGE base

Public visualization

Viewing a saved revision (read-only)

3b189033cf344dfbb0c54ec5e657e2f2

Fork of MIAGE base

0 stars0🌍 Public
Eemilienbf
Last edited Sep 26, 2022
Created on Sep 19, 2022
Forked from MIAGE base

A bar chart ranks 234 countries by 2022 population, drawn as vertical bars using D3 v5's `scaleBand` and `scaleLinear`. A button click sorts the data ascending by population and re-renders the bars, while hovering shows a tooltip with the exact value. It loads data via `csv` from a local `data.csv` file and renders as SVG with animated transitions.

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.