Skip to main content
100%

making a bar chart

✓ Published0🌍 Public
Sshb02192
Last edited Oct 1, 2020
Created on Oct 1, 2020
Forked from let's make a face

This example shows the populations of the ten most populous countries using horizontal bars, with each bar’s length proportional to its population value. The chart reads from a CSV file listing country names and populations, sourced from the World Population Prospects 2017. It uses D3 v6’s `scaleLinear` and `scaleBand` to map data to pixel coordinates, and `axisLeft` and `axisBottom` to render the axes. Bars are drawn as SVG `rect` elements, styled with `fill: steelblue`.

AI-generated description

bar chart source: [world population prospects 2017()]

MIT Licensed

Similar vizzes