Fork of axis
✓ Published0🌍 Public
This example displays the top 10 most populous countries as a bar chart with no axes, using React to render SVG elements. It loads United Nations World Population Prospects 2019 data via d3.csv, then uses d3.scaleBand for the y-axis categories and d3.scaleLinear for the x-axis values. The chart draws tick marks and labels for both scales using d3’s scale methods, while the bars themselves are plain SVG rectangles. The rendering relies on React’s useState and useEffect hooks to manage the asynchronous data fetching.
AI-generated descriptionA program that shows the top 10 most populous countries as a pathetic bar chart with no axes.
MIT Licensed