Axes with react+d3
✓ Published1🌍 Public
A bar chart displays the top 10 most populous countries using United Nations World Population Prospects 2019 data, with SVG bars and React components for the axes. The chart uses d3.scaleBand and d3.scaleLinear for positioning, while custom React components (AxisBottom, AxisLeft, Marks) render ticks, labels, and rectangles instead of d3.axis. The bottom axis maps tick values through xScale, and the left axis uses yScale.domain() with bandwidth offsets for categorical labels. Data loads asynchronously via d3.csv and is sorted by filtering the first ten rows.
AI-generated descriptionA program that shows the top 10 most populous countries as a pathetic bar chart with no axes.
MIT Licensed