Making Bar Chat
✓ Published1🌍 Public
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 descriptionMIT Licensed