Activity 7
✓ Published0🌍 Public
This horizontal bar chart displays the 2010 populations of ten countries, sorted by country name, with light green bars on an SVG canvas. The visualization is built with React and D3 v5, using `scaleBand` for the categorical y-axis and `scaleLinear` for the quantitative x-axis. Population values are loaded from a CSV file via `d3.csv`, formatted with `format` (converting G to B), and rendered through custom React components for axes and marks. A native SVG `<title>` element provides hover tooltips.
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