Skip to main content
100%

Making a Vertical Bar Chart

✓ Published0🌍 Public
DDaniel Prevoznik
Last edited May 5, 2020
Created on May 1, 2020
Forked from Making a 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
MIT Licensed

Similar vizzes