Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity 6_Task 1(q2)

Public visualization

Viewing a saved revision (read-only)

75331e6611bb47caabbde3da68e358b2

Activity 6_Task 1(q2)

0 stars0🌍 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.