Activity_6_Question-1.1
✓ Published0🌍 Public
This bar chart displays the population of ten countries in the year 2000, sorted by country name on the y-axis and population on the x-axis. It uses a React component structure with D3 v5 to load CSV data from GitHub, scale the values with `scaleBand` and `scaleLinear`, and render SVG rectangles via the `Marks` component. Axis components generate tick lines and labels, with population values formatted using D3’s `format` function to abbreviate large numbers. The chart includes a title and tooltips showing exact population on hover.
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