🌍 Public
Viewing a saved revision (read-only)
57ca92470f0e4ae99a713dd20c087f0a
Fork of Let's make a Bar Graph with D3.js
A horizontal bar chart displays population figures for ten countries, with bars ordered by descending value from China to Mexico. The visualization uses D3.js v7 with an SVG rendering approach, loading data from a CSV file via `d3.csv` and scaling populations by 1,000. Axes are generated through `d3.axisLeft` and `d3.axisBottom`, while `d3.scaleLinear` and `d3.scaleBand` position and size the bars. Bars appear in steel blue on a clean, margin-based layout.
AI-generated description