🌍 Public
Viewing a saved revision (read-only)
5dc88ed3c2f549b685772a0feb5afa0c
Customizing axis
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 descriptionThis barchart shows population of the top 10 most populous coutries. The data comes from the year 2018 estima in World Population Prospects 2017