Skip to main content
100%

Customizing Axes

✓ Published0🌍 Public
JJunheZhang66
Last edited Jun 29, 2020
Created on Jun 29, 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. It demonstrates how to customize D3 axes by removing domain lines, adjusting tick sizes, and formatting tick labels with abbreviations like "B" for billions. The visualization uses D3 v5 with `scaleLinear`, `scaleBand`, `axisBottom`, and `axisLeft` APIs, rendering to SVG. Data is loaded from a CSV file and scaled in the code before being plotted as steel-blue rectangles.

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