Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Fork of styling dropdown and working...Fork 999 of Stylized Bar Chart

Public visualization

Fork of Fork of styling dropdown and working...Fork 999 of Stylized Bar Chart

0 stars0🌍 Public
Jjjacobatandover
Last edited Jul 22, 2021
Created on Jul 21, 2021

This example visualizes the top 10 most populous countries as a bar chart, with a dropdown to switch between years of immigration data. The bars update based on the selected year, and tooltips show exact values. Built with React and D3 v5, it uses `scaleBand` for the x-axis, `scaleLinear` for the y-axis, and SVG `<rect>` elements for marks. Data comes from the United Nations World Population Prospects 2019, loaded via `csv` from a gist URL.

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