Skip to main content
100%

activity6_q1.-2

✓ Published0🌍 Public
Mm.maanvireddt761@gmail.com
Last edited Oct 22, 2024
Created on Oct 22, 2024
Forked from activity6_q1-2

This visualization displays the populations of 20 countries for the year 2010 using a horizontal bar chart, with each bar's length proportional to its population. The data is loaded from a CSV file using D3's `csv` function and rendered as SVG rectangles via React's declarative syntax. The chart employs D3's `scaleBand` for the categorical y-axis and `scaleLinear` for the quantitative x-axis. Formatting converts large numbers to abbreviated forms like "B" for billions, while tooltips show the exact values. Axes and bars are styled through CSS classes defined in the embedded stylesheet.

AI-generated description

A demonstration of how to start using D3 version 6.

MIT Licensed

Similar vizzes