summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Sfiligoi <isfiligoi@ucsd.edu>2010-02-26 03:36:00 +0000
committerIgor Sfiligoi <isfiligoi@ucsd.edu>2010-02-26 03:36:00 +0000
commit3cca95c3c5f8ae4c39a702c1e0f96bbdcd14b4ed (patch)
tree1c7fd81abd53b3c7c17b207cac4e516742c5074b
parent15ad9968a79edd1884e437883983525919bb1a3a (diff)
Increase scale height; Flot 0.6 uses more space for time seriesv0.5.0
-rw-r--r--src/lib/rrdFlot.js9
-rw-r--r--src/lib/rrdFlotMatrix.js9
2 files changed, 12 insertions, 6 deletions
diff --git a/src/lib/rrdFlot.js b/src/lib/rrdFlot.js
index a29e05c..05b0813 100644
--- a/src/lib/rrdFlot.js
+++ b/src/lib/rrdFlot.js
@@ -1,7 +1,7 @@
/*
* RRD graphing libraries, based on Flot
* Part of the javascriptRRD package
- * Copyright (c) 2009 Frank Wuerthwein, fkw@ucsd.edu
+ * Copyright (c) 2010 Frank Wuerthwein, fkw@ucsd.edu
* Igor Sfiligoi, isfiligoi@ucsd.edu
*
* Original repository: http://javascriptrrd.sourceforge.net/
@@ -24,6 +24,7 @@
* External dependencies:
* [Flot]/jquery.py
* [Flot]/jquery.flot.js
+ * [Flot]/jquery.flot.selection.js
*/
/* graph_options defaults (see Flot docs for details)
@@ -136,12 +137,14 @@ rrdFlot.prototype.createHTML = function() {
cellScale.align="right";
var elScale=document.createElement("Div");
elScale.style.width="250px";
- elScale.style.height="75px";
+ elScale.style.height="110px";
elScale.id=this.scale_id;
cellScale.appendChild(elScale);
var cellScaleReset=rowScale.insertCell(-1);
- //cellScaleReset.vAlign="top";
+ cellScaleReset.vAlign="top";
+ cellScaleReset.appendChild(document.createTextNode(" "));
+ cellScaleReset.appendChild(document.createElement('br'));
var elScaleReset=document.createElement("input");
elScaleReset.type = "button";
elScaleReset.value = "Reset selection";
diff --git a/src/lib/rrdFlotMatrix.js b/src/lib/rrdFlotMatrix.js
index 15febb1..8304c3a 100644
--- a/src/lib/rrdFlotMatrix.js
+++ b/src/lib/rrdFlotMatrix.js
@@ -1,7 +1,7 @@
/*
* RRD graphing libraries, based on Flot
* Part of the javascriptRRD package
- * Copyright (c) 2009 Frank Wuerthwein, fkw@ucsd.edu
+ * Copyright (c) 2010 Frank Wuerthwein, fkw@ucsd.edu
* Igor Sfiligoi, isfiligoi@ucsd.edu
*
* Original repository: http://javascriptrrd.sourceforge.net/
@@ -38,6 +38,7 @@
* External dependencies:
* [Flot]/jquery.py
* [Flot]/jquery.flot.js
+ * [Flot]/jquery.flot.selection.js
*/
/* graph_options defaults (see Flot docs for details)
@@ -171,12 +172,14 @@ rrdFlotMatrix.prototype.createHTML = function() {
cellScale.align="right";
var elScale=document.createElement("Div");
elScale.style.width="250px";
- elScale.style.height="75px";
+ elScale.style.height="110px";
elScale.id=this.scale_id;
cellScale.appendChild(elScale);
var cellScaleReset=rowScale.insertCell(-1);
- //cellScaleReset.vAlign="top";
+ cellScaleReset.vAlign="top";
+ cellScaleReset.appendChild(document.createTextNode(" "));
+ cellScaleReset.appendChild(document.createElement('br'));
var elScaleReset=document.createElement("input");
elScaleReset.type = "button";
elScaleReset.value = "Reset selection";