Fork of Customizing Axes
This bar chart displays the population of the top 10 most populous countries, using data from the 2018 United Nations World Population Prospects, with values converted from thousands to raw numbers. The chart customizes D3 axes: the y-axis removes domain lines and ticks, while the x-axis uses a custom tick formatter that abbreviates numbers (e.g., converting "G" to "B") and extends tick lines across the chart. Built with D3 v5 and rendered as SVG, it employs `scaleLinear`, `scaleBand`, `axisBottom`, and `axisLeft` to position bars and labels, with styling applied via external CSS.
AI-generated descriptionThis 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.