Skip to main content
100%

Making a Bar Chart

✓ Published0🌍 Public
NNateePanomchokpisal
Last edited Oct 5, 2020
Created on Oct 5, 2020
Forked from Making a Bar Chart

This example shows a horizontal bar chart of the top 10 most populous countries, with population values scaled by 1,000 and formatted using the `.3s` tick format. The code uses `d3.csv` to load data from `data.csv`, `d3.scaleBand` and `d3.scaleLinear` for positioning, and `d3.axisLeft` and `d3.axisBottom` to render axes. Bars are drawn as SVG `rect` elements, with a title and axis labels styled via CSS.

AI-generated description

A bare minimum HTML page.

See also React Starter.

MIT Licensed

Similar vizzes