🌍 Public
Viewing a saved revision (read-only)
c50a8f344f2a48ee992f158c0434c283
Making a Bar Chart
A horizontal bar chart displays population figures for ten countries, from China to Mexico, with population values in thousands. The chart uses D3 v7’s `scaleLinear` and `scaleBand` to map population and country names, respectively, and renders bars as SVG `rect` elements. Axes are generated with `axisLeft` and `axisBottom`, while data is loaded from a CSV file via `d3.csv`. Steel-blue bars with labeled axes present the ranked population data clearly.
AI-generated description