Skip to main content
100%

Making a Bar Chart

✓ Published3🌍 Public
Rrix007
Last edited Jun 25, 2020
Created on Jun 24, 2020

This example shows a horizontal bar chart of male population totals for ten countries, sorted by descending value using a linear scale for bar width and a band scale for country positioning. The SVG renderer uses D3 v5 APIs including `csv`, `scaleLinear`, `scaleBand`, `axisLeft`, and `axisBottom` to load data from `TotalPop.csv` and draw axes and rectangles. Bars are styled with steel blue fills, and margins are applied via a transformed group element.

AI-generated description
MIT Licensed

Similar vizzes