Activity-6 question-1
✓ Published0🌍 Public
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 descriptionA demonstration of how to start using D3 version 6.
MIT Licensed