Skip to main content
100%

Activity 6_Task 1

✓ Published1🌍 Public
Aanusha.chilkamarri26@gmail.com
Last edited Apr 3, 2024
Created on Apr 3, 2024
Forked from Hello VizHub

This horizontal bar chart displays the 2020 population estimates for the top 30 countries, ranked by country name on the y-axis. Built with React and D3 v5, the visualization uses `scaleBand` for the categorical axis and `scaleLinear` for the population values, rendering SVG rectangles whose lengths encode the data. Tooltips show formatted population numbers via the `title` element. The x-axis uses `format('.2s')` to abbreviate values in billions, while the data is fetched from a CSV file.

AI-generated description

A demonstration of how to start using D3 version 6.

<iframe width="560" height="315" src="https://www.youtube.com/embed/Ia_DwVMXwgk"
MIT Licensed

Similar vizzes