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.