Skip to main content
100%

Activity 6_Question-1

✓ Published0🌍 Public
Rrajkodavati7@gmail.com
Last edited Apr 14, 2024
Created on Apr 14, 2024
Forked from Hello VizHub

A horizontal bar chart displays the population of ten countries in the year 2000, with bars extending from left to right. The visualization uses React to render SVG elements, with D3 v5's `scaleBand` and `scaleLinear` functions mapping country names and population values to the chart's axes. The `csv` function loads the dataset from a remote GitHub Gist, and the axis components are custom React components that call D3's tick generation methods. Population values are formatted using `format('.2s')` and converted from thousands to billions for the axis labels.

AI-generated description

A demonstration of how to start using D3 version 6.

MIT Licensed

Similar vizzes