Skip to main content
100%

Customizing Axes

✓ Published0🌍 Public
Aalbert7617
Last edited Sep 21, 2020
Created on Sep 21, 2020
Forked from Customizing Axes

This bar chart displays the population of the top 10 most populous countries, using 2018 estimates from the United Nations World Population Prospects. The visualization demonstrates customized D3 axes: the x-axis uses a tick format that abbreviates large numbers (converting 'G' to 'B' for billions) and extends grid lines across the chart, while the y-axis removes its domain and tick lines for a cleaner look. The population values are multiplied by 1,000 to represent actual figures. The chart is rendered as an SVG using d3.scaleLinear for the x-axis and d3.scaleBand for the y-axis.

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