Making a Bar Chart
✓ Published0🌍 Public
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 descriptionMIT Licensed