Activity 6
✓ Published0🌍 Public
This bar chart visualizes the 2020 population of 30 countries using a horizontal layout, with each bar’s length proportional to its population value. The visualization is built with the React framework, using D3 v5 utilities like `scaleBand` and `scaleLinear` for axes and layout, while rendering to SVG. Country names appear on the left axis, and a formatted tick label converts values to billions. Data is loaded from a remote CSV via `d3.csv`, and tooltips detail each bar’s exact population figure.
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