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
Jjasonamey
Last edited Sep 15, 2023
Created on Sep 15, 2023

This example displays the top 10 most populous countries as horizontal bars, with axes labeled using D3’s scaleBand and scaleLinear. React manages the component state and lifecycle, fetching the United Nations population CSV via d3.csv, while D3’s xScale.ticks and yScale.domain generate the gridlines and tick labels. The rendering uses SVG elements (rect and text) positioned within a transformed group.

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