Fork of Axes with React & D3
✓ Published0🌍 Public
This example displays the top 10 most populous countries as a bar chart with custom axes, rendered as SVG. It uses React hooks (`useState`, `useEffect`) to load data from a CSV of UN World Population Prospects 2019, then builds band and linear scales with `d3.scaleBand` and `d3.scaleLinear` to position bars and ticks. The chart manually draws axis lines and labels using React elements, bypassing D3’s axis generator, and updates live as data loads.
AI-generated descriptionA program that shows the top 10 most populous countries as a pathetic bar chart with no axes.
MIT Licensed