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