ICE-6
✓ Published0🌍 Public
This example displays a horizontal bar chart of the ten least populated U.S. states, filtered from a CSV dataset. The chart uses a React component with D3.js v5 helper functions like `scaleBand` and `scaleLinear` to map state names and population values to SVG rectangles. Axes are rendered using D3 `ticks`, and the SVG output includes green grid lines. The data is loaded asynchronously via D3’s `csv` function.
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