Shahid,
You are creating array of array while assigning [cpu0]
to dataPoints. Passing cpu0
directly to dataPoints should work fine in your case as shown below in code snippet.
{ type: "Line",
dataPoints: cpu0
},
If you are still facing problem, you can try to debug it by consoling cpu0.
—-
Sanjoy Debnath
Team CanvasJS