🌍 Public
Viewing a saved revision (read-only)
cda0d850e7da4306b75e24d62f8dcfac
Making a Bar Chart
A horizontal bar chart displays population data for the ten most populous countries, with each bar’s length proportional to population in thousands. Built with D3 v5 and SVG, the visualization loads data from a CSV file via `d3.csv`, then uses `scaleLinear` for the x-axis and `scaleBand` with padding for the y-axis categories. Axes are rendered using `axisLeft` and `axisBottom`, while the margin convention positions the chart within the 960×500 viewport.
AI-generated description