π Public
activity8Task1.2
This example shows a horizontal bar chart comparing the 2010 populations of 20 countries, with green bars sorted alphabetically by country name and labeled axis ticks. Using React and D3 v5, it employs `scaleBand` for the categorical y-axis, `scaleLinear` for the numeric x-axis, and `format('.2s')` to abbreviate population values. The data is loaded via `d3.csv` from a GitHub-hosted CSV, with SVG rendering and built-in native tooltips on each bar.
AI-generated descriptionA demonstration of how to start using D3 version 6.
MIT Licensed
Comments
Sign in to join the discussion.