Task8 Q1 2
✓ Published0🌍 Public
This chart displays the 2010 population of 20 countries as a horizontal bar chart, with each bar’s length proportional to population. The SVG is rendered using React, with D3 v5’s `scaleBand` and `scaleLinear` mapping countries and population values. The code fetches CSV data via D3’s `csv` method, formats axis ticks using `d3.format`, and includes tooltips via SVG `<title>` elements. Axes are custom components drawing ticks and labels, with light green bars styled via CSS.
AI-generated descriptionA demonstration of how to start using D3 version 6.
MIT Licensed