Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Customizing axes

Public visualization

Customizing axes

0 stars1🌍 Public
NNicolas MacFlanigan
Last edited Nov 15, 2020
Created on Nov 15, 2020
Forked from D3 Barchart

A horizontal bar chart displays the top ten most populous countries, with China leading and France last. The code uses d3.csv to load population data, d3.scaleLinear for the x-axis, and d3.scaleBand for the y-axis. Custom axes are built with d3.axisBottom and d3.axisLeft, formatting population values in billions via d3.format, while removing default domain lines and adding custom labels in SVG.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed