Skip to main content
100%

Customizing Axis

✓ Published1🌍 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
MIT Licensed

Similar vizzes