🌍 Public
Viewing a saved revision (read-only)
26a16112e0a542b4a7e38cac177f49ab
making a bar chart
This example shows horizontal bars representing the populations of the ten most populous countries using a bar chart. The D3 v6 code loads the data from a CSV file, scales the values, and renders the bars as SVG rectangles. It uses `scaleLinear` for the width axis and `scaleBand` for the categorical country names, with margins set via an SVG transform.
AI-generated description