Viewing a saved revision (read-only)
571e3b835ef34b54b46e9f88e122fe71
Customizing Axes
This bar chart displays the 2018 populations of the ten most populous countries, with data from the United Nations World Population Prospects 2017. It demonstrates customizing D3 axes: the y-axis removes domain lines and tick marks, while the x-axis uses custom number formatting to abbreviate large values (e.g., converting "G" to "B"), adds grid lines, and labels the axis with a styled text element. The visualization uses d3.scaleLinear, d3.scaleBand, d3.axisBottom, and d3.axisLeft, rendering as SVG.
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.