🌍 Public
Viewing a saved revision (read-only)
535d7e21b9ea45e8817c2c56adba815b
Fork of Axes with React & D3
This example visualizes the top 10 most populous countries using a horizontal bar chart, with each bar’s length proportional to its 2020 population estimate from the United Nations World Population Prospects 2019 dataset. The chart displays axis tick labels and grid lines created manually with React components, while D3’s `scaleBand` and `scaleLinear` handle positioning and scaling. The data is loaded via `d3.csv`, and rendering uses SVG elements within a React component that manages state through hooks like `useState` and `useEffect`.
AI-generated descriptionA program that shows the top 10 most populous countries as a pathetic bar chart with no axes.