Skip to main content
100%

Customising axis

✓ Published2🌍 Public
SShabani Muswamba
Last edited Apr 18, 2020
Created on Apr 18, 2020
Forked from BAR CHART

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 description

This bar chart shows population of the top 10 most population countries. Data from 2018 Author: Chris Shabani Muswamba

MIT Licensed

Similar vizzes