Commit 38f7a8c5 authored by soenter's avatar soenter

Improve the performance of large data processing(fix spaces -> tabs)

parent b9c6359c
...@@ -68,13 +68,13 @@ ...@@ -68,13 +68,13 @@
if (zoom) { if (zoom) {
$.each(plot.getXAxes(), function(_, axis) { $.each(plot.getXAxes(), function(_, axis) {
var opts = axis.options; var opts = axis.options;
opts.min = ranges.xaxis.from; opts.min = ranges.xaxis.from;
opts.max = ranges.xaxis.to; opts.max = ranges.xaxis.to;
}); });
plot.setupGrid(); plot.setupGrid();
plot.draw(); plot.draw();
plot.clearSelection(); plot.clearSelection();
} }
}); });
......
...@@ -92,12 +92,11 @@ ...@@ -92,12 +92,11 @@
$("#placeholder").bind("plotselected", function (event, ranges) { $("#placeholder").bind("plotselected", function (event, ranges) {
// do the zooming // do the zooming
$.each(plot.getXAxes(), function(_, axis) { $.each(plot.getXAxes(), function(_, axis) {
var opts = axis.options; var opts = axis.options;
opts.min = ranges.xaxis.from; opts.min = ranges.xaxis.from;
opts.max = ranges.xaxis.to; opts.max = ranges.xaxis.to;
}); });
plot.setupGrid(); plot.setupGrid();
plot.draw(); plot.draw();
plot.clearSelection(); plot.clearSelection();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment