Skip to main content
100%

activity 6_Task Q1.1

✓ Published1🌍 Public
Bbhavanasruthikakarlapudi@gmail.com
Last edited Apr 3, 2025
Created on Apr 2, 2025
Forked from activity 6_Task 1

This horizontal bar chart shows the top 10 countries by population in 2020, using a green fill for each bar and red axis ticks. The chart sorts countries along the y-axis using d3.scaleBand, while d3.scaleLinear maps population values to bar widths, with tick labels formatted via d3.format. Data is loaded as CSV from a GitHub URL and rendered as SVG elements within a React component structure. The visualization uses React hooks like useEffect and useState to fetch and process the data before displaying it.

AI-generated description
MIT Licensed

Similar vizzes