Untitled
✓ Published0🌍 Public
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 descriptionAn example showing the capabilities of VizHub:
- Loads D3 via UNPKG.
- Demonstrates use of
importfrom"d3". - Demonstrates use of
importfrom local ES6 modules.
MIT Licensed