🌍 Public
Viewing a saved revision (read-only)
745682c47a4448d3a0417c19f11a7583
Making chart
This example displays a horizontal bar chart ranking the top 10 most populous countries using data from a CSV file. It renders SVG bars with a linear population scale and a banded country scale, formatted with tick labels abbreviating billions. The code uses D3 v5 functions like `csv`, `scaleLinear`, `scaleBand`, `axisLeft`, and `axisBottom`, while removing default axis lines and adding custom text labels for the chart title and population axis.
AI-generated description