Axes with React & D3
✓ Published0🌍 Public
This example shows a horizontal bar chart of the top 10 most populous countries, with labeled axes and tooltips. Using React to construct SVG elements, the code creates bottom and left axes with D3’s `scaleBand` and `scaleLinear`, applies a custom tick formatter for population values, and renders bars as `<rect>` elements with `<title>` tooltips. Data comes from the UN World Population Prospects 2019 CSV.
AI-generated descriptionA program that shows the top 10 most populous countries as a pathetic bar chart with no axes.
MIT Licensed