Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Customizing Axes

Public visualization

Customizing Axes

0 stars0🌍 Public
AAveryBurke
Last edited Jan 31, 2019
Created on Jan 31, 2019
Forked from Customizing Axes

This example shows a bar chart of the top 10 most populous countries, using 2018 population estimates from the United Nations World Population Prospects. The chart customizes both axes: the y-axis removes the domain line and tick lines, while the x-axis applies a custom tick format that abbreviates large numbers using the `d3.format` function, replacing 'G' with 'B'. Built with d3.v5, it uses `scaleLinear` and `scaleBand` for positioning, with `axisBottom`, `axisLeft`, and SVG rendering to display the data.

AI-generated description

This bar chart shows population of the top 10 most populous countries. The data comes from the year 2018 estimate in United Nations: World Population Prospects 2017.

Comments

Sign in to join the discussion.

MIT Licensed