Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Making a Bar Chart

Public visualization

Viewing a saved revision (read-only)

7629360976684036b06f75c1a6e05b75

Making a Bar Chart

0 stars3🌍 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