Home › forums › Using CanvasJS › Uncaught TypeError: Cannot read property 'getTime' of undefined › Reply To: Uncaught TypeError: Cannot read property 'getTime' of undefined
You’ll be able to render the chart by passing valid dataPoints. Seems like you are passing a string to dataPoint array instead of an object. In case you’re fetching the data from JSON data source, parse the received data to the format accepted by CanvasJS.
In case you’re still facing the issue, can you please create a JSFiddle reproducing the issue so that we can look into it and help you out?