Skip to main content
100%

Activity6_Task1.1

✓ Published0🌍 Public
Ssunny.musku2631@gmail.com
Last edited Oct 23, 2024
Created on Oct 19, 2024
Forked from Activity 7

This bar chart displays the top 10 countries by population in the year 2000, using a horizontal layout with countries on the y-axis and population on the x-axis. The visualization uses React to render SVG elements, with D3 v5 scales and formatting functions (scaleBand, scaleLinear, format) to position bars and transform tick labels. Population data is loaded from a CSV file via d3.csv and prepared in a custom useData hook. Each bar includes a native SVG tooltip showing the formatted population value.

AI-generated description

A demonstration of how to start using D3 version 6.

MIT Licensed

Similar vizzes