looking at your chart it's treating the labels als multiline since it's an array in an array.

if you remove the array brackets around the labels variable and the array brackets around the data variable it should work.

so you would get:

var data  = {
      labels: this.datatime,
      datasets: [{
        label: 'custom label name',
        backgroundcolor: gradient,
        pointbackgroundcolor: 'white',
        borderwidth: 1,
        bordercolor: '#911215',
        data: this.dataprice,

Related Query

More Query from same tag