Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Making a barchart

Public visualization

Making a barchart

0 stars2🌍 Public
TTimothy sit
Last edited Dec 27, 2020
Created on Dec 26, 2020

This bar chart displays population totals for five countries, with rectangles sized according to each nation’s population value. The visualization uses D3 v6 APIs including `csv`, `scaleLinear`, `scaleBand`, `axisLeft`, and `axisBottom` to load data from a CSV file, map values to positions, and render axes. The SVG chart applies a steelblue fill to bars, with margins and a padded band scale for categorical spacing. Data is parsed from strings to numbers before rendering.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed