Activity_6_test2
✓ Published1🌍 Public
This example shows a horizontal bar chart ranking the populations of 20 countries in 2010, with data loaded from a remote CSV and rendered as an SVG using React and D3 v5. It uses `d3.csv` to fetch and parse the dataset, `scaleBand` for the categorical y-axis, and `scaleLinear` for the numeric x-axis. Custom React components draw the axes and marks, with green bars whose widths encode population values and tooltips showing formatted numbers via `d3.format`.
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