Chartjs-Chart.js align line graph to the left

0👍

I realize this is an old post but i think I have the solution for your problem and I’ll leave it here for somebody else who is searching this (I can’t test it right now but should be this):

xAxes: [{
        type: "linear"
        , position: "bottom"
        , beginAtZero: true
        , min: 0
}]

Somebody let me know if it’s right 🙂

0👍

            padding: {
                      top: 50,
                      right: 10,
                      bottom: 50,
                      left: 10,
                     }
            }

Add this object in your graph options and change the position with top, bottom, left, right

Leave a comment