0👍
This fixed it…
for(var i = 0; i < Task.length; i++) {
data.push({
label: Task[i].text,
highlight: "#FF5A5E",
color:"#F7464A",
value: Number(Task[i].value)
});
}
Keynote : value: Number(Task[i].value) would likely work as well.
- Chartjs-Adding additional properties to a Chart JS dataset
- Chartjs-Chartjs creating equilvant background like in chartjs.org
0👍
Change value:Task[i].value
to
value:Task[i].value || 0,
- Chartjs-Chart Js Display 2 lines with same labels, not all labels have data point
- Chartjs-How to add label for each data from dataset in chartjs 2.9.4?
Source:stackexchange.com