Skip to main content
100%

Making a Bar Chart

✓ Published1🌍 Public
CCodeHandLuke
Last edited Aug 13, 2019
Created on Aug 13, 2019
Forked from Making a Bar Chart

This example shows a horizontal bar chart of population by country, using CSV data for ten nations. The chart maps population values to bar widths via a linear scale and country names to rows via a band scale, rendering SVG rectangles. D3 v5 APIs—`csv`, `scaleLinear`, `scaleBand`, `axisLeft`, and `axisBottom`—handle data loading, scaling, and axis generation, with margins applied to an SVG canvas.

AI-generated description
MIT Licensed

Similar vizzes