Skip to main content
100%

Making a Bar Chart

✓ Published0🌍 Public
Wwhyamn
Last edited Nov 4, 2020
Created on Nov 4, 2020
Forked from Smiley Face 002

The chart displays the population of the ten most populous countries as horizontal bars, sorted by value. Built with D3 v5, it loads data from a CSV file and renders the visualization as SVG. The code uses `d3.scaleLinear` and `d3.scaleBand` for axes, `d3.axisLeft` and `d3.axisBottom` for ticks, and `d3.format` to abbreviate population numbers with a custom replacement of 'G' with 'B' for billions.

AI-generated description

First stab at a smiley face

MIT Licensed

Similar vizzes