🌍 Public
Viewing a saved revision (read-only)
01947d31119144a6b825d4e8a8ad4ff1
Fork of Axes with React & D3
This example visualizes the top 10 most populous countries as a horizontal bar chart using React state management and D3 scales. The code loads the United Nations World Population Prospects 2019 dataset via `d3.csv`, then uses `scaleBand` and `scaleLinear` to map country names and population values to SVG rectangles. Hand-rolled axis ticks are generated with `xScale.ticks()`, and the visualization renders through ReactDOM, with SVG elements created directly in JSX rather than using `d3.axis`.
AI-generated descriptionA program that shows the top 10 most populous countries as a pathetic bar chart with no axes.