Skip to main content
100%

Activity 6_Task 1(q2)

✓ Published0🌍 Public
Aaravapalliharika2002@gmail.com
Last edited Oct 22, 2024
Created on Oct 22, 2024
Forked from Activity 6_Task 1

This example shows a horizontal bar chart of population figures for 20 countries in 2010, with country names on the y-axis and population values on the x-axis. The bars are rendered as SVG rectangles using React components, with D3 v5 functions `scaleBand` and `scaleLinear` for positioning and scaling, and `format` for tick labels. Data is loaded as CSV from a GitHub URL and processed with `csv` and native JavaScript array methods before being sliced to the top 20 rows.

AI-generated description

A demonstration of how to start using D3 version 6.

MIT Licensed

Similar vizzes