//>>built define("dojox/charting/action2d/Tooltip",["dojo/_base/kernel","dijit/Tooltip","dojo/_base/lang","dojo/_base/html","dojo/_base/declare","./PlotAction","dojox/gfx/matrix","dojox/lang/functional","dojox/lang/functional/scan","dojox/lang/functional/fold"],function(_1,_2,_3,_4,_5,_6,m,df,_7,_8){ var _9=function(o){ var t=o.run&&o.run.data&&o.run.data[o.index]; if(t&&typeof t!="number"&&(t.tooltip||t.text)){ return t.tooltip||t.text; } if(o.element=="candlestick"){ return ""+""+""+""+""+(o.data.mid!==undefined?"":"")+"
Open:"+o.data.open+"
High:"+o.data.high+"
Low:"+o.data.low+"
Close:"+o.data.close+"
Mid:"+o.data.mid+"
"; } return o.element=="bar"?o.x:o.y; }; var _a=Math.PI/4,_b=Math.PI/2; return _5("dojox.charting.action2d.Tooltip",_6,{defaultParams:{text:_9},optionalParams:{},constructor:function(_c,_d,_e){ this.text=_e&&_e.text?_e.text:_9; this.connect(); },process:function(o){ if(o.type==="onplotreset"||o.type==="onmouseout"){ _2.hide(this.aroundRect); this.aroundRect=null; if(o.type==="onplotreset"){ delete this.angles; } return; } if(!o.shape||o.type!=="onmouseover"){ return; } var _f={type:"rect"},_10=["after","before"]; switch(o.element){ case "marker": _f.x=o.cx; _f.y=o.cy; _f.w=_f.h=1; break; case "circle": _f.x=o.cx-o.cr; _f.y=o.cy-o.cr; _f.w=_f.h=2*o.cr; break; case "column": _10=["above","below"]; case "bar": _f=_3.clone(o.shape.getShape()); _f.w=_f.width; _f.h=_f.height; break; case "candlestick": _f.x=o.x; _f.y=o.y; _f.w=o.width; _f.h=o.height; break; default: if(!this.angles){ if(typeof o.run.data[0]=="number"){ this.angles=df.map(df.scanl(o.run.data,"+",0),"* 2 * Math.PI / this",df.foldl(o.run.data,"+",0)); }else{ this.angles=df.map(df.scanl(o.run.data,"a + b.y",0),"* 2 * Math.PI / this",df.foldl(o.run.data,"a + b.y",0)); } } var _11=m._degToRad(o.plot.opt.startAngle),_12=(this.angles[o.index]+this.angles[o.index+1])/2+_11; _f.x=o.cx+o.cr*Math.cos(_12); _f.y=o.cy+o.cr*Math.sin(_12); _f.w=_f.h=1; if(_12<_a){ }else{ if(_12<_b+_a){ _10=["below","above"]; }else{ if(_12"+_13+"",this.aroundRect,_10); }else{ if(!_15&&_14){ _2.show(""+_13+"",this.aroundRect,_10); }else{ _2.show(_13,this.aroundRect,_10); } } } }}); });