🌍 Public
Viewing a saved revision (read-only)
7e0ac0ae54c7426bba31c1a7e321af38
Adding Dropdowns Almost there fork of working...Fork 999 of Stylized Bar Chart
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 descriptionA program that shows the top 10 most populous countries as a bar chart.