Skip to main content
100%

Bar chart UN data

✓ Published1🌍 Public
FFlorian Maas
Last edited Feb 24, 2022
Created on Feb 24, 2022

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 description

Follow the mouse and resize.

MIT Licensed

Similar vizzes