Skip to main content
100%

Customizing Axes

✓ Published1🌍 Public
SSACHINSHUKLA99
Last edited Jul 20, 2020
Created on Jul 20, 2020
Forked from Hello VizHub

This bar chart displays the population of the top 10 most populous countries, based on 2018 estimates from the United Nations World Population Prospects. It highlights how to customize D3 axes: the code uses `d3.axisBottom` and `d3.axisLeft` with tick sizes that extend across the chart, and removes the default axis domain lines. The x-axis includes custom tick formatting (converting abbreviations like “G” to “B”) and an axis label, while the y-axis uses `d3.scalePoint` with padding. Data is loaded from a CSV file.

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