/*!@license
 * Infragistics.Web.ClientUI Chart 13.1.20131.2523
 *
 * Copyright (c) 2011-2014 Infragistics Inc.
 *
 * http://www.infragistics.com/
 *
 * Depends on:
 * jquery-1.4.4.js
 * jquery.ui.core.js
 * jquery.ui.widget.js
 * infragistics.util.js
 * infragistics.dv.core.js
 * infragistics.chart_piechart.js
 * infragistics.chart_categorychart.js
 * infragistics.chart_financialchart.js
 * infragistics.chart_polarchart.js
 * infragistics.chart_radialchart.js
 * infragistics.chart_rangecategorychart.js
 * infragistics.chart_scatterchart.js
 * infragistics.datasource.js
 * infragistics.dvcommonwidget.js
 */
if(typeof jQuery!=="function"){throw new Error("jQuery is undefined")}(function($){$.widget("ui.igDataChart",{options:{syncChannel:null,synchronizeVertically:true,syncrhonizeHorizontally:false,crosshairPoint:{x:0,y:0},windowRect:null,horizontalZoomable:false,verticalZoomable:false,windowResponse:null,windowRectMinWidth:0,overviewPlusDetailPaneVisibility:"collapsed",crosshairVisibility:"collapsed",plotAreaBackground:null,defaultInteraction:"dragZoom",dragModifier:"none",panModifier:"shift",previewRect:null,windowPositionHorizontal:0,windowPositionVertical:0,windowScaleHorizontal:1,windowScaleVertical:1,circleMarkerTemplate:null,triangleMarkerTemplate:null,pyramidMarkerTemplate:null,squareMarkerTemplate:null,diamondMarkerTemplate:null,pentagonMarkerTemplate:null,hexagonMarkerTemplate:null,tetragramMarkerTemplate:null,pentagramMarkerTemplate:null,hexagramMarkerTemplate:null,topMargin:0,leftMargin:0,rightMargin:0,bottomMargin:0,autoMarginWidth:20,autoMarginHeight:0,isSquare:false,gridMode:"behindSeries",brushes:null,markerBrushes:null,outlines:null,markerOutlines:null,width:null,height:null,size:null,dataSource:null,dataSourceUrl:null,dataSourceType:null,responseDataKey:null,isSurfaceInteractionDisabled:false,animateSeriesWhenAxisRangeChanges:false,legend:{element:null,type:"legend",width:null,height:null},axes:[{type:null,name:null,dataSource:null,dataSourceUrl:null,dataSourceType:null,responseDataKey:null,remove:false,labelLocation:null,labelVisibility:"visible",labelExtent:null,labelAngle:0,labelTextStyle:null,labelTextColor:null,formatLabel:null,stroke:null,strokeThickness:1,strip:null,majorStroke:null,majorStrokeThickness:1,minorStroke:null,minorStrokeThickness:1,isInverted:false,crossingAxis:null,crossingValue:null,coercionMethods:null,label:null,gap:0,overlap:0,startAngleOffset:0,interval:0,displayType:null,minimumValue:0,maximumValue:0,dateTimeMemberPath:null,referenceValue:0,isLogarithmic:false,logarithmBase:10,radiusExtentScale:.75,innerRadiusExtentScale:0,useClusteringMode:false}],series:[{type:null,name:null,dataSource:null,dataSourceUrl:null,dataSourceType:null,responseDataKey:null,remove:false,showTooltip:false,tooltipTemplate:null,legend:{element:null,type:"legend",width:null,height:null},legendItemVisibility:"visible",legendItemBadgeTemplate:null,legendItemTemplate:null,discreteLegendItemTemplate:null,transitionDuration:0,resolution:1,title:null,brush:null,outline:null,thickness:0,coercionMethods:null,markerType:"none",markerTemplate:null,markerBrush:null,markerOutline:null,xAxis:null,yAxis:null,xMemberPath:null,yMemberPath:null,trendLineType:"none",trendLineBrush:null,trendLineThickness:1.5,trendLinePeriod:7,trendLineZIndex:1001,maximumMarkers:400,unknownValuePlotting:"dontPlot",radiusMemberPath:null,radiusScale:null,labelMemberPath:null,fillMemberPath:null,fillScale:null,angleAxis:null,valueAxis:null,clipSeriesToBounds:null,valueMemberPath:null,radiusX:2,radiusY:2,angleMemberPath:null,radiusAxis:null,useCartesianInterpolation:true,negativeBrush:null,splineType:"natural",lowMemberPath:null,highMemberPath:null,openMemberPath:null,closeMemberPath:null,volumeMemberPath:null,displayType:"candlestick",ignoreFirst:0,period:0,shortPeriod:0,longPeriod:0,markerCollisionAvoidance:"none",useHighMarkerFidelity:false,useBruteForce:false,progressiveLoad:true,mouseOverEnabled:false,useSquareCutoffStyle:false,heatMinimum:0,heatMaximum:50,series:null}],theme:"c"},css:{chart:"ui-corner-all ui-widget-content ui-chart-container",unsupportedBrowserClass:"ui-html5-non-html5-supported-message ui-helper-clearfix  ui-html5-non-html5",tooltip:"ui-chart-tooltip ui-widget-content ui-corner-all"},events:{tooltipShowing:"tooltipShowing",tooltipShown:"tooltipShown",tooltipHiding:"tooltipHiding",tooltipHidden:"tooltipHidden",browserNotSupported:"browserNotSupported",seriesCursorMouseMove:null,seriesMouseLeftButtonDown:null,seriesMouseLeftButtonUp:null,seriesMouseMove:null,seriesMouseEnter:null,seriesMouseLeave:null,windowRectChanged:null,gridAreaRectChanged:null,refreshCompleted:null,axisRangeChanged:null,typicalBasedOn:null,progressiveLoadStatusChanged:null,scatterMouseOver:null},_createWidget:function(options,element){this._fixCss();this.dvWidget=new $.ig.dvCommonWidget(this);this.dvWidget._createWidget(options,element,this)},_init:function(){},_create:function(){this._fixCss();this.dvWidget._create()},_fixCss:function(){if(this.css.chart.indexOf("{0}")>-1){this.css.chart=this.css.chart.replace("{0}",this.options.theme);this.css.tooltip=this.css.tooltip.replace("{0}",this.options.theme)}},_setOption:function(key,value){this.dvWidget._setOption(key,value)},widget:function(){return this.element},id:function(){return this.element[0].id},exportImage:function(width,height){return this.dvWidget._getImage(width,height,this)},destroy:function(){if(this._chart){this._chart.destroy();this._chart=null}this.dvWidget._destroy(this);$.Widget.prototype.destroy.apply(this,arguments)},styleUpdated:function(){this._chart.styleUpdated();return this},resetZoom:function(){this._chart.resetZoom();return this},addItem:function(item,targetName){var dataSourceId=targetName||this._containerSourceID;if(this.dataSources[dataSourceId]){this.dataSources[dataSourceId].addRow(null,item,true)}},insertItem:function(item,index,targetName){var dataSourceId=targetName||this._containerSourceID;if(this.dataSources[dataSourceId]){this.dataSources[dataSourceId].insertRow(null,item,index,true)}},removeItem:function(index,targetName){var dataSourceId=targetName||this._containerSourceID;if(this.dataSources[dataSourceId]){this.dataSources[dataSourceId].deleteRow(index,true)}},setItem:function(index,item,targetName){var dataSourceId=targetName||this._containerSourceID;if(this.dataSources[dataSourceId]){this.dataSources[dataSourceId].updateRow(index,item,true)}},notifySetItem:function(dataSource,index,newItem,oldItem){this._chart.notifySetItem(dataSource,index,oldItem,newItem);return this},notifyClearItems:function(dataSource){this._chart.notifyClearItems(dataSource);return this},notifyInsertItem:function(dataSource,index,newItem){this._chart.notifyInsertItem(dataSource,index,newItem);return this},notifyRemoveItem:function(dataSource,index,oldItem){this._chart.notifyRemoveItem(dataSource,index,oldItem);return this},scrollIntoView:function(targetName,item){var target=this.dvWidget._getNotifyTarget(targetName);if(target&&target.scrollIntoView){target.scrollIntoView(item)}return this},scaleValue:function(targetName,unscaledValue){var target=this.dvWidget._getNotifyTarget(targetName);if(target&&target.scaleValue){return target.scaleValue(unscaledValue)}return 0},unscaleValue:function(targetName,scaledValue){var target=this.dvWidget._getNotifyTarget(targetName);if(target&&target.unscaleValue){return target.unscaleValue(scaledValue)}return 0},flush:function(){this._chart.flush()},exportVisualData:function(){return this._chart.exportVisualData()},getActualMinimumValue:function(targetName){var target=this.dvWidget._getNotifyTarget(targetName);if(target&&target.actualMinimumValue){return target.actualMinimumValue()}return 0},getActualMaximumValue:function(targetName){var target=this.dvWidget._getNotifyTarget(targetName);if(target&&target.actualMaximumValue){return target.actualMaximumValue()}return 0},print:function(){this.dvWidget._print()},renderSeries:function(targetName,animate){var target=this.dvWidget._getNotifyTarget(targetName);if(target&&target.renderSeries){return target.renderSeries(animate)}return this},getItemIndex:function(targetName,worldPoint){var target=this.dvWidget._getNotifyTarget(targetName),p=new $.ig.Point(worldPoint.x,worldPoint.y);if(target&&target.getItemIndex){return target.getItemIndex(p)}},getItem:function(targetName,worldPoint){var target=this.dvWidget._getNotifyTarget(targetName),p=new $.ig.Point(worldPoint.x,worldPoint.y);if(target&&target.getItem){return target.getItem(p)}},getSeriesValue:function(targetName,worldPoint,useInterpolation){var target=this.dvWidget._getNotifyTarget(targetName),p=new $.ig.Point(worldPoint.x,worldPoint.y);if(target&&target.getSeriesValue){return this._chart.getSeriesValue(p)}},getSeriesValuePosition:function(targetName,worldPoint,useInterpolation){var target=this.dvWidget._getNotifyTarget(targetName),p=new $.ig.Point(worldPoint.x,worldPoint.y);if(target&&target.getSeriesValuePosition){return this._chart.getSeriesValuePosition(p)}},getSeriesValuePositionFromSeriesPixel:function(targetName,seriesPoint,useInterpolation){var target=this.dvWidget._getNotifyTarget(targetName),p=new $.ig.Point(seriesPoint.x,seriesPoint.y);if(target&&target.getSeriesValuePositionFromSeriesPixel){return this._chart.getSeriesValuePositionFromSeriesPixel(p)}},getSeriesValueFromSeriesPixel:function(targetName,seriesPoint,useInterpolation){var target=this.dvWidget._getNotifyTarget(targetName),p=new $.ig.Point(seriesPoint.x,seriesPoint.y);if(target&&target.getSeriesValueFromSeriesPixel){return this._chart.getSeriesValueFromSeriesPixel(p)}},getSeriesHighValue:function(targetName,worldPoint,useInterpolation){var target=this.dvWidget._getNotifyTarget(targetName),p=new $.ig.Point(worldPoint.x,worldPoint.y);if(target&&target.getSeriesHighValue){return this._chart.getSeriesHighValue(p)}},getSeriesHighValuePosition:function(targetName,worldPoint,useInterpolation){var target=this.dvWidget._getNotifyTarget(targetName),p=new $.ig.Point(worldPoint.x,worldPoint.y);if(target&&target.getSeriesHighValuePosition){return this._chart.getSeriesHighValuePosition(p)}},getSeriesHighValuePositionFromSeriesPixel:function(targetName,seriesPoint,useInterpolation){var target=this.dvWidget._getNotifyTarget(targetName),p=new $.ig.Point(seriesPoint.x,seriesPoint.y);if(target&&target.getSeriesHighValuePositionFromSeriesPixel){return this._chart.getSeriesHighValuePositionFromSeriesPixel(p)}},getSeriesHighValueFromSeriesPixel:function(targetName,seriesPoint,useInterpolation){var target=this.dvWidget._getNotifyTarget(targetName),p=new $.ig.Point(seriesPoint.x,seriesPoint.y);if(target&&target.getSeriesHighValueFromSeriesPixel){return this._chart.getSeriesHighValueFromSeriesPixel(p)}},getSeriesLowValue:function(targetName,worldPoint,useInterpolation){var target=this.dvWidget._getNotifyTarget(targetName),p=new $.ig.Point(worldPoint.x,worldPoint.y);if(target&&target.getSeriesLowValue){return this._chart.getSeriesLowValue(p)}},getSeriesLowValuePosition:function(targetName,worldPoint,useInterpolation){var target=this.dvWidget._getNotifyTarget(targetName),p=new $.ig.Point(worldPoint.x,worldPoint.y);if(target&&target.getSeriesLowValuePosition){return this._chart.getSeriesLowValuePosition(p)}},getSeriesLowValuePositionFromSeriesPixel:function(targetName,seriesPoint,useInterpolation){var target=this.dvWidget._getNotifyTarget(targetName),p=new $.ig.Point(seriesPoint.x,seriesPoint.y);if(target&&target.getSeriesLowValuePositionFromSeriesPixel){return this._chart.getSeriesLowValuePositionFromSeriesPixel(p)}},getSeriesLowValueFromSeriesPixel:function(targetName,seriesPoint,useInterpolation){var target=this.dvWidget._getNotifyTarget(targetName),p=new $.ig.Point(seriesPoint.x,seriesPoint.y);if(target&&target.getSeriesLowValueFromSeriesPixel){return this._chart.getSeriesLowValueFromSeriesPixel(p)}},getItemIndexFromSeriesPixel:function(targetName,seriesPoint){var target=this.dvWidget._getNotifyTarget(targetName),p=new $.ig.Point(seriesPoint.x,seriesPoint.y);if(target&&target.getItemImdexFromSeriesPixel){return this._chart.getItemIndexFromSeriesPixel(p)}},getItemFromSeriesPixel:function(targetName,seriesPoint){var target=this.dvWidget._getNotifyTarget(targetName),p=new $.ig.Point(seriesPoint.x,seriesPoint.y);if(target&&target.getItemFromSeriesPixel){return this._chart.getItemFromSeriesPixel(p)}}});$.extend($.ui.igDataChart,{version:"13.1.20131.2523"});$.widget("ui.igPieChart",{options:{width:null,height:null,dataSource:null,dataSourceUrl:null,dataSourceType:null,responseDataKey:null,valueMemberPath:null,labelMemberPath:null,labelsPosition:"center",leaderLineVisibility:"visible",othersCategoryThreshold:3,formatLabel:null,othersCategoryStyle:null,othersCategoryType:"percent",othersCategoryText:"Others",explodedRadius:.2,radiusFactor:.9,allowSliceSelection:null,allowSliceExplosion:null,explodedSlices:null,showTooltip:false,tooltipTemplate:null,legend:{element:null,type:"item",width:null,height:null},labelExtent:10,startAngle:0,sweepDirection:"clockwise",selectedStyle:null,brushes:null,outlines:null,legendItemTemplate:null,legendItemBadgeTemplate:null,textStyle:null,theme:"c"},css:{chart:"ui-corner-all ui-widget-content ui-chart-piechart-container",unsupportedBrowserClass:"ui-html5-non-html5-supported-message ui-helper-clearfix ui-html5-non-html5",tooltip:"ui-chart-tooltip ui-widget-content ui-corner-all"},events:{tooltipShowing:"tooltipShowing",tooltipShown:"tooltipShown",tooltipHiding:"tooltipHiding",tooltipHidden:"tooltipHidden",browserNotSupported:"browserNotSupported",sliceClick:null},_createWidget:function(options,element){this._fixCss();this.dvWidget=new $.ig.dvCommonWidget(this);this.dvWidget._createWidget(options,element,this)},_create:function(){this._fixCss();this.dvWidget._create()},_fixCss:function(){if(this.css.chart.indexOf("{0}")>-1){this.css.chart=this.css.chart.replace("{0}",this.options.theme);this.css.tooltip=this.css.tooltip.replace("{0}",this.options.theme)}},_setOption:function(key,value){this.dvWidget._setOption(key,value)},addItem:function(item){this.dataSources[this.id()].addRow(item,true)},insertItem:function(item,index){this.dataSources[this.id()].insertRow(null,item,index,true)},removeItem:function(index){this.dataSources[this.id()].deleteRow(index,true)},setItem:function(index,item){this.dataSources[this.id()].updateRow(index,item,true)},exportImage:function(width,height){return this.dvWidget._getImage(width,height,this)},destroy:function(){if(this._chart){this._chart.destroy();this._chart=null}this.dvWidget._destroy(this);$.Widget.prototype.destroy.call(this);return this},id:function(){return this.element[0].id},widget:function(){return this.element},print:function(){this.dvWidget._print()}});$.extend($.ui.igPieChart,{version:"13.1.20131.2523"})})(jQuery);