Skip to main content
100%

Making a Bar Chart

✓ Published2🌍 Public
Llujinxuan-fang
Last edited Mar 8, 2020
Created on Mar 8, 2020
Forked from HTML Starter

This example shows a horizontal bar chart ranking the populations of the top 10 most populous countries, with a linear scale for population values and a band scale for country names. The visualization uses d3.csv to load population data, d3.scaleLinear and d3.scaleBand for positioning, and d3.axisLeft and d3.axisBottom with custom tick formatting for labels. The chart renders to SVG with margin-based layout, includes gridlines from the x-axis, and applies a custom title and axis labels.

AI-generated description

A bare minimum HTML page.

See also React Starter.

MIT Licensed

Similar vizzes