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
Ssucotton9
Last edited Jul 22, 2021
Created on Jul 22, 2021

This interactive bar chart displays the top 10 most populous countries based on immigration numbers for a selected year from 2008 to 2019. A dropdown menu allows users to switch between years, updating the bar heights accordingly. Built with React and D3 v5, the visualization uses `scaleBand` for the categorical x-axis, `scaleLinear` for the y-axis, and SVG `<rect>` elements for the bars. Data is loaded as CSV from a GitHub gist and formatted using D3’s `format` API, with axis labels and tooltips providing context.

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