Activity-6-Question-1
✓ Published0🌍 Public
This bar chart displays population estimates for ten countries in the year 2000, with countries listed vertically and population values shown horizontally. The visualization is built using React and D3 v5, employing `scaleBand` for the categorical y-axis and `scaleLinear` for the numeric x-axis. Data is loaded asynchronously from a remote CSV file using D3’s `csv` function, and the bars are rendered as SVG rectangles with tooltips. The code demonstrates modular ES6 imports for axis and mark components, with custom tick formatting that converts large values to billions.
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