Skip to main content
100%

Making a Bar Chart

✓ Published1🌍 Public
Rrebeccayc
Last edited Jan 16, 2020
Created on Jan 16, 2020

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
MIT Licensed

Similar vizzes