Activity6_TasK1
✓ Published0🌍 Public
This visualization displays the 30 most populous countries in 2020 as a horizontal bar chart. It loads population data from a GitHub-hosted CSV file, with population values computed by multiplying the '2020' column by 1000. The chart is rendered using React and D3 v5, with d3.scaleBand for the categorical y-axis, d3.scaleLinear for the numeric x-axis, and d3.format for axis tick labels. SVG rectangles represent each bar, and tooltips show formatted population values.
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