shrinking x-axis of chart in editmode working

pull/1/head
Sebastian Steuer 2013-12-10 00:36:57 +01:00
rodzic 5544e6f993
commit 3a145c29bc
1 zmienionych plików z 10 dodań i 5 usunięć

Wyświetl plik

@ -77,17 +77,22 @@
points[didx*ps+1] = newy;
}
var is_last = series[sidx].data.length == didx+1;
// funny hack to make drag resizing usable
if (newx > ax.max)
{
graph.plot = $.plot("#graph_container", [ graph.profile, graph.live ] , getOptions());
}
else if (newx < (ax.max*0.8))
else if (newx < (ax.max*0.5) && newx >= ax.datamax && is_last)
{
console.log('baba');
ax.max = ax.max*0.9;
console.log(ax);
ax.options.max = newx*2;
//ax.options.max = ;
console.log(ax);
//plot.setRange(ax);
plot.setupGrid();
//ax.max = ax.max*2;
//ax2.max = ax2.max*0.9;
}