Skip to main content
100%

Fork of Acticity_6_Question_1.2

✓ Published0🌍 Public
Sssuryateja804@gmail.com
Last edited Oct 21, 2024
Created on Oct 21, 2024

This visualization displays the population of 20 countries in 2010 as a horizontal bar chart, ranking them from largest to smallest based on data loaded from a CSV file. The chart uses React with D3 v5 scales (`scaleBand` and `scaleLinear`) to position bars and axes, rendered as SVG elements. Population values are formatted with `d3.format` to abbreviate large numbers, and hovering over a bar shows the exact value via a native `<title>` tooltip. The axes are constructed using custom React components that map scale ticks to SVG lines and text.

AI-generated description

A demonstration of how to start using D3 version 6.

MIT Licensed

Similar vizzes