Home forums Using CanvasJS Cannot pass dataPoints.push() from string Reply To: Cannot pass dataPoints.push() from string

#15341

jhair01
Member

Hi Bivek,

I have an update. I am passing the string and then pushing it into a value array in JS. Here is the value of the array in JS:

["{ x: new Date(2017,06,13), y: 490 }" , "{ x: new Date(2017,06,14), y: 403 }"]

This still throws an exception, “Unable to get property ‘getTime’ of undefined or null reference”. The format looks correct to me. The only thing I notice is that when I look in the debugger, array is surrounded by double quotes. Can you please help me again??

  • This reply was modified 2 months ago by  jhair01. Reason: more info
  • This reply was modified 2 months ago by  jhair01. Reason: updated code