Skip to main content
100%

Adding Dropdowns Almost there fork of working...Fork 999 of Stylized Bar Chart

✓ Published1🌍 Public
Ssucotton9
Last edited Jul 20, 2021
Created on Jul 20, 2021

This visualization displays the top 10 most populous countries as a horizontal bar chart, drawn with React and SVG. The code uses d3.scaleBand, d3.scaleLinear, and d3.format to map country names and migrant counts to visual bars, with axis components rendering tick marks and labels. A dropdown menu (built with React’s select element) is included to let users select a pet option, though its selected value does not affect the chart. Data comes from a CSV file loaded via d3.csv, based on the UN World Population Prospects 2019.

AI-generated description

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

Data: United Nations World Population Prospects 2019.

MIT Licensed

Similar vizzes