Skip to main content
100%

Activity_6_tut-1

✓ Published3🌍 Public
Ssairam.amaraneni22@gmail.com
Last edited Apr 10, 2024
Created on Apr 10, 2024
Forked from Hello VizHub

A horizontal bar chart displays the 2020 population for the top 30 countries, sorted by country name with bars extending left-to-right. The visualization uses React with D3 v5's `scaleBand` for the y-axis and `scaleLinear` for the x-axis, rendering SVG rectangles via the `Marks` component. Population values are loaded from a CSV, formatted with `d3.format`, and converted from raw numbers to billions using a custom tick formatter that replaces 'G' with 'B'. The chart includes styled axis ticks, a labeled x-axis, and tooltips showing the formatted population on hover.

AI-generated description

A demonstration of how to start using D3 version 6.

MIT Licensed

Similar vizzes