🌍 Public
Viewing a saved revision (read-only)
a3ff3c485fc6407f9d32e42e79f7963c
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