chart js remove grid 1

chart js remove grid

var options = {
    scales: {
        xAxes: [{
            gridLines: {
                display:false
            }
        }],
        yAxes: [{
            gridLines: {
                display:false
            }   
        }]
    }
}

Here is what the above code is Doing:
1. We’re creating a new variable called options.
2. We’re setting the scales property of options to an object.
3. We’re setting the xAxes property of the scales object to an array.
4. We’re setting the gridLines property of the first item in the xAxes array to an object.
5. We’re setting the display property of the gridLines object to false.
6. We’re setting the yAxes property of the scales object to an array that contains an object.
7. We’re setting the gridLines property of the first item in the yAxes array to an object.
8. We’re setting the display property of the gridLines object to false.

Similar Posts