Activity6_question_1.1
✓ Published0🌍 Public
This bar chart displays the populations of 30 countries for the year 2020, with countries listed along the vertical axis and horizontal bars representing population values. The visualization uses React with D3 v5, employing d3.scaleBand for the categorical y-axis, d3.scaleLinear for the continuous x-axis, and d3.format to abbreviate tick labels (e.g., "1.2B"). Data is loaded asynchronously from a GitHub-hosted CSV file using d3.csv, and all marks render as SVG rectangles within a margin-based layout.
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