Skip to main content
100%

Fork of activity 6_Task 1_Question1-2

✓ Published0🌍 Public
Kkondaveeti.bhargavi7780@gmail.com
Last edited Apr 11, 2024
Created on Apr 11, 2024

This example displays a horizontal bar chart of the top 20 countries by 2010 population. The visualization uses React with D3 v5 utilities, including `scaleBand` for the categorical y-axis, `scaleLinear` for the numeric x-axis, and custom `AxisBottom` and `AxisLeft` components. Population values are loaded from a remote CSV file using `csv()`, with the data formatted in billions using D3’s `format` function. Rectangular marks are rendered as SVG elements, each with a tooltip showing the formatted population value.

AI-generated description

A demonstration of how to start using D3 version 6.

MIT Licensed

Similar vizzes