Skip to main content
100%

Bar Chart

✓ Published1🌍 Public
SSubhamChhetri
Last edited Mar 7, 2023
Created on Feb 18, 2023

This bar chart displays the population of ten countries, ranked along a vertical axis with horizontal bars representing each nation’s population in thousands. The visualization uses D3 v7 with `scaleLinear` and `scaleBand` to map population values to bar widths and country names to band positions, rendering an SVG that fills the browser window. Population data loads from a CSV file, and the chart includes axes via `axisLeft` and `axisBottom`, while bars are appended as `rect` elements with tooltips showing exact values.

AI-generated description
MIT Licensed

Similar vizzes