Skip to main content
100%

Activity6_Task1_Question1

✓ Published1🌍 Public
Hharshabandi3060@gmail.com
Last edited Oct 22, 2024
Created on Oct 21, 2024
Forked from Hello VizHub

This example shows a horizontal bar chart ranking the populations of ten countries for the year 2020, using data loaded from a CSV file hosted on GitHub. The visualization uses React and D3 v5, with `scaleBand` for the categorical y-axis, `scaleLinear` for the quantitative x-axis, and SVG `<rect>` elements drawn via `Marks`. Axes are rendered with custom `AxisBottom` and `AxisLeft` components, while tick labels use D3’s `format` with `.2s` notation to abbreviate values to billions. The chart displays “POPULATION-2020” as its axis label.

AI-generated description
MIT Licensed

Similar vizzes