Making a Bar Chart
✓ Published2🌍 Public
A horizontal bar chart displays population estimates for 27 countries, sorted by decreasing size from China to South Korea. The visualization uses D3 v6 with `csv`, `scaleLinear`, `scaleBand`, `axisLeft`, and `axisBottom` to map population values to bar widths and country names to row positions. Data loads from `data.csv`, multiplies each population value by 1,000, and renders steelblue SVG rectangles on a 960×500 canvas with fixed margins and a left-aligned label axis.
AI-generated descriptionMIT Licensed