Fork of Customizing Axes
This bar chart displays the top 10 most populous countries based on 2018 United Nations estimates, with population values in thousands. The chart customizes D3 axes by removing default domain lines, applying tick formatting that converts values like "1.42G" to "1.42B", and adding custom labels and title. It uses `d3.axisBottom` and `d3.axisLeft` with `scaleBand` for countries and `scaleLinear` for population, while SVG rects are styled with steelblue fill and custom font sizes via 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.