Skip to main content
100%

Customizing Axes

✓ Published0🌍 Public
DDeepanshuu
Last edited Jul 19, 2019
Created on Jul 19, 2019
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. It showcases customized D3 v5 axes, with horizontal grid lines extending across the plot and tick labels formatted using the `d3.format` function to abbreviate large numbers. The `d3.scaleLinear` and `d3.scalePoint` scales position the bars, while `d3.axisBottom` and `d3.axisLeft` render the axes. The SVG rendering includes circles for data points and custom text labels for the title and axis label.

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