Skip to main content
100%

BAR CHART

✓ Published0🌍 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.
MIT Licensed

Similar vizzes