🌍 Public
Viewing a saved revision (read-only)
a514c532d0b442ac9d3b44ae3a54074a
Making a Bar Chart
This example displays a horizontal bar chart of the top 10 most populous countries, with population values formatted in billions. The chart uses D3 v5 APIs including `d3.csv`, `d3.scaleLinear`, `d3.scaleBand`, `d3.axisLeft`, and `d3.axisBottom` to render an SVG. Data from `data.csv` is loaded and multiplied by 1000 to represent actual population counts. The visualization includes a titled axis label and removes default axis lines for a cleaner presentation.
AI-generated description