Skip to main content
100%

Activity6_Question2

✓ Published0🌍 Public
Nneerajreddyaluka@gmail.com
Last edited Apr 15, 2024
Created on Apr 15, 2024
Forked from Activity 7

This bar chart displays the population of 20 countries in 2020, with countries listed along the vertical axis and population values extending horizontally. The visualization uses React components to render SVG rects, with D3 v5’s `scaleBand` and `scaleLinear` handling the axes and data mapping. Population values are read from a remote CSV file using D3’s `csv` function, and formatted with `format('.2s')` to display values in billions. The chart includes axis labels and tooltips showing the exact population for each bar.

AI-generated description

A demonstration of how to start using D3 version 6.

MIT Licensed

Similar vizzes