Customizing Axes
✓ Published1🌍 Public
This bar chart shows the ten most populous countries in 2018, with population values derived from the World Population Prospects 2017 dataset and rendered as horizontal bars. It demonstrates custom axis styling and formatting using d3.axisLeft and d3.axisBottom with a custom tick formatter that abbreviates large numbers, plus custom tick sizes, removed domain lines, and manually added axis labels and titles. The chart is built with d3.scaleLinear and d3.scaleBand, and all elements are drawn as SVG within a fixed 960×500 viewport.
AI-generated descriptionThis bar chart show population of 10 most populous countries. The data comes from the year 2018 estimate in World Population Prospects 2017
MIT Licensed