Skip to main content
100%

Activity 7

✓ Published0🌍 Public
Ppardha1411
Last edited Jul 3, 2023
Created on Jul 3, 2023
Forked from Hello VizHub

This example shows a horizontal bar chart of population data for 20 countries in 2020, with bars arranged by country and length proportional to population. The visualization uses React with D3 v5's `scaleBand` and `scaleLinear` to map data to SVG rectangles, with axes rendered via custom `AxisBottom` and `AxisLeft` components that use D3’s `format` function to abbreviate large numbers. The data is loaded asynchronously from a CSV file using D3’s `csv` method, and interactive tooltips display the formatted population value on hover.

AI-generated description

A demonstration of how to start using D3 version 6.

MIT Licensed

Similar vizzes