Skip to main content
100%

Activity_6 Q1.1

✓ Published1🌍 Public
Mmalampatiramya03@gmail.com
Last edited Apr 5, 2024
Created on Apr 5, 2024
Forked from D3 Starter

This horizontal bar chart ranks the population of the top 10 countries for the year 2000, using the United Nations dataset fetched from a GitHub CSV. The React application uses D3 v5’s `scaleBand` and `scaleLinear` to map country names and population values to the SVG canvas. Green bars are rendered via the custom `Marks` component, which includes a tooltip (`<title>`) showing the formatted population (e.g., “1.28B”). Styled axes come from `AxisBottom` and `AxisLeft`, with blue tick lines and formatted labels using `d3.format`.

AI-generated description

A demonstration of how to start using D3 version 6.

MIT Licensed

Similar vizzes