Activity 6_Task 1
✓ Published0🌍 Public
This bar chart displays the population of 20 countries in 2010, with countries listed on the y-axis and population values on the x-axis. The visualization uses React with D3 v5’s scaleBand for the categorical y-axis, scaleLinear for the numeric x-axis, and SVG rectangles for the bars. Data is loaded asynchronously via d3.csv from a GitHub-hosted CSV file, and tooltips appear on hover through native SVG title elements.
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