Skip to main content
100%

Customizing Axes

✓ Published1🌍 Public
Ppblanas
Last edited May 7, 2019
Created on May 7, 2019
Forked from Customizing Axes

This bar chart displays the top 10 goal scorers in the world, with countries and goal counts drawn from a CSV file. It shows how D3 v5 axes can be customized: the y-axis uses `axisLeft` for country labels, while the x-axis uses `axisBottom` with a custom tick formatter that converts large numbers into abbreviated units (e.g., "805" to "805"). The chart also removes default axis domains and gridlines, adds an axis label and title, and uses `scaleBand` for the categorical y-axis and `scaleLinear` for the numeric x-axis.

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