Skip to main content
100%

Fork of Axes with React & D3

✓ Published0🌍 Public
AAlmatrom
Last edited Mar 10, 2022
Created on Mar 10, 2022

This example visualizes the ten most populous countries as a horizontal bar chart, with values derived from the United Nations World Population Prospects 2019 dataset. The React component uses D3 v5's `scaleBand` for categorical y-axis positioning and `scaleLinear` for the population x-axis, computing axis ticks via `xScale.ticks()`. The SVG rendering includes grid lines and tick labels generated through React's map functions. Explicit axis labels are absent, leaving only tick values and country names.

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