Skip to main content
100%

Refactored Bar Chart

✓ Published1🌍 Public
SSam
Last edited Apr 28, 2021
Created on Apr 27, 2021

This example shows the top 10 most populous countries as horizontal bars, with country names on the left axis and population values on the bottom axis. The chart is built with React and D3 v5, using `scaleBand` and `scaleLinear` for positioning, and renders SVG rectangles via the `Marks` component. Data comes from the United Nations World Population Prospects 2019, loaded with `d3.csv`. Axes are drawn using custom components that leverage D3’s tick methods.

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