Skip to main content
100%

Customizing Axes

✓ Published0🌍 Public
Kkumarsaurav445
Last edited May 11, 2020
Created on May 11, 2020
Forked from Customizing Axes

This bar chart displays the population of the top 10 most populous countries, based on 2018 United Nations estimates. The visualization emphasizes custom axis styling, including formatted tick labels that convert values to billions and colored grid lines. Built with D3 v5, the example uses `scaleBand` for the categorical country axis and `scaleLinear` for the population axis, while `axisBottom` and `axisLeft` manage tick placement and formatting. The SVG rendering includes a removed domain line and custom text elements for the title and axis label, with all styling applied via external CSS.

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