Skip to main content
100%

Add Axes

✓ Published0🌍 Public
MMorris Muriithi
Last edited Jun 18, 2024
Created on Jun 17, 2024
Forked from Pathetic Bar Chart

This example displays a bar chart of the top 10 most populous countries, using data from the United Nations World Population Prospects 2019. The chart renders as SVG via React, with D3’s `scaleBand` and `scaleLinear` mapping country names and population values. Axes are drawn manually: x-axis ticks and gridlines come from `xScale.ticks()`, while y-axis labels are positioned using the band scale’s domain and bandwidth.

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