Skip to main content
100%

Customizing Axes

✓ Published1🌍 Public
SShengjie-Sun
Last edited May 13, 2019
Created on May 13, 2019
Forked from Customizing Axes

This bar chart displays the populations of the top 10 most populous countries, based on 2018 estimates from the United Nations World Population Prospects. It demonstrates customized D3 axes, using `d3.scaleLinear` for the population axis and `d3.scaleBand` for countries. The code applies custom tick formatting, removes domain lines, adds grid lines, and styles axis labels and titles via CSS. Data is loaded from a CSV file and rendered as SVG rectangles using D3 v5.

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