Skip to main content
100%

making a bar chart

✓ Published2🌍 Public
Lleopoldovce2
Last edited May 13, 2021
Created on May 13, 2021

This example shows a horizontal bar chart of population by country, using a CSV data source with values scaled by a thousand. The visualization is rendered in SVG using D3 v6, with linear and band scales for positioning, axes from `axisLeft` and `axisBottom`, and rectangles appended via `selectAll` and `enter`. The chart highlights Algeria’s large population relative to other listed nations, with a clean margin layout and steelblue bars.

AI-generated description

An example including some commonly used features of SVG.

MIT Licensed

Similar vizzes