DateGraph.DEFAULT_HEIGHT=320;
DateGraph.DEFAULT_STROKE_WIDTH=1;
DateGraph.AXIS_LINE_WIDTH=0.3;
+DateGraph.DEFAULT_ATTRS={pixelsPerXLabel:60,labelsDivWidth:250,labelsDivStyles:{}};
DateGraph.prototype.__init__=function(div,_52,_53,_54){
this.maindiv_=div;
this.labels_=_53;
this.sigma_=_54.sigma||2;
this.wilsonInterval_=_54.wilsonInterval||true;
this.customBars_=_54.customBars||false;
-this.attrs_=_54;
+this.attrs_=DateGraph.DEFAULT_ATTRS;
+MochiKit.Base.update(this.attrs_,_54);
if(typeof this.attrs_.pixelsPerXLabel=="undefined"){
this.attrs_.pixelsPerXLabel=60;
}
};
DateGraph.prototype.createStatusMessage_=function(){
if(!this.labelsDiv_){
-var _66=250;
+var _66=this.attrs_.labelsDivWidth;
var _67={"style":{"position":"absolute","fontSize":"14px","zIndex":10,"width":_66+"px","top":"0px","left":this.width_-_66+"px","background":"white","textAlign":"left","overflow":"hidden"}};
+MochiKit.Base.update(_67["style"],this.attrs_.labelsDivStyles);
this.labelsDiv_=MochiKit.DOM.DIV(_67);
MochiKit.DOM.appendChildNodes(this.graphDiv,this.labelsDiv_);
}