Home › forums › Using CanvasJS › axisXMax
This topic contains 5 replies, has 2 voices, and was last updated by James 11 months, 1 week ago.
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.
Please take a look at this updated jsfiddle.
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);
You must be logged in to reply to this topic.