Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Making a Bar Chart

Public visualization

Viewing a saved revision (read-only)

e3cde2cd7c054a8291ad7557d6279499

Making a Bar Chart

0 stars0🌍 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