").css({top:"0px",left:"0px",color:d,width:"41px",height:"22px",border:"1px solid #ccc",display:"none",position:"absolute","margin-top":"-10px","text-align":"right",background:"#fff","line-height":"22px","padding-right":"3px","border-radius":"5px","vertical-align":"middle"}).css(e).append(b("
").css({top:"9px",right:"-10px",width:"10px",position:"absolute","border-top":"1px solid red"})).appendTo(this._$element)},c.prototype._initEvent=function(){var a=this,b=!1;this._$element.dragToSelect({className:d,onHide:function(c){var d=a._adjustSelectBoxForChart(c);a._oCallback.onSelect(d,a._parseCoordinatesToXY(d)),a._$elDragArea=c,a._$elDragArea.hide(),a._hideGuideValue(),b=!1},onMove:function(c){return a.option("bUseMouseGuideLine")?void(a._checkMouseXYInChart(c.pageX,c.pageY)?(b||(a._showGuideValue(),b=!0),a._moveGuideValue(c.pageX,c.pageY)):(b=!1,a._hideGuideValue())):!1},onLeave:function(c){b=!1,a._hideGuideValue()}})},c.prototype._checkMouseXYInChart=function(a,b){var c=this._oSCManager.getPadding(),d=this._oSCManager.getBubbleSize(),e=this._$elContainer.offset(),f=e.left+c.left+d,g=e.left+this._$elContainer.width()-c.right-d,h=e.top+c.top+d,i=e.top+this._$elContainer.height()-c.bottom-d;return a>=f&&g>=a&&b>=h&&i>=b},c.prototype.triggerDrag=function(a){var b=this._adjustSelectBoxForChart(a);this._oCallback.onSelect(b,this._parseCoordinatesToXY(b))},c.prototype._adjustSelectBoxForChart=function(a){var b=this._oSCManager.getPadding(),c=this._oSCManager.getBubbleSize(),d=b.top+c,e=b.left+c,f=this._oSCManager.getWidth()-b.right-c,g=this._oSCManager.getHeight()-b.bottom-c,h=parseInt(a.css("left"),10),i=h+a.width(),j=parseInt(a.css("top"),10),k=j+a.height();j=Math.max(j,d),h=Math.max(h,e),i=Math.min(i,f),k=Math.min(k,g);var l={top:j,left:h,width:i-h,height:k-j};return a.animate(l,200),l},c.prototype._parseCoordinatesToXY=function(a){var b=this._oSCManager.getPadding(),c=this._oSCManager.getBubbleSize();return{fromX:this._oSCManager.parseMouseXToXData(a.left-b.left-c),toX:this._oSCManager.parseMouseXToXData(a.left+a.width-b.left-c),fromY:this._oSCManager.parseMouseYToYData(this._oSCManager.getHeight()-(b.bottom+c)-(a.top+a.height)),toY:this._oSCManager.parseMouseYToYData(this._oSCManager.getHeight()-(b.bottom+c)-a.top)}},c.prototype._showGuideValue=function(){this._welXGuideNumber.show(),this._welYGuideNumber.show()},c.prototype._moveGuideValue=function(a,b){var c=this._oSCManager.getPadding(),d=this._oSCManager.getBubbleSize(),e=this._$elContainer.offset(),f=a-e.left,g=b-e.top;this._welXGuideNumber.css("left",f).find("span").text(moment(this._oSCManager.parseMouseXToXData(f-c.left,d)).format("HH:mm:ss")),this._welYGuideNumber.css("top",g).find("span").text(BigScatterChart2.Util.addComma(this._oSCManager.parseMouseYToYData(this._oSCManager.getHeight()-g-c.bottom-d)))},c.prototype._hideGuideValue=function(){this._welXGuideNumber.hide(),this._welYGuideNumber.hide()},c.prototype.hide=function(){this._hideGuideValue(),this._$elContainer.find("."+d).hide()},a.BigScatterChart2.DragManager=c}(window,jQuery),function(a,b){"use strict";function c(a,b,c,d){this._filter=b,this._option=c,this._application=a,this._cbLoaded=d,this._initVar()}c.prototype._initVar=function(){this._callCount=0,this._bLoadCompleted=!1,this._lastLoadTime=-1},c.prototype.option=function(a){return this._option[a]},c.prototype.loadData=function(a,c,d,e,f){var g=this,h=this._oSCManager.getX();this._oAjax=b.ajax({url:this.getUrl(),data:{to:0===this._callCount?h.max:this._lastLoadTime-1,from:h.min,limit:this.option("fetchLimit"),filter:this._filter||"",application:this._application,xGroupUnit:e,yGroupUnit:f},headers:{accept:"application/json"},dataType:"json"}).done(function(a){a.exception?d():(g._callCount+=1,g._bLoadCompleted=a.complete,g._lastLoadTime=a.resultFrom,c(a,!this._bLoadCompleted,g._getIntervalTime()))}).always(function(){a()})},c.prototype.loadRealtimeData=function(a,c,d){var e=this,f=this._oSCManager.getX(),g=Date.now();this._oRealtimeAjax=b.ajax({url:this.getUrl(),data:{to:this._nextTo||f.max+this.option("realtimeInterval"),from:this._nextFrom||f.max,limit:this.option("fetchLimit"),filter:"",application:this._application,xGroupUnit:c,yGroupUnit:d,backwardDirection:!1},headers:{accept:"application/json"},dataType:"json"}).done(function(b){b.exception||(e._nextFrom=b.complete?b.to:b.resultTo,e._nextTo=e._nextFrom+e.option("realtimeInterval"),a(b,e._calcuRealtimeIntervalTime(b.currentServerTime,Date.now()-g),e._isResetRealtime(b.currentServerTime),b.currentServerTime),e._cbLoaded(e._nextFrom))}).fail(function(){e.loadRealtimeData(a,c,d)})},c.prototype._isResetRealtime=function(a){return a-this._nextTo>=this.option("realtimeResetTimeGap")},c.prototype._calcuRealtimeIntervalTime=function(a,b){var c=parseInt(this.option("realtimeInterval"),0);if(b>c)return 0;var d=a-this._nextTo-this.option("realtimeDefaultTimeGap");return 0>d?Math.max(c-b-d,c):Math.max(c-b-d,0)},c.prototype.setRealtimeFrom=function(a){this._nextFrom=a,this._nextTo=a+this.option("realtimeInteraval")},c.prototype._getIntervalTime=function(){return this.option("useIntervalForFetching")?this.option("fetchingInterval"):0},c.prototype.getRealtimeInterval=function(){return this.option("realtimeDefaultTimeGap")},c.prototype.getUrl=function(){return this.option("url")},c.prototype.initCallCount=function(){this._callCount=0},c.prototype.isFirstRequest=function(){return 0===this._callCount},c.prototype.isCompleted=function(){return this._bLoadCompleted},c.prototype.abort=function(){this._oAjax&&this._oAjax.abort(),this._oRealtimeAjax&&this._oRealtimeAjax.abort()},c.prototype.setTimeManager=function(a){this._oSCManager=a},c.prototype.reset=function(){this._bLoadCompleted=!1,this.initCallCount()},a.BigScatterChart2.DataLoadManager=c}(window,jQuery),function(a,b){"use strict";function c(a,b,c,d){this._option=a,this._oSCManager=b,this._aAgentList=c,this._$elWrapper=d,this._initVariable(),this._makeGridCanvas(),this._makeAxisCanvas(),this._drawGridLine(),this._drawAxisLine(),this._drawAxisValue(),this.updateXYAxis(),this._makeDataCanvas()}c.prototype.option=function(a){return this._option[a]},c.prototype._initVariable=function(){this._oElScrollCanvas={},this._oScrollCtx={},this._ticksOfX=this.option("ticksOfX")-1,this._ticksOfY=this.option("ticksOfY")-1,this._aElAxisX=[],this._aElAxisY=[];var a=this.option("checkBoxImage");this._oCheckedBoxImage=new Image,this._oCheckedBoxImage.src=a.checked,this._oUncheckedBoxImage=new Image,this._oUncheckedBoxImage.src=a.unchecked},c.prototype._makeGridCanvas=function(){this._$elGuideCanvas=b("