}
_98.style.left="0px";
_98.style.textAlign="right";
-_98.style.border="1px solid black";
_98.style.width=this.options.yAxisLabelWidth+"px";
MochiKit.DOM.appendChildNodes(this.container,_98);
this.ylabels.push(_98);
_104.style.textAlign="left";
}
_104.style.left=left+"px";
-_104.style.border="1px solid black";
_104.style.width=this.options.xAxisLabelWidth+"px";
MochiKit.DOM.appendChildNodes(this.container,_104);
this.xlabels.push(_104);
this.valueRange_=_56.valueRange||null;
this.wilsonInterval_=_56.wilsonInterval||true;
this.customBars_=_56.customBars||false;
+div.innerHTML="";
if(div.style.width==""){
div.style.width=Dygraph.DEFAULT_WIDTH+"px";
}
this.attrs_.xValueParser=Dygraph.dateParser;
this.attrs_.xTicker=Dygraph.dateTicker;
}else{
-if(_217!="number"){
+if(_217=="number"){
this.attrs_.xValueFormatter=function(x){
return x;
};
};
this.attrs_.xTicker=Dygraph.numericTicks;
}else{
-this.error("only 'date' and 'number' types are supported for column 1"+"of DataTable input (Got '"+_217+"')");
+this.error("only 'date' and 'number' types are supported for column 1 "+"of DataTable input (Got '"+_217+"')");
return null;
}
}
var ret=[];
for(var i=0;i<rows;i++){
var row=[];
+if(!data.getValue(i,0)){
+continue;
+}
if(_217=="date"){
row.push(data.getValue(i,0).getTime());
}else{
row.push(data.getValue(i,0));
}
+var _219=false;
for(var j=1;j<cols;j++){
row.push(data.getValue(i,j));
+if(data.getValue(i,j)){
+_219=true;
}
+}
+if(_219){
ret.push(row);
}
+}
return ret;
};
Dygraph.prototype.start_=function(){
this.loadedEvent_(this.file_);
}else{
var req=new XMLHttpRequest();
-var _220=this;
+var _221=this;
req.onreadystatechange=function(){
if(req.readyState==4){
if(req.status==200){
-_220.loadedEvent_(req.responseText);
+_221.loadedEvent_(req.responseText);
}
}
};
}
}
};
-Dygraph.prototype.updateOptions=function(_221){
-if(_221.customBars){
-this.customBars_=_221.customBars;
+Dygraph.prototype.updateOptions=function(_222){
+if(_222.customBars){
+this.customBars_=_222.customBars;
}
-if(_221.rollPeriod){
-this.rollPeriod_=_221.rollPeriod;
+if(_222.rollPeriod){
+this.rollPeriod_=_222.rollPeriod;
}
-if(_221.dateWindow){
-this.dateWindow_=_221.dateWindow;
+if(_222.dateWindow){
+this.dateWindow_=_222.dateWindow;
}
-if(_221.valueRange){
-this.valueRange_=_221.valueRange;
+if(_222.valueRange){
+this.valueRange_=_222.valueRange;
}
-MochiKit.Base.update(this.user_attrs_,_221);
+MochiKit.Base.update(this.user_attrs_,_222);
this.labelsFromCSV_=(this.attr_("labels")==null);
this.layout_.updateOptions({"errorBars":this.attr_("errorBars")});
-if(_221["file"]&&_221["file"]!=this.file_){
-this.file_=_221["file"];
+if(_222["file"]&&_222["file"]!=this.file_){
+this.file_=_222["file"];
this.start_();
}else{
this.drawGraph_(this.rawData_);
}
};
-Dygraph.prototype.adjustRoll=function(_222){
-this.rollPeriod_=_222;
+Dygraph.prototype.adjustRoll=function(_223){
+this.rollPeriod_=_223;
this.drawGraph_(this.rawData_);
};
-Dygraph.GVizChart=function(_223){
-this.container=_223;
+Dygraph.GVizChart=function(_224){
+this.container=_224;
};
-Dygraph.GVizChart.prototype.draw=function(data,_224){
+Dygraph.GVizChart.prototype.draw=function(data,_225){
this.container.innerHTML="";
-this.date_graph=new Dygraph(this.container,data,_224);
+this.date_graph=new Dygraph(this.container,data,_225);
};
DateGraph=Dygraph;