Skip to main content
100%

Axes with react+d3

✓ Published1🌍 Public
EElliot Hill
Last edited Jul 9, 2021
Created on Jul 8, 2021
Forked from Margins

A bar chart displays the top 10 most populous countries using United Nations World Population Prospects 2019 data, with SVG bars and React components for the axes. The chart uses d3.scaleBand and d3.scaleLinear for positioning, while custom React components (AxisBottom, AxisLeft, Marks) render ticks, labels, and rectangles instead of d3.axis. The bottom axis maps tick values through xScale, and the left axis uses yScale.domain() with bandwidth offsets for categorical labels. Data loads asynchronously via d3.csv and is sorted by filtering the first ten rows.

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