Customising axis
✓ Published0🌍 Public
This bar chart shows the top 10 most populous countries in 2018, with population values converted from thousands and formatted using a custom tick format that replaces 'G' with 'B' (e.g., billions). The chart uses d3.scaleBand for the categorical y-axis and d3.scaleLinear for the quantitative x-axis, with d3.axisLeft and d3.axisBottom to render the axes. Custom styling removes the default domain and tick lines on the left axis, while the bottom axis draws light green gridlines using tickSize. Data is loaded from a CSV file via d3.csv and rendered as SVG rectangles.
AI-generated descriptionThis bar chart shows population of the top 10 most population countries. Data from 2018 Author: Chris Shabani Muswamba
MIT Licensed