🌍 Public
Viewing a saved revision (read-only)
ad243585b88f4114b63be7ebf9d91db2
Task1Ques2
This bar chart displays the population of 20 countries in 2010, sorted along the y-axis with horizontal bars extending to represent population values. It uses React with D3 v5 to load CSV data via `d3.csv`, and renders SVG marks through the `AxisBottom`, `AxisLeft`, and `Marks` components. The `scaleBand` and `scaleLinear` define the axes, while `format('.2s')` converts tick labels to billions, and tooltips appear as native SVG `<title>` elements.
AI-generated descriptionA demonstration of how to start using D3 version 6.