Skip to main content
100%

barGraph

✓ Published0🌍 Public
TToky R
Last edited Sep 26, 2022
Created on Sep 26, 2022
Forked from barGraph

This bar graph displays the 2022 population of countries from a CSV dataset, sorted in descending order. It uses D3 version 5 to render an SVG visualization, mapping country names to the x-axis and population values to the y-axis. The chart employs `d3.scaleBand` and `d3.scaleLinear` for scales, `d3.axisLeft` and `d3.axisBottom` for axes, and a mouseover tooltip that displays the country name and population. The code loads data via `d3.csv`.

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