Skip to main content
100%

Fork of Axes with React & D3

✓ Published0🌍 Public
Mmuwu16
Last edited Aug 1, 2021
Created on Aug 1, 2021

This example uses React with D3 to render a horizontal bar chart of the top 10 most populous countries, based on United Nations World Population Prospects 2019 data. The visualization shows the population values as bars with x and y axes, where the x-axis displays tick marks generated by `d3.scaleLinear` and the y-axis lists country names using `d3.scaleBand`. The chart is drawn as an SVG within a React component, utilizing `useState` and `useEffect` to fetch and process the CSV data via `d3.csv`.

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