Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity6-Task1

Public visualization

Viewing a saved revision (read-only)

ab29c3058cdb4d20bfe9f31c54e17e36

Activity6-Task1

0 stars1🌍 Public
Mmeenam1106@gmail.com
Last edited Apr 4, 2024
Created on Apr 4, 2024
Forked from Hello VizHub

This horizontal bar chart displays the populations of 30 countries for the year 2020, sorted by country name. The visualization uses React with D3 v5’s `scaleBand` and `scaleLinear` to map countries to vertical bands and population values to bar widths, rendered as SVG rectangles. Data is loaded from a remote CSV using `d3.csv`, and tooltips show formatted population values via a `d3.format` si-prefix. The axes are drawn with D3 ticks, with custom bottom and left axis components.

AI-generated description

A demonstration of how to start using D3 version 6.