🌍 Public
Viewing a saved revision (read-only)
a28f3161eb84442b8681176f7e3916a8
Task_8_Q1.2
A bar chart displays the population of 20 countries in 2010, sorted by country name along the y-axis and population magnitude along the x-axis. The chart uses React and D3 v5, with `scaleBand` and `scaleLinear` for ordinal and numeric axes, respectively. Data is loaded as CSV from a GitHub repository using `d3.csv`, and values are formatted with `d3.format`. Marks are rendered as SVG rectangles, with tooltips showing population values in a compact, abbreviated format. Axis ticks and labels are styled via custom React components.
AI-generated descriptionA demonstration of how to start using D3 version 6.