Skip to main content
100%

activity_8tutorial2

✓ Published0🌍 Public
Ssaitejauppu0206@gmail.com
Last edited Apr 15, 2024
Created on Apr 15, 2024
Forked from activity_8task1.2

A horizontal bar chart displays the 2010 populations of 20 countries, sorted by country name along the y-axis. The chart uses React components to render SVG elements, with `scaleBand` and `scaleLinear` from D3 v5 mapping data to positions. The `AxisBottom` and `AxisLeft` components generate ticks, while the `Marks` component draws rectangles with tooltips. Population values are formatted using D3's `format` function, converting values to billions with the suffix 'B'. Data is loaded asynchronously from a CSV file using D3's `csv` method.

AI-generated description

A demonstration of how to start using D3 version 6.

MIT Licensed

Similar vizzes