🌍 Public
Viewing a saved revision (read-only)
ad3690e54e904bdeae5e0f4077aef796
Making a Vertical Bar Chart
This gallery example shows a vertical bar chart of population data for ten countries, with the bars rendered in steel blue against axes labeled with country names and population counts. The chart is built using D3 v5, employing `scaleBand` for the categorical x-axis, `scaleLinear` for the y-axis, and axis generators `axisBottom`, `axisLeft`, and `axisRight`. Data is loaded from a CSV file and scaled by a factor of 1000 before rendering as SVG rectangles within a 960x500 viewport.
AI-generated description