Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Making chart

Public visualization

Making chart

0 stars1🌍 Public
Zzakaria badri
Last edited May 7, 2020
Created on Apr 27, 2020
Forked from HTML Starter

This example displays a horizontal bar chart ranking the top 10 most populous countries using data from a CSV file. It renders SVG bars with a linear population scale and a banded country scale, formatted with tick labels abbreviating billions. The code uses D3 v5 functions like `csv`, `scaleLinear`, `scaleBand`, `axisLeft`, and `axisBottom`, while removing default axis lines and adding custom text labels for the chart title and population axis.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed