Skip to main content
100%

Fork of Activity 6

✓ Published1🌍 Public
KKritin Kesav
Last edited Apr 10, 2024
Created on Apr 10, 2024
Forked from Activity 6

This horizontal bar chart displays the population of 30 countries in 2020, sorted by country name along the y-axis. Built with React and D3 v5, it renders as an SVG using `scaleBand` for the categorical axis and `scaleLinear` for the population values. Bar lengths are encoded with `rect` marks, and axis ticks are generated with the custom `AxisBottom` and `AxisLeft` components. The data is fetched as CSV from a GitHub-hosted dataset, with population values multiplied by 1,000 for display.

AI-generated description

A demonstration of how to start using D3 version 6.

MIT Licensed

Similar vizzes