Skip to main content
100%

Customizing Axes

✓ Published1🌍 Public
BBrandon Da Silva
Last edited Dec 1, 2019
Created on Dec 1, 2019
Forked from Customizing Axes

This bar chart displays the top 10 most populous countries using 2018 population estimates from the United Nations, with population values scaled by 1,000. The visualization customizes D3 v5 axes by formatting tick labels from billions to billions (replacing 'G' with 'B'), removing axis domain lines, and adding styled axis labels and a title. It uses `d3.csv`, `scaleLinear`, `scaleBand`, `axisBottom`, `axisLeft`, and `format` to render SVG rectangles with a steelblue fill, demonstrating how to tailor axes for improved readability.

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