Skip to main content
100%

Fork of Axes with React & D3

✓ Published1🌍 Public
AAchala237
Last edited Apr 18, 2023
Created on Apr 18, 2023

A React & D3 bar chart displays the top 10 most populous countries, using a horizontal layout with population values along the x-axis and country names on the y-axis. The chart fetches data from the United Nations World Population Prospects 2019 CSV, loading it via d3.csv, and renders as an SVG. It manually constructs axes using d3.scaleBand for the categorical y-axis and d3.scaleLinear for the numeric x-axis, with tick marks and labels generated from the scales. The visualization highlights the deliberate omission of gridlines and axis titles, focusing solely on the data bars.

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