Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Customizing Axes

Public visualization

Customizing Axes

0 stars0🌍 Public
SShirshak
Last edited Feb 24, 2020
Created on Feb 24, 2020
Forked from Customizing Axes

This example shows a horizontal bar chart of the top 10 most populous countries, with population values displayed in abbreviated form (e.g., “1.41B” for China) using a custom axis format. The chart uses d3.csv to load the data, d3.scaleLinear and d3.scaleBand for positioning, and d3.axisBottom with a tick format function that converts large numbers using d3.format. The SVG rendering is set up in index.html with margins applied to the chart group.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed