Skip to main content
100%

Activity_6 Q-1

✓ Published0🌍 Public
Kkrishna444battula@gmail.com
Last edited Oct 19, 2024
Created on Oct 19, 2024

This visualization shows the top 10 countries by population in the year 2000 as a horizontal bar chart, with population values formatted in billions using the `format` API from D3 v5. The React-based implementation uses `scaleBand` and `scaleLinear` to map country names and populations to screen positions, while custom `AxisBottom` and `AxisLeft` components render the scales as SVG elements. Data is loaded asynchronously via the `csv` function and comes from a GitHub-hosted CSV file, with bars colored light green and tooltips revealing exact population values.

AI-generated description

A demonstration of how to start using D3 version 6.

MIT Licensed

Similar vizzes