Skip to main content
100%

Fork of axis

✓ Published0🌍 Public
NNart Williamson
Last edited Apr 27, 2021
Created on Apr 27, 2021
Forked from axis

This example displays the top 10 most populous countries as a bar chart with no axes, using React to render SVG elements. It loads United Nations World Population Prospects 2019 data via d3.csv, then uses d3.scaleBand for the y-axis categories and d3.scaleLinear for the x-axis values. The chart draws tick marks and labels for both scales using d3’s scale methods, while the bars themselves are plain SVG rectangles. The rendering relies on React’s useState and useEffect hooks to manage the asynchronous data fetching.

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