Skip to main content
100%

Customizing Axes

✓ Published0🌍 Public
YYINGNAN DENG
Last edited Oct 2, 2020
Created on Oct 2, 2020
Forked from Customizing Axes

This bar chart displays the population of the top 10 most populous countries using 2018 data from the United Nations World Population Prospects. It showcases customized D3 axes, with a linear scale for population on the x-axis and a band scale for country names on the y-axis. The chart uses `d3.axisBottom` and `d3.axisLeft` to generate axes, with custom tick formatting that converts large numbers to abbreviations. The `.tick line` and `.domain` elements are selectively removed to clean up the visual layout, while SVG text elements add titles and axis labels.

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