Skip to main content
100%

Refactored Bar Chart

✓ Published1🌍 Public
Ee-ines
Last edited Apr 11, 2021
Created on Apr 11, 2021

This example shows the top 10 most populous countries as horizontal bars, using population data from the United Nations World Population Prospects 2019. The React app renders SVG elements, with d3.scaleBand mapping countries to the y-axis and d3.scaleLinear mapping population to bar widths. Axes are drawn as React components that generate SVG lines and text elements from the scales, with a load state indicated while the CSV data is fetched.

AI-generated description

A program that shows the top 10 most populous countries

Data: United Nations World Population Prospects 2019

MIT Licensed

Similar vizzes