Skip to main content
100%

Cus chart

✓ Published1🌍 Public
SSophia Murage
Last edited Mar 31, 2020
Created on Mar 31, 2020
Forked from Customizing Axes

This example displays a horizontal bar chart of country populations, using bars to represent each nation’s relative size. The chart is rendered as SVG with D3 v5, importing `scaleLinear`, `scaleBand`, `axisLeft`, and `axisBottom` from the library. It loads population data from a CSV file via `d3.csv` and maps each country to a bar, with axes labeled accordingly. The population values are parsed as numbers, and the scales and margins are defined to position the bars within the SVG canvas.

AI-generated description

A program that loads and parses some CSV data: CSS Named Colors.

MIT Licensed

Similar vizzes