Skip to main content
100%

Fork of Activity 7

✓ Published0🌍 Public
Llikhithakarunakarreddym@gmail.com
Last edited Oct 20, 2024
Created on Oct 20, 2024
Forked from Activity 7

This chart displays the populations of 30 countries in 2020 as a horizontal bar chart, with country names on the y-axis and population values on the x-axis. The visualization uses React to render SVG elements, with D3’s `scaleBand` and `scaleLinear` to map data to positions, and custom `AxisBottom`, `AxisLeft`, and `Marks` components. Population values are loaded from a CSV file and formatted with D3’s `format` function, converting billions to a readable "B" suffix. The chart includes a labeled x-axis and blue tick lines, with a green fill for each bar.

AI-generated description

A demonstration of how to start using D3 version 6.

MIT Licensed

Similar vizzes