Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Making a Bar Chart

Public visualization

Making a Bar Chart

0 stars1🌍 Public
Ddanielchamone
Last edited Oct 29, 2019
Created on Oct 29, 2019

This example shows the ten most populous countries as a vertical bar chart, with each bar’s height plotted on an SVG canvas against a plain white background. It uses the d3.select API to access the pre‑defined `<svg>` element and retrieves its width and height attributes via `attr()` for sizing. The chart is built with D3 version 5 and the SVG rendering method, but does not include the bar‑drawing code in the visible files. Population data comes from the `data.csv` file.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed