Skip to main content
100%

Fork of Axes with React & D3

✓ Published0🌍 Public
AAvtandil Gokadze
Last edited Aug 6, 2021
Created on Aug 6, 2021

This example shows the top 10 most populous countries as a horizontal bar chart with custom axes built using React and D3. The code uses `csv` to load United Nations World Population Prospects 2019 data, `scaleBand` for the y-axis categories, and `scaleLinear` for the x-axis population values. Instead of using D3’s axis components, it manually generates tick lines and labels via `xScale.ticks()` and maps over the domain for y-axis labels, rendering all elements as SVG through React components.

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