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