Skip to main content
100%

Customizing Axes

✓ Published2🌍 Public
TTheRedUnicorn
Last edited Jul 22, 2019
Created on Jul 18, 2019
Forked from Customizing Axes

This bar chart displays the top 10 most populous countries based on 2018 United Nations population estimates, with data loaded from a CSV file. The visualization focuses on customized D3 axes, including rotated y-axis labels, a modified x-axis tick format that converts values to billions (using the `replace` method after `format('.3s')`), and a removed x-axis baseline. The code uses D3 v5 with `scaleLinear`, `scaleBand`, `axisLeft`, and `axisBottom` to construct the chart, while styling is applied through CSS classes for the title, axis labels, and tick marks.

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