🌍 Public
Viewing a saved revision (read-only)
4ab01c3748d24e4e8eb37e5fa1a98aee
d3
This example shows a horizontal bar chart comparing the populations of eight countries, from China’s 1.4 billion down to Bangladesh’s 166 million. It uses the d3.v7 library with the `csv`, `select`, `scaleLinear`, `scaleBand`, `axisLeft`, and `axisBottom` APIs to load data from a CSV file and render SVG rectangles. Axes are styled, with population labels formatted in billions using the `.3s` format.
AI-generated description