Fork of Stylized Bar Chart
✓ Published0🌍 Public
This example displays the ten most populous countries as a horizontal bar chart, with country names on the y-axis and population on the x-axis. The code uses React and d3.scaleBand and d3.scaleLinear to position the bars, with SVG rectangles rendered from the United Nations World Population Prospects 2019 dataset. The axis components use d3.ticks for tick values, and tooltips reveal formatted population values via the d3.format function.
AI-generated descriptionA program that shows the top 10 most populous countries as a bar chart.
MIT Licensed