Skip to main content
100%

Fork of Hello VizHub

✓ Published0🌍 Public
Rrahul.bonu524@gmail.com
Last edited Oct 19, 2024
Created on Oct 19, 2024
Forked from Hello VizHub

This example loads a CSV dataset of national populations and renders a horizontal bar chart for ten countries in the year 2000. The visualization uses D3 v7's `scaleLinear` and `scaleBand` to map population values and country names to SVG rectangles, with axes generated by `d3.axisBottom` and `d3.axisLeft`. It also demonstrates importing from the `d3` module and a local ES6 module, along with parsing comma-separated numbers 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