[Chartjs]-How do I make the y-axis intersect the x-axis at 0 in chart.js

1πŸ‘

βœ…

I was able to do the workaround by setting padding for yAxis:

        scales: {
        yAxes: [{
            ticks: {
                position: top,
                beginAtZero: false,
                padding: -225,
                weight :500,
                stepSize: 1
            }


        }],

padding

Hope it will help someone.

Leave a comment