Skip to main content
100%

barGraph

✓ Published0🌍 Public
BBaptisteJarry
Last edited Sep 26, 2022
Created on Sep 26, 2022
Forked from D3.js Tutorial

This bar chart displays the 2022 population of countries. The visualization includes interactive buttons to sort the bars in ascending or descending order. The chart is rendered as an SVG using D3.js, with axes and bars generated through D3's `scaleBand` and `scaleLinear` scales, and axis functions `d3.axisLeft` and `d3.axisBottom`. Data is loaded from a local CSV file, and a tooltip showing country name and population appears on mouse hover.

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