Home forums Using CanvasJS Uncaught TypeError: Cannot read property 'getTime' of undefined Reply To: Uncaught TypeError: Cannot read property 'getTime' of undefined

#17818

Suyash Singh
Moderator

@mudassir,

dataPoints is an array of objects. Seems like you are passing a string
("{x: new Date(2017, 10, 20),y: 10},{x: new Date(2017, 10, 17),y: 15}") to it instead of an object. You need to parse your data and convert it to object.

If this doesn’t suit your requirements, Can you please create a jsfiddle, along with your sample data, reproducing the issue?

___
Suyash Singh
Team CanvasJS