🌍 Public
Viewing a saved revision (read-only)
125a26fa082846d480f2c075b514ed2c
Activity-6 question-1
Population data for twenty countries in 2010 is displayed as a horizontal bar chart built with React and D3 v5. The chart uses scaleBand for the categorical y-axis and scaleLinear for the numeric x-axis, with bars rendered as SVG rectangles. Population values are formatted using d3.format with a suffix conversion from ’G’ to ’B’. The data is loaded asynchronously from a CSV file via d3.csv.
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.