Hide labels on x-axis ChartJS

后端 未结 3 545
谎友^
谎友^ 2020-12-06 12:53

I want to hide labels on x-axis as i have a solution to set

$scope.labels = [\'\', \'\', \'\', \'\', \'\', \'\', \'\'];

but in that case labels

3条回答
  •  春和景丽
    2020-12-06 13:49

    I think that's something you can do it with options setting in the latest versions of chartjs:

    options: {
        scales: {
            xAxes: [
                {
                    ticks: {
                        display: false
                    }
                }
            ];
        }
    }
    

提交回复
热议问题