Activity 6_task 1_q1.1
✓ Published0🌍 Public
This chart displays the top 10 countries by population in 2020 as a horizontal bar chart, with population values formatted in billions. The visualization is built using React and D3 version 5, with SVG for rendering. Data is loaded from a remote CSV file using D3’s `csv` function, and the chart uses `scaleBand` for the y-axis and `scaleLinear` for the x-axis. Interactive tooltips are generated via SVG `<title>` elements, and axes are constructed with custom React components.
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