Skip to main content
100%

Fork of Axes with React & D3

✓ Published0🌍 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.

MIT Licensed

Similar vizzes