🌍 Public
Viewing a saved revision (read-only)
b2e05ff1f683426bbf4f689d3c2db646
Making a Bar Chart
This example displays a horizontal bar chart ranking the populations of ten countries, with population values scaled to thousands. It uses D3 version 6 APIs such as `d3.select`, `d3.csv`, `d3.scaleLinear`, `d3.scaleBand`, `d3.axisLeft`, and `d3.axisBottom` to render the chart as an SVG. The data is loaded from a CSV file, and the bars are drawn as SVG rectangles with a steelblue fill.
AI-generated description