!function(e){"object"==typeof module&&"undefined"!=typeof module.exports?module.exports=e:e()}(function(){"use strict";(self.webpackChunkFusionCharts=self.webpackChunkFusionCharts||[]).push([[8],{1655:(e,t,a)=>{var l=a(272);t.__esModule=!0,t["default"]=void 0;var n=l(a(1656));t.OverlapperBar2D=n["default"];var r=l(a(1501));t["default"]={name:"overlappedbar2d",type:"package",requiresFusionCharts:!0,extension:function(e){e.addDep(r["default"]),e.addDep(n["default"])}}},1656:(e,t,a)=>{var l=a(272);t.__esModule=!0,t["default"]=void 0;var n=l(a(1657));t["default"]=n["default"]},1657:(e,t,a)=>{var l=a(272);t.__esModule=!0,t["default"]=void 0;var n=l(a(295)),r=l(a(651)),i=l(a(1658)),o=l(a(654)),d=l(a(1659)),u=function(e){function t(){var t;return(t=e.call(this)||this).isBar=!0,t.registerFactory("dataset",o["default"],["vCanvas"]),t}(0,n["default"])(t,e);var a=t.prototype;return a.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this);var t=this.config;t.friendlyName="Multi-series Bar Chart",t.hasLegend=!0,t.defaultDatasetType="bar2d"},a.getName=function(){return"OverlappedBar2D"},t.getName=function(){return"OverlappedBar2D"},a.getDSdef=function(){return i["default"]},a.getDSGroupdef=function(){return d["default"]},t}(r["default"]);t["default"]=u},1658:(e,t,a)=>{var l=a(272);t.__esModule=!0,t["default"]=void 0;var n,r=l(a(295)),i=a(281),o=l(a(666)),d=i.preDefStr.visibleStr,u=i.preDefStr.hiddenStr,s=i.preDefStr.POSITION_MIDDLE,f=i.preDefStr.POSITION_START,p=i.preDefStr.POSITION_END,h=Math.max,b=function(e){return e!==n&&null!==e};function c(e,t){var a,l,n,r,i=e.x,o=e.width;for(a=0,l=t.length;a<l;a++)if(r=t[a].width,n=t[a].x,t[a].labelShown&&i+o>=n&&n+r>=i)return!0;return!1}var g=function(e){function t(){var t;return(t=e.call(this)||this)._labeldimensionMap={},t}return(0,r["default"])(t,e),t.prototype.drawLabel=function(){var e,t,a,l,r,o,g,v,m,S,D,_,w,x,y,k,C,N,T,M,O,I,A,F,L,B,P,E,R=this,G=R.getFromEnv("chart"),V=G.config,J=R.config,K=J.JSONData,j=R.getFromEnv("animationManager"),q=R.getFromEnv("toolTipController"),z=G.getChildren("canvas")[0].config,H=G.config.dataLabelStyle,W=K.data,Q=G.config.categories,U=G.config.is3D,X=G.config.isstacked,Y=Q&&Q.length,Z=W&&W.length,$=R.getData(),ee=G.getFromEnv("smartLabel"),te=z.yDepth,ae=z.xDepth,le=G.getFromEnv("number-formatter"),ne=i.BLANKSTRING,re=V.placevaluesinside,ie=V.canvasWidth,oe=V.canvasLeft,de=R.getContainer("labelGroup"),ue=R.getSkippingInfo&&R.getSkippingInfo(),se=ue&&ue.skippingApplied,fe=ue&&ue.labelDraw||[],pe=fe.length,he=R.getJSONIndex(),be=R.getState("visible"),ce=function(){this.hide()},ge=function(){this.show()};for(be&&de.show(),ee.setStyle(H),e=se?pe:Y<Z?Y:Z,r=0;r<e;r++)C=(O=(t=$[l=se?fe[r]:r])&&t.config)&&O.setValue,t!==n&&C!==n&&null!==C&&!0!==O.labelSkip?(g=t.graphics)&&(o=W[l],x=t._yPos,y=t._xPos,C=le.getCleanValue(o.value),w=(0,i.pluckNumber)(C)<0,v=t._height,k=t._width,m=O.valuePadding+2,N=X?s:w?re?f:p:re?p:f,ne=O.displayValue,B=g.label,O.showValue&&b(ne)&&ne!==i.BLANKSTRING&&null!==C?(a={text:ne,fill:H.color,"text-bound":[H.backgroundColor,H.borderColor,H.borderThickness,H.borderPadding,H.borderRadius,H.borderDash],"line-height":H.lineHeight,visibility:R.getState("visible")?d:u},T=(P=ee.getOriSize(ne)).width,T+=m,M=m,S=x+.5*v,D=y+(w?0:k),_=w?y-oe:oe+ie-(y+k),re?k>=T?(D+=w?M:-M,U&&(S+=te,D-=ae)):T<_?(D+=w?-M:M,N=w?p:f,U&&w&&(D-=ae)):w?(D=y+k+h(T-y-k+oe,0)-M,N=p):(D=y-h(T-(oe+ie-y),0)+M,N=f):_>=T?(D+=w?-M:M,U&&w&&(D-=ae,S+=ae)):D+=w?M+T:-(M+T),(D>oe+ie||D<oe)&&(D=oe+4,N=f),a["text-anchor"]=N,a.x=D,a.y=S,a["text-bound"]=[H.backgroundColor,H.borderColor,H.borderThickness,H.borderPadding,H.borderRadius,H.borderDash],a.opacity=be?1:0,A=G.getDatasets().map(function(e){return e.getJSONIndex()<he&&e._labeldimensionMap[r]}).filter(Boolean),L=c(F={x:D,y:S,width:P.width,height:P.height},A),R._labeldimensionMap[r]=F,L?g.label&&(g.label=j.setAnimation({el:g.label,component:R}),R._labeldimensionMap[r].labelShown=!1):((I=j.setAnimation({el:B||"text",container:de,component:R,attr:a,callback:be?ge:ce,label:"plotLabel"}))&&I.outlineText(J.showTextOutline,a.fill),V.showtooltip&&I.abbrArr&&I.abbrArr.length&&q.enableToolTip(I,n),B||(g.label=I)),R._labeldimensionMap[r].labelShown=!(!be||L)):g.label&&(g.label=j.setAnimation({el:g.label,component:R}),R._labeldimensionMap[r].labelShown=!1)):((E=t&&t.graphics)&&E.label&&E.label.hide(),O&&delete O.labelSkip)},t}(o["default"]);t["default"]=g}}])});
//# sourceMappingURL=http://localhost:3052/4.2.0/map/eval/fusioncharts.overlappedbar2d.js.map