/*!@license
 * Infragistics.Web.ClientUI Chart 21.2.20212.99
 *
 * Copyright (c) 2011-2022 Infragistics Inc.
 *
 * http://www.infragistics.com/
 *
 * Depends on:
 * jquery.js
 * jquery-ui.js
 * infragistics.util.js
 * infragistics.util.jquery.js
 * infragistics.datasource.js
 * infragistics.templating.js
 * infragistics.ext_core.js
 * infragistics.ext_collections.js
 * infragistics.ext_ui.js
 * infragistics.dv_core.js
 * infragistics.dv_geometry.js
 * infragistics.dv_jquerydom.js
 * infragistics.datachart_core.js
 * infragistics.piechart.js
 * infragistics.dvcommonwidget.js
 * infragistics.datachart_categorycore.js
 * infragistics.datachart_category.js
 * infragistics.datachart_rangecategory.js
 * infragistics.datachart_verticalcategory.js
 * infragistics.datachart_financial.js
 * infragistics.datachart_extendedfinancial.js
 * infragistics.datachart_extendedaxes.js
 * infragistics.datachart_polar.js
 * infragistics.datachart_radial.js
 * infragistics.datachart_scatter.js
 * infragistics.datachart_stacked.js
 * infragistics.datachart_annotation.js
 * infragistics.ui.widget.js
 */
