⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 package_svg_full.js

📁 反向的AJAX。最大的特性是我们成为反向的Ajax。DWR1.x允许你用javascript异步的访问java代码。DWR2.0在这上允许你建立异步java访问javascript代码。 反向的Aj
💻 JS
📖 第 1 页 / 共 5 页
字号:
jsx3.Package.definePackage("jsx3.chart",function(s){s.q2=s.ADDIN.getVersion();s.qN=s.ADDIN.getPath()+"properties/";s.mK=s.ADDIN.getPath()+"events/";s.LOG=jsx3.util.Logger.getLogger(s.jsxpackage.getName());s.LOG_BENCH=jsx3.util.Logger.getLogger(s.jsxpackage.getName()+".benchmark");s.QTOP="top";s.QRIGHT="right";s.QBOTTOM="bottom";s.QLEFT="left";s.splitBox=function(k,n,i,o,b,l,h){var J=null,zb=null;if(b==s.QTOP){J=[k,n,i,Math.min(h,o-1)];zb=[k,n+J[3],i,o-J[3]];}else{if(b==s.QRIGHT){var H=Math.min(l,i-1);J=[k+i-H,n,H,o];zb=[k,n,i-H,o];}else{if(b==s.QBOTTOM){var x=Math.min(h,o-1);J=[k,n+o-x,i,x];zb=[k,n,i,o-x];}else{if(b==s.QLEFT){J=[k,n,Math.min(l,i-1),o];zb=[k+J[2],n,i-J[2],o];}}}}return [J,zb];};s.isValueAxis=function(n){return s.LinearAxis&&n instanceof s.LinearAxis||s.LogarithmicAxis&&n instanceof s.LogarithmicAxis;};s.isCategoryAxis=function(g){return s.CategoryAxis&&g instanceof s.CategoryAxis;};s.o9=function(m){if(m==null)return null;var v=m.split(/\s*[,;]\s*/);if(v[0]==="")v.shift();if(v.length>0&&v[v.length-1]==="")v.pop();return v;};s.asNumber=function(l){if(l==null)return null;if(typeof(l)=="number")return l;return new Number(l);};s.parseGradient=function(o){if(!o)return null;var Cb=o.split(/\s+/);if(Cb[0]==="")Cb.shift();if(Cb.length>0&&Cb[Cb.length-1]==="")Cb.pop();if(Cb.length==0)return null;if(Cb.length>4)return [Cb[0],Cb[1],Cb[2],Cb.slice(3).join(" ")];return Cb;};s.addGradient=function(a,c){var Zb=s.parseGradient(c);if(a!=null&&Zb!=null){var mc=new jsx3.vector.Fill(a.getColor(),a.getAlpha());mc.setType("gradient");mc.setColor2(Zb[0]);mc.setAngle(Zb[1]);mc.setAlpha2(Zb[2]);mc.setColors(Zb[3]);return mc;}else{return a;}};});if(jsx3.IDE){jsx3.ide.loadTemplateCatalog("prop","properties/catalog.xml",jsx3.chart.ADDIN);jsx3.ide.loadTemplateCatalog("event","events/catalog.xml",jsx3.chart.ADDIN);}jsx3.Package.definePackage("jsx3.vector",function(g){g.n1="px";g.PQ="http://www.w3.org/2000/svg";g.eZ=function(e){return typeof(e)=="number"?"#"+(e+16777216).toString(16).substring(1):""+e;};g.x0=function(b,i,j){if(b==null)b=0;if(i==null)i=g.n1;if(typeof(b)=="number"){return b+""+i;}else{b=b.toString();b=b.replace(/^\s*(.*?)\s*$/,"$1");if(j)b=b.replace(/[^\d\.]/g,"");return b.match(/[^\d\.]/)?b:b+""+i;}};g.F0=function(h){return Math.max(0,Math.min(1,h));};g.degreesToRadians=function(e){return Math.modpos(2*Math.PI/360*(-1*e+90),2*Math.PI);};});jsx3.Class.defineClass("jsx3.html.Tag",null,null,function(g,q){var Kb=jsx3.Exception;g.Jg=[];q.ij=null;q.vo=null;if(jsx3.CLASS_LOADER.VML){q.init=function(e,m){this.ij=m;this.vo=e;this.nD=document.createElement(e?e+":"+m:m);this.vu=null;this.yg=null;};q.appendChild=function(c){if(this._P(c)){if(c instanceof g&&c.getParent()!=null){throw new Kb("can't append "+c+" to "+this+", already has parent "+c.vu);}if(this.yg==null)this.yg=[];this.yg.push(c);c.vu=this;}else{throw new Kb("Illegal to append child "+c+" to parent "+this+".");}};q.removeChild=function(d){if(this.yg){var Pb=this.yg.indexOf(d);if(Pb>=0){this.yg[Pb].vu=null;this.yg.splice(Pb,1);}}};q.replaceChild=function(h,i){if(this.yg){var I=this.yg.indexOf(i);if(I>=0){this.yg[I].vu=null;this.yg[I]=h;h.vu=this;}}};q.removeChildren=function(){if(this.yg)this.yg.splice(0,this.yg.length);};}else{if(jsx3.CLASS_LOADER.SVG){q.init=function(f,n){this.ij=n;this.vo=f;if(n)this.nD=f?document.createElementNS(f,n):document.createElement(n);this.vu=null;this.yg=null;};q.appendChild=function(n){if(this._P(n)){if(n instanceof g&&n.getParent()!=null){throw new Kb("can't append "+n+" to "+this+", already has parent "+n.vu);}if(this.yg==null)this.yg=[];this.yg.push(n);n.vu=this;this.nD.appendChild(n.nD);}else{throw new Kb("Illegal to append child "+n+" to parent "+this+".");}};q.removeChild=function(d){if(this.yg){var wb=this.yg.indexOf(d);if(wb>=0){this.yg[wb].vu=null;this.yg.splice(wb,1);}}this.nD.removeChild(d.nD);};q.replaceChild=function(j,e){if(this.yg){var W=this.yg.indexOf(e);if(W>=0){this.yg[W].vu=null;this.yg[W]=j;j.vu=this;}}this.nD.replaceChild(j.nD,e.nD);};q.removeChildren=function(){if(this.yg)this.yg.splice(0,this.yg.length);var hc=this.nD.childNodes;for(var Kc=hc.length-1;Kc>=0;Kc--)this.nD.removeChild(hc[Kc]);};}}q.getParent=function(){return this.vu;};q.getChildren=function(){return this.yg==null?g.Jg:this.yg;};q.getId=function(){return this.nD.id;};q.setId=function(l){this.setProperty("id",l);};q.getClassName=function(){return this.nD.className;};q.setClassName=function(n){this.setProperty("className",n);};q.setExtraStyles=function(f){try{this.nD.style.cssText+=(";"+f);}catch(Kc){throw new Kb("Error appending '"+f+"' to 'cssText': "+jsx3.NativeError.wrap(Kc));}};q.release=function(){delete this.vu;if(this.yg){for(var gc=this.yg.length-1;gc>=0;gc--){if(this.yg[gc].release)this.yg[gc].release();}delete this.yg;}};q._P=function(n){return true;};q._T=function(o){return true;};q.setProperty=function(j,e){var Ic=arguments;for(var Ec=0;Ec<Ic.length;Ec=Ec+2){j=Ic[Ec];e=Ic[Ec+1];if(e!=null)this.nD.setAttribute(j,e);else this.nD.removeAttribute(j);}};if(jsx3.CLASS_LOADER.SVG){q.setPropertyNS=function(b,a,n){if(n!=null)this.nD.setAttributeNS(b,a,n);else this.nD.removeAttributeNS(b,a);};}q.getProperty=function(i){return this.nD.getAttribute(i);};q.removeProperty=function(l){var S=arguments;for(var ec=0;ec<S.length;ec++)this.nD.removeAttribute(S[ec]);};q.setStyle=function(m,b){var Db=arguments;for(var G=0;G<Db.length;G=G+2){m=Db[G];b=Db[G+1];try{this.nD.style[m]=b==null?"":b;}catch(Kc){throw new Kb("Error setting style '"+m+"' to '"+b+"': "+jsx3.NativeError.wrap(Kc));}}};q.getStyle=function(l){return this.nD.style[l];};q.removeStyle=function(s){var lb=arguments;for(var Jc=0;Jc<lb.length;Jc++)this.nD.style[lb[Jc]]="";};q.getTagName=function(){return this.ij;};q.getTagNS=function(){return this.vo;};if(jsx3.CLASS_LOADER.VML){q.paint=function(){this.paintUpdate();var ec=[];var D=this.k1(ec,0);return ec.slice(0,D).join("");};q.k1=function(k,s){var gb=this.yg;var ac=jsx3.html.getOuterHTML(this.nD);ac=ac.replace(/^<(\w+(\:\w+)?)\b/,function(d,f){return "<"+f.toLowerCase();});ac=ac.replace(/\b([_a-zA-Z]\w*)=([^\s\"]+) /g,"$1=\"$2\" ");var F=ac.lastIndexOf("</");if(F>=0&&ac.substring(F).indexOf(this.nD.nodeName)!=2)F=-1;if(gb!=null&&gb.length>0){var L=null,T=null;if(F>=0){L=ac.substring(0,F);T=ac.substring(F);}else{L=ac;T="</"+this.nD.nodeName.toLowerCase()+">";}k[s++ ]=L;for(var Wb=0;Wb<gb.length;Wb++){var Zb=gb[Wb];if(typeof(Zb)=="string")k[s++ ]=Zb;else s=Zb.k1(k,s);}k[s++ ]=T;}else{if(F>=0)k[s++ ]=ac.substring(0,F-1);else k[s++ ]=ac.substring(0,ac.length-1);k[s++ ]="/>";}return s;};}else{if(jsx3.CLASS_LOADER.SVG){q.paintDom=function(){this.paintUpdate();return this.nD;};}}q.paintUpdate=function(){var sb=this.yg;if(sb){for(var L=0;L<sb.length;L++)sb[L].paintUpdate();}};q.toString=function(){return "<"+this.getTagName()+"#"+this.getId()+"/>";};q.getFirstChildOfType=function(m){if(typeof(m)=="string")m=jsx3.Class.forName(m).getConstructor();if(this.yg){var tb=this.yg;for(var Fb=0;Fb<tb.length;Fb++){if(tb[Fb] instanceof m)return tb[Fb];}}return null;};});jsx3.Class.defineClass("jsx3.html.Text",jsx3.html.Tag,null,function(q,g){if(jsx3.CLASS_LOADER.VML){g.init=function(p){this.Iw=p;};g.k1=function(a,j){a[j]=this.Iw;return j+1;};g.getText=function(){return this.Iw;};g.setText=function(b){this.Iw=b;};g.paint=function(){return this.Iw;};}else{if(jsx3.CLASS_LOADER.SVG){g.init=function(n){this.nD=document.createTextNode(n!=null?n:"");};g.getText=function(){return this.nD.nodeValue;};g.setText=function(l){this.nD.nodeValue=l;};}}g._P=function(k){return false;};g.toString=function(){return "[jsx3.html.Text \""+this.getText()+"\"]";};});jsx3.Class.defineClass("jsx3.html.BlockTag",jsx3.html.Tag,null,function(b,l){l.init=function(c,q,r,e,h,f){this.jsxsuper(c,q);this.setDimensions(r,e,h,f);};l.getLeft=function(){var Kc=this.getStyle("left");return Kc!=null?parseInt(Kc):null;};l.xi=function(q,m){if(m==null){this.setStyle(q,null);}else{var P=parseInt(m);if(isNaN(P))jsx3.chart.LOG.debug("trying to set "+q+" of "+this+" to "+m);else this.setStyle(q,P+"px");}};l.setLeft=function(a){this.xi("left",a);};l.getTop=function(){var qb=this.getStyle("top");return qb!=null?parseInt(qb):null;};l.setTop=function(r){this.xi("top",r);};l.getWidth=function(){var Ic=this.getStyle("width");return Ic!=null?parseInt(Ic):null;};l.setWidth=function(a){this.xi("width",a);};l.getHeight=function(){var ub=this.getStyle("height");return ub!=null?parseInt(ub):null;};l.setHeight=function(i){this.xi("height",i);};l.getMargin=function(){return this.getStyle("margin");};l.setMargin=function(o){this.setStyle("margin",o);};l.getPadding=function(){return this.getStyle("padding");};l.setPadding=function(a){this.setStyle("padding",a);};l.getPosition=function(){return this.getStyle("position");};l.setPosition=function(j){this.setStyle("position",j);};l.getZIndex=function(){return this.getStyle("zIndex");};l.setZIndex=function(m){this.setStyle("zIndex",m);};l.getBackgroundColor=function(){return this.getStyle("backgroundColor");};l.setBackgroundColor=function(c){this.setStyle("backgroundColor",c);};l.getMarginDimensions=function(){return b.nR(this.getMargin());};l.getPaddingDimensions=function(){return b.nR(this.getPadding());};b.nR=function(c){if(c){if(typeof(c)=="number"){return [c,c,c,c];}else{var v=(""+c).split(/[^\d\-]+/);if(v[0]==="")v.shift();if(v.length>0&&v[v.length]==="")v.pop();if(v.length>=4){return [parseInt(v[0]),parseInt(v[1]),parseInt(v[2]),parseInt(v[3])];}else{if(v.length>=1){var G=parseInt(v[0]);return [G,G,G,G];}}}}return [0,0,0,0];};l.getDimensions=function(){return [this.getLeft(),this.getTop(),this.getWidth(),this.getHeight()];};l.setDimensions=function(k,n,i,o){if(k instanceof Array){this.setLeft(k[0]);this.setTop(k[1]);this.setWidth(k[2]);this.setHeight(k[3]);}else{this.setLeft(k);this.setTop(n);this.setWidth(i);this.setHeight(o);}};});jsx3.Class.defineInterface("jsx3.html.FontTag",null,function(q,s){s.getFontFamily=function(){return this.getStyle("fontFamily");};s.setFontFamily=function(a){this.setStyle("fontFamily",a);};s.getFontSize=function(){return this.getStyle("fontSize");};s.setFontSize=function(h){this.setStyle("fontSize",isNaN(h)?h:h+"px");};s.getFontStyle=function(){return this.getStyle("fontStyle");};s.setFontStyle=function(f){this.setStyle("fontStyle",f);};s.getFontWeight=function(){return this.getStyle("fontWeight");};s.setFontWeight=function(e){this.setStyle("fontWeight",e);};s.getTextAlign=function(){return this.getStyle("textAlign");};s.setTextAlign=function(l){this.setStyle("textAlign",l);};s.getTextDecoration=function(){return this.getStyle("textDecoration");};s.setTextDecoration=function(j){this.setStyle("textDecoration",j);};s.getColor=function(){return this.getStyle("color");};s.setColor=function(r){this.setStyle("color",r);};});jsx3.Class.defineClass("jsx3.vector.Canvas",jsx3.html.BlockTag,null,function(s,a){a.init=function(g,j,m,k){this.jsxsuper(jsx3.vector.PQ,"svg",g,j,m,k);this.setProperty("version","1.1","baseProfile","full","xmlns:xlink","http://www.w3.org/1999/xlink");};a.paintUpdate=function(){this.jsxsuper();if(this.nB!=null&&this.nB.getParent()==null)this.appendChild(this.nB);if(this.getPosition()!="absolute"){this.setLeft(null);this.setTop(null);}};a.getDefs=function(){if(this.nB==null){this.nB=new jsx3.html.Tag(jsx3.vector.PQ,"defs");this.appendChild(this.nB);}return this.nB;};a.setWidth=function(d){this.jsxsuper(d);this.setProperty("width",typeof(d)=="number"?d+"px":d);};a.setHeight=function(g){this.jsxsuper(g);this.setProperty("height",typeof(g)=="number"?g+"px":g);};});jsx3.Class.defineClass("jsx3.vector.Tag",jsx3.html.BlockTag,null,function(o,f){f.init=function(h,d,g,p,c){this.jsxsuper(jsx3.vector.PQ,h,d,g,p,c);};f.getToolTip=function(){return this.getProperty("title");};f.setToolTip=function(d){this.setProperty("title",d);};f.setRotation=function(p){this.xG=p;};f.setLeft=function(c){this.Sj=c;};f.setTop=function(d){this.xx=d;};f.setWidth=function(m){this.Ul=m;};f.setHeight=function(l){this.Ir=l;};f.setPosition=function(k){this._x=k;};f.getRotation=function(){return this.xG;};f.getLeft=function(){return this.Sj;};f.getTop=function(){return this.xx;};f.getWidth=function(){return this.Ul;};f.getHeight=function(){return this.Ir;};f.getPosition=function(){return this._x;};f.setZIndex=function(q){this.jsxsuper(q);var ob=this.getParent();if(ob){var Yb=ob.getChildren();for(var zb=0;zb<Yb.length;zb++){var Pb=Yb[zb];if(Pb instanceof o){var jb=parseInt(Pb.getZIndex());if(q<jb){if(Pb!=this){ob.nD.removeChild(this.nD);ob.nD.insertBefore(this.nD,Pb.nD);}break;}}}}};f.appendChild=function(g){if(this._P(g)){if(g instanceof o&&g.getParent()!=null){throw new jsx3.Exception("can't append "+g+" to "+this+", already has parent "+g.vu);}if(this.yg==null)this.yg=[];if(g instanceof o){var jb=parseInt(g.getZIndex());if(!isNaN(jb)){for(var Qb=0;Qb<this.yg.length;Qb++){var Wb=this.yg[Qb];var qb=parseInt(Wb.getZIndex());if(jb<qb){this.nD.insertBefore(g.nD,Wb.nD);}}}}if(g.nD.parentNode==null)this.nD.appendChild(g.nD);this.yg.push(g);g.vu=this;}else{throw new jsx3.Exception("Illegal to append child "+g+" to parent "+this+".");}};f.getDefs=function(){var w=this.getParent();return w!=null?w.getDefs():null;};});jsx3.Class.defineClass("jsx3.vector.Stroke",jsx3.html.Tag,null,function(m,s){var gb=jsx3.vector;m.D1=null;s.init=function(p,j,h){this.jsxsuper(gb.PQ,m.D1);this.Vt=null;this.iD=p!=null?p:0;this.Ul=j!=null?j:1;this.Vz=h!=null?gb.F0(h):1;};s.getColor=function(){return this.iD;};s.getColorHtml=function(){return gb.eZ(this.iD);};s.setColor=function(e){this.iD=e;};s.getWidth=function(){return this.Ul;};s.setWidth=function(n){this.Ul=n;};s.getAlpha=function(){return this.Vz;};s.setAlpha=function(p){this.Vz=p!=null?gb.F0(p):null;};s._P=function(n){return false;};s.toString=function(){return "<stroke "+this.getColorHtml()+" "+this.Ul+" "+this.Vz+"/>";};s.paint=function(){var qb="<"+gb.PQ+":"+this.getTagName();if(this.getId()!=null)qb=qb+(" id='"+this.getId()+"'");var db=this.getColorHtml();if(this.Vt!=null)qb=qb+(" on='"+this.Vt+"'");if(db!=null)qb=qb+(" color='"+db+"'");if(this.Vz!=null&&this.Vz<1)qb=qb+(" opacity='"+this.Vz+"'");if(this.Ul!=null)qb=qb+(" weight='"+gb.x0(this.Ul)+"'");qb=qb+"/>";return qb;};s.KJ=function(){return this.Vz==1||this.Vz==null;};m.valueOf=function(a){if(jsx3.util.strEmpty(a))return null;if(a instanceof m)return a;var Kb=a.toString().split(/\s+/);return new m(Kb[0],Kb[1],Kb[2]);};});jsx3.Class.defineClass("jsx3.vector.Fill",jsx3.html.Tag,null,function(c,b){var gb=jsx3.vector;c.D1=null;b.init=function(e,m){this.jsxsuper(gb.PQ,c.D1);this.Vt=null;this.iD=e!=null?e:0;this.Vz=m!=null?gb.F0(m):1;this.Se=null;this.Xm=null;this.Tp=null;this.xs=null;this.al=null;};b.getColor=function(){return this.iD;};b.getColorHtml=function(){return gb.eZ(this.iD);};b.setColor=function(s){this.iD=s;};b.getAlpha=function(){return this.Vz;};b.setAlpha=function(l){this.Vz=l!=null?gb.F0(l):null;};b.getType=function(){return this.Se;};b.setType=function(g){this.Se=g;};b.getColor2=function(){return this.Xm;};b.getColor2Html=function(){return gb.eZ(this.Xm);};b.setColor2=function(n){this.Xm=n;};b.getAlpha2=function(){return this.Tp;};b.setAlpha2=function(m){this.Tp=m;};b.getAngle=function(){return this.xs;};b.setAngle=function(l){this.xs=l;};b.getColors=function(){return this.al;};b.setColors=function(l){this.al=l;};b.toString=function(){return "<fill "+this.getColorHtml()+" "+this.getAlpha()+"/>";};b.hasGradient=function(){return this.Se&&this.Se!="solid";};b.KJ=function(){return (this.Vz==1||this.Vz==null)&&!this.hasGradient();};c.valueOf=function(n){if(jsx3.util.strEmpty(n))return null;if(n instanceof c)return n;var Ec=n.toString().split(/\s+/);return new c(Ec[0],Ec[1]);};b._P=function(q){return false;};});jsx3.Class.defineClass("jsx3.vector.Group",jsx3.vector.Tag,null,function(i,k){k.init=function(p,s,d,a){this.jsxsuper(i.D1,p,s,d,a);};i.D1="g";k.paintUpdate=function(){this.jsxsuper();var I=this.getLeft()||Number(0);var yc=this.getTop()||Number(0);if(I||yc)this.setProperty("transform","translate("+I+","+yc+")");};k._P=function(r){return r instanceof i||r instanceof jsx3.vector.Shape;};});jsx3.Class.defineClass("jsx3.vector.Shape",jsx3.vector.Tag,null,function(j,n){var _b=jsx3.html.Tag;var lb=jsx3.vector;n.init=function(b,e,h,o,i){this.jsxsuper(b!=null?b:j.D1,e,h,o,i);this.Rl=null;this.sw=null;};n.getPath=function(){return this.getProperty("d");};n.setPath=function(q){this.setProperty("d",q);};n.X6=function(i,h,a){this.vr((a?"m":"M")+" "+i+" "+h);return this;};n.Z7=function(k,r,b){this.vr((b?"l":"L")+" "+k+" "+r);return this;};n.XZ=function(b,i,a,s,k,g,r,f,q){var ec=Math.sqrt(Math.pow(k-b,2)+Math.pow(g-i,2));var bc=Math.sqrt(Math.pow(r-b,2)+Math.pow(f-i,2));var Gb=Math.asin((i-g)/ec);if(k-b<0)Gb=(Gb>0?Math.PI:-Math.PI)-Gb;var Xb=Math.asin((i-f)/bc);if(r-b<0)Xb=(Xb>0?Math.PI:-Math.PI)-Xb;var Jc=q?Gb-Xb:Xb-Gb;var Zb=Jc>-1*Math.PI&&Jc<0||Jc>Math.PI;this.Z7(k,g).vr("A "+a+" "+s+" 0 "+(Zb?"1":"0")+" "+(q?"1":"0")+" "+r+" "+f);return this;};n.w9=function(){this.vr("z");return this;};n.vr=function(o){var K=this.getPath();if(!K)this.setPath(o);else this.setPath(K+" "+o);};j.D1="path";n.paintUpdate=function(){this.jsxsuper();if(this.Rl!=null){if(this.Rl.hasGradient()){var jc=this;var G;while(!(G=jc.getId()))jc=jc.getParent();var rb="grad_"+G;if(this.UB!=null&&this.UB.getParent()!=null)this.UB.getParent().removeChild(this.UB);this.setProperty("fill","url(#"+rb+")");this.removeProperty("fill-opacity");this.UB=new _b(lb.PQ,"linearGradient");this.UB.setId(rb);var E=this.Rl.getAngle()||Number(0);var wc=Math.modpos(2*Math.PI/360*(-1*E-90),2*Math.PI);var bc=Math.cos(wc);var Zb=Math.sin(wc);var tc=Math.max(Math.abs(bc),Math.abs(Zb));Zb=Zb/tc;bc=bc/tc;this.UB.setProperty("x1",(0.5-bc/2).roundTo(1.0E-4),"y1",(0.5-Zb/2).roundTo(1.0E-4),"x2",(0.5+bc/2).roundTo(1.0E-4),"y2",(0.5+Zb/2).roundTo(1.0E-4));var Wb=this.getRotation();if(Wb)this.UB.setProperty("gradientTransform","rotate("+-Wb+")");var Ub=new _b(lb.PQ,"stop");Ub.setProperty("offset","0%","stop-color",this.Rl.getColorHtml(),"stop-opacity",this.Rl.getAlpha());this.UB.appendChild(Ub);var P=this.Rl.getColors();if(P){var u=P.split(/\s*,\s*/);for(var oc=0;oc<u.length;oc++){var fb=u[oc].trim().split(/\s+/,2);if(fb.length==2){var Sb=parseInt(fb[0]);if(!isNaN(Sb)){var db=new _b(lb.PQ,"stop");db.setProperty("offset",Sb+"%","stop-color",fb[1]);this.UB.appendChild(db);}}}}var Jc=new _b(lb.PQ,"stop");Jc.setProperty("offset","100%","stop-color",this.Rl.getColor2Html(),"stop-opacity",this.Rl.getAlpha2()!=null?this.Rl.getAlpha2():1);this.UB.appendChild(Jc);this.getDefs().appendChild(this.UB);}else{this.setProperty("fill",this.Rl.getColorHtml(),"fill-opacity",this.Rl.getAlpha());}}else{this.setProperty("fill","none");this.removeProperty("fill-opacity");if(this.UB!=null&&this.UB.getParent()!=null)this.UB.getParent().removeChild(this.UB);}if(this.sw!=null){var pb=this.sw.getWidth();this.setProperty("stroke",this.sw.getColor(),"stroke-width",pb||Number(1),"stroke-opacity",this.sw.getAlpha());}else{this.setProperty("stroke","none");this.removeProperty("stroke-width","stroke-opacity");}var pc=[];var tb=this.getLeft()||Number(0);var fc=this.getTop()||Number(0);if(tb||fc)pc.push("translate("+tb+","+fc+")");var Wb=this.getRotation();if(Wb)pc.push("rotate("+Wb+","+Math.round(this.getWidth()/2)+","+Math.round(this.getHeight()/2)+")");this.setProperty("transform",pc.length>0?pc.join(" "):null);};n.setFill=function(m){this.Rl=m;};n.setStroke=function(i){this.sw=i;};n.getFill=function(){return this.Rl;};n.getStroke=function(){return this.sw;};});jsx3.Class.defineClass("jsx3.vector.Line",jsx3.vector.Shape,null,function(k,n){n.init=function(g,j,f,m,e,l){this.jsxsuper("line",g,j);this.fS(f,m,e,l);};n.fS=function(j,q,i,p){this.setX1(j);this.setY1(q);this.setX2(i);this.setY2(p);};n.getX1=function(){return this.getProperty("x1");};n.setX1=function(r){this.setProperty("x1",r);};n.getY1=function(){return this.getProperty("y1");};n.setY1=function(d){this.setProperty("y1",d);};n.getX2=function(){return this.getProperty("x2");};n.setX2=function(h){this.setProperty("x2",h);};n.getY2=function(){return this.getProperty("y2");};n.setY2=function(i){this.setProperty("y2",i);};n.toString=function(){return "<line "+this.getId()+" {"+this.getX1()+","+this.getY1()+"} {"+this.getX2()+","+this.getY2()+"}/>";};});jsx3.Class.defineClass("jsx3.vector.Rectangle",jsx3.vector.Shape,null,function(r,i){i.init=function(p,s,d,a){this.jsxsuper("rect",p,s,d,a);};i.bI=function(p){this.ET(p.getLeft(),p.getTop(),p.getWidth(),p.getHeight());};i.ET=function(l,k,m,c){var xb=Math.max(this.getLeft(),l);var T=Math.max(this.getTop(),k);var vc=Math.min(this.getWidth()-(xb-this.getLeft()),l+m-xb);var Fb=Math.min(this.getHeight()-(T-this.getTop()),k+c-T);this.setDimensions(xb,T,vc,Fb);};i.getWidth=function(){var Jb=this.getProperty("width");return Jb!=null?parseInt(Jb):null;};i.setWidth=function(e){this.setProperty("width",typeof(e)=="number"?e+"px":e);};i.getHeight=function(){var z=this.getProperty("height");return z!=null?parseInt(z):null;};i.setHeight=function(b){this.setProperty("height",typeof(b)=="number"?b+"px":b);};});jsx3.Class.defineClass("jsx3.vector.Oval",jsx3.vector.Shape,null,function(a,b){b.init=function(p,s,d,k){this.jsxsuper(a.D1,p,s,d,k);};a.D1="ellipse";b.getLeft=function(){var N=this.getProperty("cx");return N!=null?parseInt(N):null;};b.setLeft=function(f){this.setProperty("cx",typeof(f)=="number"?f+"px":f);};b.getTop=function(){var vc=this.getProperty("cy");return vc!=null?parseInt(vc):null;};b.setTop=function(k){this.setProperty("cy",typeof(k)=="number"?k+"px":k);};b.getWidth=function(){var Q=this.getProperty("rx");return Q!=null?2*parseInt(Q):null;};b.setWidth=function(s){this.setProperty("rx",s!=null?parseFloat(s)/2+"px":null);};b.getHeight=function(){var Jc=this.getProperty("ry");return Jc!=null?2*parseInt(Jc):null;};b.setHeight=function(e){this.setProperty("ry",e!=null?parseFloat(e)/2+"px":null);};b.paintUpdate=function(){this.jsxsuper();this.setProperty("transform","translate("+this.getWidth()/2+","+this.getHeight()/2+")");};});jsx3.Class.defineClass("jsx3.vector.Polygon",jsx3.vector.Shape,null,function(r,o){o.init=function(k,n,q){this.jsxsuper("polyline",k,n);this.HG=null;this.XG=q;this.vG=q!=null?q.join(" "):null;};o.fS=function(i){this.HG=i;this.XG=null;this.vG=i!=null?i.join(" "):null;};o.OJ=function(b){this.HG=null;this.XG=b;this.vG=b!=null?b.join(" "):null;};o._Q=function(q){this.HG=null;this.XG=null;this.vG=q;};o.paintUpdate=function(){this.jsxsuper();this.setProperty("points",this.vG);};});jsx3.Class.defineClass("jsx3.vector.TextLine",jsx3.vector.Shape,[jsx3.html.FontTag],function(g,b){var bc=jsx3.html.Tag;var Ab=jsx3.app.Browser;var G=jsx3.vector;b.init=function(j,q,i,p,l){this.IF=j;this.Yu=q;this.iG=i;this.QC=p;var ec=Math.max(1,Math.max(j,i)-Math.min(j,i));var sb=Math.max(1,Math.max(q,p)-Math.min(q,p));this.jsxsuper("text",null,null,ec,sb);var R=0;var mc=Math.sqrt(Math.pow(i-j,2)+Math.pow(p-q,2));if(q>=p){R=360-Math.round(Math.acos((i-j)/mc)*180/Math.PI);}else{R=Math.round(Math.acos((i-j)/mc)*180/Math.PI);}this.xs=R%360;this.Iw=new jsx3.html.Text(l);};b.getText=function(){return this.Iw.getText();};b.setText=function(p){this.Iw.setText(p);};b.paintUpdate=function(){if(!this.getProperty("fill")){if(this.Rl!=null){this.setProperty("fill",this.Rl.getColorHtml(),"fill-opacity",this.Rl.getAlpha());}else{this.removeProperty("fill","fill-opacity");}}if(this.sw!=null){var bb=this.sw.getWidth();this.setProperty("stroke",this.sw.getColor(),"stroke-width",bb||Number(1));}else{this.removeProperty("stroke","stroke-width");}var kb=this.getFontSize();if(kb==null){var Y=Ab.getStyleClass("."+this.getClassName());if(Y!=null)kb=Y.fontSize;}this.setProperty("dy",kb?Math.floor(parseInt(kb)/2.5):0);var sb=this.getTextAlign();if(!sb){var Y=Ab.getStyleClass("."+this.getClassName());if(Y!=null)sb=Y.textAlign;}var uc=null,A=null,Fc=null;if(sb=="left"){Fc="start";uc=this.IF;A=this.Yu;}else{if(sb=="right"){Fc="end";uc=this.iG;A=this.QC;}else{Fc="middle";uc=Math.round((this.iG+this.IF)/2);A=Math.round((this.QC+this.Yu)/2);}}this.setProperty("text-anchor",Fc,"x",uc,"y",A);if(this.xs>0)this.setProperty("transform","rotate("+this.xs+","+uc+","+A+")");else this.removeProperty("transform");if(this.Iw.getParent()==null)this.appendChild(this.Iw);};b.getFontFamily=function(){return this.getProperty("font-family");};b.setFontFamily=function(s){this.setProperty("font-family",s);};b.getFontStyle=function(){return this.getProperty("font-style");};b.setFontStyle=function(l){this.setProperty("font-style",l);};b.getFontWeight=function(){return this.getProperty("font-weight");};b.setFontWeight=function(m){this.setProperty("font-weight",m);};b.getTextDecoration=function(){return this.getProperty("text-decoration");};b.setTextDecoration=function(p){this.setProperty("text-decoration",p);};b.getColor=function(){return this.getProperty("fill");};b.setColor=function(a){this.setProperty("fill",a);};b._P=function(e){return e instanceof jsx3.html.Text;};});jsx3.Class.defineClass("jsx3.vector.LineGroup",jsx3.vector.Shape,null,function(n,m){m.init=function(p,s,d,a){this.jsxsuper(null,p,s,d,a);};m.HS=function(h,o,g,b){this.X6(h,o).Z7(g,b);};m.aT=function(o,c,d,l){this.X6(o,c).Z7(d,l,true);};m.ZM=function(){this.setPath("");};});jsx3.Class.defineClass("jsx3.vector.RectangleGroup",jsx3.vector.Shape,null,function(h,r){r.init=function(p,s,d,a){this.jsxsuper(null,p,s,d,a);};r.C6=function(b,o,g,n){this.X6(b,o).Z7(g,o).Z7(g,n).Z7(b,n).w9();};r.pJ=function(o,c,q,m){this.X6(o,c).Z7(q,0,true).Z7(0,m,true).Z7(-1*q,0,true).w9();};r.OT=function(){this.setPath("");};});jsx3.Class.defineInterface("jsx3.chart.PointRenderer",null,function(i,b){var L=jsx3.vector;b.render=jsx3.Method.newAbstract("x1","y1","x2","y2","fill","stroke");b.areaToRadius=jsx3.Method.newAbstract("area");i.CIRCLE=i.jsxclass.newInnerClass();i.CIRCLE.areaToRadius=function(g){return Math.sqrt(g/Math.PI);};i.CIRCLE.render=function(k,r,j,q,l,h){var P=new L.Oval(k,r,j-k,q-r);P.setFill(l);P.setStroke(h);return P;};i.CROSS=i.jsxclass.newInnerClass();i.CROSS.Bq=0.6;i.CROSS.areaToRadius=function(p){return Math.sqrt(p/(1-this.Bq/Math.SQRT2))/2;};i.CROSS.render=function(k,r,j,q,l,h){var rc=j-k;var mc=this.Bq;var T=Math.round(rc*(1-mc)/2);var jb=Math.round(rc*mc/2);var vc=Math.round(rc-rc*(1-mc)/2);var ib=Math.round(rc/2);var Nc=new L.Polygon(0,0,[k,r,k+T,r,k+ib,r+jb,k+vc,r,j,r,j,r+T,j-jb,r+ib,j,r+vc,j,q,j-T,q,j-ib,q-jb,j-vc,q,k,q,k,q-T,k+jb,q-ib,k,q-vc,k,r]);Nc.setFill(l);Nc.setStroke(h);return Nc;};i.DIAMOND=i.jsxclass.newInnerClass();i.DIAMOND.Wn=1.2;i.DIAMOND.areaToRadius=function(n){return Math.sqrt(n)/2;};i.DIAMOND.render=function(a,h,s,g,r,o){var t=(a+s)/2;var Fb=(h+g)/2;var Xb=(s-a)/this.Wn;var Pb=(g-h)/this.Wn;var gc=new L.Rectangle(Math.round(t-Xb/2),Math.round(Fb-Pb/2),Math.round(Xb),Math.round(Pb));gc.setRotation(45);gc.setFill(r);gc.setStroke(o);return gc;};i.BOX=i.jsxclass.newInnerClass();i.BOX.areaToRadius=function(f){return Math.sqrt(i.DIAMOND.Wn*i.DIAMOND.Wn*f)/2;};i.BOX.render=function(l,s,k,r,m,j){var J=new L.Rectangle(l,s,k-l,r-s);J.setFill(m);J.setStroke(j);return J;};i.TRIANGLE=i.jsxclass.newInnerClass();i.TRIANGLE.areaToRadius=function(l){return Math.sqrt(2*l)/2;};i.TRIANGLE.render=function(d,k,a,h,c,s){var Kb=Math.round((d+a)/2);var E=new L.Polygon(0,0,[Kb,k,a,h,d,h,Kb,k]);E.setFill(c);E.setStroke(s);return E;};});jsx3.chart.Renderers=jsx3.chart.PointRenderer;jsx3.chart.Renderers.Circle=jsx3.chart.PointRenderer.CIRCLE;jsx3.chart.Renderers.Cross=jsx3.chart.PointRenderer.CROSS;jsx3.chart.Renderers.Diamond=jsx3.chart.PointRenderer.DIAMOND;jsx3.chart.Renderers.Box=jsx3.chart.PointRenderer.BOX;jsx3.chart.Renderers.Triangle=jsx3.chart.PointRenderer.TRIANGLE;jsx3.require("jsx3.gui.Block");jsx3.Class.defineClass("jsx3.chart.ChartComponent",jsx3.gui.Block,null,function(n,q){var oc=jsx3.gui.Event;var nc=jsx3.gui.Interactive;var Fb=jsx3.vector;var zb=jsx3.chart;n.Fd={};n.MASK_PROPS_NOEDIT={NN:false,SS:false,EE:false,WW:false,MM:false};n.MASK_PROPS_ALLEDIT={NN:true,SS:true,EE:true,WW:true,MM:true};n.MASK_PROPS_ALLEDITREL={NN:false,SS:true,EE:true,WW:false,MM:false};q.init=function(p){this.jsxsuper(p);this.hC=null;this.pg=null;};q.getChart=function(){return this.findAncestor(function(i){return zb.Chart&&i instanceof zb.Chart;},true);};q.l5=function(){if(this.hC==null)this.updateView();return this.hC;};if(jsx3.CLASS_LOADER.VML){q.paint=function(){var lc=zb.LOG_BENCH.isLoggable(jsx3.util.Logger.TRACE);if(this.hC==null){if(lc)zb.LOG_BENCH.trace("paint() update view - "+this.getId());this.updateView();}if(lc)zb.LOG_BENCH.trace("paint() serializing - "+this.getId());var z=this.hC.paint();if(lc)zb.LOG_BENCH.trace("paint() done - "+this.getId());return z;};q.repaint=function(){this.updateView();var Cb=this.jsxsuper();var Ic=this.getChart();if(Ic!=null){var P=Ic.getRendered();if(P!=null){var Ub=P.style.zIndex;if(Ub==null)Ub=0;P.style.zIndex=Ub+1;P.style.zIndex=Ub;}}return Cb;};}else{if(jsx3.CLASS_LOADER.SVG){q.isDomPaint=function(){return true;};q.paint=function(){throw new jsx3.Exception();};q.paintDom=function(){if(this.hC==null)this.updateView();return this.hC.paintDom();};q.repaint=function(){this.updateView();return this.jsxsuper();};}}q.doClone=function(p){this.hC=null;this.pg=null;return this.jsxsuper(p);};q.updateView=function(){this.applyDynamicProperties();var cc=null,N=null;if(this.hC!=null){N=this.hC;cc=N.getParent();}this.hC=this.lL().newInstance();this.hC.setId(this.getId());this.hC.setDimensions(this.getDimensions());this.hC.setZIndex(this.getZIndex());this.hC.setPosition(this.getRelativePosition()?"relative":"absolute");var xb=this.getAttributes();for(var R in xb)this.hC.setProperty(R,xb[R]);if(cc!=null){cc.replaceChild(this.hC,N);}if(N!=null)N.release();};q.lL=function(){return Fb.Group.jsxclass;};q.A3=function(p){if(p==null)p=this.hC;var mc={};if(this.getMenu()!=null)mc[oc.MOUSEUP]=true;if(this.hasEvent(nc.SELECT))mc[oc.CLICK]=true;if(this.hasEvent(nc.EXECUTE))mc[oc.DOUBLECLICK]=true;if(this.hasEvent(nc.SPYGLASS)){mc[oc.MOUSEOVER]="doSpyOver";mc[oc.MOUSEOUT]="doSpyOut";}this.lM(mc,p);};n.Jn="kE";if(jsx3.CLASS_LOADER.VML){q.lM=function(k,s){for(var x=0;x<nc.s5.length;x++){var Eb=nc.s5[x];var P="on"+Eb;var yc=[];var Jc=this.getAttribute(P);if(Jc){yc.push(Jc.replace(/\"/g,"&quot;"));if(!Jc.match(/;\s*$/))yc.push(";");}var O=k[Eb];if(O){if(typeof(O)!="string")O=nc.F5[Eb];yc.push("jsx3.GO('"+this.getId()+"')."+n.Jn+"(event,this,'"+O+"');");}if(yc.length>0)s.setProperty(P,yc.join(""));}};}else{if(jsx3.CLASS_LOADER.SVG){q.lM=function(h,p){var fc=h[oc.DOUBLECLICK];var ub=false;var Mc="lz";for(var Lb=0;Lb<nc.s5.length;Lb++){var Ob=nc.s5[Lb];if(Ob==oc.DOUBLECLICK)continue;var vc="on"+Ob;var vb=[];var O=this.getAttribute(vc);if(O){vb.push(O.replace(/\"/g,"&quot;"));if(!O.match(/;\s*$/))vb.push(";");}var wb=h[Ob];if(wb){if(Ob==oc.CLICK&&fc){vb.push("jsx3.GO('"+this.getId()+"')."+Mc+"(evt,this,true,true);");ub=true;}else{if(typeof(wb)!="string")wb=nc.F5[Ob];vb.push("jsx3.GO('"+this.getId()+"')."+n.Jn+"(evt,this,'"+wb+"');");}}if(vb.length>0)p.setProperty(vc,vb.join(""));}if(fc&&!ub)p.setProperty("onclick","jsx3.GO('"+this.getId()+"')."+Mc+"(evt,this,false,true);");};n.Cp=200;q.lz=function(k,e,j,d){var Q=k.detail>1;var W=nc.F5[Q?oc.DOUBLECLICK:oc.CLICK];var wc=this[W];var Y=jsx3.gui.Event.wrap(k);if(wc){if(!Q&&d){var rb=this;this._jsxPq=window.setTimeout(function(){delete rb._jsxPq;wc.call(rb,Y,e);},n.Cp);}else{if(this._jsxPq)window.clearTimeout(this._jsxPq);wc.call(this,Y,e);}}else{throw new jsx3.Exception("no bridge method '"+W+"' for event type '"+Y.getType()+"' on DOM object of id "+this.getId());}};}}q.AV=function(c){var mb=this.getBackgroundColor();if(mb!=null&&mb.match(/\S/)){var yc=c.getFirstChildOfType(Fb.Fill);if(yc==null){yc=new Fb.Fill();c.setFill(yc);}yc.setColor(mb);if(typeof(this.getAlpha)=="function")yc.setAlpha(this.getAlpha());}else{c.setFill(null);}};q.E_=function(a){var L=this.getBorderColor();if(L!=null&&L.match(/\S/)){var lc=a.getFirstChildOfType(Fb.Stroke);if(lc==null){lc=new Fb.Stroke();a.setStroke(lc);}lc.setColor(L);if(typeof(this.getBorderAlpha)=="function")lc.setAlpha(this.getBorderAlpha());if(typeof(this.getBorderWidth)=="function")lc.setWidth(this.getBorderWidth());}else{a.setStroke(null);}};q.uR=function(c,r){this[c]=r;this["_"+c+"_eval"]=null;};q.d8=function(a,h){if(h==null)h="object";var Xb="_"+a+"_eval";if(!this[Xb]&&this[a]){try{var bc=this.eval("var f = "+this[a]+"; f;");this[Xb]=bc;if(typeof(this[Xb])!=h){zb.LOG.error("error evaluating '"+a+"', "+this[Xb]+" is not of type "+h);this[Xb]=n.Fd;}}catch(Kc){Kc=jsx3.NativeError.wrap(Kc);this[Xb]=n.Fd;zb.LOG.error("error evaluating "+h+" field '"+a,Kc);}}return this[Xb]!=n.Fd?this[Xb]:null;};q.o_=function(r){return this.d8(r,"function");};q.toString=function(){return "[ChartComponent '"+this.getName()+"']";};q.xI=function(l,g){if(this.pg==null)this.pg={};this.pg[l]=g;};q.Q0=function(e){return this.pg!=null?this.pg[e]:null;};q.qX=function(r){if(this.pg!=null)delete this.pg[r];};q.getMaskProperties=function(){return n.MASK_PROPS_NOEDIT;};q.setLeft=function(k,o){this.jsxsuper(k,o);if(this.hC!=null&&this.getRelativePosition()==jsx3.gui.Block.ABSOLUTE)this.hC.setLeft(k);return this;};q.setTop=function(k,h){this.jsxsuper(k,h);if(this.hC!=null&&this.getRelativePosition()==jsx3.gui.Block.ABSOLUTE)this.hC.setTop(k);return this;};q.setWidth=function(p,d){this.jsxsuper(p);if(this.hC!=null){this.hC.setWidth(p);if(d)this.repaint();}return this;};q.setHeight=function(g,c){this.jsxsuper(g);if(this.hC!=null){this.hC.setHeight(g);if(c)this.repaint();}return this;};q.setRelativePosition=function(b,r){this.jsxsuper(b,r);if(this.hC!=null){if(b==jsx3.gui.Block.RELATIVE){this.hC.setPosition("relative");this.hC.setLeft(0);this.hC.setTop(0);}else{this.hC.setPosition("absolute");this.hC.setLeft(this.getLeft());this.hC.setTop(this.getTop());}}return this;};q.getMarginDimensions=function(){return this.nR(this.getMargin());};q.getPaddingDimensions=function(){return this.nR(this.getPadding());};q.nR=function(h){if(h){if(typeof(h)=="number"){return [h,h,h,h];}else{var N=(""+h).split(/\D+/);if(N[0]==="")N.shift();if(N.length>0&&N[N.length]==="")N.pop();if(N.length>=4){return [parseInt(N[0]),parseInt(N[1]),parseInt(N[2]),parseInt(N[3])];}else{if(N.length>=1){var hb=parseInt(N[0]);return [hb,hb,hb,hb];}}}}return [0,0,0,0];};q.getCanSpy=function(){return true;};n.getVersion=function(){return zb.q2;};});jsx3.require("jsx3.chart.ChartComponent");jsx3.Class.defineClass("jsx3.chart.ChartLabel",jsx3.chart.ChartComponent,null,function(j,p){var mc=jsx3.vector;j.DEFAULT_WIDTH=100;j.ROTATION_NORMAL=0;j.ROTATION_CW=90;j.ROTATION_CCW=270;p.init=function(n,s){this.jsxsuper(n);this.jsxtext=s;this.alpha=null;this.borderStroke=null;this.preferredWidth=null;this.preferredHeight=null;this.labelRotation=j.ROTATION_NORMAL;};p.getText=function(){return this.jsxtext;};p.setText=function(i){this.jsxtext=i;};p.getPreferredWidth=function(){if(this.preferredWidth!=null){return this.preferredWidth;}else{if(this.isRotated()){return this.In();}else{var Dc=this.getPaddingDimensions();return j.DEFAULT_WIDTH+Dc[0]+Dc[2];}}};p.setPreferredWidth=function(m){this.preferredWidth=m;};p.getPreferredHeight=function(){if(this.preferredHeight!=null){return this.preferredHeight;}else{if(this.isRotated()){var Ub=this.getPaddingDimensions();return j.DEFAULT_WIDTH+Ub[1]+Ub[3];}else{return this.In();}}};p.setPreferredHeight=function(c){this.preferredHeight=c;};p.In=function(){var N=this.getPaddingDimensions();var Qb=this.getFontSize()!=null?this.getFontSize():10;return Math.round(Qb*1.5)+(this.isRotated()?N[1]+N[3]:N[0]+N[2]);};p.getAlpha=function(){return this.alpha;};p.setAlpha=function(f){this.alpha=f!=null?mc.F0(f):null;};p.getBorderStroke=function(){return this.borderStroke;};p.setBorderStroke=function(m){this.borderStroke=m;};p.getLabelRotation=function(){return this.labelRotation;};p.setLabelRotation=function(q){this.labelRotation=q;};p.isRotated=function(){return this.labelRotation==j.ROTATION_CW||this.labelRotation==j.ROTATION_CCW;};p.updateView=function(){this.jsxsuper();var Vb=this.l5();var lc=this.getWidth();var Y=this.getHeight();var gb=this.getPaddingDimensions();this.A3();var ib=new mc.Rectangle(0,0,lc,Y);Vb.appendChild(ib);this.AV(ib);var T=ib.getFill();var Eb=mc.Stroke.valueOf(this.borderStroke);if(Eb!=null){ib.setStroke(Eb);}else{if(T!=null&&(this.alpha==null||this.alpha==1)){ib.setStroke(new mc.Stroke(T.getColor()));}}var O=0,Bc=0,Ub=0,hb=0;if(this.isRotated()){Ub=(hb=Math.round(gb[3]+(lc-gb[1]-gb[3])/2));if(this.labelRotation==j.ROTATION_CW){Bc=Y;}else{O=Y;}}else{O=(Bc=Math.round(Y/2));Ub=0;hb=lc;}var Lb=new mc.TextLine(Ub,O,hb,Bc,this.jsxtext);Lb.setColor(this.getColor());Lb.setClassName(this.getClassName());Lb.setFontFamily(this.jsxfontname);Lb.setFontWeight(this.jsxfontweight);Lb.setFontSize(this.jsxfontsize);Lb.setTextAlign(this.jsxtextalign);Vb.appendChild(Lb);};p.onResize=function(){var F=this.getParent();if(F!=null){if(jsx3.chart.Axis&&F instanceof jsx3.chart.Axis)this.getChart().repaint();else F.repaint();}};p.onSetChild=function(){return false;};p.onSetParent=function(r){return r instanceof jsx3.chart.ChartComponent;};p.toString=function(){return "[jsx3.chart.ChartLabel '"+this.getName()+"']";};j.getVersion=function(){return jsx3.chart.q2;};});jsx3.Class.defineClass("jsx3.chart.GridLines",jsx3.chart.ChartComponent,null,function(s,h){var U=jsx3.vector;var B=U.Stroke;h.init=function(l,p,j,d,a){this.jsxsuper(l);this.setDimensions(p,j,d,a);this.useXPrimary=jsx3.Boolean.TRUE;this.useYPrimary=jsx3.Boolean.TRUE;this.horizontalAbove=jsx3.Boolean.TRUE;this.inForeground=jsx3.Boolean.FALSE;this.borderStroke=null;this.fillV=null;this.strokeMajorV=null;this.strokeMinorV=null;this.fillH=null;this.strokeMajorH=null;this.strokeMinorH=null;};h.getUseXPrimary=function(){return this.useXPrimary;};h.setUseXPrimary=function(i){this.useXPrimary=i;};h.getUseYPrimary=function(){return this.useYPrimary;};h.setUseYPrimary=function(k){this.useYPrimary=k;};h.getHorizontalAbove=function(){return this.horizontalAbove;};h.setHorizontalAbove=function(n){this.horizontalAbove=n;};h.getInForeground=function(){return this.inForeground;};h.setInForeground=function(d){this.inForeground=d;};h.getBorderStroke=function(){return this.borderStroke;};h.setBorderStroke=function(m){this.borderStroke=m;};h.getFillV=function(){return this.fillV;};h.setFillV=function(i){this.fillV=i;};h.getStrokeMajorV=function(){return this.strokeMajorV;};h.setStrokeMajorV=function(o){this.strokeMajorV=o;};h.getStrokeMinorV=function(){return this.strokeMinorV;};h.setStrokeMinorV=function(a){this.strokeMinorV=a;};h.getFillH=function(){return this.fillH;};h.setFillH=function(p){this.fillH=p;};h.getStrokeMajorH=function(){return this.strokeMajorH;};h.setStrokeMajorH=function(b){this.strokeMajorH=b;};h.getStrokeMinorH=function(){return this.strokeMinorH;};h.setStrokeMinorH=function(p){this.strokeMinorH=p;};h.getXAxis=function(){var J=this.getChart();if(J==null)return null;return this.useXPrimary?J.getPrimaryXAxis():J.getSecondaryXAxis();};h.getYAxis=function(){var Bc=this.getChart();if(Bc==null)return null;return this.useYPrimary?Bc.getPrimaryYAxis():Bc.getSecondaryYAxis();};h.updateView=function(){this.jsxsuper();var Ub=this.l5();this.A3();var nc=new U.Group();nc.setZIndex(2);Ub.appendChild(nc);var cc=new U.Group();cc.setZIndex(this.horizontalAbove?3:1);Ub.appendChild(cc);var W=this.getWidth();var Ac=this.getHeight();if(this.borderStroke){var Zb=B.valueOf(this.borderStroke);var Mb=new U.Rectangle(0,0,W,Ac);Mb.setZIndex(10);Mb.setStroke(Zb);Ub.appendChild(Mb);}this.Xy(nc,W,Ac,this.getXAxis(),this.fillV,this.strokeMajorV,this.strokeMinorV,false);this.Xy(cc,W,Ac,this.getYAxis(),this.fillH,this.strokeMajorH,this.strokeMinorH,true);};h.Xy=function(j,l,p,c,g,r,e,n){j.setDimensions(0,0,l,p);var Ub=this.tV(g);if(c!=null){var Ib=c.RQ();if(Ib.length==0||Ub==1){this.ry(j,0,0,l,p,this.w6(g,0));}if(Ib.length>0){if(Ub>1)this.td(j,c,Ib,g,null,n);this.S7(j,c,Ib,r,null,n);this.Rk(j,c,Ib,e,n);}}else{this.ry(j,0,0,l,p,this.w6(g,0));}};h.td=function(e,r,q,b,m,o){if(m==null)m=new Array(this.tV(b));if(m.length==0)return;var P=e.getHeight();var S=e.getWidth();var Nb=o?P:S;var vc=o?S:P;for(var w=0;w<=q.length;w++){var Q=m[w%m.length];if(Q==null){Q=m[w%m.length]=new U.RectangleGroup(0,0,S,P);Q.setFill(this.w6(b,w));e.appendChild(Q);}if(w==q.length){if(q[w-1]<Nb)this.C6(Q,q[w-1],0,Nb,vc,o);}else{if(w==0){if(q[w]>0)this.C6(Q,0,0,q[w],vc,o);}else{this.C6(Q,q[w-1],0,q[w],vc,o);}}}};h.C6=function(f,p,d,o,c,l){if(l)f.C6(d,p,c,o);else f.C6(p,d,o,c);};h.S7=function(d,i,g,o,n,p){if(n==null)n=new Array(this.tV(o));if(n.length==0)return;var yb=d.getHeight();var Dc=d.getWidth();for(var N=0;N<g.length;N++){var Ob=n[N%n.length];if(Ob==null){Ob=n[N%n.length]=new U.LineGroup(0,0,Dc,yb);Ob.setStroke(this.GT(o,N));d.appendChild(Ob);}if(p)Ob.aT(0,g[N],Dc,0);else Ob.aT(g[N],0,0,yb);}};h.Rk=function(m,e,k,j,l){var Eb=this.tV(j);if(Eb==0)return;var S=new Array(Eb);for(var z=0;z<k.length;z++){var nc=e.RY(k,z);this.S7(m,e,nc,j,S,l);}};h.ry=function(j,d,o,l,p,k,i){if(k!=null){var qb=new U.Rectangle(d,o,l,p);if(i!=null)qb.setZIndex(i);qb.setFill(k);j.appendChild(qb);}};h.toString=function(){return "[GridLines '"+this.getName()+"']";};h.w6=function(q,f){if(q==null)return null;if(q instanceof Array){if(q.length>0){return U.Fill.valueOf(q[f%q.length]);}else{return null;}}else{return U.Fill.valueOf(q);}};h.GT=function(c,a){if(c==null)return null;if(c instanceof Array){if(c.length>0){return B.valueOf(c[a%c.length]);}else{return null;}}else{return B.valueOf(c);}};h.tV=function(o){if(o==null)return 0;return o instanceof Array?o.length:1;};h.onSetChild=function(){return false;};h.onSetParent=function(l){return jsx3.chart.Chart&&l instanceof jsx3.chart.Chart;};s.getVersion=function(){return jsx3.chart.q2;};});jsx3.require("jsx3.chart.ChartComponent");jsx3.Class.defineClass("jsx3.chart.Axis",jsx3.chart.ChartComponent,null,function(k,q){var dc=jsx3.vector;var sc=dc.Stroke;var hb=jsx3.chart;k.TICK_INSIDE="inside";k.TICK_OUTSIDE="outside";k.TICK_CROSS="cross";k.TICK_NONE="none";k.LABEL_HIGH="high";k.LABEL_LOW="low";k.LABEL_AXIS="axis";k.Cy={inside:1,outside:1,cross:1};k.Hg={axis:1,high:1,low:1};k.Yj=1;k.fw=2;k.Hw=4;k.Pf=3;k.BF=7;k.Ux=8;k.vk=6;k.Tu=5;k.nz=[k.Pf,k.Hw,k.fw,k.Yj,k.fw,k.Yj,k.Pf,k.Hw,k.Ux,k.vk,k.BF,k.Tu];k.Le=10;k.Tw=50;k.nj=12;k.percent=function(c){return c+"%";};k.scientific=function(l,j){if(l==0)return "0";if(j==null)j=2;var cb=l<0;l=Math.abs(l);var U=Math.floor(Math.log(l)/Math.LN10);var ac=U!=0?l/Math.pow(10,U):l;ac=ac.toString();var oc=ac.indexOf(".");if(oc>=0){if(ac.length-oc-1>j)ac=ac.substring(0,oc+1+j);}return (cb?"-":"")+ac+"e"+U;};q.init=function(l,o,f){this.jsxsuper(l);this.horizontal=o!=null?jsx3.Boolean.valueOf(o):null;this.primary=f!=null?jsx3.Boolean.valueOf(f):null;this.length=100;this.showAxis=jsx3.Boolean.TRUE;this.axisStroke="#000000";this.showLabels=jsx3.Boolean.TRUE;this.labelGap=3;this.labelRotation=0;this.labelPlacement=k.LABEL_AXIS;this.tickLength=3;this.tickPlacement=k.TICK_OUTSIDE;this.tickStroke="#000000";this.minorTickDivisions=4;this.minorTickLength=3;this.minorTickPlacement=k.TICK_NONE;this.minorTickStroke=null;this.labelFunction=null;this.labelClass=null;this.labelStyle=null;this.labelColor=null;this.displayWidth=null;};q.a1=jsx3.Method.newAbstract("index");q.RQ=jsx3.Method.newAbstract();q.vX=jsx3.Method.newAbstract();q.g6=jsx3.Method.newAbstract();q.getHorizontal=function(){return this.horizontal;};q.setHorizontal=function(n){this.horizontal=n;};q.sX=function(){return this.primary;};q.SQ=function(g){this.primary=g;};q.getLength=function(){return this.length;};q.setLength=function(j){this.length=j;};q.getShowAxis=function(){return this.showAxis;};q.setShowAxis=function(e){this.showAxis=e;};q.getLabelFunction=function(){return this.o_("labelFunction");};q.setLabelFunction=function(p){this.uR("labelFunction",p);};q.getAxisStroke=function(){return this.axisStroke;};q.setAxisStroke=function(l){this.axisStroke=l;};q.getShowLabels=function(){return this.showLabels;};q.setShowLabels=function(h){this.showLabels=h;};q.getLabelGap=function(){return this.labelGap;};q.setLabelGap=function(b){this.labelGap=b;};q.getLabelRotation=function(){return this.labelRotation;};q.setLabelRotation=function(r){this.labelRotation=r;};q.getLabelPlacement=function(){return this.labelPlacement;};q.setLabelPlacement=function(p){if(k.Hg[p]){this.labelPlacement=p;}else{throw new jsx3.IllegalArgumentException("labelPlacement",p);}};q.getTickLength=function(){return this.tickLength;};q.setTickLength=function(l){this.tickLength=l;};q.getTickPlacement=function(){return this.tickPlacement;};q.setTickPlacement=function(o){if(k.Cy[o]||o==k.TICK_NONE){this.tickPlacement=o;}else{throw new jsx3.IllegalArgumentException("tickPlacement",o);}};q.getTickStroke=function(){return this.tickStroke;};q.setTickStroke=function(m){this.tickStroke=m;};q.getMinorTickDivisions=function(){return this.minorTickDivisions;};q.setMinorTickDivisions=function(l){this.minorTickDivisions=l;};q.getMinorTickLength=function(){return this.minorTickLength;};q.setMinorTickLength=function(r){this.minorTickLength=r;};q.getMinorTickPlacement=function(){return this.minorTickPlacement;};q.setMinorTickPlacement=function(d){if(k.Cy[d]||d==k.TICK_NONE){this.minorTickPlacement=d;}else{throw new jsx3.IllegalArgumentException("minorTickPlacement",d);}};q.getMinorTickStroke=function(){return this.minorTickStroke;};q.setMinorTickStroke=function(f){this.minorTickStroke=f;};q.getLabelClass=function(){return this.labelClass;};q.setLabelClass=function(s){this.labelClass=s;};q.getLabelStyle=function(){return this.labelStyle;};q.setLabelStyle=function(e){this.labelStyle=e;};q.getLabelColor=function(){return this.labelColor;};q.setLabelColor=function(b){this.labelColor=b;};q.getDisplayWidth=function(){if(this.displayWidth!=null){return this.displayWidth;}else{return this.horizontal?k.nj:k.Tw;}};q.setDisplayWidth=function(p){this.displayWidth=p;};q.updateView=function(){this.jsxsuper();var J=this.l5();var fc=this.getWidth();var rc=this.getHeight();var zc=this.getOpposingAxis();if(zc==null)return;var Mc=this.Uq(zc);this.A3();if(this.showAxis){var z=new dc.Line(0,0,0,0,0,0);J.appendChild(z);var tc=sc.valueOf(this.axisStroke);if(tc==null)tc=new sc();z.setStroke(tc);if(this.horizontal)z.fS(0,Mc,this.length,Mc);else z.fS(Mc,0,Mc,this.length);}var Fc=this.RQ();if(k.Cy[this.tickPlacement]&&this.tickLength>0){var U=new dc.LineGroup(0,0,fc,rc);J.appendChild(U);var tc=sc.valueOf(this.tickStroke);U.setStroke(tc);var N=this.si(this.tickPlacement,this.tickLength);var R=N[0];var C=Mc+N[1];this.S7(U,Fc,C,R);}if(k.Cy[this.minorTickPlacement]&&this.minorTickLength>0){var ub=new dc.LineGroup(0,0,fc,rc);J.appendChild(ub);var tc=sc.valueOf(this.minorTickStroke);ub.setStroke(tc);var N=this.si(this.minorTickPlacement,this.minorTickLength);var R=N[0];var C=Mc+N[1];var Qb=0;for(var Nc=0;Nc<Fc.length;Nc++){var Fb=this.RY(Fc,Nc);this.S7(ub,Fb,C,R);Qb=Fc[Nc];}if(Qb<this.length){var Fb=this.RY(Fc,Fc.length);this.S7(ub,Fb,C,R);}}var _=this.Yh(Mc);var wc=this.getAxisTitle();if(wc!=null&&wc.getDisplay()!=jsx3.gui.Block.DISPLAYNONE){var yb=_[5];var O=this.horizontal&&this.primary||!this.horizontal&&!this.primary?0:-1;if(this.horizontal){var kb=yb+O*wc.getPreferredHeight();wc.setDimensions(0,kb,this.length,wc.getPreferredHeight());}else{var B=yb+O*wc.getPreferredWidth();wc.setDimensions(B,0,wc.getPreferredWidth(),this.length);}wc.updateView();J.appendChild(wc.l5());}if(this.showLabels){var Kc=this.w4();var K=new dc.Group(0,0,fc,rc);J.appendChild(K);var Lb=_[0];var W=_[1];var O=_[2];this._jsxQE=null;for(var Nc=0;Nc<Kc.length;Nc++){var G=Kc[Nc];var Db=null;if(this.horizontal){var Q=Nc>0?(Kc[Nc-1]+Kc[Nc])/2:null;var ob=Nc<Kc.length-1?(Kc[Nc+1]+Kc[Nc])/2:null;if(ob==null&&Q!=null)ob=2*Kc[Nc]-Q;else{if(Q==null&&ob!=null)Q=2*Kc[Nc]-ob;}if(ob==null){Q=Kc[Nc]-50;ob=Kc[Nc]+50;}Db=Math.round(ob-Q);}else{Db=this.getDisplayWidth()-this.mj()-this.labelGap;}if(this.horizontal){var Mb=Math.round(G-Db/2);var Sb=W+O*Math.round(k.Le/2);this.nq(K,Mb,Sb,Mb+Db,Sb,this.Qu(Nc));}else{var Mb=O==1?W:W-Db;this.nq(K,Mb,G,Mb+Db,G,this.Qu(Nc));}}}};q.nq=function(j,n,b,i,p,h){if(!(h&&h.toString().match(/\S/)))return;var Dc=new dc.TextLine(n,b,i,p,h);Dc.setClassName(this.labelClass);Dc.setExtraStyles(this.labelStyle);Dc.setColor(this.labelColor);j.appendChild(Dc);};q.Qu=function(m){var eb=this.a1(m);var jb=this.getLabelFunction();return jb!=null?jb.call(null,eb):eb!=null?eb.toString():"";};q.mj=function(){var lc=this.tickPlacement==k.TICK_OUTSIDE||this.tickPlacement==k.TICK_CROSS?this.tickLength:0;var hc=this.minorTickPlacement==k.TICK_OUTSIDE||this.minorTickPlacement==k.TICK_CROSS?this.minorTickLength:0;return Math.max(lc,hc);};q.Uq=function(r){if(r==null){r=this.getOpposingAxis();if(r==null)return 0;}if(r.vX())return r.getCoordinateFor(0);else{if(this.primary)return this.horizontal?r.getLength():0;else return this.horizontal?0:r.getLength();}};q.si=function(g,h){var K=0;if(g==k.TICK_CROSS){K=-1*h;h=h*2;}else{var Ub=0;if(this.horizontal)Ub++;if(this.primary)Ub++;if(g==k.TICK_INSIDE)Ub++;if(Ub%2==1)K=-1*h;}return [h,K];};q.Yh=function(n){var Eb=this.getOpposingAxis();if(n==null)n=this.Uq(Eb);var lc=0;if(this.horizontal)lc=lc|1;if(this.primary)lc=lc|2;if(this.labelPlacement==k.LABEL_LOW)lc=lc|4;else{if(this.labelPlacement==k.LABEL_AXIS)lc=lc|8;}var Ob=k.nz[lc];var Sb=0;var Lb=0;if(this.tickPlacement==k.TICK_OUTSIDE||this.tickPlacement==k.TICK_CROSS)Sb=this.tickLength;if(this.tickPlacement==k.TICK_INSIDE||this.tickPlacement==k.TICK_CROSS)Lb=this.tickLength;if(this.minorTickPlacement==k.TICK_OUTSIDE||this.minorTickPlacement==k.TICK_CROSS)Sb=Math.max(Sb,this.minorTickLength);if(this.minorTickPlacement==k.TICK_INSIDE||this.minorTickPlacement==k.TICK_CROSS)Lb=Math.max(Lb,this.minorTickLength);var Db=null,y=null,Kb=null;switch(Ob){case k.Yj:case k.Pf:y=-1;Db=-this.labelGap;Db=Db-Math.max(0,Sb-n);break;case k.fw:case k.Hw:y=1;Db=Eb.getLength()+this.labelGap;Db=Db+Math.max(0,Sb+n-Eb.getLength());break;case k.BF:case k.vk:y=-1;Db=n-this.labelGap-Sb;break;case k.Ux:case k.Tu:y=1;Db=n+this.labelGap+Sb;break;default:hb.LOG.error("bad placement value: "+Ob);}if(this.showLabels){if(this.horizontal)Kb=Db+y*k.Le;else Kb=Db+y*this.getDisplayWidth();}else{Kb=Db;}if(this.horizontal&&this.primary||!this.horizontal&&!this.primary){Kb=Math.max(Kb,Eb.getLength());}else{Kb=Math.min(Kb,0);}return [Ob,Db,y,Sb,Lb,Kb];};q.x1=function(){var H=0,Bc=0;var Lc=this.getOpposingAxis();if(Lc==null)return [0,0];var yc=this.Uq(Lc);var Mc=this.Yh(yc);var z=this.getAxisTitle();var fc=Mc[1];var jb=Mc[2];var K=Mc[3];var Ub=Mc[4];if(this.showLabels){if(this.horizontal)fc=fc+jb*k.Le;else fc=fc+jb*this.getDisplayWidth();}if(fc<0){H=-fc;}else{if(fc>Lc.getLength()){Bc=fc-Lc.getLength();}}if(Ub>this.length-yc)Bc=Math.max(Bc,Ub+this.length-yc);if(K>-yc)H=Math.max(H,K-yc);if(z!=null&&z.getDisplay()!=jsx3.gui.Block.DISPLAYNONE){if(this.horizontal)Bc=Bc+z.getPreferredHeight();else H=H+z.getPreferredWidth();}return [H,Bc];};q.S7=function(e,h,o,g){if(this.horizontal){for(var u=0;u<h.length;u++)e.aT(h[u],o,0,g);}else{for(var u=0;u<h.length;u++)e.aT(o,h[u],g,0);}};q.w4=function(){return this.RQ();};q.RY=function(a,o){var Fc=[];if(o==0){return [];}else{if(o==a.length){return [];}else{var Y=a[o-1];var fc=a[o];for(var jc=1;jc<this.minorTickDivisions;jc++){Fc.push(Math.round(Y+jc/this.minorTickDivisions*(fc-Y)));}}}return Fc;};q.getAxisTitle=function(){return hb.ChartLabel?this.getFirstChildOfType(hb.ChartLabel):null;};q.getOpposingAxis=function(){var B=this.getChart();if(B==null)return null;if(this.horizontal){if(this.primary){return B.getPrimaryYAxis();}else{return B.getSecondaryYAxis();}}else{if(this.primary){return B.getPrimaryXAxis();}else{return B.getSecondaryXAxis();}}};q.onSetChild=function(f){if((hb.ChartLabel&&f instanceof hb.ChartLabel)&&this.getAxisTitle()==null){f.setLabelRotation(this.horizontal?hb.ChartLabel.ROTATION_NORMAL:hb.ChartLabel.ROTATION_CCW);return true;}return false;};q.onSetParent=function(c){return hb.Chart&&c instanceof hb.Chart;};q.toString=function(){return "[Axis '"+this.getName()+"']";};k.getVersion=function(){return hb.q2;};});jsx3.require("jsx3.chart.Axis");jsx3.Class.defineClass("jsx3.chart.LinearAxis",jsx3.chart.Axis,null,function(n,d){n.MIN_INTERVALS=5;n.MAX_INTERVALS=11;n.Tf=200;n.Qs=1.1;n.Qc=0;n.fj=100;n.pm=20;d.init=function(e,c,r){this.jsxsuper(e,c,r);this.autoAdjust=jsx3.Boolean.TRUE;this.baseAtZero=jsx3.Boolean.TRUE;this.min=null;this.max=null;this.interval=null;this.xI("a_",n.Qc);this.xI("kU",n.fj);this.xI("G4",n.pm);};d.getAutoAdjust=function(){return this.autoAdjust;};d.setAutoAdjust=function(j){this.autoAdjust=j;};d.getBaseAtZero=function(){return this.baseAtZero;};d.setBaseAtZero=function(i){this.baseAtZero=i;};d.getMin=function(){return this.min;};d.setMin=function(q){this.min=q;};d.getMax=function(){return this.max;};d.setMax=function(k){this.max=k;};d.getInterval=function(){return this.interval;};d.setInterval=function(c){this.interval=c;};d.g6=function(){var ob=false;if(this.autoAdjust)ob=this.Pd();if(!ob){this.xI("a_",this.min!=null?this.min:n.Qc);this.xI("kU",this.max!=null?this.max:n.fj);this.xI("G4",this.interval!=null?this.interval:n.pm);}};d.Pd=function(){var qb=this.getChart();if(qb==null)return false;var Ic=qb.getRangeForAxis(this);var bc,Ab;if(Ic==null){jsx3.chart.LOG.debug("no range for axis "+this+" in chart "+qb);if(this.min!=null||this.max!=null){bc=this.min||n.Qc;Ab=this.max||bc+n.fj;}else{return false;}}else{bc=Ic[0];Ab=Ic[1];}var ic=null,B=null,R=null;if(this.min!=null)ic=this.min;else{if(bc>=0&&this.baseAtZero)ic=0;}if(this.max!=null)B=this.max;else{if(Ab<=0&&this.baseAtZero)B=0;}R=this.interval;if(R==null){var Ub=1;var N=null,Nc=null;if(ic!=null){N=ic;}else{N=bc;Ub=Ub*n.Qs;}if(B!=null){Nc=B;}else{Nc=Ab;Ub=Ub*n.Qs;}var Cb=Nc-N;var tc=Cb*Ub;R=1;if(tc>0){tc=tc/n.MIN_INTERVALS;while(tc<1){R=R/10;tc=tc*10;}while(tc>10){R=R*10;tc=tc/10;}if(tc>5){R=R*5;}else{if(tc>2){R=R*2;}}}}if(ic==null){var Q=bc-(n.Qs-1)*(Ab-bc)/2;ic=R*Math.floor(Q/R);if(B!=null){ic=ic-B%R;}}if(B==null){var S=Ab+(n.Qs-1)*(Ab-bc)/2;B=R*Math.ceil(S/R);if(ic!=null){B=B+ic%R;}}this.xI("a_",ic);this.xI("kU",B);this.xI("G4",R);return true;};d.a1=function(h){return this.Q0("a_")+h*this.Q0("G4");};d.RQ=function(){var Mb=this.Q0("kU");var Yb=this.Q0("a_");var W=this.Q0("G4");var Kb=[];var yc=Yb;while(yc<=Mb&&Kb.length<n.Tf){Kb.push(this.getCoordinateFor(yc));yc=yc+W;}return Kb;};d.vX=function(){return this.Q0("a_")<0&&this.Q0("kU")>0;};d.getCoordinateFor=function(m){var Lc=this.Q0("kU");var Yb=this.Q0("a_");if(m<Yb)return this.horizontal?0:this.length;if(m>Lc)return this.horizontal?this.length:0;var Ac=Math.round(this.length*(m-Yb)/(Lc-Yb));return this.horizontal?Ac:this.length-Ac;};d.getCoordinateForNoClip=function(a){var N=this.Q0("kU");var jb=this.Q0("a_");var ab=Math.round(a*1000)/1000;var Cc=this.length*((ab-jb)/(N-jb));return Math.round(this.horizontal?Cc:this.length-Cc);};d.toString=function(){return "[LinearAxis '"+this.getName()+"' hor:"+this.horizontal+" pri:"+this.primary+"]";};n.getVersion=function(){return jsx3.chart.q2;};});jsx3.require("jsx3.chart.Axis");jsx3.Class.defineClass("jsx3.chart.LogarithmicAxis",jsx3.chart.Axis,null,function(b,m){b.Tf=200;b.Qs=1;b.eo=0;b.jo=2;m.init=function(k,p,e){this.jsxsuper(k,p,e);this.autoAdjust=jsx3.Boolean.TRUE;this.baseAtZero=jsx3.Boolean.TRUE;this.showNegativeValues=jsx3.Boolean.FALSE;this.minExponent=null;this.maxExponent=null;this.base=10;this.majorDivisions=1;this.xI("wR",b.eo);this.xI("tQ",b.jo);};m.getAutoAdjust=function(){return this.autoAdjust;};m.setAutoAdjust=function(f){this.autoAdjust=f;};m.getBaseAtZero=function(){return this.baseAtZero;};m.setBaseAtZero=function(c){this.baseAtZero=c;};m.getShowNegativeValues=function(){return this.showNegativeValues;};m.setShowNegativeValues=function(o){this.showNegativeValues=o;};m.getMinExponent=function(){return this.minExponent;};m.setMinExponent=function(g){this.minExponent=g;};m.getMaxExponent=function(){return this.maxExponent;};m.setMaxExponent=function(j){this.maxExponent=j;};m.getBase=function(){return this.base;};m.setBase=function(l){this.base=l;};m.getMajorDivisions=function(){return this.majorDivisions;};m.setMajorDivisions=function(a){this.majorDivisions=a;};m.g6=function(){var S=false;if(this.autoAdjust)S=this.Pd();if(!S){this.xI("wR",this.minExponent!=null?this.minExponent:b.eo);this.xI("tQ",this.maxExponent!=null?this.maxExponent:b.jo);}};m.Pd=function(){var u=this.getChart();if(u==null)return false;var Db=u.getRangeForAxis(this);if(Db==null){jsx3.chart.LOG.debug("no range for axis "+this+" in chart "+u);return false;}var wb=Math.max(0,Db[0]);var I=Math.max(0,Db[1]);if(I==0){jsx3.chart.LOG.debug("range of axis "+this+" is all negative "+u);return false;}var qb=null,vb=null;if(this.minExponent!=null){qb=this.minExponent;}else{if(this.baseAtZero){qb=0;}}if(this.maxExponent!=null){vb=this.maxExponent;}wb=wb*b.Qs;I=I*b.Qs;if(qb==null){if(wb==0)qb=0;else qb=Math.floor(Math.log(wb)/Math.log(this.base));}if(vb==null){vb=Math.ceil(Math.log(I)/Math.log(this.base));}this.xI("wR",qb);this.xI("tQ",vb);return true;};m.a1=function(c){var fb=this.Q0("wR");var uc=Math.floor(fb+c/this.majorDivisions);var jb=c%this.majorDivisions;if(jb==0){return Math.pow(this.base,uc);}else{var Bc=Math.pow(this.base,uc);var Mb=Math.pow(this.base,uc+1);return Bc+jb*(Mb-Bc)/this.majorDivisions;}};m.RQ=function(){var S=this.Q0("wR");var fb=this.Q0("tQ");var wc=[];var vb=0;for(var gb=S;gb<=fb&&vb<b.Tf;gb++){var G=Math.pow(this.base,gb);if(gb>S){var Sb=Math.pow(this.base,gb-1);for(var Ic=1;Ic<this.majorDivisions;Ic++){var Cb=Sb+Ic*(G-Sb)/this.majorDivisions;wc.push(this.getCoordinateFor(Cb));vb++;}}wc.push(this.getCoordinateFor(G));vb++;}return wc;};m.RY=function(n,i){var B=[];if(i==0){return [];}else{if(i==n.length){return [];}else{var bc=this.a1(i-1);var rc=this.a1(i);for(var gb=1;gb<this.minorTickDivisions;gb++){var nb=bc+gb*(rc-bc)/this.minorTickDivisions;B.push(this.getCoordinateFor(nb));}}}return B;};m.vX=function(){return false;};m.getCoordinateFor=function(n){var Cc=this.Q0("wR");var hb=this.Q0("tQ");var B=null;if(n<=0){B=0;}else{var Y=Math.log(n)/Math.log(this.base);if(Y<Cc){B=0;}else{if(Y>hb){B=this.length;}else{B=Math.round(this.length*(Y-Cc)/(hb-Cc));}}}return this.horizontal?B:this.length-B;};m.getCoordinateForNoClip=function(o){var Eb=this.Q0("wR");var M=this.Q0("tQ");var E=null;if(o<=0){E=-1;}else{var X=Math.log(o)/Math.log(this.base);E=Math.round(this.length*(X-Eb)/(M-Eb));}return this.horizontal?E:this.length-E;};m.toString=function(){return "[LogarithmicAxis '"+this.getName()+"']";};b.getVersion=function(){return jsx3.chart.q2;};});jsx3.require("jsx3.chart.Axis");jsx3.Class.defineClass("jsx3.chart.CategoryAxis",jsx3.chart.Axis,null,function(q,b){q.TICKS_ALIGNED="aligned";q.TICKS_BETWEEN="between";q.Tf=200;q.Di={aligned:1,between:1};b.init=function(s,h,m){this.jsxsuper(s,h,m);this.tickAlignment=q.TICKS_BETWEEN;this.categoryField=null;this.paddingLow=null;this.paddingHigh=null;this.xI("dK",0);this.xI("uI",0);};b.getTickAlignment=function(){return this.tickAlignment;};b.setTickAlignment=function(p){if(q.Di[p]){this.tickAlignment=p;}else{throw new jsx3.IllegalArgumentException("tickAlignment",p);}};b.getCategoryField=function(){return this.categoryField;};b.setCategoryField=function(n){this.categoryField=n;};b.getPaddingLow=function(){return this.paddingLow!=null?this.paddingLow:0;};b.setPaddingLow=function(a){this.paddingLow=a;};b.getPaddingHigh=function(){return this.paddingHigh!=null?this.paddingHigh:0;};b.setPaddingHigh=function(c){this.paddingHigh=c;};b.g6=function(){this.qX("Y6");var Kb=this.getChart();if(Kb==null){this.xI("dK",0);this.xI("uI",0);}else{var Cb=Kb.aX(this,true);var rb=Kb.gH();this.xI("uI",Cb.length);this.xI("dK",rb!=null?rb.length:0);}};b.RQ=function(){var wc=this.Q0("Y6");if(wc!=null)return wc;var wb=this.Q0("dK");wc=[];if(wb<1)return wc;var Ec=this.getPaddingLow();var _=this.getPaddingHigh();var ac=this.tickAlignment==q.TICKS_BETWEEN?wb+1:wb;var N=ac-1;var hc=N+Ec+_;var Jb=this.length/hc;var Fb=Ec*Jb;for(var gb=0;gb<ac&&gb<q.Tf;gb++){wc.push(Math.round(Fb+gb*Jb));}this.xI("Y6",wc);return wc;};b.w4=function(){var V=this.Q0("dK");if(this.tickAlignment==q.TICKS_BETWEEN){var cb=this.RQ();var sc=[];for(var E=0;E<V;E++){sc[E]=Math.round((cb[E]+cb[E+1])/2);}return sc;}else{return this.RQ();}};b.a1=function(d){var rb=d;var x=this.getChart();if(this.categoryField&&x!=null){var Z=x.gH();if(Z!=null){var Yb=Z[d];if(Yb!=null)rb=Yb.getAttribute([this.categoryField]);}}return rb;};b.vX=function(){return false;};b.getRangeForCategory=function(f){var Gb=this.RQ();if(this.tickAlignment==q.TICKS_BETWEEN){if(f<0||f>=Gb.length-1)return null;else return [Gb[f],Gb[f+1]];}else{if(f<0||f>=Gb.length||Gb.length<2)return null;var Dc=f==0?Gb[1]-Gb[0]:Gb[f]-Gb[f-1];return [Math.round(Gb[f]-Dc/2),Math.round(Gb[f]+Dc/2)];}};b.getPointForCategory=function(r){var F=this.RQ();if(this.tickAlignment==q.TICKS_BETWEEN){if(r<0||r>=F.length-1)return null;else return Math.round((F[r]+F[r+1])/2);}else{return F[r];}};b.toString=function(){return "[CategoryAxis '"+this.getName()+"' hor:"+this.horizontal+" pri:"+this.primary+"]";};q.getVersion=function(){return jsx3.chart.q2;};});jsx3.require("jsx3.chart.ChartComponent","jsx3.chart.PointRenderer");jsx3.Class.defineClass("jsx3.chart.Legend",jsx3.chart.ChartComponent,null,function(n,q){var L=jsx3.vector;var Sb=jsx3.chart;n.DEFAULT_WIDTH=100;n.DEFAULT_HEIGHT=100;n.aA=1;n.Nh=3;n.qj=2;n.SHOW_SERIES=1;n.SHOW_CATEGORIES=2;n.yn=8;n.hB=6;q.init=function(k){this.jsxsuper(k);this.boxHeight=10;this.lineHeight=22;this.labelClass=null;this.labelStyle=null;this.backgroundFill=null;this.backgroundStroke=null;this.preferredWidth=null;this.preferredHeight=null;this.setMargin("10 10 10 4");this.setPadding("4 4 0 4");};q.getBoxHeight=function(){return this.boxHeight;};q.setBoxHeight=function(m){this.boxHeight=m;};q.getLineHeight=function(){return this.lineHeight;};q.setLineHeight=function(b){this.lineHeight=b;};q.getLabelClass=function(){return this.labelClass;};q.setLabelClass=function(i){this.labelClass=i;};q.getLabelStyle=function(){return this.labelStyle;};q.setLabelStyle=function(j){this.labelStyle=j;};q.getBackgroundFill=function(){return this.backgroundFill;};q.setBackgroundFill=function(b){this.backgroundFill=b;};q.getBackgroundStroke=function(){return this.backgroundStroke;};q.setBackgroundStroke=function(r){this.backgroundStroke=r;};q.getPreferredWidth=function(){return this.preferredWidth!=null?this.preferredWidth:n.DEFAULT_WIDTH;};q.setPreferredWidth=function(d){this.preferredWidth=d;};q.getPreferredHeight=function(){return this.preferredHeight!=null?this.preferredHeight:n.DEFAULT_HEIGHT;};q.setPreferredHeight=function(b){this.preferredHeight=b;};q.updateView=function(){this.jsxsuper();var Jb=this.l5();this.A3();var sc=this.getChart();var x=sc.getLegendEntryType();var cc=0;if(x==n.SHOW_SERIES){cc=sc.aO().length;}else{if(x==n.SHOW_CATEGORIES){var Cc=sc.gH();if(Cc!=null)cc=Cc.length;}}var B=this.getLegendTitle();var eb=B!=null&&B.getDisplay()!=jsx3.gui.Block.DISPLAYNONE?B.getPreferredHeight()+n.yn:0;var Qb=this.getMarginDimensions();var Lc=this.getPaddingDimensions();var Mc=this.getWidth()-Qb[1]-Qb[3];var Ab=Math.min(this.getHeight()-Qb[0]-Qb[2],eb+this.lineHeight*cc+Lc[0]+Lc[2]);var oc=Qb[3];var qb=Math.max(Qb[0],Math.round((this.getHeight()-Ab)/2));var Bb=new L.Group(oc,qb,Mc,Ab);Jb.appendChild(Bb);Bb.setZIndex(n.qj);if(this.backgroundFill||this.backgroundStroke){if(cc>0||B!=null&&B.getDisplay()!=jsx3.gui.Block.DISPLAYNONE){var ub=new L.Rectangle(oc,qb,Mc,Ab);ub.setZIndex(n.aA);Jb.appendChild(ub);var O=L.Fill.valueOf(this.backgroundFill);var R=L.Stroke.valueOf(this.backgroundStroke);ub.setFill(O);ub.setStroke(R);}}var z=qb+Lc[0];var mc=Mc-Lc[1]-Lc[3];if(B!=null&&B.getDisplay()!=jsx3.gui.Block.DISPLAYNONE){B.setDimensions(oc+Lc[3],z,mc,B.getPreferredHeight());B.setZIndex(n.Nh);B.updateView();Jb.appendChild(B.l5());z=z+eb;}z=z-qb;var S=oc+Lc[3]+this.boxHeight+n.hB;var mb=mc-this.boxHeight-n.hB;if(x==n.SHOW_SERIES&&cc>0){var M=sc.aO();for(var wb=0;wb<M.length;wb++){var bb=M[wb].getLegendRenderer();var Rb=oc+Lc[3];var O=M[wb].D7();var R=M[wb].qT(O);var ab=bb.render(Rb,z,Rb+this.boxHeight,z+this.boxHeight,O,R);ab.setId(this.getId()+"_b"+wb);Bb.appendChild(ab);var uc=this.mD(Bb,M[wb].getSeriesName(),this.labelClass,this.labelStyle,S,Math.round(z+this.boxHeight/2),mb);z=z+this.lineHeight;this.A3(ab,M[wb],null);this.A3(uc,M[wb],null);}}else{if(x==n.SHOW_CATEGORIES&&cc>0){var Cc=sc.gH();var bb=Sb.PointRenderer.BOX;var R=L.Stroke.valueOf(sc.getSeriesStroke());for(var wb=0;wb<Cc.length;wb++){var Rb=oc+Lc[3];var O=sc.t0(Cc[wb],wb);var lb=R==null&&O.KJ()?new L.Stroke(O.getColor()):R;var ab=bb.render(Rb,z,Rb+this.boxHeight,z+this.boxHeight,O,lb);ab.setId(this.getId()+"_b"+wb);Bb.appendChild(ab);var Zb=sc.getCategoryField();var H=Zb?Cc[wb].getAttribute(Zb):"";var uc=this.mD(Bb,H,this.labelClass,this.labelStyle,S,Math.round(z+this.boxHeight/2),mb);z=z+this.lineHeight;this.A3(ab,null,wb);this.A3(uc,null,wb);}}}};q.mD=function(e,h,j,d,p,s,m){var Jc=new L.TextLine(p,s,m,s,h);Jc.setClassName(j);Jc.setExtraStyles(d);if(!Jc.getTextAlign())Jc.setTextAlign("left");e.appendChild(Jc);return Jc;};q.getLegendTitle=function(){return Sb.ChartLabel?this.getFirstChildOfT

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -