Skip to main content
Public

Share visualization

Loading preview…

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

vizhub.com

Shared links may look like this on X, LinkedIn, Slack, and Discord.

Before sharing, review the publishing checklist.

Choose how to deliver this visualization

LinkedIn caption

LinkedIn may not keep text supplied by the share sheet. Copy the caption and paste it into the post if needed. You can tag the VizHub company page when posting.

More options

Embed on a websiteCopy iframe embed code
Download & exportPNG, HTML, source ZIP

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

1
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.

Comments

Sign in to join the discussion.

MIT Licensed