This bar chart displays the population of ten countries in the year 2000, using horizontal bars sorted by country name. The visualization is built with React and D3 v5, where `d3.scaleBand` positions the categorical y-axis and `d3.scaleLinear` maps population values to bar widths. Data is loaded as a CSV via `d3.csv` from a GitHub repository, and SVG rectangles render the marks, with hover tooltips showing formatted population values using `d3.format`. Axis ticks and labels are generated by custom React components.
AI-generated descriptionMIT Licensed
Comments
Sign in to join the discussion.