Fork of Hello VizHub
✓ Published0🌍 Public
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 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