Customizing axes
✓ Published0🌍 Public
This example displays a horizontal bar chart of the top 10 most populous countries, using data from the 2018 United Nations World Population Prospects estimate. The chart’s axes are customized: the y-axis labels appear in red with tick lines removed, while the x-axis uses a tick format that converts values to billions with a ’B’ suffix. Built with D3 v5, it employs `scaleLinear`, `scaleBand`, `axisLeft`, and `axisBottom` to render the SVG, and includes green tick lines and a purple title.
AI-generated descriptionThis bar chart shows population of 10 most populos countris.The data comes from the year 2018 estimate in United Nations:World Population Prospects 2017.
MIT Licensed