🌍 Public
Customizing Axes of Bar Chart w/ D3
This bar chart visualizes the population of the top 10 most populous countries, using 2018 estimates from the UN’s World Population Prospects. The chart uses a linear scale for the population axis and a band scale for country names, with custom tick formatting that converts SI units (e.g., G to B). Population values are scaled by 1000. The D3 code removes default domain lines and tick marks, adds axis labels, and renders the bars in SVG.
AI-generated descriptionThis bar chart shows population of the top 10 most populous countries. The data comes from the year 2018 estimate in World Population Propsects 2017.
MIT Licensed
Comments
Sign in to join the discussion.