Skip to main content
100%

Customizing Axes

✓ Published0🌍 Public
AAbhijeet Panda
Last edited Oct 28, 2019
Created on Oct 28, 2019
Forked from Customizing Axes

This example shows the populations of the top 10 most populous countries as circles on a scatter plot, with a customized axis design. Using D3 v5, it loads data from a CSV file and renders an SVG, employing `d3.scaleLinear` for the population axis and `d3.scalePoint` for country names. The code customizes axes with `d3.axisBottom` and `d3.axisLeft`, formats population ticks with D3’s `format` function to abbreviate billions as “B,” and adds grid lines via tick sizes.

AI-generated description
MIT Licensed

Similar vizzes