Skip to main content
100%

Activity_6 Task 1

✓ Published1🌍 Public
Ssumithdugyala@my.unt.edu
Last edited Oct 22, 2024
Created on Oct 22, 2024
Forked from Activity 7

This chart displays the populations of up to 30 countries as horizontal bars, ranked from largest to smallest. Each bar’s length encodes the 2020 population value, with a text tooltip appearing on hover to show the precise figure. The visualization is built with React and D3 v5, using `d3.scaleBand` for the categorical y-axis, `d3.scaleLinear` for the numeric x-axis, and SVG `rect` elements for the marks. Data is loaded asynchronously from a CSV file via `d3.csv`, and formatted using `d3.format` to abbreviate large numbers.

AI-generated description

A demonstration of how to start using D3 version 6.

MIT Licensed

Similar vizzes