From e244a0d74d204814400cc43ea8deb7c1e2d5625e Mon Sep 17 00:00:00 2001 From: Dan Vanderkam Date: Fri, 11 Dec 2009 16:17:49 -0800 Subject: [PATCH] update combined --- dygraph-combined.js | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/dygraph-combined.js b/dygraph-combined.js index 8b1628e..42928fc 100644 --- a/dygraph-combined.js +++ b/dygraph-combined.js @@ -1298,7 +1298,7 @@ for(var i=0;i<_235.length;i++){ var data=_235[i][1]; var y=data[1]; _237[i]=[_235[i][0],[y,y-data[0],data[2]-y]]; -if(y&&!isNaN(y)){ +if(y!=null&&!isNaN(y)){ low+=data[0]; mid+=y; high+=data[2]; @@ -1306,7 +1306,7 @@ _246+=1; } if(i-_236>=0){ var prev=_235[i-_236]; -if(prev[1][1]&&!isNaN(prev[1][1])){ +if(prev[1][1]!=null&&!isNaN(prev[1][1])){ low-=prev[1][0]; mid-=prev[1][1]; high-=prev[1][2]; @@ -1326,7 +1326,7 @@ var sum=0; var _250=0; for(var j=Math.max(0,i-_236+1);j