Skip to main content
100%

barGraph

✓ Published0🌍 Public
MMathieuZenone
Last edited Sep 26, 2022
Created on Sep 23, 2022
Forked from barGraph

A bar chart displays the 2022 population for each country from a CSV dataset, with the option to sort bars in descending order. Built with D3.js v5, it renders as an SVG with axes, tooltips on hover, and a clickable button that triggers an animated resort. The code imports from the `d3` module and uses `d3.scaleBand`, `d3.scaleLinear`, and `d3.axisBottom` for visualization.

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