Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

HTML Starter

Public visualization

Viewing a saved revision (read-only)

8b01c0a5518147ce8a73cb92dcafe876

HTML Starter

0 stars1🌍 Public
Nnouralkhoury
Last edited Sep 28, 2020
Created on Sep 28, 2020
Forked from HTML Starter

This example shows a horizontal bar chart of population by country using a small CSV dataset. The code loads data with `d3.csv`, scales the population values, and renders SVG rectangles using `scaleBand` for the y-axis and `scaleLinear` for the x-axis. It uses `axisLeft` and `axisBottom` for tick marks, with a steelblue fill for bars. D3 v6 is imported from the npm package, and the chart is built imperatively by appending elements to an SVG container.

AI-generated description

A bare minimum HTML page.

See also React Starter.