Fork of Customizing Axes
This bar chart shows the top 10 most populous countries in 2018, using population data from the United Nations World Population Prospects 2017. The visualization customizes D3 axes: the y-axis labels are clickable to alert their text, while the x-axis formats numbers in abbreviated form, replacing “G” with “B”. Built with d3.v5 and SVG, it uses `scaleLinear`, `scaleBand`, `axisBottom`, and `axisLeft` to render the chart, with tick lines sized to the inner height and custom styles for the title and axis labels.
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.