Skip to main content
Public

Share visualization

Loading preview…

styling dropdown and 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

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

1

This fork of a stylized bar chart presents the top 10 most populous countries, with a dropdown menu to select the year (2008–2019) and update the displayed values. Built with React and D3 v5, it renders SVG bars and axes. The chart uses `scaleBand` for the categorical country axis and `scaleLinear` for the population values, with formatting via `format('.2s')`. The data is loaded from a GitHub-hosted CSV file using D3's `csv` function, and the code includes commented-out experiments with axis rotation and bar heights.

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