Chartjs-Chart won't draw. Returning a string value not a Number value – Meteor – Chartjs

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.

0👍

Change value:Task[i].value to

 value:Task[i].value || 0,

Leave a comment