🌍 Public
Viewing a saved revision (read-only)
bf9821e5d94d4e54a20d6669d8166ebb
Making a bar chart
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