🌍 Public
Viewing a saved revision (read-only)
9f1d964ed31242bea3f235d48b3a11d5
Activity6_Question 1.1
A horizontal bar chart visualizes the population of 10 countries in the year 2000, using gray bars sorted by country name. The chart loads data from a CSV file via the `csv` function from d3.v5, which is then parsed and sliced to the top ten entries. The bars are rendered as SVG `<rect>` elements generated through React components (`Marks`), with scales created using `scaleBand` and `scaleLinear`. Axes are drawn with custom React components using d3’s tick methods, and population values are formatted using d3’s `format` function.
AI-generated descriptionA demonstration of how to start using D3 version 6.