How to remove the line/rule of an axis in Chart.js?

前端 未结 5 1377
春和景丽
春和景丽 2021-01-17 20:17

I managed to remove all horizontale lines/rules in my chart using this:

scales: {
       xAxes: [{
        gridLines: {
            display: false
        }          


        
5条回答
  •  北海茫月
    2021-01-17 20:57

    This worked for me in version 2.8.0 -

    scales: {
        yAxes: [{
            gridLines: {
                tickMarkLength: false,
            }
        }]
    }
    

提交回复
热议问题