Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity6_Task1_Question1

Public visualization

Viewing a saved revision (read-only)

56ac9e3e013b4b3496e8715a5f0010e8

Activity6_Task1_Question1

0 stars0🌍 Public
Ssaishruthik2361@gmail.com
Last edited Oct 21, 2024
Created on Oct 20, 2024

This bar chart displays the population of ten countries in the year 2000, using horizontal bars sorted by the categorical variable Country. The visualization is rendered as an SVG using React, with D3’s `scaleBand` mapping countries to the y-axis and `scaleLinear` mapping population values to the x-axis. Data is loaded from a remote CSV file via D3’s `csv` function, and each bar includes a tooltip showing the formatted population value using D3’s `format` API.

AI-generated description

A demonstration of how to start using D3 version 6.