You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Sonarr/NzbDrone.Web/Scripts/2011.3.1115/telerik.chart.min.js

1 line
88 KiB

(function(a,bz){var ab=document,b=a.telerik,J=b.Class,bH=b.Component,R=b.DataSource,t=b.template,aj=function(){return b.formatString.apply(b,arguments)},ak="$t.formatString",aJ=a.map,aK=Math,a4=a.proxy,an=b.getter,ae=a.extend;var bp=function(bR){var bO="d",bS=false,Y="var o,e=$.telerik.htmlEncode;",X=/\${([^}]*)}/g,bQ,bP,bN;if(a.isFunction(bR)){if(bR.length===2){return function(bT){return bR(a,{data:bT}).join("")}}return bR}Y+=bS?"with("+bO+"){":"";Y+="o=";bQ=bR.replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t").replace(X,"#=e($1)#").replace(/\\#/g,"__SHARP__").split("#");for(bN=0;bN<bQ.length;bN++){bP=bQ[bN];if(bN%2===0){Y+="'"+bP.split("'").join("\\'")+"'"}else{if(bP.charAt(0)==="="){Y+="+("+bP.substring(1)+")+"}else{Y+=";"+bP+";o+="}}}Y+=bS?";}":";";Y+="return o;";Y=Y.replace(/__SHARP__/g,"#");return new Function(bO,Y)};var c="above",T="12px sans-serif",d=10,s=1,k="bar",l=0.8,m=1.5,n=0.4,u="below",v="#000",w="bottom",E="center",F="change",I="circle",K="click",L="clip",O="column",P=3,Q="dataBound",U=400,V=6,W=600,aa=aK.PI/180,ah="fadeIn",ao="glass",ap="height",ar="horizontal",av=600,aw="insideBase",ax="insideEnd",ay="interpolate",aB="left",aD="line",aE=8,aF="linear",aM="mousemove.tracking",aN="mouseover",aO="none",aP=1.05,aR="object",aS="onMinorTicks",aU="outside",aV="outsideEnd",aT="_outline",aW="pie",aX=70,a5="radial",a7="right",bb="roundedBevel",bf="seriesClick",bl="square",bo="swing",bx="top",bu=150,bv=5,bw=100,by="triangle",bA="undefined",bD="vertical",bI="width",bG="#fff",bJ="x",bK="y",bL="zero",bM=0.2;var G=bH.extend({init:function(Y,bN){var X=this,bP,bO;bH.fn.init.call(X,Y);if(bN&&bN.dataSource){X.dataSource=R.create(bN.dataSource).bind(F,a4(X._onDataChanged,X))}bN=S({},X.options,bN);bO=bN.theme;bP=bO?G.themes[bO]||G.themes[bO.toLowerCase()]:{};f(bN,bP);h(bN,bP);X.options=S({},bP,bN);g(X.options);X.bind([Q,bf],X.options);a(Y).addClass("k-chart");X._refresh();X._attachEvents()},options:{name:"Chart",chartArea:{},title:{visible:true},legend:{visible:true},valueAxis:{type:"Numeric"},categoryAxis:{categories:[]},autoBind:true,seriesDefaults:{type:O,data:[],bar:{gap:m,spacing:n},column:{gap:m,spacing:n},line:{width:4},labels:{}},series:[],tooltip:{visible:false},transitions:true},refresh:function(){var X=this;h(X.options);f(X.options);X._refresh()},_refresh:function(){var X=this;if(X.options.dataSource&&X.options.autoBind){X.dataSource.query()}else{X._redraw()}},_redraw:function(){var X=this,bO=X.options,Y=X.element,bN=X._model=X._getModel(),bP=X._plotArea=bN._plotArea,bR=X._supportsSVG()?G.SVGView:G.VMLView,bQ=X._view=bR.fromModel(bN);Y.css("position","relative");X._viewElement=bQ.renderTo(Y[0]);X._tooltip=new bt(Y,bO.tooltip);X._highlight=new aq(bQ,X._viewElement)},svg:function(){var X=this._getModel(),Y=G.SVGView.fromModel(X);return Y.render()},_getModel:function(){var X=this,bO=X.options,Y=X.element,bN=new a8(S({width:Y.width()||W,height:Y.height()||U,transitions:bO.transitions},bO.chartArea)),bP;if(bO.title&&bO.title.visible&&bO.title.text){bN.append(new bs(bO.title))}bP=bN._plotArea=new a2(bO);if(bO.legend.visible){bN.append(new aC(bP.options.legend))}bN.append(bP);bN.reflow();return bN},_supportsSVG:bn,_attachEvents:function(){var X=this,Y=X.element;Y.bind(K,a4(X._click,X));Y.bind(aN,a4(X._mouseOver,X))},_getPoint:function(bO){var X=this,bQ=X._model,bN=X._eventCoordinates(bO),bS=bO.target.id,Y=bQ.idMap[bS],bP=bQ.idMapMetadata[bS],bR;if(Y){if(Y.getNearestPoint&&bP){bR=Y.getNearestPoint(bN.x,bN.y,bP.seriesIx)}else{bR=Y}}return bR},_eventCoordinates:function(bN){var X=this,Y=X.element.offset(),bO=a(window);return({x:bN.clientX-Y.left+bO.scrollLeft(),y:bN.clientY-Y.top+bO.scrollTop()})},_click:function(Y){var X=this,bN=X._getPoint(Y);if(bN){X.trigger(bf,{value:bN.value,category:bN.category,series:bN.series,dataItem:bN.dataItem,element:a(Y.target)})}},_mouseOver:function(Y){var X=this,bP=X._tooltip,bN=X._highlight,bO;if(!bN||bN.element===Y.target){return}bO=X._getPoint(Y);if(bO){X._activePoint=bO;if(X.options.tooltip.visible){bP.show(bO)}bN.show(bO);a(ab.body).bind(aM,a4(X._mouseMove,X))}},_mouseMove: