Skip to main content
100%

Activity6_Task1_Question1.1

✓ Published0🌍 Public
Hharshabandi3060@gmail.com
Last edited Oct 22, 2024
Created on Oct 22, 2024

This chart displays the top 10 countries by population in 2020, using a horizontal bar chart rendered as SVG elements. Population values are loaded from a CSV file and formatted with SI prefixes, converting gigabytes to billions for readability. React manages the component state, while D3's `scaleBand` and `scaleLinear` position the bars, with the `Marks` component generating each rectangle. Axes are created through custom `AxisBottom` and `AxisLeft` components, and the chart includes a native SVG tooltip showing the population value on hover.

AI-generated description
MIT Licensed

Similar vizzes