D3-2: Bar chart
✓ Published1🌍 Public
A horizontal bar chart displays population figures for the ten most populous countries, with China leading at over 1.4 billion. The chart uses D3 v7 with an SVG rendering, employing `scaleLinear` for the x-axis population values and `scaleBand` for the categorical country labels on the y-axis. Data is loaded from a CSV file using `d3.csv`, and axes are generated via `axisLeft` and `axisBottom` with custom tick formatting that abbreviates large numbers.
AI-generated descriptionMIT Licensed