Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

BAR CHART

Public visualization

Viewing a saved revision (read-only)

c99c7bb23b8b4129bef2e390584610c0

BAR CHART

0 stars0🌍 Public
TToky R
Last edited Sep 26, 2022
Created on Sep 26, 2022

A bar chart displays the 2022 population of numerous countries, sourced from a CSV file. Users can click the "Trier" button to reorder the bars in descending population or "Reset" to return to the original alphabetical country order. Hovering over a bar reveals a tooltip with the country's name and population. The visualization is built with d3.scaleBand, d3.scaleLinear, d3.axisBottom, d3.axisLeft, and d3.event, rendering as SVG.

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.