Datetime axis--Need it to show actual dates or Monday dates
Posted: Thu Apr 24, 2014 12:03 am
I have weekly datetime data that starts on 14 Oct 2013 (a Monday) and goes on for a number of months. When I set the increment to weekly (7 * 86400000) the labels appear at Wednesday dates rather than Monday dates. How can I force the labels to show either 1. Monday days of the week (is there something I can override?) or 2. Force the labels to only show up at datapoints where there is actual data in the series?
Thanks!
var axis = Chart1.axes.bottom;
axis.increment = 7 * 86400000;
axis.setMinMax(Chart1.series.items[0].minXValue(),Chart1.series.items[0].maxXValue());
axis.labels.dateFormat = "dd-mmm-yy";
Thanks!
var axis = Chart1.axes.bottom;
axis.increment = 7 * 86400000;
axis.setMinMax(Chart1.series.items[0].minXValue(),Chart1.series.items[0].maxXValue());
axis.labels.dateFormat = "dd-mmm-yy";