You must be logged in to post your query.
Home › Forums › Chart Support › axisXMax
Tagged: axisXMax
I have an axisXMax value in the format (axisXMax, “D MMM YYYY”). For (axisXMin, “D MMM YYYY”) I would need the Values “axisXMax minus “number of days”, how can I do this?
The purpose is to start a chart with a specific length of 1 week, 10 days or something else. rest will be done with a date picker.
Thanks!
James,
Please take a look at this updated jsfiddle.
___________ Indranil Deo, Team CanvasJS
Thank you for the fast response!
I see you have used:
minValue.setMonth(minValue.getMonth() – 1);
is there also function for “week” and “day” available, like: minValue.setWeek(minValue.getWeek() – 2);
Thank you
getDate(), getDay(), getMonth() are Javascript Date Methods. For more info on Javascript Date Methods please take a look at this tutorial.
thank you!
You must be logged in to reply to this topic. Login/Register