Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Stylized Bar Chart

Public visualization

Fork of Stylized Bar Chart

0 stars0🌍 Public
Eevers-codeshop-ai
Last edited Jun 20, 2021
Created on Jun 20, 2021
Forked from Stylized Bar Chart

This bar chart displays the top 10 most populous countries, with each country’s population encoded as the bar length. The visualization uses React components within an SVG canvas, leveraging D3’s `scaleBand` and `scaleLinear` for axis and bar positioning. Data is loaded via D3’s `csv` fetch from the United Nations World Population Prospects 2019. Hovering over a bar reveals its value through a tooltip formatted with D3’s `format` function, converting numbers to abbreviations like “B” for billions.

AI-generated description

A program that shows the top 10 most populous countries as a bar chart.

Data: United Nations World Population Prospects 2019.

Comments

Sign in to join the discussion.

MIT Licensed