Skip to main content
100%

Customizing Axes

✓ Published0🌍 Public
NncjB
Last edited Jan 23, 2020
Created on Jan 22, 2020
Forked from Customizing Axes

This visualization displays the top 10 most populous countries using a horizontal bar chart, based on 2018 United Nations population estimates. The chart shows customized axes, with the y-axis stripped of its line and ticks, and the x-axis using abbreviated population labels like “1.42B” via `d3.format`. Built with D3 v5, it uses `d3.scaleLinear`, `d3.scaleBand`, `d3.axisBottom`, and `d3.axisLeft`, rendered as SVG. Gridlines extend from the x-axis ticks, and axis labels and a title are added manually.

AI-generated description

This bar chart shows population of the top 10 most populous countries. The data comes from the year 2018 estimate in United Nations: World Population Prospects 2017. It also demonstrates customization of D3 axes.

See also the first bar chart visualization that this one builds on: Making a Bar Chart.

MIT Licensed

Similar vizzes