Customizing Axes
✓ Published0🌍 Public
This example presents a horizontal bar chart ranking the ten most populous countries in 2017, using population data from the United Nations World Population Prospects. The visualization customizes both axes: the y-axis displays country names with gridlines removed, while the x-axis uses `d3.axisBottom` with a tick formatter that converts large numbers (e.g., G to B) and adds horizontal gridlines via `tickSize`. Built with d3.v5, it employs `scaleLinear` and `scaleBand` to map data, rendering SVG rectangles styled with a gold fill.
AI-generated descriptionThis is a bar chart showing the top 10 most populus countries in the world as of 2017. This data was obtained from the United Nations : World Population Prospects 2017.
MIT Licensed