Fork of Customizing Axes
This bar chart displays the top 10 most populous countries in 2018 using data from the United Nations World Population Prospects 2017. It shows how to customize chart axes in D3 v5, using `scaleLinear` for population and `scaleBand` for country names. The visualization uses `axisBottom` and `axisLeft` with custom tick formatting that converts values from billions to trillions, and `axisBottom` includes grid lines extending across the chart. The SVG rendering includes styled tick labels and a title.
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.