Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of barGraph

Public visualization

Fork of barGraph

0 stars0🌍 Public
GGinnWG
Last edited Oct 3, 2022
Created on Sep 20, 2022
Forked from barGraph

A bar chart displays each country's 2022 population, loading tabular data from a CSV file. Hovering over a bar triggers a tooltip showing the country name and population value. Clicking a button re-sorts the bars by population using a transition on x positions. The visualization is built with D3 v5, using `csv`, `scaleBand`, `scaleLinear`, `axisLeft`, `axisBottom`, and positional 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.

Comments

Sign in to join the discussion.

MIT Licensed