kopia lustrzana https://github.com/jbruce12000/kiln-controller
shrinking x-axis of chart in editmode working
rodzic
5544e6f993
commit
3a145c29bc
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue