[Vuejs]-Data not displaying properly in Chart.js line chart

3👍

Your labels need to go inside the data object e.g.

data: {
    labels: this.labels,  // <--- This 
    datasets: [{
            fill: false,
            label: 'Tickets Created',
            backgroundColor: '#e52d27',
            data: this.created
        },
        {
            fill: false,
            label: 'Tickets Closed',
            backgroundColor: '#00FF58',
            data: this.closed
        },
    ]
},

Leave a comment