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
SShaun Kee
Last edited Aug 5, 2019
Created on Aug 5, 2019

This example shows a horizontal bar chart of the ten most populous countries, using circles scaled by population size. It loads data from a CSV file and renders SVG elements with D3 v5’s `csv`, `scaleLinear`, `scalePoint`, `axisLeft`, and `axisBottom` APIs. The chart includes custom tick formatting with `format('.3s')` to abbreviate population values and uses a margin-based layout with grid lines.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed