Skip to main content
100%

HTML Starter

✓ Published1🌍 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.

MIT Licensed

Similar vizzes