Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Activity 6_task1

Public visualization

Viewing a saved revision (read-only)

291289fc3da34056bfdddfd6ced5b21d

Fork of Activity 6_task1

0 stars0🌍 Public
KKarnam Abinay Goud
Last edited Oct 20, 2024
Created on Oct 20, 2024
Forked from Activity 7

This bar chart visualizes the top 30 countries by population in 2020, sourced from a CSV file. Using D3 v5 within a React framework, the code employs `scaleBand` and `scaleLinear` for axis mappings and renders bars as SVG rectangles. The chart includes custom tick formatting via `format('.2s')`, converting values to billions with a 'B' suffix, and a tooltip showing the formatted population value on hover.

AI-generated description

A demonstration of how to start using D3 version 6.