Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

HTML Starter Bar Chart

Public visualization

Viewing a saved revision (read-only)

4e0ff4c8b6f74422b69431f13b98599f

HTML Starter Bar Chart

0 stars1🌍 Public
AAkash00226145
Last edited Apr 29, 2020
Created on Apr 29, 2020
Forked from HTML Starter

This example shows a horizontal bar chart of country populations, using a CSV dataset with population values scaled by 1000. It employs D3 v5’s `csv`, `scaleLinear`, `scaleBand`, `axisLeft`, and `axisBottom` APIs to map data to SVG rectangles. The chart renders inside an SVG element with margins, and axes are appended via `g` groups. Population values are converted to numbers before scaling, and the bars use a fixed steelblue fill.

AI-generated description

A bare minimum HTML page.

See also React Starter.