Making Bar Chart
✓ Published0🌍 Public
This bar chart displays the ten most populous countries in the world, using data from the United Nations World Population Prospects 2019. The chart renders horizontal bars whose lengths correspond to each country’s 2020 population. Built with React and D3 version 5, it uses custom axis components (`AxisBottom` and `AxisLeft`) for rendering ticks and labels, while `Marks` draws the rectangles. Hovering over a bar reveals a tooltip with the exact population value via an SVG `<title>` element.
AI-generated descriptionA program that shows the top 10 most populous countries as a bar chart.
MIT Licensed