Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Customizing axis

Public visualization

Customizing axis

0 stars1🌍 Public
DDaniel García
Last edited Mar 20, 2020
Created on Mar 20, 2020
Forked from Making a bar chart

This example displays a bar chart of the top 10 most populous countries in 2018, using data from the World Population Prospects 2017. It demonstrates customizing chart axes by removing default domain lines and tick marks on the y-axis, and applying a custom tick format on the x-axis that converts labels to billions. The visualization is built with D3 v5, using `d3.scaleLinear` and `d3.scaleBand` for scales, and `d3.axisLeft` and `d3.axisBottom` for axes.

AI-generated description

This barchart shows population of the top 10 most populous coutries. The data comes from the year 2018 estima in World Population Prospects 2017

Comments

Sign in to join the discussion.

MIT Licensed