Click the buttons to change the zoom level or just use the normal
+ click-and drag. While zoom typically works by click-and-drag, the
+ butons are useful for testing.
Window coordinates (in dates and values):
Zoom operations:
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
@@ -42,7 +51,6 @@
var maxDate = g.xAxisRange()[1];
var minValue = g.yAxisRange()[0];
var maxValue = g.yAxisRange()[1];
-
showDimensions(minDate, maxDate, minValue, maxValue);
function showDimensions(minDate, maxDate, minValue, maxValue) {
@@ -52,13 +60,16 @@
"valueRange : [" + minValue + " , "+ maxValue + "],";
}
- function sizeGraph(i) {
- switch(i) {
- case 1: g.doZoomYValues_(4, 2);
- break;
- case 5: g.doUnzoom_();
- break;
- }
+ function zoomGraphX(minDate, maxDate) {
+ g.doZoomXDates_(minDate, maxDate);
+ }
+
+ function zoomGraphY(minValue, maxValue) {
+ g.doZoomYValues_(minValue, maxValue);
+ }
+
+ function unzoomGraph() {
+ g.doUnzoom_();
}