Skip to main content
100%

Customizing Axes

✓ Published0🌍 Public
ZZhenxiang Wang
Last edited Feb 5, 2020
Created on Feb 5, 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 highlights customization of D3 axes, including tick formatting that converts large numbers into abbreviated forms (e.g., "B" for billion) and removal of default domain lines. It builds on a basic bar chart by adding a custom x-axis label, a title, and styled tick lines with gray strokes. The code uses D3 v5 functions like `axisBottom`, `axisLeft`, `scaleLinear`, and `scaleBand`, rendering to SVG with data 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