(function(factory){if(typeof define==="function"&&define.amd){define(["jquery","jquery-ui","./infragistics.util","./infragistics.util.jquery","./infragistics.ui.widget","./infragistics.datasource","./infragistics.templating","./infragistics.datachart_core","./infragistics.dv_jquerydom","./infragistics.dvcommonwidget"],factory)}else{factory(jQuery)}})(function($){$.widget("ui.igDataChart",$.ui.igWidget,{options:{isPagePanningAllowed:true,syncChannel:null,synchronizeVertically:true,synchronizeHorizontally:false,crosshairPoint:{x:NaN,y:NaN},windowRect:null,horizontalZoomable:false,verticalZoomable:false,isHorizontalZoomEnabled:false,isVerticalZoomEnabled:false,windowResponse:null,windowRectMinWidth:0,overviewPlusDetailPaneVisibility:"collapsed",crosshairVisibility:"collapsed",legendItemBadgeMode:"simplified",legendItemBadgeShape:"automatic",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:NaN,leftMargin:NaN,rightMargin:NaN,bottomMargin:NaN,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,title:null,subtitle:null,titleTextStyle:null,titleTopMargin:0,titleLeftMargin:0,titleRightMargin:0,titleBottomMargin:0,subtitleTextStyle:null,subtitleTopMargin:0,subtitleLeftMargin:0,subtitleRightMargin:0,subtitleBottomMargin:0,titleTextColor:"black",subtitleTextColor:"black",titleHorizontalAlignment:"center",subtitleHorizontalAlignment:"center",highlightingTransitionDuration:300,useTiledZooming:false,preferHigherResolutionTiles:false,pixelScalingRatio:1,zoomTileCacheSize:30,contentHitTestMode:"auto",plotAreaMarginLeft:NaN,plotAreaMarginTop:NaN,plotAreaMarginRight:NaN,plotAreaMarginBottom:NaN,autoExpandMarginMaximumValue:NaN,autoExpandMarginExtraPadding:NaN,computedPlotAreaMarginMode:"auto",shouldAutoExpandMarginForInitialLabels:false,highlightingMode:"auto",highlightingBehavior:"auto",legendHighlightingMode:"auto",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,isDataPreSorted:false,minimumValue:0,maximumValue:0,dateTimeMemberPath:null,referenceValue:0,isLogarithmic:false,logarithmBase:10,radiusExtentScale:.75,innerRadiusExtentScale:0,title:null,titleTextStyle:null,titleMargin:0,titleHorizontalAlignment:"center",titleVerticalAlignment:"center",titlePosition:"auto",titleTopMargin:0,titleLeftMargin:0,titleRightMargin:0,titleBottomMargin:0,labelHorizontalAlignment:"right",labelVerticalAlignment:"top",labelMargin:0,labelTopMargin:0,labelLeftMargin:0,labelRightMargin:0,labelBottomMargin:0,showFirstLabel:true,titleAngle:0,tickLength:0,tickStrokeThickness:.5,tickStroke:"black",useClusteringMode:false,useEnhancedIntervalManagement:false,enhancedIntervalMinimumCharacters:5}],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,legendItemBadgeMode:"simplified",legendItemBadgeShape:"auto",discreteLegendItemTemplate:null,transitionDuration:0,transitionEasingFunction:null,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:0,radiusY:0,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,heatMinimumColor:"black",heatMaximumColor:"red",series:null,isDropShadowEnabled:false,useSingleShadow:true,shadowColor:"rgba(95,95,95,0.5)",shadowBlur:10,shadowOffsetX:5,shadowOffsetY:5,isTransitionInEnabled:false,transitionInSpeedType:"auto",transitionInMode:"auto",transitionInDuration:500,radius:2,areaFillOpacity:1,expectFunctions:false,useInterpolation:false,skipUnknownValues:false,verticalLineVisibility:"visible",horizontalLineVisibility:"visible",targetSeries:null,targetAxis:null,isCustomCategoryStyleAllowed:false,isCustomCategoryMarkerStyleAllowed:false,consolidatedColumnVerticalPosition:"median",isHighlightingEnabled:false,bandHighlightWidth:10,highlightType:"auto",tooltipPosition:"auto",cursorPosition:null,isDefaultCrosshairDisabled:true,useIndex:false,useLegend:false,reverseLegendOrder:false,hitTestMode:"auto",calloutBackground:null,calloutCollisionMode:"auto",calloutLeaderBrush:null,calloutOutline:null,calloutPaddingLeft:NaN,calloutPaddingTop:NaN,calloutPaddingRight:NaN,calloutPaddingBottom:NaN,calloutPositionPadding:NaN,calloutStrokeThickness:NaN,calloutTextColor:null,contentMemberPath:null,isCalloutOffsettingEnabled:true,keyMemberPath:null,axisAnnotationBackground:null,xAxisAnnotationBackground:null,yAxisAnnotationBackground:null,axisAnnotationOutline:null,xAxisAnnotationOutline:null,yAxisAnnotationOutline:null,axisAnnotationTextColor:null,xAxisAnnotationTextColor:null,yAxisAnnotationTextColor:null,axisAnnotationPaddingLeft:NaN,xAxisAnnotationPaddingLeft:NaN,yAxisAnnotationPaddingLeft:NaN,axisAnnotationPaddingTop:NaN,xAxisAnnotationPaddingTop:NaN,yAxisAnnotationPaddingTop:NaN,axisAnnotationPaddingRight:NaN,xAxisAnnotationPaddingRight:NaN,yAxisAnnotationPaddingRight:NaN,axisAnnotationPaddingBottom:NaN,xAxisAnnotationPaddingBottom:NaN,yAxisAnnotationPaddingBottom:NaN,axisAnnotationStrokeThickness:NaN,xAxisAnnotationStrokeThickness:NaN,yAxisAnnotationStrokeThickness:NaN,finalValueSelectionMode:"auto",horizontalLineStroke:null,verticalLineStroke:null,isAxisAnnotationEnabled:false,axisAnnoationFormatLabel:null,xAxisAnnoationFormatLabel:null,yAxisAnnoationFormatLabel:null,axisAnnotationInterpolatedValuePrecision:-1,xAxisAnnotationInterpolatedValuePrecision:-1,yAxisAnnotationInterpolatedValuePrecision:-1,calloutContentUpdating:null,calloutSeriesSelecting:null,calloutLabelUpdating:null,outlineMode:"auto",markerOutlineMode:"auto",markerFillMode:"auto",markerFillOpacity:NaN,markerThickness:2}],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",seriesPalettes:"ui-chart-palette-n",seriesFillPalettes:"ui-chart-fill-palette-n",seriesOutlinePalettes:"ui-chart-outline-palette-n",areaFillOpacity:"ui-chart-area-fill-opacity",axis:"ui-chart-axis",axisStroke:"ui-chart-axis-stroke",axisMajorStroke:"ui-chart-axis-major-line",alignedGridLines:"ui-chart-aligned-gridlines",categoryAxisTick:"ui-chart-category-axis-tick",horizontalAxisLabels:"ui-horizontal-axis-labels",verticalAxisLabels:"ui-vertical-axis-labels",angularAxisLabels:"ui-angular-axis-labels",radialAxisLabels:"ui-radial-axis-labels",title:"ui-chart-title",subtitle:"ui-chart-subtitle",horizontalAxisTitle:"ui-chart-horizontal-axis-title",verticalAxisTitle:"ui-chart-vertical-axis-title",legendItemsList:"ui-chart-legend-items-list",legendItemsText:"ui-chart-legend-item-text",legendItemsBadge:"ui-chart-legend-item-badge"},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,assigningCategoryStyle:null,assigningCategoryMarkerStyle: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)},option:function(){return this.dvWidget.option.apply(this.dvWidget,arguments)},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){if(this._chart.actualSyncLink&&this._chart.syncChannel()!==null){var oldLink=this._chart.actualSyncLink();this._chart.actualSyncLink(new $.ig.SyncLink);if(oldLink){$.ig.SyncLinkManager.prototype.instance().releaseLink(oldLink)}}this._chart.destroy();this._chart=null}this.dvWidget._destroy(this);this._superApply(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},resetCachedEnhancedInterval:function(targetName){var target=this.dvWidget._getNotifyTarget(targetName);if(target&&target.resetCachedEnhancedInterval){return target.resetCachedEnhancedInterval()}return this},notifyVisualPropertiesChanged:function(targetName){var target=this.dvWidget._getNotifyTarget(targetName);if(target&&target.notifyVisualPropertiesChanged){return target.notifyVisualPropertiesChanged()}return this},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},getActualInterval:function(targetName){var target=this.dvWidget._getNotifyTarget(targetName);if(target&&target.actualInterval){return target.actualInterval()}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=$.ig.APIFactory.prototype.createPoint(worldPoint.x,worldPoint.y);if(target&&target.getItemIndex){return target.getItemIndex(p)}},getItem:function(targetName,worldPoint){var target=this.dvWidget._getNotifyTarget(targetName),p=$.ig.APIFactory.prototype.createPoint(worldPoint.x,worldPoint.y);if(target&&target.getItem){return target.getItem(p)}},getItemSpan:function(targetName){var target=this.dvWidget._getNotifyTarget(targetName);if(target&&target.getItemSpan){return target.getItemSpan()}return 0},_flattenPoint:function(point){var retPoint={__x:point.__x,__y:point.__y,x:point.__x,y:point.__y};return retPoint},_flattenRect:function(rect){var retRect={left:rect.left(),top:rect.top(),width:rect.width(),height:rect.height()};return retRect},getSeriesValue:function(targetName,worldPoint,useInterpolation,skipUnknowns){var target=this.dvWidget._getNotifyTarget(targetName),p=$.ig.APIFactory.prototype.createPoint(worldPoint.x,worldPoint.y);if(target&&target.getSeriesValue){return target.getSeriesValue(p,useInterpolation,skipUnknowns)}},getSeriesValueBoundingBox:function(targetName,worldPoint){var target=this.dvWidget._getNotifyTarget(targetName),p=$.ig.APIFactory.prototype.createPoint(worldPoint.x,worldPoint.y);if(target&&target.getSeriesValueBoundingBox){return this.__flattenRect(target.getSeriesValueBoundingBox(p))}},getSeriesValueFineGrainedBoundingBoxes:function(targetName,worldPoint){var target=this.dvWidget._getNotifyTarget(targetName),p=$.ig.APIFactory.prototype.createPoint(worldPoint.x,worldPoint.y);if(target&&target.getSeriesValueFineGrainedBoundingBoxes){return this.__flattenRect(target.getSeriesValueFineGrainedBoundingBoxes(p))}},getSeriesValuePosition:function(targetName,worldPoint,useInterpolation,skipUnknowns){var target=this.dvWidget._getNotifyTarget(targetName),p=$.ig.APIFactory.prototype.createPoint(worldPoint.x,worldPoint.y);if(target&&target.getSeriesValuePosition){return this._flattenPoint(target.getSeriesValuePosition(p,useInterpolation,skipUnknowns))}},getSeriesValuePositionFromSeriesPixel:function(targetName,seriesPoint,useInterpolation,skipUnknowns){var target=this.dvWidget._getNotifyTarget(targetName),p=$.ig.APIFactory.prototype.createPoint(seriesPoint.x,seriesPoint.y);if(target&&target.getSeriesValuePositionFromSeriesPixel){return this._flattenPoint(target.getSeriesValuePositionFromSeriesPixel(p,useInterpolation,skipUnknowns))}},getSeriesValueFromSeriesPixel:function(targetName,seriesPoint,useInterpolation,skipUnknowns){var target=this.dvWidget._getNotifyTarget(targetName),p=$.ig.APIFactory.prototype.createPoint(seriesPoint.x,seriesPoint.y);if(target&&target.getSeriesValueFromSeriesPixel){return target.getSeriesValueFromSeriesPixel(p,useInterpolation,skipUnknowns)}},getSeriesValueBoundingBoxFromSeriesPixel:function(targetName,seriesPoint){var target=this.dvWidget._getNotifyTarget(targetName),p=$.ig.APIFactory.prototype.createPoint(seriesPoint.x,seriesPoint.y);if(target&&target.getSeriesValueBoundingBoxFromSeriesPixel){return this.__flattenRect(target.getSeriesValueBoundingBoxFromSeriesPixel(p))}},getSeriesValueFineGrainedBoundingBoxesFromSeriesPixel:function(targetName,worldPoint){var target=this.dvWidget._getNotifyTarget(targetName),p=$.ig.APIFactory.prototype.createPoint(worldPoint.x,worldPoint.y);if(target&&target.getSeriesValueFineGrainedBoundingBoxesFromSeriesPixel){return this.__flattenRect(target.getSeriesValueFineGrainedBoundingBoxesFromSeriesPixel(p))}},getSeriesHighValue:function(targetName,worldPoint,useInterpolation,skipUnknowns){var target=this.dvWidget._getNotifyTarget(targetName),p=$.ig.APIFactory.prototype.createPoint(worldPoint.x,worldPoint.y);if(target&&target.getSeriesHighValue){return target.getSeriesHighValue(p,useInterpolation,skipUnknowns)}},getSeriesHighValuePosition:function(targetName,worldPoint,useInterpolation,skipUnknowns){var target=this.dvWidget._getNotifyTarget(targetName),p=$.ig.APIFactory.prototype.createPoint(worldPoint.x,worldPoint.y);if(target&&target.getSeriesHighValuePosition){return this._flattenPoint(target.getSeriesHighValuePosition(p,useInterpolation,skipUnknowns))}},getSeriesHighValuePositionFromSeriesPixel:function(targetName,seriesPoint,useInterpolation,skipUnknowns){var target=this.dvWidget._getNotifyTarget(targetName),p=$.ig.APIFactory.prototype.createPoint(seriesPoint.x,seriesPoint.y);if(target&&target.getSeriesHighValuePositionFromSeriesPixel){return this._flattenPoint(target.getSeriesHighValuePositionFromSeriesPixel(p,useInterpolation,skipUnknowns))}},getSeriesHighValueFromSeriesPixel:function(targetName,seriesPoint,useInterpolation,skipUnknowns){var target=this.dvWidget._getNotifyTarget(targetName),p=$.ig.APIFactory.prototype.createPoint(seriesPoint.x,seriesPoint.y);if(target&&target.getSeriesHighValueFromSeriesPixel){return target.getSeriesHighValueFromSeriesPixel(p,useInterpolation,skipUnknowns)}},getSeriesLowValue:function(targetName,worldPoint,useInterpolation,skipUnknowns){var target=this.dvWidget._getNotifyTarget(targetName),p=$.ig.APIFactory.prototype.createPoint(worldPoint.x,worldPoint.y);if(target&&target.getSeriesLowValue){return target.getSeriesLowValue(p,useInterpolation,skipUnknowns)}},getSeriesLowValuePosition:function(targetName,worldPoint,useInterpolation,skipUnknowns){var target=this.dvWidget._getNotifyTarget(targetName),p=$.ig.APIFactory.prototype.createPoint(worldPoint.x,worldPoint.y);if(target&&target.getSeriesLowValuePosition){return this._flattenPoint(target.getSeriesLowValuePosition(p,useInterpolation,skipUnknowns))}},getSeriesLowValuePositionFromSeriesPixel:function(targetName,seriesPoint,useInterpolation,skipUnknowns){var target=this.dvWidget._getNotifyTarget(targetName),p=$.ig.APIFactory.prototype.createPoint(seriesPoint.x,seriesPoint.y);if(target&&target.getSeriesLowValuePositionFromSeriesPixel){return this._flattenPoint(target.getSeriesLowValuePositionFromSeriesPixel(p,useInterpolation,skipUnknowns))}},getSeriesLowValueFromSeriesPixel:function(targetName,seriesPoint,useInterpolation,skipUnknowns){var target=this.dvWidget._getNotifyTarget(targetName),p=$.ig.APIFactory.prototype.createPoint(seriesPoint.x,seriesPoint.y);if(target&&target.getSeriesLowValueFromSeriesPixel){return target.getSeriesLowValueFromSeriesPixel(p,useInterpolation,skipUnknowns)}},getItemIndexFromSeriesPixel:function(targetName,seriesPoint){var target=this.dvWidget._getNotifyTarget(targetName),p=$.ig.APIFactory.prototype.createPoint(seriesPoint.x,seriesPoint.y);if(target&&target.getItemIndexFromSeriesPixel){return target.getItemIndexFromSeriesPixel(p)}},getItemFromSeriesPixel:function(targetName,seriesPoint){var target=this.dvWidget._getNotifyTarget(targetName),p=$.ig.APIFactory.prototype.createPoint(seriesPoint.x,seriesPoint.y);if(target&&target.getItemFromSeriesPixel){return target.getItemFromSeriesPixel(p)}},getSeriesOffsetValue:function(targetName){var target=this.dvWidget._getNotifyTarget(targetName);if(target&&target.getOffsetValue){return target.getOffsetValue()}},getSeriesCategoryWidth:function(targetName){var target=this.dvWidget._getNotifyTarget(targetName);if(target&&target.getCategoryWidth){return target.getCategoryWidth()}},replayTransitionIn:function(targetName){var target=this.dvWidget._getNotifyTarget(targetName);if(target&&target.replayTransitionIn){target.replayTransitionIn()}return this},simulateHover:function(targetName,seriesPoint){var target=this.dvWidget._getNotifyTarget(targetName);if(target&&target.simulateHover){target.simulateHover($.ig.APIFactory.prototype.createPoint(seriesPoint.x,seriesPoint.y))}return this},moveCursorPoint:function(targetName,worldPoint){var target=this.dvWidget._getNotifyTarget(targetName);if(target&&target.moveCursorPoint){target.moveCursorPoint($.ig.APIFactory.prototype.createPoint(worldPoint.x,worldPoint.y))}return this},startTiledZoomingIfNecessary:function(){this._chart.startTiledZoomingIfNecessary();return this},endTiledZoomingIfRunning:function(){this._chart.endTiledZoomingIfRunning();return this},clearTileZoomCache:function(){this._chart.clearTileZoomCache();return this},_initConverter:function(options,callback){var id=options.name||this._containerSourceID,convDataSource=options.triangulationDataSource||options.shapeDataSource;if(this.dataSources===undefined){this.dataSources={}}if(convDataSource instanceof $.ig.TriangulationDataSource||convDataSource instanceof $.ig.ShapeDataSource){this.dataSources[id]=convDataSource.converter();if(convDataSource.isBound()){callback.call(this.dvWidget)}else{convDataSource.settings.id=id;convDataSource.settings.callee=this.dvWidget;convDataSource.settings.callback=callback}}else{if(options.triangulationDataSource){this.dataSources[id]=new $.ig.TriangulationDataSource({id:id,source:options.triangulationDataSource,callback:callback,callee:this.dvWidget}).dataBind().converter()}else{this.dataSources[id]=new $.ig.ShapeDataSource({id:id,shapefileSource:options.shapeDataSource,databaseSource:options.databaseSource,callback:callback,callee:this.dvWidget}).dataBind().converter()}}this.dataSources[id].id=id}});$.extend($.ui.igDataChart,{version:"21.2.20212.99"});$.widget("ui.igPieChart",$.ui.igWidget,{options:{width:null,height:null,dataSource:null,dataSourceUrl:null,dataSourceType:null,responseDataKey:null,valueMemberPath:null,labelMemberPath:null,legendLabelMemberPath:null,dataValue:null,dataLabel:null,labelsPosition:"center",labelOuterColor:null,labelInnerColor:null,selectionMode:"single",selectedItem:null,selectedItems:null,leaderLineVisibility:"visible",leaderLineType:"straight",leaderLineMargin:6,othersCategoryThreshold:3,formatLabel:null,othersCategoryStyle:null,othersCategoryType:"percent",othersCategoryText:"Others",explodedRadius:.2,radiusFactor:.9,allowSliceSelection:true,allowSliceExplosion:true,explodedSlices:null,selectedSlices: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,labelClick:null,selectedItemChanging:null,selectedItemChanged:null,selectedItemsChanging:null,selectedItemsChanged: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)},option:function(){return this.dvWidget.option.apply(this.dvWidget,arguments)},addItem:function(item){this.dataSources[this.id()].addRow(null,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);this._superApply(arguments);return this},id:function(){return this.element[0].id},widget:function(){return this.element},print:function(){this.dvWidget._print()},exportVisualData:function(){return this._chart.exportVisualData()},getData:function(){if(this.dataSources&&this.dataSources.chart&&this.dataSources.chart.data){return this.dataSources.chart.data()}return null},flush:function(){if(this._chart&&typeof this._chart.flush==="function"){this._chart.flush()}}});$.extend($.ui.igPieChart,{version:"21.2.20212.99"});return $.ui.igDataChart});