Activity-6 Question-1.1
✓ Published0🌍 Public
This visualization displays population data for 30 countries using a horizontal bar chart, where each bar's length represents the population value. The chart is rendered as an SVG using React, with D3 v5’s `scaleBand` and `scaleLinear` functions managing the categorical y-axis and continuous x-axis scaling. Data is fetched from a CSV file and parsed with `d3.csv`, then formatted using D3’s `format` function to display values in billions. Tooltips appear on hover, showing the same formatted population values, while blue tick lines and green bars style the visualization.
AI-generated descriptionA demonstration of how to start using D3 version 6.
MIT Licensed