Skip to main content
100%

Fork of Axes with React & D3

✓ Published0🌍 Public
EEbdulmomen Ahmed
Last edited Mar 26, 2022
Created on Mar 26, 2022

This example displays a horizontal bar chart of the top 10 most populous countries, using data from the United Nations World Population Prospects 2019. The visualization renders as SVG with React managing the component state and D3’s `scaleBand`, `scaleLinear`, and `max` utilities handling the scales and data transformations. Axes are drawn manually with D3’s tick methods, positioning grid lines and labels. The bars use the `rect` SVG element, with each bar’s width proportional to the country’s 2020 population.

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