Skip to main content
100%

Fork of Refactored Bar Chart

✓ Published0🌍 Public
PPratik Raja
Last edited Aug 9, 2024
Created on Aug 9, 2024

This example displays a horizontal bar chart of the top 10 most populous countries using React and D3 v5. It renders SVG elements with scales from `d3.scaleBand` and `d3.scaleLinear`, while custom React components handle axis ticks and bar marks. Data is loaded asynchronously via `d3.csv` from a United Nations World Population Prospects 2019 dataset, then sliced to the first ten entries. The chart includes both bottom and left axes, positioned within specified margins.

AI-generated description

A program that shows the top 10 most populous countries as a pathetic bar chart with no axes.

Data: United Nations World Population Prospects 2019.

MIT Licensed

Similar vizzes