React
✓ Published0🌍 Public
This example shows a horizontal bar chart of population by country, with the top five most populous nations ranked on the y-axis and population values on the x-axis. Hovering over a bar reveals its exact figure via a tooltip. The visualization is built with React components, using d3.scaleBand and d3.scaleLinear for layout, while d3.csv loads the UN Population 2019 dataset. Axes are rendered as SVG elements with tick labels formatted using d3.format.
AI-generated descriptionReact Starter code.
MIT Licensed