d3
✓ Published0🌍 Public
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 descriptionMIT Licensed