Activity6Question1
✓ Published1🌍 Public
This bar chart displays the population of ten countries in the year 2000, using a horizontal layout with countries on the y-axis and population on the x-axis. Built with React and D3 v5, it loads CSV data from a GitHub repository and renders SVG rectangles. The code imports specific D3 functions like `scaleBand`, `scaleLinear`, `max`, and `format` (with a custom tick formatter that replaces 'G' with 'B' for billions). Axes and marks are implemented as separate React components, and tooltips show population values via 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