this.options = {}; // TODO(danvk): remove, use attr_ instead.
Dygraph.update(this.options, options ? options : {});
this.datasets = new Array();
- this.annotations = new Array()
+ this.annotations = new Array();
};
DygraphLayout.prototype.attr_ = function(name) {
name: setName
};
- // limit the x, y values so they do not overdraw
- if (point.y <= 0.0) {
- point.y = 0.0;
- }
- if (point.y >= 1.0) {
- point.y = 1.0;
- }
this.points.push(point);
}
}
Dygraph.prototype.doZoomY_ = function(lowY, highY) {
// Find the highest and lowest values in pixel range.
var r = this.toDataCoords(null, lowY);
- var minValue = r[1];
- r = this.toDataCoords(null, highY);
var maxValue = r[1];
+ r = this.toDataCoords(null, highY);
+ var minValue = r[1];
this.doZoomYValues_(minValue, maxValue);
};
* @private
*/
Dygraph.prototype.doZoomYValues_ = function(minValue, maxValue) {
- this.valueWindow_ = [maxValue, minValue];
+ this.valueWindow_ = [minValue, maxValue];
this.drawGraph_(this.rawData_);
if (this.attr_("zoomCallback")) {
var xRange = this.xAxisRange();
"20061129,1.41093474427,0.495309102312,3.02013422819,0.701020603129";
}
+function NoisyData2() {
+return "" +
+"Date,A,B\n" +
+"20061027,2.30905861456\n" +
+"20061028,4.09252669039\n" +
+"20061029,2.66903914591\n" +
+"20061030,4.74516695958\n" +
+"20061031,2.78260869565\n" +
+"20061101,1.5873015873\n";
+}
function data_showzerovalues() {
return "" +
"20070101,0,39\n" +
<html>
<head>
- <title>noise</title>
+ <title>visibility</title>
<!--[if IE]>
<script type="text/javascript" src="excanvas.js"></script>
<![endif]-->
<html>
<head>
- <title>noise</title>
+ <title>zoom</title>
<!--[if IE]>
<script type="text/javascript" src="excanvas.js"></script>
<![endif]-->
<input type="button" value="Y (0,4)" onclick="zoomGraphY(0,4)">
<input type="button" value="Y (2,4)" onclick="zoomGraphY(2,4)">
<input type="button" value="Y (0,2)" onclick="zoomGraphY(0,2)">
- <input type="button" value="Y (1,0)" onclick="zoomGraphY(1,0)">
+ <input type="button" value="Y (0,1)" onclick="zoomGraphY(0,1)">
<br>
<input type="button" value="Oct 8-13" onclick="zoomGraphX(1160261979962, 1163905694248)">
<input type="button" value="Oct 22-28" onclick="zoomGraphX(1161489164461 , 1162008465957)">