Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Axes with React & D3

Public visualization

Viewing a saved revision (read-only)

c377da8e1b084bedabf5c29f1061d6e6

Fork of Axes with React & D3

0 stars0🌍 Public
YYedrup
Last edited Jan 27, 2021
Created on Jan 27, 2021

This example displays the top 10 most populous countries as a horizontal bar chart with custom axes, using React for component state and rendering. It loads data from the United Nations World Population Prospects 2019 CSV via `d3.csv`. Scales are created with `d3.scaleBand` and `d3.scaleLinear`, while axes ticks are manually generated using `xScale.ticks()` and rendered as SVG lines and text. The chart updates asynchronously, showing a loading message until data arrives.

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.