limit time interval to [1.1.1970;now] to (related to bug #80)

This commit is contained in:
Steffen Vogel 2011-08-03 13:55:32 +02:00
parent 46c11577c1
commit 25f3188b56

View file

@ -252,6 +252,10 @@ vz.wui.zoom = function(from, to) {
vz.options.plot.xaxis.min = new Date().getTime() - delta;
}
if (vz.options.plot.xaxis.min < 0) {
vz.options.plot.xaxis.min = 0;
}
vz.options.plot.yaxis.max = null; // autoscaling
vz.options.plot.yaxis.min = 0; // fixed to 0