Skip to main content
๐ŸŒ Public

Share visualization

Send this visualization to others.

Making a Bar Chart

Public visualization

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

Comments

Sign in to join the discussion.

MIT Licensed