Skip to main content
100%

Task8_Question1.1

✓ Published0🌍 Public
KKeerthi
Last edited Apr 10, 2024
Created on Apr 10, 2024
Forked from Hello VizHub

This bar chart displays the population of ten countries in the year 2000, sorted vertically by country name. The visualization uses React with D3 v5 scales, rendering SVG rectangles whose width encodes population values. The code leverages `scaleBand` for the categorical y-axis and `scaleLinear` for the quantitative x-axis, with data loaded from a CSV file via `csv()`. Tooltips appear on hover using the native SVG `<title>` element, and the x-axis labels are formatted using D3’s `format('.2s')` to abbreviate large numbers.

AI-generated description

A demonstration of how to start using D3 version 6.

MIT Licensed

Similar vizzes