Skip to main content
100%

Fork of Axes with React & D3

✓ Published0🌍 Public
Jjth500
Last edited Apr 25, 2023
Created on Apr 25, 2023

This example renders the top 10 most populous countries as a horizontal bar chart using React and D3 v5. The bars and manually constructed axes are drawn as SVG elements inside a React component, with scales created via `d3.scaleBand` and `d3.scaleLinear`. Tick marks and labels are generated by iterating over the scales' domains, and the data comes from the United Nations World Population Prospects 2019 CSV. The chart displays population values for 2020, with no axes library used, only custom rendering.

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