score:0

while looking how to add padding between the tick marks and x-axis, i found a solution which allows me to do just that plus the above.

which is by setting the y offset to true and hiding the x border:

copied from here:

x: {
    grid: {
        drawborder: false, // hide the x axis
    },
},
y: {
    offset: true, // create a sensation of space with the x axis hidden
},

in my case, it's enough.


Related Query

More Query from same tag