Remove y-axis line

Is there a way to remove the y-axis line with chartjs? I attached the screenshot of what I am referring to.
chart

I know you can get rid of the labels but I would need to get rid of the line also on that side.

Any help would be helpful 🙂

Thanks

Author: Fantashit

4 thoughts on “Remove y-axis line

  1. Here’s how I’m removing everything:

    scales: {
        yAxes: [{
            ticks: {
                beginAtZero: true,
                callback: function(value, index, values) {
                    return '';
                },
            },
            gridLines: {
                display: false,
                drawBorder: false,
            },
        }],
        xAxes: [{
            ticks: {
                beginAtZero: true,
                callback: function(value, index, values) {
                    return '';
                },
            },
            gridLines: {
                display: false,
                drawBorder: false,
            },
        }],
    },

    bonus clean:

    callback: () => '',

Comments are closed.