Fork of Axes with React & D3
✓ Published0🌍 Public
This example displays a horizontal bar chart of the top 10 most populous countries, using data from the United Nations World Population Prospects 2019. The visualization renders as SVG with React managing the component state and D3’s `scaleBand`, `scaleLinear`, and `max` utilities handling the scales and data transformations. Axes are drawn manually with D3’s tick methods, positioning grid lines and labels. The bars use the `rect` SVG element, with each bar’s width proportional to the country’s 2020 population.
AI-generated descriptionA program that shows the top 10 most populous countries as a pathetic bar chart with no axes.
MIT Licensed