Home forums Feature Requests & Feedback StripLines – strange output using dates Reply To: StripLines – strange output using dates

#29585

Chris,

In JavaScript month index starts from 0(January) and ends at 11(December). For more information please refer to this StackOverflow page.

A second point, I seem to have to include the following code just to get the chart to work in the first place (before I try adding striplines):
for (var i = 0; i < rawData.length; i++) { rawData[i][“x”] = new Date(rawData[i][“x”]); }

X values can either be number or date-object. In your case, to make it date-object this loop would be required.


Vishwas R
Team CanvasJS