Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

HTML Starter

Public visualization

Viewing a saved revision (read-only)

93083135c823452ca29bbd688734b6a2

HTML Starter

0 stars0🌍 Public
Qquantum
Last edited Feb 19, 2020
Created on Feb 19, 2020
Forked from HTML Starter

This example shows a horizontal bar chart of population data for a list of countries, rendered as SVG rectangles. The chart scales bar width against the maximum population value and uses a band scale for the categorical country axis. It loads data from a CSV file using d3.csv and parses population values from strings to numbers. The implementation uses d3.scaleLinear, d3.scaleBand, and d3.max to compute the domain and range, and d3.select to append rectangles to the SVG.

AI-generated description

A bare minimum HTML page.

See also React Starter.