Skip to main content
100%

Fork of Hello VizHub

✓ Published0🌍 Public
Ssahaspragna6@gmail.com
Last edited Apr 10, 2024
Created on Apr 9, 2024
Forked from Hello VizHub

A horizontal bar chart displays the population of thirty countries in 2020, sourced from a CSV file. Built with React and D3 v5, it uses `scaleBand` for the categorical y-axis and `scaleLinear` for the population x-axis. SVG rectangles render the bars, with axes drawn from custom `AxisBottom` and `AxisLeft` components. A tooltip shows the formatted population value on hover, and the x-axis labels abbreviate large numbers (e.g., "1.2B") using D3's `format`.

AI-generated description

A demonstration of how to start using D3 version 6.

MIT Licensed

Similar vizzes