Skip to main content
100%

Barchart

✓ Published1🌍 Public
YYvan Brito
Last edited May 19, 2021
Created on May 11, 2021
Forked from Hello VizHub

A horizontal bar chart ranks ten countries by population, using D3 v5 to load CSV data and render an SVG. The visualization employs `d3.csv`, `scaleLinear` for the x-axis population values, and `scaleBand` for the categorical y-axis, with axes generated via `axisLeft` and `axisBottom`. Bars are drawn as SVG rectangles filled with steelblue, and the code demonstrates ES6 module imports from D3 and local files.

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