Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activty_6_t1

Public visualization

Activty_6_t1

0 stars0🌍 Public
Pperamranji
Last edited Mar 30, 2025
Created on Mar 30, 2025

A horizontal bar chart displays the 2010 population of 20 countries, sorted by name, with a green bar for each nation. Using React, the visualization builds a D3 v5 SVG with scales from `d3.scaleBand` and `d3.scaleLinear`. Population values are formatted with `d3.format` (converting gigabytes to billions). The code imports data via `d3.csv`, renders axes via custom React components, and includes a tooltip showing the formatted value on each bar.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed