Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Axes with React & D3

Public visualization

Fork of Axes with React & D3

0 stars0🌍 Public
SSunny
Last edited Aug 26, 2022
Created on Aug 26, 2022

This example visualizes the top 10 most populous countries using a horizontal bar chart, with each bar’s length proportional to its 2020 population estimate from the United Nations World Population Prospects 2019 dataset. The chart displays axis tick labels and grid lines created manually with React components, while D3’s `scaleBand` and `scaleLinear` handle positioning and scaling. The data is loaded via `d3.csv`, and rendering uses SVG elements within a React component that manages state through hooks like `useState` and `useEffect`.

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.

Comments

Sign in to join the discussion.

MIT Licensed