X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=dygraph-combined.js;h=fbc7c1d727875a10d95968998745edef07115c7a;hb=1bce597191839ef2e56ecba0bf7be1e60209a5c6;hp=61733c0095674776b8c31428903f0d56df07f391;hpb=681a238e1a94fc6e9f1d32558922a0fcefcad72c;p=dygraphs.git diff --git a/dygraph-combined.js b/dygraph-combined.js index 61733c0..fbc7c1d 100644 --- a/dygraph-combined.js +++ b/dygraph-combined.js @@ -19,6 +19,9 @@ this._evaluateLineTicks(); DygraphLayout.prototype._evaluateLimits=function(){ this.minxval=this.maxxval=null; for(var _6 in this.datasets){ +if(!this.datasets.hasOwnProperty(_6)){ +continue; +} var _7=this.datasets[_6]; var x1=_7[0][0]; if(!this.minxval||x1=0){ var prev=_235[i-_236]; +if(prev[1][1]!=null&&!isNaN(prev[1][1])){ low-=prev[1][0]; mid-=prev[1][1]; high-=prev[1][2]; _246-=1; } +} _237[i]=[_235[i][0],[1*mid/_246,1*(mid-low)/_246,1*(high-mid)/_246]]; } }else{ @@ -1321,7 +1343,7 @@ var sum=0; var _250=0; for(var j=Math.max(0,i-_236+1);j