Skip to main content
100%

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

✓ Published1🌍 Public

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.

MIT Licensed

Similar vizzes