Fork of Axes with React & D3
✓ Published0🌍 Public
This example displays the top 10 most populous countries as a horizontal bar chart labeled with axes. It uses React hooks (useState, useEffect) to fetch and load CSV data from the United Nations World Population Prospects 2019, then renders bars via SVG rectangles. D3’s scaleBand and scaleLinear position the bars, while manually generated ticks and labels create the x and y axes without d3.axis. The chart updates after loading, with React managing the component state and D3 handling the data scaling and formatting.
AI-generated descriptionA program that shows the top 10 most populous countries as a pathetic bar chart with no axes.
MIT Licensed