Fork of Axes with React & D3
✓ Published0🌍 Public
This example shows the top 10 most populous countries as a horizontal bar chart with custom axes built using React and D3. The code uses `csv` to load United Nations World Population Prospects 2019 data, `scaleBand` for the y-axis categories, and `scaleLinear` for the x-axis population values. Instead of using D3’s axis components, it manually generates tick lines and labels via `xScale.ticks()` and maps over the domain for y-axis labels, rendering all elements as SVG through React components.
AI-generated descriptionA program that shows the top 10 most populous countries as a pathetic bar chart with no axes.
MIT Licensed