Customizing Axes
✓ Published0🌍 Public
This bar chart displays the populations of the top 10 most populous countries, using 2018 estimates from the United Nations World Population Prospects. It uses D3 v5’s `scaleLinear`, `scaleBand`, `axisBottom`, and `axisLeft` to render an SVG, with a custom tick formatter converting abbreviations (e.g., “1.4G” to “1.4B”). The chart removes default axis domains and tick lines, adds gridlines via negative tick sizes, and labels the axes and title in styled text.
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.
MIT Licensed