Skip to main content
100%

Customizing Axes

✓ Published0🌍 Public
OOvxOO
Last edited Jul 17, 2019
Created on Jul 16, 2019
Forked from Hello VizHub

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 description

This 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

Similar vizzes