23 lines
93 KiB
JavaScript
23 lines
93 KiB
JavaScript
/*!@license
|
|
* Infragistics.Web.ClientUI infragistics.piechart.js 19.1.20191.172
|
|
*
|
|
* Copyright (c) 2011-2019 Infragistics Inc.
|
|
*
|
|
* http://www.infragistics.com/
|
|
*
|
|
* Depends:
|
|
* jquery-1.4.4.js
|
|
* jquery.ui.core.js
|
|
* jquery.ui.widget.js
|
|
* infragistics.util.js
|
|
* infragistics.ext_core.js
|
|
* infragistics.ext_collections.js
|
|
* infragistics.dv_core.js
|
|
* infragistics.dv_geometry.js
|
|
* infragistics.dv_interactivity.js
|
|
* infragistics.dv_visualdata.js
|
|
* infragistics.ext_ui.js
|
|
*/
|
|
(function(factory){if(typeof define==="function"&&define.amd){define(["./infragistics.util","./infragistics.ext_core","./infragistics.ext_collections","./infragistics.dv_core","./infragistics.dv_geometry","./infragistics.dv_interactivity","./infragistics.dv_visualdata","./infragistics.ext_ui"],factory)}else{factory(igRoot)}})(function($){$.ig=$.ig||{};var $$t={};$.ig.globalDefs=$.ig.globalDefs||{};$.ig.globalDefs.$$q=$$t;$$0=$.ig.globalDefs.$$0;$$4=$.ig.globalDefs.$$4;$$1=$.ig.globalDefs.$$1;$$w=$.ig.globalDefs.$$w;$$r=$.ig.globalDefs.$$r;$$al=$.ig.globalDefs.$$al;$$ap=$.ig.globalDefs.$$ap;$$6=$.ig.globalDefs.$$6;$$a=$.ig.globalDefs.$$a;$.ig.$currDefinitions=$$t;$.ig.util.bulkDefine(["PieChartViewManager:a","LabelClickEventArgs:g","LabelClickEventHandler:h","SelectedItemChangedEventHandler:m","SelectedItemChangingEventHandler:n","SelectedItemsChangedEventHandler:o","SelectedItemsChangingEventHandler:p","SliceClickEventArgs:q","SliceClickEventHandler:r","PieChartFormatLabelHandler:s","PieLabel:t","PieChartBase:v","PieChartSliceSelector:w","PieSliceOthersContext:x","Slice:y","XamPieChart:z","PieChartBaseView:aa","PieSliceDataContext:ac","SliceView:ad","XamPieChartView:ae"]);var $a=$.ig.intDivide,$b=$.ig.util.cast,$c=$.ig.util.defType,$d=$.ig.util.defEnum,$e=$.ig.util.getBoxIfEnum,$f=$.ig.util.getDefaultValue,$g=$.ig.util.getEnumValue,$h=$.ig.util.getValue,$i=$.ig.util.intSToU,$j=$.ig.util.nullableEquals,$k=$.ig.util.nullableIsNull,$l=$.ig.util.nullableNotEquals,$m=$.ig.util.toNullable,$n=$.ig.util.toString$1,$o=$.ig.util.u32BitwiseAnd,$p=$.ig.util.u32BitwiseOr,$q=$.ig.util.u32BitwiseXor,$r=$.ig.util.u32LS,$s=$.ig.util.unwrapNullable,$t=$.ig.util.wrapNullable,$u=String.fromCharCode,$v=$.ig.util.castObjTo$t,$w=$.ig.util.compare,$x=$.ig.util.replace,$y=$.ig.util.stringFormat,$z=$.ig.util.stringFormat1,$0=$.ig.util.stringFormat2,$1=$.ig.util.stringCompare1,$2=$.ig.util.stringCompare2,$3=$.ig.util.stringCompare3,$4=$.ig.util.compareSimple,$5=$.ig.util.tryParseNumber,$6=$.ig.util.tryParseNumber1,$7=$.ig.util.numberToString,$8=$.ig.util.numberToString1,$9=$.ig.util.parseNumber;$d("SliceSelectionMode:f",false,false,{Manual:0,Single:1,Multiple:2});$d("OthersCategoryType:e",false,false,{Number:0,Percent:1});$d("LeaderLineType:d",false,false,{Straight:0,Arc:1,Spline:2});$d("LabelsPosition:c",false,false,{None:0,Center:1,InsideEnd:2,OutsideEnd:3,BestFit:4});$c("PieChartViewManager:a","Object",{_o:null,_q:null,_t:null,_s:null,_r:null,k:0,j:0,l:0,_ao:null,_e:null,_g:null,_f:null,_h:null,a:null,init:function(a){this.k=0;this.j=0;this.l=1;this.n=null;this.__toolTipObject=null;this.v=null;this.i=true;$.ig.$op.init.call(this);this.a=a},ab:function(){var a=this._o.rootWrapper().width();var b=this._o.rootWrapper().height();this.ad(a,b)},ad:function(a,b){this._c._bc=new $$a.ae(0,0,0,a,b);var c=this.a._a.actualPixelScalingRatio();if(c==this.l&&a==this.k&&b==this.j){return}this.k=a;this.j=b;this.l=c;this.a.a8()},n:null,aa:function(){var $self=this;if(this.n==null){this.n=function(a){var b=$self.a._a.pixelScalingRatio();var c=$self.a._a.actualPixelScalingRatio();if(!$.ig.util.isNaN(b)&&b!=0){return}if(window.devicePixelRatio!=window.undefined&&window.devicePixelRatio!=c){$self.a._a.actualPixelScalingRatio(window.devicePixelRatio)}};window.addEventListener("resize",this.n,false)}this.n(null)},x:function(a,b){var c=this.a._a.actualPixelScalingRatio();if(a!=this.k||b!=this.j||c!=this.l){this.k=a;this.j=b;this.l=this.a._a.actualPixelScalingRatio();this.an()}},an:function(){this._ao=new $$a.ae(0,0,0,this.k,this.j);var a=this.k;var b=this.j;var c=this.l;if(c!=1){a=Math.round(this.k*c);b=Math.round(this.j*c)}this._q.setAttribute("width",a.toString());this._q.setAttribute("height",b.toString());this._q.setStyleProperty("width",this.k.toString()+"px");this._q.setStyleProperty("height",this.j.toString()+"px");this._s.setAttribute("width",a.toString());this._s.setAttribute("height",b.toString());this._s.setStyleProperty("width",this.k.toString()+"px");this._s.setStyleProperty("height",this.j.toString()+"px");this._r.setAttribute("width",a.toString());this._r.setAttribute("height",b.toString());this._r.setStyleProperty("width",this.k.toString()+"px");this._r.setStyleProperty("height",this.j.toString()+"px");this._t.setAttribute("width",a.toString());this._t.setAttribute("height",b.toString());this._t.setStyleProperty("width",this.k.toString()+"px");this._t.setStyleProperty("height",this.j.toString()+"px");return this._ao},d:function(){return this.a._b._c},am:function(){var a=$.ig.DOMEventProxy.prototype.ct(this._o.rootWrapper());return{__x:a.left(),__y:a.top(),$type:$$a.$y.$type,getType:$.ig.$op.getType,getGetHashCode:$.ig.$op.getGetHashCode,typeName:$.ig.$op.typeName}},ag:function(a){if(this._o!=null){this._o.setTimeout(a,0)}else{window.setTimeout(a,0)}},b:function(){var $self=this;var a=new $$t.ab;var b;var c;var d=$.ig.BrushUtil.prototype.d("chart",this._o,b,c,null);b=d.p2;c=d.p3;a._a=b;a._b=c;this._o.startCSSQuery();a._f=function(){var $ret=new $$a.at;$ret.fill($self._o.getCssDefaultPropertyValue("ui-chart-innerlabels","color"));return $ret}();a._g=function(){var $ret=new $$a.at;$ret.fill($self._o.getCssDefaultPropertyValue("ui-chart-outerlabels","color"));return $ret}();this._o.endCSSQuery();a._c=$.ig.FontUtil.prototype.getFont(this._o);a._e=$.ig.DeviceUtils.prototype.g(6);a._i=function(){var $ret=new $$a.at;$ret.fill("#00000033");return $ret}();a._d=1;return a},ah:function(a){a.__stroke=function(){var $ret=new $$a.at;$ret.fill("#000000");return $ret}();a.__fill=function(){var $ret=new $$a.at;$ret.fill("#222222");return $ret}()},_c:null,ac:function(a){if(a==null){if(this._c!=null){this._c.an()}this._o=null;this._q=null;this._s=null;this._r=null;this._t=null;this._e=null;this._g=null;this._f=null;this._h=null;this._c=null;if(this.n!=null){window.removeEventListener("resize",this.n,false);this.n=null}return}var b=a;this._o=b;this.a.a9();this.a.bi();this._o.rootWrapper().setStyleProperty("position","relative");this._o.rootWrapper().addClass("ui-corner-all");this._o.rootWrapper().addClass("ui-widget-content");this._q=this._o.createElement("canvas");this._q.setStyleProperty("position","absolute");this._q.setStyleProperty("top","0px");this._q.setStyleProperty("left","0px");this._s=this._o.createElement("canvas");this._s.setStyleProperty("position","absolute");this._s.setStyleProperty("top","0px");this._s.setStyleProperty("left","0px");this._r=this._o.createElement("canvas");this._r.setStyleProperty("position","absolute");this._r.setStyleProperty("top","0px");this._r.setStyleProperty("left","0px");this._t=this._o.createElement("canvas");this._t.setStyleProperty("position","absolute");this._t.setStyleProperty("top","0px");this._t.setStyleProperty("left","0px");this._o.append(this._q);this._o.append(this._s);this._o.append(this._r);this._o.append(this._t);this._e=new $.ig.RenderingContext(new $.ig.CanvasViewRenderer,this._o.get2DCanvasContext(this._q));this._g=new $.ig.RenderingContext(new $.ig.CanvasViewRenderer,this._o.get2DCanvasContext(this._s));this._f=new $.ig.RenderingContext(new $.ig.CanvasViewRenderer,this._o.get2DCanvasContext(this._r));this._h=new $.ig.RenderingContext(new $.ig.CanvasViewRenderer,this._o.get2DCanvasContext(this._t));this._c=new $.ig.DOMEventProxy(this._t,this._o,false);var c=this._c;c.onMouseOver=$.ig.Delegate.prototype.combine(c.onMouseOver,this.a.aj.runOn(this.a));var d=this._c;d.onMouseLeave=$.ig.Delegate.prototype.combine(d.onMouseLeave,this.a.ai.runOn(this.a));var e=this._c;e.onMouseDown=$.ig.Delegate.prototype.combine(e.onMouseDown,this.a.ah.runOn(this.a));var f=this._c;f.onMouseUp=$.ig.Delegate.prototype.combine(f.onMouseUp,this.a.ak.runOn(this.a));this._c.ab(this.a._a.isSurfaceInteractionDisabled());this.ad(this._o.rootWrapper().width(),this._o.rootWrapper().height())},w:function(a){this._o.append(a)},ae:function(a){if(this._c==null){return}this._c.ab(a)},u:function(){return this._o},y:function(a){a.width(this.k);a.height(this.j)},__toolTipObject:null,v:null,i:false,aj:function(a){this.v=null;this.__toolTipObject=null;if(typeof a==="string"){this.v=a}else{this.__toolTipObject=a;if(this.__toolTipObject!=null){this.__toolTipObject.setStyleProperty("position","fixed");this.__toolTipObject.setStyleProperty("top","0");this.__toolTipObject.setStyleProperty("left","0");this.__toolTipObject.setStyleProperty("z-index","10000")}}},ai:function(pos_,context_){if(this.__toolTipObject!=null){if(this.i){this.w(this.__toolTipObject);this.i=false}context_.hideOthers=true;if(this.__toolTipObject.updateToolTip){this.__toolTipObject.updateToolTip(context_)}this.__toolTipObject.setOffset(pos_.__x,pos_.__y)}},z:function(a){if(this.__toolTipObject!=null){var context_=a;if(this.__toolTipObject.hideToolTip){this.__toolTipObject.hideToolTip(context_)}}},ak:function(style_){var a=null;var fillColor_=null;if(style_!=null){if(style_.fill){fillColor_=style_.fill}if(fillColor_!=null){a=$$a.$at.create(fillColor_)}}return a},al:function(style_){var a=null;var outlineColor_=null;if(style_!=null){if(style_.stroke){outlineColor_=style_.stroke}if(outlineColor_!=null){a=$$a.$at.create(outlineColor_)}}return a},m:function(style_){var actualOutlineThickness_=NaN;if(style_!=null){if(style_.strokeThickness){actualOutlineThickness_=style_.strokeThickness}}return actualOutlineThickness_},af:function(){},$type:new $.ig.Type("PieChartViewManager",$.ig.$ot)},true);$c("PieLegendTemplates:b","Object",{init:function(){$.ig.$op.init.call(this)},f:function(a){var b=a.data;var c=b.series();var d=c.legendItemBadgeTemplate();var e=b.legendLabel()!=null?b.legendLabel():b.itemLabel();if(e==null){e="Pie Item"}$.ig.LegendItemHelper.prototype.c(a.context,a.xPosition,a.yPosition,a.availableWidth,a.availableHeight,a.data,e.toString(),d,a.passInfo)},c:function(a){var b=a.data;var c=b.series();var d=c.legendItemBadgeTemplate();var e=b.legendLabel()!=null?b.legendLabel():b.itemLabel();if(e==null){e="Doughnut Item"}$.ig.LegendItemHelper.prototype.c(a.context,a.xPosition,a.yPosition,a.availableWidth,a.availableHeight,a.data,e.toString(),d,a.passInfo)},a:function(a){},d:function(a){},e:function(a){var b=a.data;var c=a.context;var d=new $.ig.RenderingContext(new $.ig.CanvasViewRenderer,c);var e=b.series();var f=b.itemBrush();var g=b.outline();var h=b.thickness();var i=new $$a.bv;i.width(a.availableWidth-h*2-2);i.height(a.availableHeight-h*2);i._n=h+1;i._o=h;i._ac=h;i.__fill=f;i.__stroke=g;d.v(i)},b:function(a){var b=a.data;var c=a.context;var d=new $.ig.RenderingContext(new $.ig.CanvasViewRenderer,c);var e=b.itemBrush();var f=b.outline();var g=b.thickness();var h=new $$a.bv;h.width(a.availableWidth-g*2-2);h.height(a.availableHeight-g*2);h._n=g+1;h._o=g;h._ac=g;h.__fill=e;h.__stroke=f;d.v(h)},$type:new $.ig.Type("PieLegendTemplates",$.ig.$ot)},true);$c("LabelClickEventArgs:g","EventArgs",{init:function(a,b){this.c=true;$$0.$w.init.call(this);this.slice(a)},_slice:null,slice:function(a){if(arguments.length===1){this._slice=a;return a}else{return this._slice}},item:function(){if(this.slice()!=null){return this.slice().dataContext()}else{return null}},allowSliceClick:function(a){if(arguments.length===1){this.c=a;return a}else{return this.c}},c:false,$type:new $.ig.Type("LabelClickEventArgs",$$0.$w.$type)},true);$c("SelectedItemChangedEventArgs:i","EventArgs",{_oldItem:null,oldItem:function(a){if(arguments.length===1){this._oldItem=a;return a}else{return this._oldItem}},_newItem:null,newItem:function(a){if(arguments.length===1){this._newItem=a;return a}else{return this._newItem}},init:function(a,b){$$0.$w.init.call(this);this.oldItem(a);this.newItem(b)},$type:new $.ig.Type("SelectedItemChangedEventArgs",$$0.$w.$type)},true);$c("SelectedItemChangingEventArgs:j","SelectedItemChangedEventArgs",{_cancel:false,cancel:function(a){if(arguments.length===1){this._cancel=a;return a}else{return this._cancel}},init:function(a,b){$$t.$i.init.call(this,a,b)},$type:new $.ig.Type("SelectedItemChangingEventArgs",$$t.$i.$type)},true);$c("SelectedItemsChangedEventArgs:k","EventArgs",{_oldItems:null,oldItems:function(a){if(arguments.length===1){this._oldItems=a;return a}else{return this._oldItems}},_newItems:null,newItems:function(a){if(arguments.length===1){this._newItems=a;return a}else{return this._newItems}},init:function(a,b){$$0.$w.init.call(this);this.oldItems(a);this.newItems(b)},$type:new $.ig.Type("SelectedItemsChangedEventArgs",$$0.$w.$type)},true);$c("SelectedItemsChangingEventArgs:l","SelectedItemsChangedEventArgs",{_cancel:false,cancel:function(a){if(arguments.length===1){this._cancel=a;return a}else{return this._cancel}},init:function(a,b){$$t.$k.init.call(this,a,b)},$type:new $.ig.Type("SelectedItemsChangingEventArgs",$$t.$k.$type)},true);$c("SliceClickEventArgs:q","EventArgs",{init:function(a,b){$$0.$w.init.call(this);this.slice(a);this.originalEvent(b);if(a==null){return}this.d=a.isSelected();this.c=a.isExploded()},_slice:null,slice:function(a){if(arguments.length===1){this._slice=a;return a}else{return this._slice}},isSelected:function(a){if(arguments.length===1){this.d=a;this.slice()._ai.fi(this.slice(),a);return a}else{return this.d}},d:false,isExploded:function(a){if(arguments.length===1){this.c=a;this.slice().isExploded(a);return a}else{return this.c}},c:false,isOthersSlice:function(){return this.slice().isOthersSlice()},dataContext:function(){if(this.slice()!=null){return this.slice().dataContext()}return null},_originalEvent:null,originalEvent:function(a){if(arguments.length===1){this._originalEvent=a;return a}else{return this._originalEvent}},$type:new $.ig.Type("SliceClickEventArgs",$$0.$w.$type)},true);$c("PieLabel:t","Control",{init:function(){$$a.$f.init.call(this)},_ah:null,_ao:null,_ai:0,_aj:null,_ap:null,_aq:null,_ag:0,ak:function(a){if(a._a.labelsPosition()==3){this._ao=a.bz(this);var b=$b($$a.$an.$type,this._aj);var c=b.ak();a._a.ff();var d=this._ah.isExploded()?this._ah.b5():this._ah.b7();var e=$.ig.GeometryUtil.prototype.k(d,this._ai,this._ah.a2()+a._a.labelExtent());var f=a._b0.width();if(a.y(b)+e.__x>f&&e.__x<f){while(c.length>0&&a.y(b)+e.__x>f){c=c.substr(0,c.length-1);b.ak(c)}if(c.length>3){c=c.substr(0,c.length-3);c=c+"..."}else{if(a.y("...")<this._ao.width()){c="..."}else{c=String.empty()}}}var g=new $$a.an;g.ak(c);this._aj=g}},al:function(){},am:function(){this._ap.__visibility=this._ah._ai.leaderLineVisibility()!=0?this._ah._ai.leaderLineVisibility():this._ah._aj.__visibility;var a;var b=this._ah._ai.leaderLineMargin();var c=$.ig.GeometryUtil.prototype.k(this._ah.b6(),this._ai,this._ah.a2());this._ap._aj=c.__x;this._ap._al=c.__y;if(this._ai<90||this._ai>=270){a={__x:this._ao.left(),__y:(this._ao.top()+this._ao.bottom())/2,$type:$$a.$y.$type,getType:$.ig.$op.getType,getGetHashCode:$.ig.$op.getGetHashCode,typeName:$.ig.$op.typeName}}else{a={__x:this._ao.right(),__y:(this._ao.top()+this._ao.bottom())/2,$type:$$a.$y.$type,getType:$.ig.$op.getType,getGetHashCode:$.ig.$op.getGetHashCode,typeName:$.ig.$op.typeName}}if(b>0){var d=$.ig.GeometryUtil.prototype.f(c,a);if(b<d){a=$.ig.GeometryUtil.prototype.m(a,c,b)}else{a=c}}this._ap._ak=a.__x;this._ap._am=a.__y},an:function(){this._aq.__visibility=this._ah._ai.leaderLineVisibility()!=0?this._ah._ai.leaderLineVisibility():this._ah._aj.__visibility;var a=this._ah.b6();var b=this._aq._aj._b.__inner[0];var c=b.__segments.__inner[0];var d=this._ah._ai.leaderLineMargin();var e=(this._ao.top()+this._ao.bottom())/2;var f=$.ig.GeometryUtil.prototype.k(a,this._ai,this._ah.a2());var g=$.ig.GeometryUtil.prototype.k(a,this._ai,this._ah.a2()+this._ah._ai.labelExtent()/2);var h;var i;var j;var k=e;if(this._ai<90&&this._ai>=0){h={__x:this._ao.left()-30,__y:k,$type:$$a.$y.$type,getType:$.ig.$op.getType,getGetHashCode:$.ig.$op.getGetHashCode,typeName:$.ig.$op.typeName};j={__x:this._ao.left(),__y:e,$type:$$a.$y.$type,getType:$.ig.$op.getType,getGetHashCode:$.ig.$op.getGetHashCode,typeName:$.ig.$op.typeName}}else if(this._ai<180&&this._ai>=90){h={__x:this._ao.right()+30,__y:k,$type:$$a.$y.$type,getType:$.ig.$op.getType,getGetHashCode:$.ig.$op.getGetHashCode,typeName:$.ig.$op.typeName};j={__x:this._ao.right(),__y:e,$type:$$a.$y.$type,getType:$.ig.$op.getType,getGetHashCode:$.ig.$op.getGetHashCode,typeName:$.ig.$op.typeName}}else if(this._ai<270&&this._ai>=180){h={__x:this._ao.right()+30,__y:k,$type:$$a.$y.$type,getType:$.ig.$op.getType,getGetHashCode:$.ig.$op.getGetHashCode,typeName:$.ig.$op.typeName};j={__x:this._ao.right(),__y:e,$type:$$a.$y.$type,getType:$.ig.$op.getType,getGetHashCode:$.ig.$op.getGetHashCode,typeName:$.ig.$op.typeName}}else{h={__x:this._ao.left()-30,__y:k,$type:$$a.$y.$type,getType:$.ig.$op.getType,getGetHashCode:$.ig.$op.getGetHashCode,typeName:$.ig.$op.typeName};j={__x:this._ao.left(),__y:e,$type:$$a.$y.$type,getType:$.ig.$op.getType,getGetHashCode:$.ig.$op.getGetHashCode,typeName:$.ig.$op.typeName}}if(d>0){var l=$.ig.GeometryUtil.prototype.f(f,j);if(d<l){i=$.ig.GeometryUtil.prototype.m(j,f,d);var m=g.__x-f.__x;var n=g.__y-f.__y;g=$.ig.GeometryUtil.prototype.m(g,f,d);var o=g.__x-f.__x;var p=g.__y-f.__y;if(m>0&&o<0||m<0&&o>0||n>0&&p<0||n<0&&p>0){g=f}h=$.ig.GeometryUtil.prototype.m(h,f,d);var q=$.ig.GeometryUtil.prototype.f(f,i)/$.ig.GeometryUtil.prototype.f(f,j);h.__x=f.__x+(h.__x-f.__x)*q;h.__y=f.__y+(h.__y-f.__y)*q}else{this._aq.__visibility=1;return}}else{i=j}if(this._ai<180&&this._ai>=0){if(g.__y>h.__y){g.__y=f.__y}}else{if(g.__y<h.__y){g.__y=f.__y}}b.__startPoint=f;if(this._ah._ai.leaderLineType()==1){c.e(f)}else{c.e(g)}c.f(h);c.g(i)},$type:new $.ig.Type("PieLabel",$$a.$f.$type)},true);$c("IndexCollection:u","ObservableCollection$1",{init:function(){$$4.$f.init.call(this,$$0.$aw.$type,0)},r:function(a,b){if(!this.contains(b)){$$4.$f.r.call(this,a,b)}},x:function(a,b){if(this.contains(b)){this.remove(b);this.r(a,b)}else{$$4.$f.x.call(this,a,b)}},$type:new $.ig.Type("IndexCollection",$$4.$f.$type.specialize($$0.$aw.$type))},true);$c("PieChartBase:v","Control",{ar:function(){return new $$t.aa(this)},e4:function(a){this._as=a},_as:null,init:function(){var $self=this;this.bh=false;this.bk=false;this.bj=false;this.bl=false;this.bi=false;this.bo=false;this.bn=false;this.bm=false;this.aj=new $$t.u;this.ak=new $$t.u;this.ca=NaN;this.b9=1;this.c1=null;$$a.$f.init.call(this);this._g3=$$a.$ae.empty();var a=this.ar();this.e4(a);a.az();this._ab=$$t.$v.$type;this._b2=new $$4.x($$0.$aw.$type,0);this._b1=new $$4.x($$0.$aw.$type,0);this._b0=new $$4.x($.ig.$op.$type,0);this.aw=function(b,c){$self.e8(b,c.propertyName(),c.oldValue(),c.newValue())};this.b5=function(b,c){$self.ff();$self.fe()};this.b6=function(b,c){if($self.allowSliceExplosion()){$self.e7();$self.e6();$self.ff();$self.fd()}};this.b7=function(b,c){$self.fh(c)};this.b8=function(b,c){$self.e0(c)};this.cv=function(b,c){$self.ei(c.action(),c.position(),c.count(),c.propertyName())};this.propertyUpdated=$.ig.Delegate.prototype.combine(this.propertyUpdated,this.aw);var b=this.selectedSlices();b.collectionChanged=$.ig.Delegate.prototype.combine(b.collectionChanged,this.b7);this.bl=true;var c=this.explodedSlices();c.collectionChanged=$.ig.Delegate.prototype.combine(c.collectionChanged,this.b6);this.bi=true;this.selectedItems(new $$4.d(0));var d=this.selectedItems();d.collectionChanged=$.ig.Delegate.prototype.combine(d.collectionChanged,this.b8);this.bg=function(){var $ret=new $.ig.Pool$1($$t.$y.$type);$ret.create($self._as.g.runOn($self._as));$ret.activate($self._as.bc.runOn($self._as));$ret.disactivate($self._as.be.runOn($self._as));$ret.destroy($self._as.bd.runOn($self._as));return $ret}();this.bf=function(){var $ret=new $.ig.Pool$1($$t.$t.$type);$ret.create($self._as.d.runOn($self._as));$ret.activate($self._as.ar.runOn($self._as));$ret.disactivate($self._as.at.runOn($self._as));$ret.destroy($self._as.as.runOn($self._as));return $ret}();this._av=new $$t.w(this)},bh:false,bk:false,bj:false,bl:false,bi:false,bo:false,bn:false,bm:false,aw:null,b5:null,b7:null,b6:null,b8:null,cv:null,a5:function(a){if(arguments.length===1){this.h($$t.$v.fx,a);return a}else{return this.c($$t.$v.fx)}},a9:null,be:function(a){if(arguments.length===1){if(this.a9!=a){var b=this.a9;this.a9=a;this.fa("ValueColumn",b,this.a9)}return a}else{return this.a9}},_cx:0,_cp:0,_cu:0,_b2:null,_b1:null,_b0:null,_cf:0,_bz:null,cc:function(){return Math.abs(this.innerExtent())>1?this.innerExtent():this.innerExtent()*100},_av:null,itemsSource:function(a){if(arguments.length===1){this.h($$t.$v.itemsSourceProperty,a);return a}else{return this.c($$t.$v.itemsSourceProperty)}},innerExtent:function(a){if(arguments.length===1){var b=a;if($.ig.util.isNaN(a)||Number.isInfinity(a)){b=0}if(a<0){b=0}if(a>100){b=100}this.h($$t.$v.innerExtentProperty,b);return a}else{return this.c($$t.$v.innerExtentProperty)}},valueMemberPath:function(a){if(arguments.length===1){this.h($$t.$v.valueMemberPathProperty,a);return a}else{return this.c($$t.$v.valueMemberPathProperty)}},labelMemberPath:function(a){if(arguments.length===1){this.h($$t.$v.labelMemberPathProperty,a);return a}else{return this.c($$t.$v.labelMemberPathProperty)}},legendLabelMemberPath:function(a){if(arguments.length===1){this.h($$t.$v.legendLabelMemberPathProperty,a);return a}else{return this.c($$t.$v.legendLabelMemberPathProperty)}},a7:null,ba:function(a){if(arguments.length===1){if(this.a7!=a){var b=this.ba();this.a7=a;this.fa("LabelColumn",b,this.ba())}return a}else{return this.a7}},a8:null,bb:function(a){if(arguments.length===1){if(this.a8!=a){var b=this.bb();this.a8=a;this.fa("LegendLabelColumn",b,this.bb())}return a}else{return this.a8}},labelsPosition:function(a){if(arguments.length===1){this.h($$t.$v.labelsPositionProperty,$$t.$c.getBox(a));return a}else{return $g(this.c($$t.$v.labelsPositionProperty))}},labelOuterColor:function(a){if(arguments.length===1){this.h($$t.$v.labelOuterColorProperty,a);return a}else{return this.c($$t.$v.labelOuterColorProperty)}},labelInnerColor:function(a){if(arguments.length===1){this.h($$t.$v.labelInnerColorProperty,a);return a}else{return this.c($$t.$v.labelInnerColorProperty)}},leaderLineVisibility:function(a){if(arguments.length===1){this.h($$t.$v.leaderLineVisibilityProperty,$$a.$aj.getBox(a));return a}else{return $g(this.c($$t.$v.leaderLineVisibilityProperty))}},leaderLineStyle:function(a){if(arguments.length===1){this.h($$t.$v.leaderLineStyleProperty,a);return a}else{return this.c($$t.$v.leaderLineStyleProperty)}},leaderLineType:function(a){if(arguments.length===1){this.h($$t.$v.leaderLineTypeProperty,$$t.$d.getBox(a));return a}else{return $g(this.c($$t.$v.leaderLineTypeProperty))}},leaderLineMargin:function(a){if(arguments.length===1){this.h($$t.$v.leaderLineMarginProperty,a);return a}else{return this.c($$t.$v.leaderLineMarginProperty)}},toolTip:function(a){if(arguments.length===1){this.h($$t.$v.toolTipProperty,a);return a}else{return this.c($$t.$v.toolTipProperty)}},othersCategoryThreshold:function(a){if(arguments.length===1){this.h($$t.$v.othersCategoryThresholdProperty,a);return a}else{return this.c($$t.$v.othersCategoryThresholdProperty)}},othersCategoryType:function(a){if(arguments.length===1){this.h($$t.$v.othersCategoryTypeProperty,$$t.$e.getBox(a));return a}else{return $g(this.c($$t.$v.othersCategoryTypeProperty))}},othersCategoryText:function(a){if(arguments.length===1){this.h($$t.$v.othersCategoryTextProperty,a);return a}else{return this.c($$t.$v.othersCategoryTextProperty)}},explodedRadius:function(a){if(arguments.length===1){this.h($$t.$v.explodedRadiusProperty,a);return a}else{return this.c($$t.$v.explodedRadiusProperty)}},cb:function(){var a=this.explodedRadius();if($.ig.util.isNaN(a)||Number.isInfinity(a)||a<0){return 0}if(a>1){return 1}return a},radiusFactor:function(a){if(arguments.length===1){this.h($$t.$v.radiusFactorProperty,a);return a}else{return this.c($$t.$v.radiusFactorProperty)}},ce:function(){var a=this.radiusFactor();if($.ig.util.isNaN(a)||Number.isInfinity(a)||a<0){return 0}if(a>1){return 1}return a},allowSliceSelection:function(a){if(arguments.length===1){this.h($$t.$v.allowSliceSelectionProperty,a);return a}else{return this.c($$t.$v.allowSliceSelectionProperty)}},allowSliceExplosion:function(a){if(arguments.length===1){this.h($$t.$v.allowSliceExplosionProperty,a);return a}else{return this.c($$t.$v.allowSliceExplosionProperty)}},explodedSlices:function(a){if(arguments.length===1){var b=this.aj;if(b!=null){var c=this.aj;c.collectionChanged=$.ig.Delegate.prototype.remove(c.collectionChanged,this.b6)}this.bi=false;this.aj=a;if(this.aj!=null){var d=this.aj;d.collectionChanged=$.ig.Delegate.prototype.combine(d.collectionChanged,this.b6);this.bi=true}if(this.allowSliceExplosion()){this.e7();this.e6();this.ff();this.fd()}return a}else{return this.aj}},aj:null,legend:function(a){if(arguments.length===1){this.h($$t.$v.legendProperty,a);return a}else{return this.c($$t.$v.legendProperty)}},labelExtent:function(a){if(arguments.length===1){this.h($$t.$v.labelExtentProperty,a);return a}else{return this.c($$t.$v.labelExtentProperty)}},startAngle:function(a){if(arguments.length===1){this.h($$t.$v.startAngleProperty,a);return a}else{return this.c($$t.$v.startAngleProperty)}},sweepDirection:function(a){if(arguments.length===1){this.h($$t.$v.sweepDirectionProperty,$$a.$bi.getBox(a));return a}else{return $g(this.c($$t.$v.sweepDirectionProperty))}},selectedSlices:function(a){if(arguments.length===1){var b=this.ak;b.collectionChanged=$.ig.Delegate.prototype.remove(b.collectionChanged,this.b7);this.bl=false;this.ak=a;if(this.ak!=null){var c=this.ak;c.collectionChanged=$.ig.Delegate.prototype.combine(c.collectionChanged,this.b7);this.bl=true}if(this.allowSliceSelection()){this.e7();this.e6();this.ff();this.fd();this.fe()}return a}else{return this.ak}},ak:null,othersCategoryStyle:function(a){if(arguments.length===1){this.h($$t.$v.othersCategoryStyleProperty,a);return a}else{return this.c($$t.$v.othersCategoryStyleProperty)}},selectedStyle:function(a){if(arguments.length===1){this.h($$t.$v.selectedStyleProperty,a);return a}else{return this.c($$t.$v.selectedStyleProperty)}},toolTipStyle:function(a){if(arguments.length===1){this.h($$t.$v.toolTipStyleProperty,a);return a}else{return this.c($$t.$v.toolTipStyleProperty)}},brushes:function(a){if(arguments.length===1){this.h($$t.$v.brushesProperty,a);return a}else{return this.c($$t.$v.brushesProperty)}},outlines:function(a){if(arguments.length===1){this.h($$t.$v.outlinesProperty,a);return a}else{return this.c($$t.$v.outlinesProperty)}},legendItemTemplate:function(a){if(arguments.length===1){this.h($$t.$v.legendItemTemplateProperty,a);return a}else{return this.c($$t.$v.legendItemTemplateProperty)}},legendItemBadgeTemplate:function(a){if(arguments.length===1){this.h($$t.$v.legendItemBadgeTemplateProperty,a);return a}else{return this.c($$t.$v.legendItemBadgeTemplateProperty)}},labelTemplate:function(a){if(arguments.length===1){this.h($$t.$v.labelTemplateProperty,a);return a}else{return $b($$a.$k.$type,this.c($$t.$v.labelTemplateProperty))}},isSurfaceInteractionDisabled:function(a){if(arguments.length===1){this.h($$t.$v.isSurfaceInteractionDisabledProperty,a);return a}else{return this.c($$t.$v.isSurfaceInteractionDisabledProperty)}},bs:function(){return this.formatLabel()!=null},bt:function(){return this.formatLegendLabel()!=null},formatLabel:function(a){if(arguments.length===1){this.h($$t.$v.formatLabelProperty,a);return a}else{return this.c($$t.$v.formatLabelProperty)}},formatLegendLabel:function(a){if(arguments.length===1){this.h($$t.$v.formatLegendLabelProperty,a);return a}else{return this.c($$t.$v.formatLegendLabelProperty)}},ca:0,pixelScalingRatio:function(a){if(arguments.length===1){var b=this.ca;this.ca=a;this.fa("PixelScalingRatio",b,this.ca);return a}else{return this.ca}},b9:0,actualPixelScalingRatio:function(a){if(arguments.length===1){var b=this.b9;this.b9=a;this.fa("ActualPixelScalingRatio",b,this.b9);return a}else{return this.b9}},selectionMode:function(a){if(arguments.length===1){this.h($$t.$v.selectionModeProperty,$$t.$f.getBox(a));return a}else{return $g(this.c($$t.$v.selectionModeProperty))}},selectedItem:function(a){if(arguments.length===1){this.h($$t.$v.selectedItemProperty,a);return a}else{return this.c($$t.$v.selectedItemProperty)}},_selectedItems:null,selectedItems:function(a){if(arguments.length===1){this._selectedItems=a;return a}else{return this._selectedItems}},labelClick:null,ew:function(a,b){if(this.labelClick!=null){this.labelClick(a,b)}},selectedItemChanging:null,ey:function(a,b){if(this.selectedItemChanging!=null){this.selectedItemChanging(a,b)}},selectedItemsChanging:null,e1:function(a,b){if(this.selectedItemsChanging!=null){this.selectedItemsChanging(a,b)}},selectedItemChanged:null,ex:function(a,b){if(this.selectedItemChanged!=null){this.selectedItemChanged(a,b)}},selectedItemsChanged:null,ez:function(a,b){if(this.selectedItemsChanged!=null){this.selectedItemsChanged(a,b)}},sliceClick:null,e3:function(a,b){if(this.sliceClick!=null){this.sliceClick(a,b)}},bg:null,bf:null,ek:function(a,b){if(!this.bi){return}if(!this.explodedSlices().contains(a.a5())&&b){this.explodedSlices().add(a.a5())}if(this.explodedSlices().contains(a.a5())&&!b){this.explodedSlices().remove(a.a5())}},fi:function(a,b){this.bn=true;if(!this.selectedSlices().contains(a.a5())&&b){this.selectedSlices().add(a.a5())}if(this.selectedSlices().contains(a.a5())&&!b){this.selectedSlices().remove(a.a5())}this.bn=false},fj:function(a){this._as.ba(a)},cy:function(a){return this._as.ad(a)},g2:function(a,b){var c=new $$a.ae(0,0,0,0,0);return c},br:function(a,b){var c=a._ah;if(c==null){return false}var d=c.b6();var e=this.sweepDirection()==1?c.a3():c.ax();var f=this.sweepDirection()==1?c.ax():c.a3();var g=false;var h=false;var i=$.ig.GeometryUtil.prototype.k(d,e,c.a2());var j=$.ig.GeometryUtil.prototype.k(d,f,c.a2());e=$$t.$v.ch(i.__x,d.__x,i.__y,d.__y);f=$$t.$v.ch(j.__x,d.__x,j.__y,d.__y);if(this.bu(c)){h=true}var k;k=$.ig.MathUtil.prototype.e(a._ao.right()-d.__x,a._ao.top()-d.__y);if(k>c.a2()){return false}k=$.ig.MathUtil.prototype.e(a._ao.right()-d.__x,a._ao.bottom()-d.__y);if(k>c.a2()){return false}k=$.ig.MathUtil.prototype.e(a._ao.left()-d.__x,a._ao.top()-d.__y);if(k>c.a2()){return false}k=$.ig.MathUtil.prototype.e(a._ao.left()-d.__x,a._ao.bottom()-d.__y);if(k>c.a2()){return false}if(h){return true}if(e>f){e=e-360;g=true}var l;l=$$t.$v.ch(a._ao.right(),d.__x,a._ao.top(),d.__y);if(g&&l>180&&l<360){l=l-360}if(l<e||l>f){return false}l=$$t.$v.ch(a._ao.right(),d.__x,a._ao.bottom(),d.__y);if(g&&l>180&&l<360){l=l-360}if(l<e||l>f){return false}l=$$t.$v.ch(a._ao.left(),d.__x,a._ao.top(),d.__y);if(g&&l>180&&l<360){l=l-360}if(l<e||l>f){return false}l=$$t.$v.ch(a._ao.left(),d.__x,a._ao.bottom(),d.__y);if(g&&l>180&&l<360){l=l-360}if(l<e||l>f){return false}return true},cs:function(a){var b=Math.round(a*Math.pow(10,5))/Math.pow(10,5);return b},bu:function(a){return $$t.$v.cs(Math.abs(a.ax()-a.a3()))==360},ch:function(a,b,c,d){var e=$.ig.MathUtil.prototype.e(a-b,c-d);var f=Math.asin((c-d)/e)*180/Math.PI;if(a<b){f=180-f}if(a>b){f=360+f}if(f==360){f=0}return $.ig.GeometryUtil.prototype.g(f)},fo:function(a){var b=new Array(a.count());for(var c=0;c<a.count();c++){var d=a.__inner[c];var e=d._ah;var f=$.ig.GeometryUtil.prototype.k(e.b7(),d._ai,e.a2());b[c]=f.__y}for(var g=0;g<a.count();g++){for(var h=g+1;h<a.count();h++){if(b[g]>=b[h]){var i=a.__inner[g];a.__inner[g]=a.__inner[h];a.__inner[h]=i;var j=b[g];b[g]=b[h];b[h]=j}}}},fg:function(a){if(a.count()==0){return}var b=this._as._b0.width();var c=this._as._b0.height();var d=a.count();var e=a.__inner[0]._ah.a2();var f=a.__inner[0]._ah.b6();var g=true;var h=0;var i=Number.POSITIVE_INFINITY;var j=Number.NEGATIVE_INFINITY;for(var k=0;k<d-1;k++){var l=a.__inner[k];var m=a.__inner[k+1];if(l._ao.intersectsWith(m._ao)){h++}}var n=0;var p=a.getEnumerator();while(p.moveNext()){var o=p.current();i=Math.min(i,o._ao.height());j=Math.max(j,o._ao.height());n+=o._ao.height()}if(n>c){g=false}if(g&&h>0){for(var q=0;q<d-1;q++){for(var r=q+1;r<d;r++){var s=a.__inner[q];var t=a.__inner[r];if(s._ao.intersectsWith(t._ao)){var u=t._ao;u.y(Math.min(s._ao.bottom()+.01,c-i));var v=this.labelExtent()+e;
|
|
var w=Math.abs(f.__y-(u.y()+i/2));var x=Math.sqrt(Math.abs(v*v-w*w));var y=$.ig.GeometryUtil.prototype.g(t._ai);if(y>90&&y<270){x=(u.width()+x)*-1}u.x(f.__x+x);t._ao=u}}}for(var z=d-1;z>0;z--){for(var aa=z-1;aa>=0;aa--){var ab=a.__inner[z];var ac=a.__inner[aa];if(ab._ao.intersectsWith(ac._ao)){var ad=ac._ao;ad.y(Math.max(ab._ao.top()-i-.01,0));var ae=this.labelExtent()+e;var af=Math.abs(f.__y-(ad.y()+i/2));var ag=Math.sqrt(Math.abs(ae*ae-af*af));var ah=$.ig.GeometryUtil.prototype.g(ac._ai);if(ah>90&&ah<270){ag=(ad.width()+ag)*-1}ad.x(f.__x+ag);ac._ao=ad}}}}var aj=a.getEnumerator();while(aj.moveNext()){var ai=aj.current();var ak=ai._ao;if(ak.left()>b||ak.right()<0){ai.__visibility=1;if(this.leaderLineType()==0){ai._ap.__visibility=1}else{ai._aq.__visibility=1}}else if(ak.left()<0){var al=Math.abs(ak.x());ak.x(0);if(al>ak.width()){ak.width(0)}else{}ai._ao=ak}else if(ak.right()>b){var am=ak.right()-b;if(am>ak.width()){ak.width(0)}else{ak.width(ak.width()-am)}ai._ao=ak}}},ei:function(a,b,c,d){this.fc()},fc:function(){this.e5();this.e7();this.e6();this.ff();this.fd();this.fe();this._as.bp()},e5:function(){this._cu=0;this._cp=0;this._b2.clear();this._b1.clear();this._b0.clear();if(this.itemsSource()==null||this.a5()==null){return}if(this.be()==null||this.be().count()==0){return}var b=this.be().getEnumerator();while(b.moveNext()){var a=b.current();if($.ig.util.isNaN(a)||Number.isInfinity(a)||a<=0){continue}this._cu=this._cu+a}for(var c=0;c<this.be().count();c++){var d=this.be().item(c);var e=d<=0;if($.ig.util.isNaN(d)||Number.isInfinity(d)||e){continue}var f=this.othersCategoryType()==1?d/this._cu:d;var g=this.othersCategoryType()==1?this.othersCategoryThreshold()/100:this.othersCategoryThreshold();var h=true;if(f<=g&&h){this._cp=this._cp+d;this._b1.add(c);this._b0.add1(this.a5().item(c))}else{this._b2.add(c)}}},e7:function(){if(this.itemsSource()==null||this.a5()==null){this.bg.count(0);return}var a=this._b2.count();var b=this._b1.count()>0;var c=$$t.$v.cs(this._cf);var d=$$t.$v.cs(this._cf);if(b){a++}this._cx=a;for(var e=0;e<a;e++){var f=false;var g;if(e==a-1&&b){g=this._cp;f=true}else{g=this.be().item(this._b2.__inner[e])}if(this.sweepDirection()==1){d+=$$t.$v.cs(Math.abs(g)*360/this._cu)}else{d-=$$t.$v.cs(Math.abs(g)*360/this._cu)}var h=this.bg.item(e);h.aw(true);h.a3(c);h.ax(d);h.a1(h.a0(this.cc()));h.isOthersSlice(f);h.ay(this.cb());h.a5(e);h.dataContext(f?this._b0:this.a5().item(this._b2.__inner[e]));this._av.j(h);h.isExploded(this.bi?this.explodedSlices().contains(e):false);c=d;h.aw(false)}this.bg.count(a)},e6:function(){var $self=this;if(this.itemsSource()==null||this.a5()==null){this.bf.count(0);return}if(this.ba()==null||this.ba().count()==0||this.labelsPosition()==0){this.bf.count(0)}var a=this._b2.count();if(this._b1.count()>0){a++}this._as.au();var b=0;for(var c=0;c<a;c++){var d=String.empty();var e=false;var f;var g=null;if(c==a-1&&this._b1.count()>0){f=this.othersCategoryText();e=true;if(this.bs()){var h=function(){var $ret=new $$t.ac;$ret.series($self);$ret.item(e?$self._b0:$self.a5().item($self._b2.__inner[c]));$ret.percentValue($self.ck($self.bg.item(c)));$ret.isOthersSlice(e);return $ret}();if(f!=null){h.itemLabel(f.toString());h.legendLabel(f.toString())}var i=h;i=i.flatten();f=this.formatLabel()(i)}if(null!=f){d=f.toString()}else{d=this.othersCategoryText()}d=this.othersCategoryText()}else{if(this.ba()!=null&&this.ba().count()>=this._b2.count()){f=this.ba().item(this._b2.__inner[c])}else{f=null}g=this.bb()!=null&&this.bb().count()>0?this.bb().item(this._b2.__inner[c]):null;if(this.bs()){var j=function(){var $ret=new $$t.ac;$ret.series($self);$ret.item(e?$self._b0:$self.a5().item($self._b2.__inner[c]));$ret.itemLabel(f!=null?f.toString():null);$ret.legendLabel(g!=null?g.toString():f!=null?f.toString():null);$ret.percentValue($self.ck($self.bg.item(c)));$ret.isOthersSlice(e);return $ret}();var k=j;k=k.flatten();var formatedLabel_=this.formatLabel()(k);if(null==formatedLabel_&&this.ba()!=null&&this.ba().count()>0){f=this.ba().item(this._b2.__inner[c])}else{f=formatedLabel_}}var label_=f;var errorMsg_=this._as.af();if(label_===undefined){throw new Error(errorMsg_)}if(null!=f){d=f.toString()}else{d=null}}if(this.ba()!=null&&this.ba().count()>0){var l=this.bf.item(c);var m=this.bg.item(c);m._aj=l;l._ai=$.ig.GeometryUtil.prototype.g((m.a3()+m.ax())/2);l._ah=m;l._aj=function(){var $ret=new $$a.an;$ret.ak(d);return $ret}();if(this.labelTemplate()==null){l.dataContext(e?this._b0:this.a5().item(this._b2.__inner[c]));l.ak(this._as)}else{}l.__visibility=0;l._ao=this._as.bz(l);b++}if(this.bb()!=null&&this.bb().count()>0){var n=this.bg.item(c);n._bf=g!=null?g.toString():null}}this.bf.count(b)},_g3:null,ff:function(){if(this.itemsSource()==null||this.a5()==null){return}var a=this._as.b1();this._g3=new $$a.ae(0,0,0,a.width(),a.height());var b=this._as.aa();var c=this._as.z(this.selectedStyle());b=$.ig.util.isNaN(b)?0:b/2;c=$.ig.util.isNaN(c)?0:c/2;b=Math.max(c,b);var d=Math.min(a.width()/2,a.height()/2);var e={__x:a.width()/2,__y:a.height()/2,$type:$$a.$y.$type,getType:$.ig.$op.getType,getGetHashCode:$.ig.$op.getGetHashCode,typeName:$.ig.$op.typeName};var f=d*this.ce();var g=f+b;if(g>d){var h=g-d;f=f-h}var j=this.bg.active().getEnumerator();while(j.moveNext()){var i=j.current();var k=$.ig.GeometryUtil.prototype.j(a.width(),a.height(),true,(i.a3()+i.ax())/2,f*this.cb());i.aw(true);i.a1(i.a0(this.cc()));i.a2(f);i.ay(this.cb());i.b7(e);i.b5(k);this.fj(i);i.aw(false)}this._as.bp()},fd:function(){var a=this._as._b0.width();var b=this._as._b0.height();if(b==0||a==0){return}if(this.bf.active().count()==0||this.labelsPosition()==0){this.bf.count(0);return}var c=new $$4.x($$t.$t.$type,0);var d=new $$4.x($$t.$t.$type,0);var e=new $$4.x($$t.$t.$type,0);var f=new $$4.x($$t.$t.$type,0);var h=this.bf.active().getEnumerator();while(h.moveNext()){var g=h.current();var i=g._ah;if(i==null){continue}var j=i.b6();var k=g._ao.width();var l=g._ao.height();if(this.labelsPosition()==1||this.labelsPosition()==4){var m=i.a2()*i.a1()/100;var n=$.ig.GeometryUtil.prototype.k(j,g._ai,i.a2()-(i.a2()-m)/2);g._ao=new $$a.ae(0,n.__x-k/2,n.__y-l/2,k,l);var o=this.br(g,n);if(o||this.labelsPosition()==1){if(this.labelInnerColor()==null){i.f($$t.$y.bp)}else{i.b2(this.labelInnerColor())}i._au=true;e.add(g);g._ag=1;if(g._ah._ai.leaderLineType()==0){g._ap.__visibility=1}else{g._aq.__visibility=1}if(!o&&this.labelsPosition()==1){g.__visibility=1}else{g.__visibility=0}continue}}if(this.labelsPosition()==2||this.labelsPosition()==4){var p=$$t.$v.ci(j,i.a2(),g);var q=$.ig.GeometryUtil.prototype.k(j,g._ai,p);g._ao=new $$a.ae(0,q.__x-k/2,q.__y-l/2,k,l);var r=this.br(g,q);if(r||this.labelsPosition()==2){if(this.labelInnerColor()==null){i.f($$t.$y.bp)}else{i.b2(this.labelInnerColor())}i._au=true;f.add(g);g._ag=2;if(g._ah._ai.leaderLineType()==0){g._ap.__visibility=1}else{g._aq.__visibility=1}if(!r&&this.labelsPosition()==2){g.__visibility=1}else{g.__visibility=0}continue}}if(this.labelOuterColor()==null){i.f($$t.$y.bp)}else{i.b2(this.labelOuterColor())}i._au=false;var s=$.ig.GeometryUtil.prototype.k(j,g._ai,i.a2()+this.labelExtent());g._ag=3;g.__visibility=0;g.al();if(g._ai<90&&g._ai>=0){g._ao=new $$a.ae(0,s.__x,s.__y,k,l);c.add(g)}else if(g._ai<180&&g._ai>=90){g._ao=new $$a.ae(0,s.__x-k,s.__y,k,l);d.add(g)}else if(g._ai<270&&g._ai>=180){g._ao=new $$a.ae(0,s.__x-k,s.__y-l,k,l);d.add(g)}else{g._ao=new $$a.ae(0,s.__x,s.__y-l,k,l);c.add(g)}if(g._ao.y()<0){g._ao=new $$a.ae(0,g._ao.x(),0,g._ao.width(),g._ao.height())}if(g._ao.bottom()>b){g._ao=new $$a.ae(0,g._ao.x(),b-g._ao.height(),g._ao.width(),g._ao.height())}}$$t.$v.fo(c);this.fg(c);$$t.$v.fo(d);this.fg(d);var u=e.getEnumerator();while(u.moveNext()){var t=u.current();this._as.bk(t,t._ao.x(),t._ao.y())}var w=f.getEnumerator();while(w.moveNext()){var v=w.current();this._as.bk(v,v._ao.x(),v._ao.y())}var y=c.getEnumerator();while(y.moveNext()){var x=y.current();this._as.bk(x,x._ao.x(),x._ao.y());if(x._ah._ai.leaderLineType()==0){x.am()}else{x.an()}}var aa=d.getEnumerator();while(aa.moveNext()){var z=aa.current();this._as.bk(z,z._ao.x(),z._ao.y());if(z._ah._ai.leaderLineType()==0){z.am()}else{z.an()}}this._as.bp()},ci:function(a,b,c){var d=c._ai*Math.PI/180;var e=1;var f=$.ig.GeometryUtil.prototype.k({__x:0,__y:0,$type:$$a.$y.$type,getType:$.ig.$op.getType,getGetHashCode:$.ig.$op.getGetHashCode,typeName:$.ig.$op.typeName},c._ai,e);var g=$$t.$v.gz(c);var h=Math.sqrt(g.__x*g.__x+g.__y*g.__y);var i={__x:g.__x/h,__y:g.__y/h,$type:$$a.$y.$type,getType:$.ig.$op.getType,getGetHashCode:$.ig.$op.getGetHashCode,typeName:$.ig.$op.typeName};var j=$$t.$v.cj(f,i);var k=h/b;var l=j*k;var m=l;var n=$.ig.GeometryUtil.prototype.e({__x:0,__y:0,$type:$$a.$y.$type,getType:$.ig.$op.getType,getGetHashCode:$.ig.$op.getGetHashCode,typeName:$.ig.$op.typeName},f);var o=$.ig.GeometryUtil.prototype.e({__x:0,__y:0,$type:$$a.$y.$type,getType:$.ig.$op.getType,getGetHashCode:$.ig.$op.getGetHashCode,typeName:$.ig.$op.typeName},i);if(o<n){m=-m}var p=$.ig.GeometryUtil.prototype.k(a,(d+m)*180/Math.PI,b);var q=$$t.$v.gy(c,p);var r=Math.sqrt((q.__x-a.__x)*(q.__x-a.__x)+(q.__y-a.__y)*(q.__y-a.__y));var s=r-5;return s},gy:function(a,b){var c=$.ig.GeometryUtil.prototype.g(a._ai);var d=a._ao.width()/2;var e=a._ao.height()/2;if(c>=0&&c<=90){return{__x:b.__x-d,__y:b.__y-e,$type:$$a.$y.$type,getType:$.ig.$op.getType,getGetHashCode:$.ig.$op.getGetHashCode,typeName:$.ig.$op.typeName}}if(c>=90&&c<=180){return{__x:b.__x+d,__y:b.__y-e,$type:$$a.$y.$type,getType:$.ig.$op.getType,getGetHashCode:$.ig.$op.getGetHashCode,typeName:$.ig.$op.typeName}}if(c>=180&&c<=270){return{__x:b.__x+d,__y:b.__y+e,$type:$$a.$y.$type,getType:$.ig.$op.getType,getGetHashCode:$.ig.$op.getGetHashCode,typeName:$.ig.$op.typeName}}return{__x:b.__x-d,__y:b.__y+e,$type:$$a.$y.$type,getType:$.ig.$op.getType,getGetHashCode:$.ig.$op.getGetHashCode,typeName:$.ig.$op.typeName}},cj:function(a,b){var c=a.__x*b.__x+a.__y*b.__y;var d=Math.sqrt(a.__x*a.__x+a.__y*a.__y);var e=Math.sqrt(b.__x*b.__x+b.__y*b.__y);var f=Math.acos(c/(d*e));return f},gz:function(a){var b=$.ig.GeometryUtil.prototype.g(a._ai);var c=a._ao.width()/2;var d=a._ao.height()/2;if(b>=0&&b<=90){return{__x:c,__y:d,$type:$$a.$y.$type,getType:$.ig.$op.getType,getGetHashCode:$.ig.$op.getGetHashCode,typeName:$.ig.$op.typeName}}if(b>=90&&b<=180){return{__x:-c,__y:d,$type:$$a.$y.$type,getType:$.ig.$op.getType,getGetHashCode:$.ig.$op.getGetHashCode,typeName:$.ig.$op.typeName}}if(b>=180&&b<=270){return{__x:-c,__y:-d,$type:$$a.$y.$type,getType:$.ig.$op.getType,getGetHashCode:$.ig.$op.getGetHashCode,typeName:$.ig.$op.typeName}}return{__x:c,__y:-d,$type:$$a.$y.$type,getType:$.ig.$op.getType,getGetHashCode:$.ig.$op.getGetHashCode,typeName:$.ig.$op.typeName}},fe:function(){var $self=this;if(this.legend()==null||!this.legend().isItemwise()){return}if((this.ba()==null||this.ba().count()==0)&&(this.bb()==null||this.bb().count()==0)){this.legend().clearLegendItemsForSeries(this);return}this._bz=new $$4.x($$a.$c.$type,0);var b=this.bg.active().getEnumerator();while(b.moveNext()){var a=b.current();var c=new $$a.g;var d=this.cy(a);var e=this._as.br(a);var f=this._as.bs(a);c.content(function(){var $ret=new $$t.ac;$ret.series($self);$ret.slice(a);$ret.item(a.dataContext());$ret.itemBrush(e);$ret.outline(f);$ret.thickness(a.a4());$ret.itemLabel(d!=null?d.toString():null);$ret.legendLabel(a.isOthersSlice()?$self.othersCategoryText():a._bf!=null?a._bf:d!=null?d.toString():null);$ret.percentValue($self.ck(a));$ret.isOthersSlice(a.isOthersSlice());return $ret}());var g=c.content();if(this.bt()){var h=this.formatLegendLabel()(c.content());if(h!=null){g.legendLabel(h.toString())}}if(this.legendItemTemplate()!=null){c._ah=this.legendItemTemplate()}this._bz.add(c)}if(this.legend().isItemwise()){var i=this.legend();i.createItemwiseLegendItems(this._bz,this)}},exportVisualData:function(){var a=new $$t.af;a.viewport($.ig.RectData.prototype.b(this._g3));this._as.an(a);for(var b=0;b<this.bg.count();b++){var c=this.bg.item(b).am();a.slices().add(c);if(this.bg.item(b).isOthersSlice()){a.othersSlice(this.bg.item(b).am())}}a.others(this._b0);a.name(this.name());a.radiusFactor(this.ce());a.leaderLineMargin(this.leaderLineMargin());return a},exportSerializedVisualData:function(){var a=this.exportVisualData();a.scaleByViewport();return a.serialize()},bc:function(a){var b=null;return this.a5().registerColumn(a,b,false)},bd:function(a){var b=null;return this.a5().registerColumnObject(a,b,false)},e8:function(a,b,c,d){switch(b){case"ItemsSource":this.a5(function(){var $ret=new $.ig.FastItemsSource;$ret.itemsSource(d);return $ret}());break;case"FastItemsSource":if($b($.ig.FastItemsSource.prototype.$type,c)!=null){var e=c;e.event=$.ig.Delegate.prototype.remove(e.event,this.cv);this.bj=false;c.deregisterColumn(this.be());c.deregisterColumn(this.ba());this.be(null);this.ba(null);this.selectedItem(null);this.selectedItems().clear();if(this.selectedSlices()!=null){this.selectedSlices().clear()}$b($.ig.FastItemsSource.prototype.$type,c).deregisterColumn(this.bb());this.bb(null)}if($b($.ig.FastItemsSource.prototype.$type,d)!=null){var f=d;f.event=$.ig.Delegate.prototype.combine(f.event,this.cv);this.bj=true;this.be(this.bc(this.valueMemberPath()));this.ba(this.bd(this.labelMemberPath()));this.bb(this.bd(this.legendLabelMemberPath()));this.e7();if(this.selectedItem()!=null||this.selectedItems().count()>0){this.fq()}else if(this.selectedSlices()!=null&&this.selectedSlices().count()>0){this.fr()}}this.fc();break;case"ValueMemberPath":if(this.a5()!=null){this.a5().deregisterColumn(this.be());this.be(this.bc(this.valueMemberPath()))}break;case"LegendLabelMemberPath":if(this.a5()!=null){this.a5().deregisterColumn(this.bb());this.bb(this.bd(this.legendLabelMemberPath()));this.e6();this.fd();this.fe()}break;case"FormatLegendLabel":this.fe();break;case"FormatLabel":case"LabelMemberPath":if(this.a5()!=null){this.a5().deregisterColumn(this.ba());this.ba(this.bd(this.labelMemberPath()));this.e6();this.fd();this.fe()}break;case"StartAngle":this._cf=d;this.e7();this.e6();this.ff();this.fd();break;case"ToolTip":this._as.bn(this.toolTip());break;case"Legend":var g=$b($.ig.IChartLegend.prototype.$type,c);if(g!=null){g.clearLegendItemsForSeries(this)}this.fe();break;case"LegendItemBadgeTemplate":case"LegendItemTemplate":this.fe();break;case"RadiusFactor":case"ExplodedRadius":case"SweepDirection":this.e7();this.e6();this.ff();this.fd();break;case"OthersCategoryStyle":case"SelectedStyle":this.ff();this.fe();break;case"Brushes":if(c!=null){var h=c;h.collectionChanged=$.ig.Delegate.prototype.remove(h.collectionChanged,this.b5);this.bh=false}if(d!=null){var i=d;i.collectionChanged=$.ig.Delegate.prototype.combine(i.collectionChanged,this.b5);this.bh=true}this.ff();this.fe();break;case"Outlines":if(c!=null){var j=c;j.collectionChanged=$.ig.Delegate.prototype.remove(j.collectionChanged,this.b5);this.bk=false}if(d!=null){var k=d;k.collectionChanged=$.ig.Delegate.prototype.combine(k.collectionChanged,this.b5);this.bk=true}this.ff();this.fe();break;case"ValueColumn":case"OthersCategoryThreshold":case"OthersCategoryType":this.fc();this.fq();this.fr();break;case"AllowSliceExplosion":case"AllowSliceSelection":this.fc();break;case"LabelsPosition":this.e6();this.fd();this._as.bp();break;case"LabelInnerColor":case"LabelOuterColor":case"LabelExtent":this.e6();this.fd();break;case"OthersCategoryText":this.e6();this.fd();this.fe();break;case"LeaderLineVisibility":this.fd();break;case"LeaderLineStyle":this.fd();break;case"TextStyle":this._as.bf();break;case"PixelScalingRatio":if($.ig.util.isNaN($.ig.DeviceUtils.prototype.a(this.pixelScalingRatio()))){this.actualPixelScalingRatio(1)}else{this.actualPixelScalingRatio($.ig.DeviceUtils.prototype.a(this.pixelScalingRatio()))}break;case"ActualPixelScalingRatio":this._as.a1();break;case"LabelTemplate":this.e6();this.fd();break;case"LeaderLineType":case"LeaderLineMargin":this.bf.doToAll(this._as.bj.runOn(this._as));this.fd();break;case"IsSurfaceInteractionDisabled":this._as.a0();break;case"InnerExtent":this.fc();break;case"SelectedItem":if(!this.bn){this.e7();this.ff();this.fe()}break;case"SelectionMode":if($g(d)==1&&this.selectedItems()!=null&&this.selectedItems().count()>1){this.selectedItems().clear()}else if($g(d)==2&&this.selectedItem()!=null&&this.selectedItems()!=null){if(!this.selectedItems().contains1(this.selectedItem())){if($b($$t.$x.$type,this.selectedItem())!==null){var l=$b($$t.$x.$type,this.selectedItem());var n=l.data().getEnumerator();while(n.moveNext()){var m=n.current();this.selectedItems().add1(m)}}else{this.selectedItems().add1(this.selectedItem())}this.fr()}}this.fq();this.e7();this.ff();break}},fh:function(a){if(this.bo){return}this.fr();if(this.allowSliceSelection()){this.e7();this.ff();this.fe()}},e0:function(a){if(a.action()==4&&a.newItems()==null&&a.oldItems()==null){return}if(this.bn){return}this.fq();if(this.allowSliceSelection()){this.e7();this.ff();this.fe()}this.ez(this,new $$t.k(a.oldItems(),a.newItems()))},propertyChanged:null,propertyUpdated:null,fa:function(a,b,c){if(this.propertyChanged!=null){this.propertyChanged(this,new $$0.b7(a))}if(this.propertyUpdated!=null){this.propertyUpdated(this,new $.ig.PropertyUpdatedEventArgs(a,b,c))}},fr:function(){if(this.itemsSource()==null||this.bg.active().count()==0){return}this.bn=true;var a=this.selectedSlices().count();if(a==0){if(this.selectedItems().count()>0){this.selectedItems().clear()}if(this.selectedItem()!=null){this.selectedItem(null)}}if(this.selectionMode()==1){if(a!=0){var b=this.bg.active().__inner[this.selectedSlices().__inner[a-1]];if(b.isOthersSlice()){this.selectedItem(function(){var $ret=new $$t.x;$ret.data($b($$0.$bm.$type,b.dataContext()));$ret.slice(b);return $ret}())}else{this.selectedItem(b.dataContext())}}}else if(this.selectionMode()==2){if(a!=0){this.selectedItems().clear();var d=this.selectedSlices().getEnumerator();while(d.moveNext()){var c=d.current();var e=this.bg.active().__inner[c];if(e.isOthersSlice()){var f=$b($$0.$bt.$type,e.dataContext());var h=f.getEnumerator();while(h.moveNext()){var g=h.current();this._av.e(g)}}else{this._av.e(e.dataContext())}}this.selectedItem(this.bg.active().__inner[this.selectedSlices().__inner[a-1]].dataContext())}}this.bn=false},fq:function(){if(this.itemsSource()==null||this.bg.active().count()==0){return}this.bo=true;this.selectedSlices().clear();var b=this.bg.active().getEnumerator();while(b.moveNext()){var a=b.current();if(this._av.d(a)){this.selectedSlices().add(a.a5())}}this.bo=false},fm:function(a,b){this.fn(a,b,false)},fn:function(a,b,c){if(this.allowSliceSelection()){if(this.selectionMode()==1){this._av.k(a)}else if(this.selectionMode()==2){this._av.i(a)}}var d=new $$t.q(a,this._as.ae(b));this.e3(this,d);if(!c){this._as.bl(a,b)}},simulateLeftClick:function(a){this._as.ak(a)},bw:function(a,b){var c=new $$t.g(a,this._as.ae(b));this.ew(this,c);return c.allowSliceClick()},em:function(a,b){this._as.bl(a,b)},ep:function(a,b,c){this._as.bl(a,b)},eo:function(a,b){this.ep(a,b,false)},en:function(a,b){this._as.al()},e2:function(){this.fc()},provideContainer:function(a){this._as.ax(a)},onContainerResized:function(a,b){this._as.ay(a,b)},notifyContainerResized:function(){this._as.aw()},getContainerRect:function(){return this._as.by()},getContainerOffsets:function(){return this._as.bv()},destroy:function(){this.removeWidgetLevelDataSource();this._as.ax(null)},flush:function(){this._as.ao()},c1:null,textStyle:function(a){if(arguments.length===1){var b=this.c1;this.c1=a;this.fa("TextStyle",b,a);return a}else{return this.c1}},container:function(){return this},isStacked:function(){return false},isVertical:function(){return false},hasMarkers:function(){return false},isUsableInLegend:function(){return true},hasSubItems:function(){return false},ck:function(a){if(a==null||this.be()==null||this._b2==null){return NaN}if(a.isOthersSlice()){return this._cp/this._cu*100}else{return this.be().item(this._b2.__inner[a.a5()])/this._cu*100}},notifySetItem:function(source_,a,b,c){if(source_.dataView&&source_.dataSource){source_=source_.dataView()}if(!this.bx(source_)){return}var d=this.a5();if(d==null){return}d.handleCollectionChanged(new $$4.ae(2,2,c,b,a))},notifyClearItems:function(source_){if(source_.dataView&&source_.dataSource){source_=source_.dataView()}if(!this.bx(source_)){return}var a=this.a5();a.handleCollectionChanged(new $$4.ae(0,4))},bx:function(a){return $$t.$v.by(a,this.itemsSource())},by:function(a,b){return a==b},notifyInsertItem:function(source_,a,b){if(source_.dataView&&source_.dataSource){source_=source_.dataView()}if(!this.bx(source_)){return}var c=this.a5();if(c==null){return}c.handleCollectionChanged(new $$4.ae(1,0,b,a))},notifyRemoveItem:function(source_,a,b){if(source_.dataView&&source_.dataSource){source_=source_.dataView()}if(!this.bx(source_)){return}var c=this.a5();if(c==null){return}c.handleCollectionChanged(new $$4.ae(1,1,b,a))},setWidgetLevelDataSource:function(source_){if(source_.dataView&&source_.dataSource){source_=source_.dataView()}this.itemsSource(source_)},removeWidgetLevelDataSource:function(){this.itemsSource(null)},styleUpdated:function(){this._as.bf()},a6:function(){return $.ig.FontUtil.prototype.toFontInfo(this._as._c._o,this.textStyle())},resolveLegendIndex:function(){return-1},forSubItems:function(a){},$type:new $.ig.Type("PieChartBase",$$a.$f.$type,[$$0.$b6.$type,$.ig.ILegendOwner.prototype.$type,$.ig.ILegendSeries.prototype.$type,$.ig.ILegendTemplateProvider.prototype.$type])},true);$c("PieChartSliceSelector:w","Object",{a:null,init:function(a){$.ig.$op.init.call(this);this.a=a},d:function(a){var b=a.dataContext();if(this.a.selectionMode()==1){if(a.isOthersSlice()){var c=$b($$0.$bm.$type,b);if(c!=null&&c.contains(this.a.selectedItem())){return true}if($b($$t.$x.$type,this.a.selectedItem())!==null){return true}}if(b==this.a.selectedItem()){return true}}else if(this.a.selectionMode()==2){if(this.c(a)){return true}}else if(this.a.selectionMode()==0){if(this.a.selectedSlices().contains(a.a5())){return true}}return false},c:function(a){var b=a.dataContext();if(a.isOthersSlice()){var d=b.getEnumerator();while(d.moveNext()){var c=d.current();if(this.a.selectedItems().contains1(c)){return true}}}else{if(this.a.selectedItems().contains1(b)){return true}}return false},h:function(a){var b=a.dataContext();if(!a.isOthersSlice()){if(this.a.selectedItem()!=b){return b}else{return null}}else{if($b($$t.$x.$type,this.a.selectedItem())!==null){return null}else{return function(){var $ret=new $$t.x;$ret.data($b($$0.$bm.$type,a.dataContext()));$ret.slice(a);return $ret}()}}},f:function(a,b){var c=false;if(b){if(this.a.selectedItems().contains1(a)){c=this.g(a)}}else{if(!this.a.selectedItems().contains1(a)){c=this.b(a)}else{c=this.g(a)}}return c},e:function(a){return this.f(a,false)},g:function(a){var b=new $$t.l(this.a.selectedItems(),function(){var $ret=new $$4.x($.ig.$op.$type,0);return $ret}());this.a.e1(this,b);if(!b.cancel()){this.a.selectedItems().remove1(a)}return b.cancel()},b:function(a){var b=new $$t.l(this.a.selectedItems(),function(){var $ret=new $$4.x($.ig.$op.$type,0);$ret.add1(a);return $ret}());this.a.e1(this,b);if(!b.cancel()){this.a.selectedItems().add1(a)}return b.cancel()},k:function(a){this.a.selectedItem(this.h(a))},i:function(a){var b=new $$4.x($.ig.$op.$type,1,this.a.selectedItems());if(a.isOthersSlice()){var c=$b($$0.$bm.$type,a.dataContext());var d=0;var f=c.getEnumerator();while(f.moveNext()){var e=f.current();if(this.a.selectedItems().contains1(e)){d++}}var g=d>0&&d<c.count();var i=c.getEnumerator();while(i.moveNext()){var h=i.current();this.f(h,g)}if(this.c(a)){this.a.selectedItem(function(){var $ret=new $$t.x;$ret.data($b($$0.$bm.$type,a.dataContext()));$ret.slice(a);return $ret}())}else{this.a.selectedItem(this.a.selectedItems().count()>0?this.a.selectedItems().__inner[this.a.selectedItems().count()-1]:null)}}else{this.e(a.dataContext());this.a.selectedItem(this.a.selectedItems().count()>0?this.a.selectedItems().__inner[this.a.selectedItems().count()-1]:null)}},j:function(a){if(a!=null){a._av=true;a.isSelected(this.d(a));a._av=false}},$type:new $.ig.Type("PieChartSliceSelector",$.ig.$ot)},true);$c("PieSliceOthersContext:x","Object",{init:function(){$.ig.$op.init.call(this)},_data:null,data:function(a){if(arguments.length===1){this._data=a;return a}else{return this._data}},_slice:null,slice:function(a){if(arguments.length===1){this._slice=a;return a}else{return this._slice}},$type:new $.ig.Type("PieSliceOthersContext",$.ig.$ot)},true);$c("Slice:y","ContentControl",{ak:function(){return new $$t.ad(this)},bl:function(a){this._al=a},_al:null,init:function(){this.an=false;$$a.$g.init.call(this);var a=this.ak();this.bl(a);a.b();this._av=false},a3:function(a){if(arguments.length===1){this.h($$t.$y.by,a);return a}else{return this.c($$t.$y.by)}},ax:function(a){if(arguments.length===1){this.h($$t.$y.bm,a);return a}else{return this.c($$t.$y.bm)}},a1:function(a){if(arguments.length===1){this.h($$t.$y.bs,a);return a}else{return this.c($$t.$y.bs)}},a0:function(a){if(arguments.length===1){this.h($$t.$y.br,a);return a}else{return this.c($$t.$y.br)}},isSelected:function(a){if(arguments.length===1){this.h($$t.$y.bv,a);return a}else{return this.c($$t.$y.bv)}},isExploded:function(a){if(arguments.length===1){this.h($$t.$y.bt,a);return a}else{return this.c($$t.$y.bt)}},isOthersSlice:function(a){if(arguments.length===1){this.h($$t.$y.bu,a);return a}else{return this.c($$t.$y.bu)}},b7:function(a){if(arguments.length===1){this.h($$t.$y.bw,a);return a}else{return this.c($$t.$y.bw)}},b5:function(a){if(arguments.length===1){this.h($$t.$y.bn,a);return a}else{return this.c($$t.$y.bn)}},a2:function(a){if(arguments.length===1){this.h($$t.$y.bx,a);return a}else{return this.c($$t.$y.bx)}},ay:function(a){if(arguments.length===1){this.h($$t.$y.bo,a);return a}else{return this.c($$t.$y.bo)}},a5:function(a){if(arguments.length===1){this.h($$t.$y.bq,a);return a}else{return $h(this.c($$t.$y.bq))}},b2:function(a){if(arguments.length===1){this.h($$t.$y.bp,a);return a}else{return this.c($$t.$y.bp)}},a4:function(a){if(arguments.length===1){this.h($$t.$y.bz,a);return a}else{return this.c($$t.$y.bz)}},_b8:null,_ai:null,_aj:null,_bf:null,_b9:null,_b3:null,_aq:false,_au:false,_av:false,ac:function(){$$a.$g.ac.call(this);this._al.c()},az:function(){var a=Math.abs($$t.$v.cs(this.ax()-this.a3()))==360;if(a){return this.a2()}return this.a2()},cb:function(){var a=this._ai!=null&&this._ai.allowSliceExplosion()?true:false;var b=this.az();if(this.isExploded()&&a&&this._ai._cx>1){var c=new $$a.ae(0,this.b5().__x-b,this.b5().__y-b,b*2,b*2);return c}return new $$a.ae(0,this.b7().__x-b,this.b7().__y-b,b*2,b*2)},b6:function(){if(this.isExploded()&&this._ai!=null&&this._ai.allowSliceExplosion()&&this._ai._cx>1){if(this._aq){return this._b3}return this.b5()}return this.b7()},an:false,aw:function(a){if(arguments.length===1){var b=this.an;this.an=a;if(b&&!this.an){this.bk()}return a}else{return this.an}},bk:function(){var $self=this;if(this.aw()){return}var a=this._al.f();var b=this._ai._g3;if($.ig.util.isNaN(this.a3())||$.ig.util.isNaN(this.ax())||$.ig.util.isNaN(this.a2())||$.ig.util.isNaN(this.ay())||this.a5()<0||this._ai==null||b.width()==0||b.height()==0||this.b7().__x==0&&this.b7().__y==0||this.b5().__x==0&&this.b5().__y==0||this.a3()==this.ax()){return}this._b8=this.cb();var c=$.ig.GeometryUtil.prototype.d(this._b8);var d=this._b8.height()/2;var e=this.az();var f=$.ig.RectUtil.prototype.l(this._b8);var g=$$t.$y.b4($.ig.MathUtil.prototype.k(this.a3()),c,f,d,100);var h=$$t.$y.b4($.ig.MathUtil.prototype.k(this.ax()),c,f,d,100);var i=$$t.$y.b4($.ig.MathUtil.prototype.k(this.ax()),c,f,this.a2(),this.a0());var j=$$t.$y.b4($.ig.MathUtil.prototype.k(this.a3()),c,f,this.a2(),this.a1());var k=Math.abs($$t.$v.cs(this.ax()-this.a3()))==360;if(k){if(this.a0()==0){var l=function(){var $ret=new $$a.a6;$ret._d=f;$ret._b=$self.a2();$ret._c=$self.a2();return $ret}();a._aj=l;return}else if(this.a0()>0){var m=new $$a.af(1,this.a2(),this.a2());var n=new $$a.af(1,this.a2()*this.a0()/100,this.a2()*this.a0()/100);var o=function(){var $ret=new $$a.y(0);$ret.x(f.__x-$self.a2());$ret.y(f.__y);return $ret}();var p=function(){var $ret=new $$a.y(0);$ret.x(f.__x+$self.a2());$ret.y(f.__y);return $ret}();var q=function(){var $ret=new $$a.y(0);$ret.x(f.__x-$self.a2()*$self.a0()/100);$ret.y(f.__y);return $ret}();var r=function(){var $ret=new $$a.y(0);$ret.x(f.__x+$self.a2()*$self.a0()/100);$ret.y(f.__y);return $ret}();var s=function(){var $ret=new $$a.a8;$ret.startPoint(o);return $ret}();var t=new $$a.bc;var u=function(){var $ret=new $$a.bh;$ret._f=m;$ret._d=1;$ret._e=p;return $ret}();t.add(u);s.__segments=t;var v=function(){var $ret=new $$a.a8;$ret.startPoint(r);return $ret}();var w=new $$a.bc;var x=function(){var $ret=new $$a.bh;$ret._f=n;$ret._d=0;$ret._e=q;return $ret}();w.add(x);v.__segments=w;var y=function(){var $ret=new $$a.a8;$ret.startPoint(o);return $ret}();var z=new $$a.bc;var aa=function(){var $ret=new $$a.bh;$ret._f=m;$ret._d=0;$ret._e=p;return $ret}();z.add(aa);y.__segments=z;var ab=function(){var $ret=new $$a.a8;$ret.startPoint(r);return $ret}();var ac=new $$a.bc;var ad=function(){var $ret=new $$a.bh;$ret._f=n;$ret._d=1;$ret._e=q;return $ret}();ac.add(ad);ab.__segments=ac;var ae=function(){var $ret=new $$a.a9;$ret.add(s);$ret.add(v);$ret.add(y);$ret.add(ab);return $ret}();var af=function(){var $ret=new $$a.a7;$ret._b=ae;return $ret}();var ag=new $$a.a3;ag._c.add(af);a._aj=ag;return}else{var ah=function(){var $ret=new $$a.a3;$ret._b=0;return $ret}();ah._c.add(function(){var $ret=new $$a.a6;$ret._d=f;$ret._b=$self.a2();$ret._c=$self.a2();return $ret}());ah._c.add(function(){var $ret=new $$a.a6;$ret._d=f;$ret._b=$self.a2()*$self.a0()/100;$ret._c=$self.a2()*$self.a0()/100;return $ret}());a._aj=ah;return}}var ai=new $$a.a7;a._aj=ai;var aj=function(){var $ret=new $$a.a8;$ret.isClosed(true);return $ret}();ai._b=new $$a.a9;ai._b.add(aj);aj.__startPoint=g;var ak=Math.abs(this.ax()-this.a3())>180;var al=new $$a.bh;al._e=h;al._f=new $$a.af(1,this._b8.width()/2,this._b8.height()/2);al._b=ak;if(this.ax()>this.a3()){al._d=1}else{al._d=0}aj.__segments=new $$a.bc;aj.__segments.add(al);var am=new $$a.bd(1);am.c(i);aj.__segments.add(am);var an=Math.sqrt(Math.pow(i.__x-h.__x,2)+Math.pow(i.__y-h.__y,2));var ao=e-an;var ap=new $$a.bh;ap._e=j;if(ao<0){ao=.1}ap._f=new $$a.af(1,ao,ao);ap._b=al._b;ap._d=0;aj.__segments.add(ap);var aq=this.ca(a,g,h,this.a3(),this.ax(),f,e);var ar=true;if(ar&&this._b8.height()>0&&this._b8.width()>0&&!b.containsRect(aq)){var as=aq;var at=new $$a.ae(0,0,0,b.width(),b.height());at.intersect(as);var au=$.ig.GeometryUtil.prototype.g((this.a3()+this.ax())/2);var av=au/180*Math.PI;var aw=Math.abs((as.height()-at.height())/Math.sin(av));var ax=Math.abs((as.width()-at.width())/Math.cos(av));if($.ig.util.isNaN(aw)||Number.isInfinity(aw)){aw=0}if($.ig.util.isNaN(ax)||Number.isInfinity(ax)){ax=0}var ay=Math.max(aw,ax);var az=$.ig.GeometryUtil.prototype.j(this._ai._g3.width(),this._ai._g3.height(),true,au,this.a2()*this._ai.cb()-ay);this._al.d(az.__x-this.b5().__x,az.__y-this.b5().__y);this._aq=true;this._b3=az;this._b9=new $$a.ae(0,as.x()-(az.__x-this.b5().__x),as.y()-(az.__y-this.b5().__y),as.width(),as.height())}else{this._aq=false;this._al.e()}},ap:function(a){var b=this._ai._g3;if(this.__visibility==1){return false}if($.ig.util.isNaN(this.a3())||$.ig.util.isNaN(this.ax())||$.ig.util.isNaN(this.a2())||$.ig.util.isNaN(this.ay())||this.a5()<0||this._ai==null||b.width()==0||b.height()==0||this.b7().__x==0&&this.b7().__y==0||this.b5().__x==0&&this.b5().__y==0){return false}var c=this.az();var d=this.a0()/100*c;var e=c;var f=this.b7();if(this.isExploded()&&this._ai.allowSliceExplosion()&&this._ai._cx>1){f=this.b5();if(this._aq){f=this._b3}}var g=d*d;var h=e*e;var i=Math.pow(a.__x-f.__x,2)+Math.pow(a.__y-f.__y,2);if(i<g||i>h){return false}var j=Math.atan2(a.__y-f.__y,a.__x-f.__x);j=j*180/Math.PI;return this.ao(j)},ao:function(a){a=$.ig.GeometryUtil.prototype.g(a);var b=Math.min(this.a3(),this.ax());
|
|
var c=Math.max(this.a3(),this.ax());return a>b&&a<c||a-360>b&&a-360<c||a+360>b&&a+360<c},ca:function(a,b,c,d,e,f,g){var h=new $$4.x($$a.$y.$type,0);h.add(b);h.add(c);h.add(f);d=$.ig.GeometryUtil.prototype.g(d);e=$.ig.GeometryUtil.prototype.g(e);if(0>d&&0<e||360>d&&360<e||e<d){h.add($.ig.GeometryUtil.prototype.k(f,0,g))}if(90>d&&90<e){h.add($.ig.GeometryUtil.prototype.k(f,90,g))}if(180>d&&180<e){h.add($.ig.GeometryUtil.prototype.k(f,180,g))}if(270>d&&270<e){h.add($.ig.GeometryUtil.prototype.k(f,270,g))}var i=1.7976931348623157e308;var j=1.7976931348623157e308;var k=-1.7976931348623157e308;var l=-1.7976931348623157e308;var n=h.getEnumerator();while(n.moveNext()){var m=n.current();i=Math.min(i,m.__x);j=Math.min(j,m.__y);k=Math.max(k,m.__x);l=Math.max(l,m.__y)}return new $$a.ae(0,i,j,k-i,l-j)},am:function(){var a=new $$t.ah;a.appearance(new $.ig.PrimitiveAppearanceData);a.labelAppearance(new $.ig.LabelAppearanceData);a.leaderLineAppearance(new $.ig.PrimitiveAppearanceData);a.startAngle(this.a3());a.endAngle(this.ax());a.explodedOrigin($.ig.PointData.prototype.b(this.b5()));a.explodedRadius(this.ay());a.origin($.ig.PointData.prototype.b(this.b7()));a.radius(this.az());a.index(this.a5());a.innerExtentEnd(this.a0());a.innerExtentStart(this.a1());a.isExploded(this.isExploded());a.isOthersSlice(this.isOthersSlice());a.isSelected(this.isSelected());if(this._aj!=null){a.labelAppearance().angle(this._aj._ai);a.labelBounds($.ig.RectData.prototype.b(this._aj._ao));a.labelAngle(this._aj._ai);if($b($$a.$an.$type,this._aj._aj)!==null){var b=$b($$a.$an.$type,this._aj._aj);a.label(b.ak());var c=null;a.labelAppearance().labelBrush($.ig.AppearanceHelper.prototype.b(b._am));a.labelAppearance().text(b.ak());if(this._ai!=null){c=this._ai.a6();if(c==null){c=this._ai._as._b._c}}a.labelAppearance($.ig.AppearanceHelper.prototype.c(b,c));a.labelAppearance().visibility(this._aj.__visibility==0)}else{a.label(this._aj._aj.toString())}if(this._aj._ap!=null){a.leaderLineAppearance().fill($.ig.AppearanceHelper.prototype.b(this._aj._ap.__fill));a.leaderLineAppearance().opacity(this._aj._ap.__opacity);a.leaderLineAppearance().stroke($.ig.AppearanceHelper.prototype.b(this._aj._ap.__stroke));a.leaderLineAppearance().strokeThickness(this._aj._ap._ac);a.leaderLineAppearance().isVisible(this._aj._ap.__visibility==0);a.leaderLinePath(new $.ig.PathVisualData(2,"leaderLine",this._aj._ap))}else if(this._aj._aq!=null){a.leaderLineAppearance().fill($.ig.AppearanceHelper.prototype.b(this._aj._aq.__fill));a.leaderLineAppearance().opacity(this._aj._aq.__opacity);a.leaderLineAppearance().stroke($.ig.AppearanceHelper.prototype.b(this._aj._aq.__stroke));a.leaderLineAppearance().strokeThickness(this._aj._aq._ac);a.leaderLineAppearance().isVisible(this._aj._aq.__visibility==0);a.leaderLinePath(new $.ig.PathVisualData(1,"leaderLine",this._aj._aq))}}if(this._al!=null){var d=this._al.f();a.slicePath(new $.ig.PathVisualData(1,"slicePath",d));a.appearance().fill($.ig.AppearanceHelper.prototype.b(d.__fill));a.appearance().opacity(d.__opacity);a.appearance().stroke($.ig.AppearanceHelper.prototype.b(d.__stroke));a.appearance().strokeThickness(d._ac);a.appearance().isVisible(d.__visibility==0)}return a},b4:function(a,b,c,d,e){if(d==0){return c}var f=Math.cos(a);var g=Math.sin(a);var h=Math.sqrt(d*d/(1-b*Math.pow(f,2)));h*=e/100;return{__x:h*f+c.__x,__y:h*g+c.__y,$type:$$a.$y.$type,getType:$.ig.$op.getType,getGetHashCode:$.ig.$op.getGetHashCode,typeName:$.ig.$op.typeName}},_b0:null,_b1:null,$type:new $.ig.Type("Slice",$$a.$g.$type)},true);$c("XamPieChart:z","PieChartBase",{ar:function(){return new $$t.ae(this)},e4:function(a){$$t.$v.e4.call(this,a);this._g9=a},_g9:null,init:function(){$$t.$v.init.call(this);this._ab=$$t.$z.$type},$type:new $.ig.Type("XamPieChart",$$t.$v.$type)},true);$c("PieChartBaseView:aa","Object",{init:function(a){this.l=false;this.bx=$$a.$ae.empty();$.ig.$op.init.call(this);this._a=a;this._c=new $$t.a(this)},_a:null,az:function(){this._e=new $$t.ac;this._e.series(this._a);this._b0=$$a.$ae.empty();this._u=new $$4.x($$t.$y.$type,0);this._t=new $$4.x($$t.$t.$type,0);this._a.legendItemTemplate(function(){var $ret=new $$a.k;$ret.render($$t.$b.f);$ret.measure($$t.$b.a);return $ret}());this._a.legendItemBadgeTemplate(function(){var $ret=new $$a.k;$ret.render($$t.$b.e);$ret.measure($$t.$b.d);return $ret}());this._c.aa()},a9:function(){var a=this._c.b();if(this._a.brushes()==null){this._a.brushes(a._a)}if(this._a.outlines()==null){this._a.outlines(a._b)}if(this._a.selectedStyle()==null){this._a.selectedStyle(function(){var $ret=new $$a.ag;$ret.fill=a._h!=null?a._h.color().colorString():null;$ret.stroke=a._i!=null?a._i.color().colorString():null;$ret.strokeThickness=a._e;$ret.opacity=a._d;return $ret}())}this._b=a;if(this._a.textStyle()!=null){this._b._c=this._a.a6()}},_bq:null,_b:null,_h:null,_j:null,_i:null,_k:null,_c:null,ax:function(a){if(a==null){this.l=false;this._c.ac(null);this._h=null;this._j=null;this._i=null;this._k=null;return}this._c.ac(a);this._h=this._c._e;this._j=this._c._g;this._i=this._c._f;this._k=this._c._h},by:function(){return this._b0},bv:function(){return this._c.am()},a8:function(){this._b0=this._c.an();this._a.e2()},_b0:null,l:false,av:function(){if(!this.l){this.l=true;this._c.ag(this.bg.runOn(this))}},bg:function(){if(this.l){this.l=false;this.a3()}},bx:null,a3:function(){this.am();this._c.x(this._b0.width(),this._b0.height());if(this._k!=null&&this._k.d()){if(this._a.actualPixelScalingRatio()!=1){this._k.z();this._k.aa(this._a.actualPixelScalingRatio(),this._a.actualPixelScalingRatio())}if(!this.bx.isEmpty()){this._k.k(this.bx.left(),this.bx.top(),this.bx.width(),this.bx.height())}}if(this._i!=null&&this._i.d()){if(this._a.actualPixelScalingRatio()!=1){this._i.z();this._i.aa(this._a.actualPixelScalingRatio(),this._a.actualPixelScalingRatio())}if(!this.bx.isEmpty()){this._i.k(this.bx.left(),this.bx.top(),this.bx.width(),this.bx.height())}}if(this._j!=null&&this._j.d()){if(this._a.actualPixelScalingRatio()!=1){this._j.z();this._j.aa(this._a.actualPixelScalingRatio(),this._a.actualPixelScalingRatio())}if(!this.bx.isEmpty()){this._j.k(this.bx.left(),this.bx.top(),this.bx.width(),this.bx.height())}}if(this._h!=null&&this._h.d()){if(this._a.actualPixelScalingRatio()!=1){this._h.z();this._h.aa(this._a.actualPixelScalingRatio(),this._a.actualPixelScalingRatio())}if(!this.bx.isEmpty()){this._h.k(this.bx.left(),this.bx.top(),this.bx.width(),this.bx.height())}}this.a4();if(!this.bx.isEmpty()&&this._a.actualPixelScalingRatio()!=1){if(this._k!=null&&this._k.d()){this._k.y()}if(this._i!=null&&this._i.d()){this._i.y()}if(this._j!=null&&this._j.d()){this._j.y()}if(this._h!=null&&this._h.d()){this._h.y()}}},a4:function(){this.bx=this._b0;if(this._j!=null&&this._j.d()){this.a7();this.a5()}if(this._i!=null&&this._i.d()){var a=this._b._c;if(this._a.textStyle()!=null){a=this._a.a6()}this._i.ac(a);var c=this._t.getEnumerator();while(c.moveNext()){var b=c.current();if(b.__visibility==0){var d=b._aj;if(d!=null){{if(b._ah.b2()==null){if(b._ah._au){d._am=this._b._f}else{d._am=this._b._g}}else{d._am=b._ah.b2()}this._i.w(d)}}var e=b._ah._b0;if(b._ah._y!=null){var f=new $$a.bs;this._j.i(f,b._ah._y);if(f.__fill!=null){e=f.__fill}}if(this._a.leaderLineType()!=0&&b._aq!=null){b._aq.__stroke=e;b._aq._ac=1;if(this._a.leaderLineStyle()!=null){this._i.i(b._aq,this._a.leaderLineStyle())}this._i.s(b._aq)}if(this._a.leaderLineType()==0&&b._ap!=null){b._ap.__stroke=e;b._ap._ac=1;if(this._a.leaderLineStyle()!=null){this._i.i(b._ap,this._a.leaderLineStyle())}this._i.r(b._ap)}}}}},a6:function(a){if(a.__visibility!=0){return}var b=a._al.f();this._c.ah(b);b._ac=1;b.__opacity=a.__opacity;if(a._b0!=null){b.__fill=a._b0}if(a._b1!=null){b.__stroke=a._b1}if(a._y!=null){this._j.i(b,a._y)}if(b._j!=null){this._j.z();this._j.j(b._j)}var c=b.__fill;var d=b.__stroke;var e=this.m(a,b,this._j);this._j.s(b);if(e){b.__fill=c;b.__stroke=d}if(b._j!=null){this._j.y()}},a7:function(){var b=this._u.getEnumerator();while(b.moveNext()){var a=b.current();if(!a.isSelected()){this.a6(a)}}},a5:function(){var b=this._u.getEnumerator();while(b.moveNext()){var a=b.current();if(a.isSelected()){this.a6(a)}}},m:function(a,b,c){return false},aj:function(a,b,c){var d=this._f;this.bh(a);if(this._f==null&&d!=null){var e=function(){var $ret=new $$a.ar;$ret.position(a);return $ret}();this._a.en(this._f,e)}else if(this._f!=null){var f=function(){var $ret=new $$a.ar;$ret.position(a);return $ret}();this._a.eo(this._f,f)}},ai:function(a){var b=this._f;this.bh(a);var c=function(){var $ret=new $$a.ar;$ret.position(a);return $ret}();this._a.en(b,c)},ah:function(a){this.bh(a)},ak:function(a){this.ap(a)},ap:function(a){var b=function(){var $ret=new $$a.as;$ret.position(a);return $ret}();var c=true;var d=null;var f=this._t.getEnumerator();while(f.moveNext()){var e=f.current();var g=e._ao.containsPoint(a);if(g){d=e;c=this._a.bw(e._ah,b);break}}this.bh(a);if(this._f==null&&c&&d!=null){this._a.fm(d._ah,b)}else if(this._f!=null&&c){this._a.fm(this._f,b)}},_f:null,bh:function(a){this._f=null;for(var b=0;b<this._u.count();b++){if(this._u.__inner[b].__visibility==0&&this._u.__inner[b].ap(a)){this._f=this._u.__inner[b];break}}},n:function(a){var c=this._t.getEnumerator();while(c.moveNext()){var b=c.current();var d=b._ao.containsPoint(a);if(d){return true}}return false},p:function(a){for(var b=0;b<this._u.count();b++){if(this._u.__inner[b].__visibility==0&&this._u.__inner[b].ap(a)){return true}}return false},o:function(a){return this.n(a)||this.p(a)},bb:function(){this._a.e2()},al:function(){this.aq()},bl:function(a,b){var c=b;this.bm(c.position(),a,b)},_u:null,g:function(){var a=new $$t.y;a._ai=this._a;this._u.add(a);return a},bc:function(a){a.__visibility=0},be:function(a){a.__visibility=1},bd:function(a){a._ai=null;this._u.remove(a)},_t:null,d:function(){var a=new $$t.t;if(this._a.leaderLineType()==0){a._ap=new $$a.br}else{a._aq=new $$a.bs;var b=new $$a.a7;b._b.add(new $$a.a8);b._b.__inner[0].__segments.add(new $$a.be(0));a._aq._aj=b}this._t.add(a);return a},ar:function(a){a.__visibility=0},at:function(a){a.__visibility=1},as:function(a){this._t.remove(a)},bj:function(a){if(this._a.leaderLineType()!=0&&a._aq!=null||this._a.leaderLineType()==0&&a._ap!=null){return}if(this._a.leaderLineType()==0){a._aq=null;a._ap=new $$a.br}else{a._ap=null;a._aq=new $$a.bs;var b=new $$a.a7;var c=new $$a.a8;c.__startPoint={__x:NaN,__y:NaN,$type:$$a.$y.$type,getType:$.ig.$op.getType,getGetHashCode:$.ig.$op.getGetHashCode,typeName:$.ig.$op.typeName};b._b.add(c);b._b.__inner[0].__segments.add(new $$a.be(0));a._aq._aj=b}},ba:function(a){if(this._a.othersCategoryStyle()!=null&&a.isOthersSlice()){a._b0=this.bt(a.a5());a._b1=this.bu(a.a5());a._y=this._a.othersCategoryStyle()}else if(a.isSelected()&&this._a.allowSliceSelection()&&this._a.selectedStyle()!=null){a._y=this._a.selectedStyle()}else{a._y=null;a._b0=this.bt(a.a5());a._b1=this.bu(a.a5())}},bt:function(a){if(this._a.brushes()!=null&&a>=0&&this._a.brushes().count()>0){return this._a.brushes().item(a%this._a.brushes().count())}return null},bu:function(a){if(this._a.outlines()!=null&&a>=0&&this._a.outlines().count()>0){return this._a.outlines().item(a%this._a.outlines().count())}return null},ad:function(a){if(a==null||a._aj==null){return this._a.labelMemberPath()}var b=a._aj;var c=b._aj;if($b($$a.$an.$type,c)!==null){return c.ak()}return c},y:function(a){var b=$b($$a.$an.$type,a);if(b!=null&&b.ak()!=null&&this._i!=null){return this._i.e(b)+0}return 0},bi:function(){this._v=$.ig.FontUtil.prototype.getCurrentFontHeight(this._c._o,this._c.d())},_v:0,x:function(a){return this._v+0},bz:function(a){var b=a._aj;if($b($$a.$an.$type,b)!==null){var c=this.y(b);var d=this.x(b);return new $$a.ae(0,0,0,c,d)}return $$a.$ae.empty()},b1:function(){return new $$a.af(1,this._b0.width(),this._b0.height())},bk:function(a,b,c){var d=$b($$a.$an.$type,a._aj);if(d!=null){d._n=b;d._o=c}this.av()},bn:function(a){this.bo(a)},bp:function(){this.av()},au:function(){this.am()},am:function(){var a=this._b._c;if(this._a.textStyle()!=null){a=this._a.a6()}if(this._i!=null){this._i.ac(a)}},ay:function(a,b){this._c.ad(a,b)},aw:function(){this._c.ab()},_bw:null,_ag:null,_s:false,_e:null,af:function(){return this._c!=null&&this._c._o!=null?this._c._o.getResourceString("invalidLabelBinding"):"There is no such value for the labels to bind."},aq:function(){if(this._s==true){this._s=false;this._c.z(this._e)}},bo:function(a){this._c.aj(a)},bm:function(a,b,c){this._s=true;this._bw=a;if(b==null){this._ag=null;this._e.item(null)}else{this._ag=b.dataContext();this._e.item(b.dataContext())}var d=this._a.getContainerOffsets();var pos_={__x:a.__x+15+d.__x,__y:a.__y+15+d.__y,$type:$$a.$y.$type,getType:$.ig.$op.getType,getGetHashCode:$.ig.$op.getGetHashCode,typeName:$.ig.$op.typeName};var context_=this._e;this._c.ai(pos_,context_)},bf:function(){this.a9();this.bi();this._a.fc()},a0:function(){this._c.ae(this._a.isSurfaceInteractionDisabled())},ac:function(){return this._c.u()},ao:function(){if(this.l){this.bg()}},r:function(){return this.ac()!=null},an:function(a){this._c.y(a)},q:function(){return true},a2:function(){},br:function(a){var b=this._c.ak(a._y);if(b!=null){return b}return a._b0},bs:function(a){var b=this._c.al(a._y);if(b!=null){return b}return a._b1},w:function(a){return this._c.m(a._y)},z:function(a){return this._c.m(a)},aa:function(){var b=this._u.getEnumerator();while(b.moveNext()){var a=b.current();if(!a.isSelected()){return a.a4()}}return NaN},a1:function(){this._c.af();this.av()},ae:function(a){return this._c._c._al},$type:new $.ig.Type("PieChartBaseView",$.ig.$ot)},true);$c("PieChartStyleInfo:ab","Object",{init:function(){$.ig.$op.init.call(this)},_a:null,_b:null,_f:null,_g:null,_c:null,_h:null,_i:null,_e:0,_d:0,$type:new $.ig.Type("PieChartStyleInfo",$.ig.$ot)},true);$c("PieSliceDataContext:ac","DataContext",{init:function(){$.ig.DataContext.prototype.init.call(this)},_slice:null,slice:function(a){if(arguments.length===1){this._slice=a;return a}else{return this._slice}},_percentValue:0,percentValue:function(a){if(arguments.length===1){this._percentValue=a;return a}else{return this._percentValue}},_isOthersSlice:false,isOthersSlice:function(a){if(arguments.length===1){this._isOthersSlice=a;return a}else{return this._isOthersSlice}},flatten:function(){var ret_=$.ig.DataContext.prototype.flatten.call(this);var percentValue_=this.percentValue();var isOthersSlice_=this.isOthersSlice();ret_.percentValue=percentValue_;ret_.isOthersSlice=isOthersSlice_;if(isOthersSlice_&&this.item()!=null){var items_=[];var a=this.item().getEnumerator();while(a.moveNext()){var currItem_=a.current();items_.push(currItem_)}ret_.item=items_}return ret_},$type:new $.ig.Type("PieSliceDataContext",$.ig.DataContext.prototype.$type)},true);$c("SliceView:ad","Object",{_a:null,init:function(a){$.ig.$op.init.call(this);this._a=a},_g:null,b:function(){this._g=new $$a.bs;this._a.content(this._g)},c:function(){this._a.bk()},f:function(){return this._g},d:function(a,b){this._g._j=function(){var $ret=new $$a.bn;$ret._j=a;$ret._k=b;return $ret}()},e:function(){this._g._j=null},$type:new $.ig.Type("SliceView",$.ig.$ot)},true);$c("XamPieChartView:ae","PieChartBaseView",{_b2:null,init:function(a){$$t.$aa.init.call(this,a);this._b2=a},$type:new $.ig.Type("XamPieChartView",$$t.$aa.$type)},true);$c("PieChartVisualData:af","Object",{init:function(){$.ig.$op.init.call(this);this.slices(new $$t.ag);this.others(new $$4.x($.ig.$op.$type,0));this.dipScalingRatio(1)},_slices:null,slices:function(a){if(arguments.length===1){this._slices=a;return a}else{return this._slices}},_othersSlice:null,othersSlice:function(a){if(arguments.length===1){this._othersSlice=a;return a}else{return this._othersSlice}},_name:null,name:function(a){if(arguments.length===1){this._name=a;return a}else{return this._name}},_viewport:null,viewport:function(a){if(arguments.length===1){this._viewport=a;return a}else{return this._viewport}},_width:0,width:function(a){if(arguments.length===1){this._width=a;return a}else{return this._width}},_height:0,height:function(a){if(arguments.length===1){this._height=a;return a}else{return this._height}},_others:null,others:function(a){if(arguments.length===1){this._others=a;return a}else{return this._others}},_radiusFactor:0,radiusFactor:function(a){if(arguments.length===1){this._radiusFactor=a;return a}else{return this._radiusFactor}},_leaderLineMargin:0,leaderLineMargin:function(a){if(arguments.length===1){this._leaderLineMargin=a;return a}else{return this._leaderLineMargin}},_isViewportScaled:false,isViewportScaled:function(a){if(arguments.length===1){this._isViewportScaled=a;return a}else{return this._isViewportScaled}},_dipScalingRatio:0,dipScalingRatio:function(a){if(arguments.length===1){this._dipScalingRatio=a;return a}else{return this._dipScalingRatio}},scaleByViewport:function(){if(this.isViewportScaled()){return}this.isViewportScaled(true);for(var a=0;a<this.slices().count();a++){this.slices().__inner[a].scaleByViewport(this.viewport())}if(this.othersSlice()!=null){this.othersSlice().scaleByViewport(this.viewport())}},serialize:function(){var a=new $$6.aj(0);a.u("{");a.u("name: "+this.name()+",");a.u("leaderLineMargin: "+this.leaderLineMargin()+",");a.u("radiusFactor: "+this.radiusFactor()+",");a.u("width: "+this.width()+",");a.u("height: "+this.height()+",");a.u("isViewportScaled: "+(this.isViewportScaled()?"true":"false")+", ");a.u("slices: [");for(var b=0;b<this.slices().count();b++){if(b!=0){a.l(", ")}a.l(this.slices().__inner[b].serialize())}a.u("],");a.u("viewport: { left: "+this.viewport().left()+", top: "+this.viewport().top()+", width: "+this.viewport().width()+", height: "+this.viewport().height()+"}");a.l(", dipScalingRatio: "+this.dipScalingRatio().toString());a.u("}");return a.toString()},$type:new $.ig.Type("PieChartVisualData",$.ig.$ot)},true);$c("PieSliceVisualData:ah","Object",{init:function(){$.ig.$op.init.call(this);this.labelBounds($.ig.RectData.prototype.empty())},_startAngle:0,startAngle:function(a){if(arguments.length===1){this._startAngle=a;return a}else{return this._startAngle}},_endAngle:0,endAngle:function(a){if(arguments.length===1){this._endAngle=a;return a}else{return this._endAngle}},_origin:null,origin:function(a){if(arguments.length===1){this._origin=a;return a}else{return this._origin}},_explodedOrigin:null,explodedOrigin:function(a){if(arguments.length===1){this._explodedOrigin=a;return a}else{return this._explodedOrigin}},_radius:0,radius:function(a){if(arguments.length===1){this._radius=a;return a}else{return this._radius}},_explodedRadius:0,explodedRadius:function(a){if(arguments.length===1){this._explodedRadius=a;return a}else{return this._explodedRadius}},_innerExtentStart:0,innerExtentStart:function(a){if(arguments.length===1){this._innerExtentStart=a;return a}else{return this._innerExtentStart}},_innerExtentEnd:0,innerExtentEnd:function(a){if(arguments.length===1){this._innerExtentEnd=a;return a}else{return this._innerExtentEnd}},_isSelected:false,isSelected:function(a){if(arguments.length===1){this._isSelected=a;return a}else{return this._isSelected}},_isExploded:false,isExploded:function(a){if(arguments.length===1){this._isExploded=a;return a}else{return this._isExploded}},_isOthersSlice:false,isOthersSlice:function(a){if(arguments.length===1){this._isOthersSlice=a;return a}else{return this._isOthersSlice}},_index:0,index:function(a){if(arguments.length===1){this._index=a;return a}else{return this._index}},_label:null,label:function(a){if(arguments.length===1){this._label=a;return a}else{return this._label}},_labelAngle:0,labelAngle:function(a){if(arguments.length===1){this._labelAngle=a;return a}else{return this._labelAngle}},_labelBounds:null,labelBounds:function(a){if(arguments.length===1){this._labelBounds=a;return a}else{return this._labelBounds}},_appearance:null,appearance:function(a){if(arguments.length===1){this._appearance=a;return a}else{return this._appearance}},_labelAppearance:null,labelAppearance:function(a){if(arguments.length===1){this._labelAppearance=a;return a}else{return this._labelAppearance}},_leaderLineAppearance:null,leaderLineAppearance:function(a){if(arguments.length===1){this._leaderLineAppearance=a;return a}else{return this._leaderLineAppearance}},_slicePath:null,slicePath:function(a){if(arguments.length===1){this._slicePath=a;return a}else{return this._slicePath}},_leaderLinePath:null,leaderLinePath:function(a){if(arguments.length===1){this._leaderLinePath=a;return a}else{return this._leaderLinePath}},scaleByViewport:function(a){if(this.slicePath()!=null){this.slicePath().scaleByViewport(a)}if(this.leaderLinePath()!=null){this.leaderLinePath().scaleByViewport(a)}if(!this.labelBounds().isEmpty()){var b=(this.labelBounds().left()-a.left())/a.width();var c=(this.labelBounds().top()-a.top())/a.height();var d=(this.labelBounds().left()+this.labelBounds().width()-a.left())/a.width();var e=(this.labelBounds().top()+this.labelBounds().height()-a.top())/a.height();this.labelBounds(new $.ig.RectData(b,c,d-b,e-c))}if(this.origin()!=null){this.origin(new $.ig.PointData((this.origin().x()-a.left())/a.width(),(this.origin().y()-a.top())/a.height()))}if(this.explodedOrigin()!=null){this.explodedOrigin(new $.ig.PointData((this.explodedOrigin().x()-a.left())/a.width(),(this.explodedOrigin().y()-a.top())/a.height()))}},serialize:function(){var a=new $$6.aj(0);a.u("{");if(this.label()!=null){a.u('label: "'+this.label()+'", ')}if(this.appearance()!=null){a.u("appearance: "+this.appearance().serialize()+", ")}if(this.labelAppearance()!=null){a.u("labelAppearance: "+this.labelAppearance().serialize()+", ")}if(this.leaderLineAppearance()!=null){a.u("leaderLineAppearance: "+this.leaderLineAppearance().serialize()+", ")}if(this.slicePath()!=null){a.u("slicePath: "+this.slicePath().serialize()+", ")}if(this.leaderLinePath()!=null){var b=this.leaderLinePath().serialize();if(b!=null){a.u("leaderLinePath: "+b+", ")}}a.u("labelAngle: "+this.labelAngle()+", ");a.u("labelBounds: { left: "+this.labelBounds().left()+", top: "+this.labelBounds().top()+", width: "+this.labelBounds().width()+", height: "+this.labelBounds().height()+"}");a.u("}");return a.toString()},$type:new $.ig.Type("PieSliceVisualData",$.ig.$ot)},true);$c("PieSliceVisualDataList:ag","List$1",{init:function(){$$4.$x.init.call(this,$$t.$ah.$type,0)},$type:new $.ig.Type("PieSliceVisualDataList",$$4.$x.$type.specialize($$t.$ah.$type))},true);$$t.$v.fx=$$a.$s.i("FastItemsSource",$.ig.FastItemsSource.prototype.$type,$$t.$v.$type,new $$a.ac(1,function(a,b){a.fa("FastItemsSource",b.oldValue(),b.newValue())}));$$t.$v.itemsSourceProperty=$$a.$s.i("ItemsSource",$$0.$bt.$type,$$t.$v.$type,new $$a.ac(2,null,function(a,b){a.fa("ItemsSource",b.oldValue(),b.newValue())}));$$t.$v.innerExtentProperty=$$a.$s.i("InnerExtent",Number,$$t.$v.$type,new $$a.ac(2,0,function(a,b){a.fa("InnerExtent",b.oldValue(),b.newValue())}));$$t.$v.valueMemberPathProperty=$$a.$s.i("ValueMemberPath",String,$$t.$v.$type,new $$a.ac(2,null,function(a,b){a.fa("ValueMemberPath",b.oldValue(),b.newValue())}));$$t.$v.labelMemberPathProperty=$$a.$s.i("LabelMemberPath",String,$$t.$v.$type,new $$a.ac(1,function(a,b){a.fa("LabelMemberPath",b.oldValue(),b.newValue())}));$$t.$v.legendLabelMemberPathProperty=$$a.$s.i("LegendLabelMemberPath",String,$$t.$v.$type,new $$a.ac(1,function(a,b){$b($$t.$v.$type,a).fa("LegendLabelMemberPath",b.oldValue(),b.newValue())}));$$t.$v.labelsPositionProperty=$$a.$s.i("LabelsPosition",$$t.$c.$type,$$t.$v.$type,new $$a.ac(2,$$t.$c.getBox(1),function(a,b){a.fa("LabelsPosition",b.oldValue(),b.newValue())}));$$t.$v.labelOuterColorProperty=$$a.$s.i("LabelOuterColor",$$a.$at.$type,$$t.$v.$type,new $$a.ac(2,null,function(a,b){a.fa("LabelOuterColor",b.oldValue(),b.newValue())}));$$t.$v.labelInnerColorProperty=$$a.$s.i("LabelInnerColor",$$a.$at.$type,$$t.$v.$type,new $$a.ac(2,null,function(a,b){a.fa("LabelInnerColor",b.oldValue(),b.newValue())}));$$t.$v.leaderLineVisibilityProperty=$$a.$s.i("LeaderLineVisibility",$$a.$aj.$type,$$t.$v.$type,new $$a.ac(2,$$a.$aj.getBox(0),function(a,b){a.fa("LeaderLineVisibility",b.oldValue(),b.newValue())}));$$t.$v.leaderLineStyleProperty=$$a.$s.i("LeaderLineStyle",$$a.$ag.$type,$$t.$v.$type,new $$a.ac(2,null,function(a,b){a.fa("LeaderLineStyle",b.oldValue(),b.newValue())}));$$t.$v.leaderLineTypeProperty=$$a.$s.i("LeaderLineType",$$t.$d.$type,$$t.$v.$type,new $$a.ac(2,$$t.$d.getBox(0),function(a,b){a.fa("LeaderLineType",b.oldValue(),b.newValue())}));$$t.$v.leaderLineMarginProperty=$$a.$s.i("LeaderLineMargin",Number,$$t.$v.$type,new $$a.ac(2,6,function(a,b){a.fa("LeaderLineMargin",b.oldValue(),b.newValue())}));$$t.$v.toolTipProperty=$$a.$s.i("ToolTip",$.ig.$op.$type,$$t.$v.$type,new $$a.ac(2,null,function(a,b){a.fa("ToolTip",b.oldValue(),b.newValue())}));$$t.$v.othersCategoryThresholdProperty=$$a.$s.i("OthersCategoryThreshold",Number,$$t.$v.$type,new $$a.ac(2,3,function(a,b){a.fa("OthersCategoryThreshold",b.oldValue(),b.newValue())}));$$t.$v.othersCategoryTypeProperty=$$a.$s.i("OthersCategoryType",$$t.$e.$type,$$t.$v.$type,new $$a.ac(2,$$t.$e.getBox(1),function(a,b){a.fa("OthersCategoryType",b.oldValue(),b.newValue())}));$$t.$v.othersCategoryTextProperty=$$a.$s.i("OthersCategoryText",String,$$t.$v.$type,new $$a.ac(2,"Others",function(a,b){a.fa("OthersCategoryText",b.oldValue(),b.newValue())}));$$t.$v.explodedRadiusProperty=$$a.$s.i("ExplodedRadius",Number,$$t.$v.$type,new $$a.ac(2,.2,function(a,b){a.fa("ExplodedRadius",b.oldValue(),b.newValue())}));$$t.$v.radiusFactorProperty=$$a.$s.i("RadiusFactor",Number,$$t.$v.$type,new $$a.ac(2,.9,function(a,b){a.fa("RadiusFactor",b.oldValue(),b.newValue())}));$$t.$v.allowSliceSelectionProperty=$$a.$s.i("AllowSliceSelection",$$0.$aq.$type,$$t.$v.$type,new $$a.ac(2,true,function(a,b){a.fa("AllowSliceSelection",b.oldValue(),b.newValue())}));$$t.$v.allowSliceExplosionProperty=$$a.$s.i("AllowSliceExplosion",$$0.$aq.$type,$$t.$v.$type,new $$a.ac(2,true,function(a,b){a.fa("AllowSliceExplosion",b.oldValue(),b.newValue())}));$$t.$v.legendProperty=$$a.$s.i("Legend",$.ig.IChartLegend.prototype.$type,$$t.$v.$type,new $$a.ac(2,null,function(a,b){a.fa("Legend",b.oldValue(),b.newValue())}));$$t.$v.labelExtentProperty=$$a.$s.i("LabelExtent",Number,$$t.$v.$type,new $$a.ac(2,10,function(a,b){a.fa("LabelExtent",b.oldValue(),b.newValue())}));$$t.$v.startAngleProperty=$$a.$s.i("StartAngle",Number,$$t.$v.$type,new $$a.ac(2,0,function(a,b){a.fa("StartAngle",b.oldValue(),b.newValue())}));$$t.$v.sweepDirectionProperty=$$a.$s.i("SweepDirection",$$a.$bi.$type,$$t.$v.$type,new $$a.ac(2,$$a.$bi.getBox(1),function(a,b){a.fa("SweepDirection",b.oldValue(),b.newValue())}));$$t.$v.othersCategoryStyleProperty=$$a.$s.i("OthersCategoryStyle",$$a.$ag.$type,$$t.$v.$type,new $$a.ac(2,null,function(a,b){a.fa("OthersCategoryStyle",b.oldValue(),b.newValue())}));$$t.$v.selectedStyleProperty=$$a.$s.i("SelectedStyle",$$a.$ag.$type,$$t.$v.$type,new $$a.ac(2,null,function(a,b){a.fa("SelectedStyle",b.oldValue(),b.newValue())}));$$t.$v.toolTipStyleProperty=$$a.$s.i("ToolTipStyle",$$a.$ag.$type,$$t.$v.$type,new $$a.ac(2,null,function(a,b){a.fa("ToolTipStyle",b.oldValue(),b.newValue())}));$$t.$v.brushesProperty=$$a.$s.i("Brushes",$.ig.BrushCollection.prototype.$type,$$t.$v.$type,new $$a.ac(2,null,function(a,b){a.fa("Brushes",b.oldValue(),b.newValue())}));$$t.$v.outlinesProperty=$$a.$s.i("Outlines",$.ig.BrushCollection.prototype.$type,$$t.$v.$type,new $$a.ac(2,null,function(a,b){a.fa("Outlines",b.oldValue(),b.newValue())}));$$t.$v.legendItemTemplateProperty=$$a.$s.i("LegendItemTemplate",$$a.$k.$type,$$t.$v.$type,new $$a.ac(2,null,function(a,b){a.fa("LegendItemTemplate",b.oldValue(),b.newValue())}));$$t.$v.legendItemBadgeTemplateProperty=$$a.$s.i("LegendItemBadgeTemplate",$$a.$k.$type,$$t.$v.$type,new $$a.ac(2,null,function(a,b){a.fa("LegendItemBadgeTemplate",b.oldValue(),b.newValue())}));$$t.$v.labelTemplateProperty=$$a.$s.i("LabelTemplate",$$a.$k.$type,$$t.$v.$type,new $$a.ac(2,null,function(a,b){a.fa("LabelTemplate",b.oldValue(),b.newValue())}));$$t.$v.isSurfaceInteractionDisabledProperty=$$a.$s.i("IsSurfaceInteractionDisabled",$$0.$aq.$type,$$t.$v.$type,new $$a.ac(2,false,function(a,b){a.fa("IsSurfaceInteractionDisabled",b.oldValue(),b.newValue())}));$$t.$v.formatLabelProperty=$$a.$s.i("FormatLabel",$$t.$s.$type,$$t.$v.$type,new $$a.ac(1,function(a,b){a.fa("FormatLabel",b.oldValue(),b.newValue())}));$$t.$v.formatLegendLabelProperty=$$a.$s.i("FormatLegendLabel",$$t.$s.$type,$$t.$v.$type,new $$a.ac(1,function(a,b){$b($$t.$v.$type,a).fa("FormatLegendLabel",b.oldValue(),b.newValue())}));$$t.$v.selectionModeProperty=$$a.$s.i("SelectionMode",$$t.$f.$type,$$t.$v.$type,new $$a.ac(2,$$t.$f.getBox(1),function(a,b){a.fa("SelectionMode",b.oldValue(),b.newValue())}));$$t.$v.selectedItemProperty=$$a.$s.i("SelectedItem",$.ig.$op.$type,$$t.$v.$type,new $$a.ac(1,function(a,b){var c=$b($$t.$v.$type,a);if(c.bm){return}var d=new $$t.j(b.oldValue(),b.newValue());c.ey(c,d);if(!d.cancel()){if(!c.bn){c.fq()}c.fa("SelectedItem",b.oldValue(),b.newValue());c.ex(a,new $$t.i(b.oldValue(),b.newValue()))}else{c.bm=true;c.selectedItem(b.oldValue());c.bm=false}}));$$t.$y.by=$$a.$s.i("StartAngle",Number,$$t.$y.$type,new $$a.ac(2,0,function(a,b){a.bk()}));$$t.$y.bm=$$a.$s.i("EndAngle",Number,$$t.$y.$type,new $$a.ac(2,0,function(a,b){a.bk()}));$$t.$y.bs=$$a.$s.i("InnerExtentStart",Number,$$t.$y.$type,new $$a.ac(2,0,function(a,b){a.bk()}));$$t.$y.br=$$a.$s.i("InnerExtentEnd",Number,$$t.$y.$type,new $$a.ac(2,0,function(a,b){a.bk()}));$$t.$y.bv=$$a.$s.i("IsSelected",$$0.$aq.$type,$$t.$y.$type,new $$a.ac(2,false,function(a,b){var c=$b($$t.$y.$type,a);if(!c._av){var d=b.newValue();if(c._ai!=null){c._ai.fi(c,d)}}}));$$t.$y.bt=$$a.$s.i("IsExploded",$$0.$aq.$type,$$t.$y.$type,new $$a.ac(2,false,function(a,b){var c=$b($$t.$y.$type,a);var d=b.newValue();if(c._ai!=null){c._ai.ek(c,d)}}));$$t.$y.bu=$$a.$s.i("IsOtherSlice",$$0.$aq.$type,$$t.$y.$type,new $$a.ac(2,false,function(a,b){a.bk()}));$$t.$y.bw=$$a.$s.i("Origin",$$a.$y.$type,$$t.$y.$type,new $$a.ac(2,new $$a.y(0),function(a,b){a.bk()}));$$t.$y.bn=$$a.$s.i("ExplodedOrigin",$$a.$y.$type,$$t.$y.$type,new $$a.ac(2,new $$a.y(0),function(a,b){a.bk()}));$$t.$y.bx=$$a.$s.i("Radius",Number,$$t.$y.$type,new $$a.ac(2,0,function(a,b){a.bk()}));$$t.$y.bo=$$a.$s.i("ExplodedRadius",Number,$$t.$y.$type,new $$a.ac(2,0,function(a,b){a.bk()}));$$t.$y.bq=$$a.$s.i("Index",$$0.$aw.$type,$$t.$y.$type,new $$a.ac(2,(-1),function(a,b){a.bk()}));$$t.$y.bp=$$a.$s.i("Foreground",$$a.$at.$type,$$t.$y.$type,new $$a.ac(1,null));$$t.$y.bz=$$a.$s.i("StrokeThickness",Number,$$t.$y.$type,new $$a.ac(2,1,function(a,b){a.bk()}))}); |