🌍 Public
Viewing a saved revision (read-only)
9385c213b4964bfc8366c6e267ec5e05
Activity 6_Task 1
This bar chart displays the population of the top 30 countries in 2020, ordered by country name along the vertical axis and scaled population values along the horizontal axis. The visualization uses React with D3 v5, employing `scaleBand` for the categorical y-axis and `scaleLinear` for the numeric x-axis. Data is loaded from a CSV file via `d3.csv`, rendered as SVG rectangles, with axes generated by custom components and formatted tick labels using D3's `format` function.
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.