Skip to main content
100%

Making a bar chart

✓ Published0🌍 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
MIT Licensed

Similar vizzes