🌍 Public
Viewing a saved revision (read-only)
f3f7135d5bd9471c8240bf09658e52b4
Making Bar Chat
This example shows a horizontal bar chart of country populations, with bars sorted alphabetically by country name. The chart uses a linear scale for population values and a band scale for countries, with axes labeled accordingly. Rendered as an SVG, the visualization loads data from an external CSV file using D3's `csv` function, then applies `scaleLinear`, `scaleBand`, `axisLeft`, and `axisBottom` from D3 v5 to construct the chart and support resizing.
AI-generated description