Fork of Axes with React & D3
✓ Published0🌍 Public
This example displays the top 10 most populous countries as a bar chart with x and y axes, using React for component rendering and D3’s `scaleBand`, `scaleLinear`, and `ticks` for scaling and axis generation. The bars are SVG `<rect>` elements, positioned via the scales, with axis lines and labels constructed manually from tick values. Data comes from the United Nations World Population Prospects 2019 CSV, loaded asynchronously with `d3.csv` and filtered to the first ten rows. The chart uses a left margin for country names and a linear scale for population counts.
AI-generated descriptionA program that shows the top 10 most populous countries as a pathetic bar chart with no axes.
MIT Licensed