Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Making a Bar Chart

Public visualization

Making a Bar Chart

0 stars0🌍 Public
KKevinw97
Last edited Jan 17, 2020
Created on Jan 17, 2020
Forked from Making a Bar Chart

This example shows a bar chart ranking countries by population, with the data read from a CSV file and rendered as SVG rectangles. It uses D3 v5’s `csv` loader, `scaleLinear` and `scaleBand` for axes, and `axisLeft`/`axisBottom` to display the country names and population values. The chart applies margins and a steelblue fill to each bar.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed