Skip to main content
100%

Fork of Axis with react d3

✓ Published1🌍 Public
Rrsulli4
Last edited Apr 29, 2023
Created on Apr 29, 2023
Forked from Axis with react d3

This example shows a horizontal bar chart of United Nations population data for the top ten countries in 2020. The visualization uses React components to render SVG elements, with D3 v5 utilities handling data loading, scales, and axis ticks. `d3.csv` fetches the data, while `scaleBand` and `scaleLinear` position bars and their lengths. Grid lines and tick labels are generated manually from `xScale.ticks()`, and React’s `useState` and `useEffect` manage the asynchronous data loading.

AI-generated description

a program that loads in some UN pop data using d3 utilities and uses React to render the data in a bar chart.

MIT Licensed

Similar vizzes