activity 6_Task 1
✓ Published0🌍 Public
This visualization is a horizontal bar chart that displays the population of up to 30 countries for the year 2020, sorted in descending order. The chart uses React and SVG rendering, with D3.js (v5) providing the scaling and layout via `scaleBand` and `scaleLinear`. Data is fetched from a remote CSV file using D3’s `csv` function, and the bars are styled as light green rectangles. The x-axis is formatted to display values in billions, with tick marks and labels generated by custom React components.
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