CodePudding user response:
You don't pass an option to the labels array, you pass the tm
variable which means it will use that as a key, you need to pass it as:
const data = {
labels: tm,
datasets: []
}
CodePudding user response:
You don't pass an option to the labels array, you pass the tm
variable which means it will use that as a key, you need to pass it as:
const data = {
labels: tm,
datasets: []
}