Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Customizing Axis

Public visualization

Viewing a saved revision (read-only)

bef725e35b014b2fbfcc2967f81378d3

Customizing Axis

0 stars1🌍 Public
Bbambaleq
Last edited Jan 18, 2020
Created on Jan 18, 2020
Forked from Customizing Axis

This example shows a horizontal dot plot of the top 10 most populous countries, with each circle’s position encoding population size and country name on the y-axis. The chart uses d3.scaleLinear, d3.scalePoint, d3.axisBottom, and d3.axisLeft, with custom tick formatting that abbreviates large numbers using d3.format and replaces “G” with “B”. Gridlines are created by negative tick sizes, and axis domains are removed. Data comes from a CSV file, rendered as SVG.

AI-generated description