// All material copyright ESRI, All Rights Reserved, unless otherwise specified.
// See http://js.arcgis.com/3.23/esri/copyright.txt for details.
//>>built
define("esri/dijit/geoenrichment/ReportPlayer/core/charts/chartUtils/ChartJsonUtil",["dojo/_base/lang","./ThemeCalculator","./ChartTypes","esri/dijit/geoenrichment/utils/ObjectUtil","./plots/supportClasses/GaugeLabelPlacement"],function(a,d,g,h,k){var e={getDefaultChartSettings:function(b){b=b||{};var c=a.mixin({},b.font),f=a.mixin({},b.font);delete f.fontSize;c={isChart:!0,type:b.chartType||g.COLUMN,seriesItems:[],visualProperties:{width:b.width||400,height:b.height||300,barBorders:!1,dataLabels:"None",
view3D:!1,origin:0,lineThickness:d.DEFAULT_LINE_THICKNESS,columnThickness:d.DEFAULT_COLUMN_THICKNESS,dataLabelsStyle:a.mixin({},c),dataLabelsDecimals:0,backgroundColor:null,title:{text:"",align:"center",style:a.mixin({},c)},xAxis:{show:!0,showTicks:!0,ticksInside:!1,showLine:!0,title:"",titleStyle:a.mixin({},c),style:a.mixin({},c),labelsAngle:0,lineColor:void 0,gridLines:!1,gridLinesCentered:!1,gridLinesOpacity:1,placement:void 0},yAxis:{show:!0,showTicks:!0,ticksInside:!1,showLine:!0,title:"",titleStyle:a.mixin({},
c),style:a.mixin({},c),labelsAngle:0,lineColor:void 0,gridLines:!1,gridLinesCentered:!1,gridLinesOpacity:1,placement:void 0},legend:{hasBorder:!0,labelParts:"Label",placement:"Right",placementOffset:10,style:a.mixin({},c)}},comparisonInfo:null};c.isMultiFeatureChart=!!b.isMultiFeatureChart;a.mixin(c.visualProperties,{backgroundImageData:null,isStacked:!1,showColumnBarBackground:!1,columnBarBackgroundColor:null,fillLineArea:!1,donutHolePercent:d.DEFAULT_DONUT_HOLE_PERCENT,donutGap:d.DEFAULT_DONUT_GAP,
donutArcPercent:d.DEFAULT_DONUT_ARC_PERCENT,gaugeHolePercent:d.DEFAULT_GAUGE_HOLE_PERCENT,gaugeGap:d.DEFAULT_GAUGE_GAP,gaugeStartAngle:d.DEFAULT_GAUGE_ANGLE,gaugeArcPercent:d.DEFAULT_GAUGE_ARC_PERCENT,gaugeLabelPlacement:k.INSIDE,gaugeLabelStyle:a.mixin({},f),gaugeShowArrow:!1,gaugeArrowLineColor:null,gaugeArrowFillColor:null,ringBackgroundColor:null,showWholePictures:!1,dataLabelsInside:!1,dataLabelsStackedInColumns:!1,dataLabelsHorizontalAlign:null,chartIcons:null,floatingIcons:null,showAxisIcons:!1,
showChartIcons:!1,floatingTexts:null,sorting:void 0,conditionalStyling:null});return c},provideDefaultValueForMissing:function(b,c){var a=e.getDefaultChartSettings(c);h.populateObject(b,a);return b},createChartPoint:function(b,c,a,d,e){return{color:a||"",label:c||b&&b.alias,fieldInfo:b,iconFieldInfo:d,captionFieldInfo:e}}};return e});