Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

D3 Tutorial

Public visualization

Viewing a saved revision (read-only)

4f8eac7ffc1d4891bfb11bb712be4b98

D3 Tutorial

0 stars0🌍 Public
SShivansh Mathur
Last edited Feb 22, 2020
Created on Feb 20, 2020
Forked from D3 Tutorial

This example shows a bar chart of country populations using a vertical band scale for categories and a linear scale for values. The code loads data from a CSV file, parses the population numbers, and renders SVG rectangles with steelblue fills. It uses d3.csv, d3.scaleBand, d3.scaleLinear, and d3.axisBottom/axisLeft, with margins and an inner group transform to position the axes. The y-axis tick lines and domain are removed for a cleaner look.

AI-generated description

A bare minimum HTML page.

See also React Starter.