Skip to main content
100%

Fork of Axes with React & D3

✓ Published0🌍 Public
Rroc286
Last edited Mar 1, 2022
Created on Mar 1, 2022

This visualization displays the top 10 most populous countries as horizontal bars, with D3 scaleBand and scaleLinear handling the categorical y-axis and numeric x-axis respectively. The React component loads UN World Population Prospects 2019 data from a CSV URL, then renders SVG rectangles and tick marks. D3's max and ticks functions compute the scale domain and axis intervals, while React's useState and useEffect manage the asynchronous data loading and render the Loading placeholder.

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