Home forums Using CanvasJS Loading Data to Canvas Reply To: Loading Data to Canvas

#20358

Indranil Deo
Member

@thrasher7811,

X-values can either be number or valid date-time object. In your case, its not valid date-object. Changing x: date[i], to x: new Date(date[i]), and passing date-time in one of the valid formats should work fine in this case.

Still, if you are facing any issue or have other requirements please create a jsfiddle reproducing the issue you are facing so that we can understand your requirement better and help you out.

___________
Indranil Deo,
Team CanvasJS