Activity6_Question1.2
✓ Published0🌍 Public
This bar chart displays the population of the top 10 countries in the year 2020, with countries listed on the y-axis and population on the x-axis. The visualization uses React with D3 v5, employing `scaleBand` for the categorical y-axis and `scaleLinear` for the quantitative x-axis. Data is loaded asynchronously from a CSV file via `d3.csv`, and marks are rendered as SVG rectangles with tooltips showing 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