Making a Vertical Bar Chart
✓ Published0🌍 Public
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 descriptionMIT Licensed