🌍 Public
Viewing a saved revision (read-only)
3c2c91fad053461db80f82d1e9058657
Activity 6_Task 1
This horizontal bar chart displays the populations of thirty countries for 2020, sorted along the y-axis with bar lengths proportional to population values. Built with React and D3 v5, it uses `scaleBand` for the categorical y-axis and `scaleLinear` for the population scale, rendering SVG rectangles via the custom `Marks` component. Data is loaded from a CSV using `d3.csv`, with tick values formatted using `d3.format`.
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.