Activity 6Q1.2
✓ Published0🌍 Public
This bar chart displays the populations of twenty countries for the year 2010, ranked along a categorical y-axis. The visualization uses React and D3 v5, with `scaleBand` and `scaleLinear` for the axes and `Marks` rendering an SVG `rect` for each country. Data loads from a remote CSV via `useData` and `d3.csv`, with population values converted from thousands. Axis components format tick labels using `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