Skip to main content
100%

Untitled

✓ Published0🌍 Public
Ppjdhungana@gmail.com
Last edited Jul 14, 2023
Created on Jul 14, 2023
Forked from Hello VizHub

This example displays a horizontal bar chart of weapon exporter values by country for 2017. The React app fetches CSV data from a GitHub gist using D3’s `csv` loader, then renders the chart as an SVG. Bar lengths are scaled with `scaleLinear`, while the categorical country labels use `scaleBand` with padding. Axes are custom React components (`AxisBottom`, `AxisLeft`) that iterate over D3 scale ticks and domains to draw lines and text.

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