Skip to main content
100%

Activity6_Q1.2

✓ Published0🌍 Public
Tthakurnikhitha4@gmail.com
Last edited Apr 10, 2024
Created on Apr 10, 2024
Forked from Activity6_Q1.1

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 description

A demonstration of how to start using D3 version 6.

MIT Licensed

Similar vizzes