Skip to main content
100%

Customizing Axes

✓ Published0🌍 Public
Ccyanea1
Last edited Sep 4, 2019
Created on Sep 4, 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. The visualization emphasizes custom axis styling, including formatted tick labels that abbreviate large numbers and horizontal grid lines extending across the plot area. The code uses d3.scaleLinear, d3.scaleBand, d3.axisBottom, and d3.axisLeft, with data loaded via d3.csv. The SVG rendering also removes default domain lines and adds custom axis titles and a chart title with specific font and color styling.

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