🌍 Public
Viewing a saved revision (read-only)
7add0a1182d141f680a6e2d614e06e5c
Activity6_Q1.2
This bar chart displays the population of the top 20 countries in 2010, with the data loaded from a CSV file using D3’s `csv` function. The visualization uses React with reusable axis components (`AxisBottom`, `AxisLeft`) and a `Marks` component that renders SVG rectangles. D3’s `scaleBand` and `scaleLinear` position the bars, while `format` abbreviates tick labels from units like “G” to “B”. Hovering a bar reveals its exact value via a native SVG `<title>` tooltip.
AI-generated descriptionA demonstration of how to start using D3 version 6.