Skip to main content
100%

activity_6_question_1.2

✓ Published0🌍 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.

MIT Licensed

Similar vizzes