Skip to main content
100%

Fork of Customizing Axes

✓ Published0🌍 Public
DDomen Hribernik
Last edited Dec 24, 2020
Created on Dec 24, 2020
Forked from Customizing Axes

This bar chart visualizes the top 10 most populous countries based on 2018 United Nations estimates, with population values displayed in millions. The chart highlights customized D3 axes: the y-axis labels are styled with large fonts, while the x-axis uses a tick formatter that converts abbreviations like “G” to “B” for billions. Built with D3 v5 and rendered as SVG, the code employs `scaleLinear`, `scaleBand`, `axisBottom`, and `axisLeft` to construct the layout. Grid lines extend from the x-axis ticks, and the data is loaded from a CSV file using `d3.csv`.

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