🌍 Public
Viewing a saved revision (read-only)
c6cdf49528224f82b4fccd790a055593
Bar chart UN data
This example shows a horizontal bar chart displaying the top ten countries by 2020 population, as sourced from UN population data. The bars are rendered as green SVG rectangles, with the bar lengths proportional to population values from the CSV file. Built with React and D3 v5, the chart uses D3’s `scaleBand` for the categorical y-axis and `scaleLinear` for the numeric x-axis. The visualization includes axis ticks, labels, and a gridline.
AI-generated descriptionFollow the mouse and resize.