Skip to main content
100%

test

✓ Published0🌍 Public
AAlbert Zarate
Last edited Aug 1, 2021
Created on Aug 1, 2021
Forked from Pathetic Bar Chart

This example displays the top 10 most populous countries from the World Happiness Report 2021 data as a horizontal bar chart without axes. The chart uses React hooks to load data with d3.csv, then renders SVG rectangles scaled by each country’s happiness score. The visualization employs d3.scaleBand for the categorical y-axis and d3.scaleLinear for the quantitative x-axis, with a fixed 960×500 viewport and 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