Skip to main content
100%

Axes width react & d3

✓ Published1🌍 Public
DDanier
Last edited Sep 17, 2021
Created on Sep 17, 2021

This example displays the top 10 most populous countries as a horizontal bar chart with axes, using React and D3 v5. It renders SVG elements to draw gridlines, tick labels for the linear population scale, and country names on the band scale. The data comes from the United Nations World Population Prospects 2019, loaded via d3.csv. React manages the component state and lifecycle, while d3.scaleBand, d3.scaleLinear, and d3.max compute the chart geometry.

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