🌍 Public
Viewing a saved revision (read-only)
57e1768cda304526876dab5ed459d7d4
Fork of Axes with React & D3
This example displays the top 10 most populous countries as horizontal bars, with axes labeled using D3’s scaleBand and scaleLinear. React manages the component state and lifecycle, fetching the United Nations population CSV via d3.csv, while D3’s xScale.ticks and yScale.domain generate the gridlines and tick labels. The rendering uses SVG elements (rect and text) positioned within a transformed group.
AI-generated descriptionA program that shows the top 10 most populous countries as a pathetic bar chart with no axes.