Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

activity_6_question_1.2

Public visualization

Viewing a saved revision (read-only)

f89a6724b7a847c1937662fe3c9f7ee7

activity_6_question_1.2

0 stars0🌍 Public
JJaswanthkota@my.unt.edu
Last edited Oct 23, 2024
Created on Oct 23, 2024

This bar chart displays the populations of 20 countries in 2010, sorted by country name. The visualization uses React with D3 v5, employing `scaleBand` for the y-axis, `scaleLinear` for the x-axis, and SVG `rect` marks for the bars. Data is loaded via `csv` from a GitHub-hosted CSV file, with population values converted from thousands. The chart includes formatted tick labels using `format('.2s')`, replacing 'G' with 'B' for billions, and tooltips generated through SVG `<title>` elements.

AI-generated description

A demonstration of how to start using D3 version 6.