Activity6_Que1_1
✓ Published0🌍 Public
This chart, built with React and D3 v5, displays a horizontal bar chart ranking the 2020 populations of 30 countries. The bars are rendered as SVG rectangles, with a linear scale for the population axis and a band scale for the categorical country axis. D3’s `scaleLinear`, `scaleBand`, and `format` APIs handle scaling and tick label formatting, converting values like 1.5G to 1.5B. The data is loaded from a remote CSV file and sliced to the top 30 rows.
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