🌍 Public
Viewing a saved revision (read-only)
c317a583be3e41568f92bee59e1d872b
Fork of Fork of Stylized Bar Chart
This example shows the top 10 most populous countries as horizontal bars, ranked by their 2020 population estimates from the United Nations World Population Prospects 2019 dataset. Built with React and rendered as SVG, the chart uses d3.scaleBand for the categorical y-axis, d3.scaleLinear for the continuous x-axis, and custom React components (AxisBottom, AxisLeft, Marks) to draw the grid lines, tick labels, and rectangles. Hovering over a bar reveals the population value via an SVG <title> tooltip.
AI-generated descriptionA program that shows the top 10 most populous countries as a bar chart.