Activity6_Task1_Question1.2
✓ Published0🌍 Public
This bar chart displays the population of 20 countries in 2020, sourced from a CSV file and sorted alphabetically on the y-axis. The visualization uses React with D3.js v5, rendering SVG rectangles scaled by a linear x-scale and a band y-scale. A tooltip on each rectangle shows the formatted population value (e.g., “1.2B”), while the bottom axis labels use a D3 format function. The chart includes custom axis components for ticks and labels, with a loading state while the data is fetched asynchronously via `d3.csv`.
AI-generated descriptionMIT Licensed