rushfee/classes/artifacts/rushfee_Web_exploded/www/lib/echarts2/echarts-all-no-map.js

1 line
539 KiB
JavaScript
Raw Normal View History

2022-05-16 15:07:40 +00:00
!function(_){var $,D;!function(){function _(_,$){if(!$)return _;if(0===_.indexOf(".")){var G=$.split("/"),E=_.split("/"),B=G.length-1,A=E.length,C=0,D=0;$:for(var F=0;A>F;F++)switch(E[F]){case"..":if(!(B>C))break $;C++,D++;break;case".":D++;break;default:break $}return G.length=B-C,E=E.slice(D),G.concat(E).join("/")}return _}function E($){function D(F,D){if("string"==typeof F){var E=C[F];return E||(E=A(_(F,$)),C[F]=E),E}F instanceof Array&&(D=D||function(){},D.apply(this,B(F,D,$)))}var C={};return D}function B(K,H,E){for(var G=[],J=C[E],I=0,B=Math.min(K.length,H.length);B>I;I++){var D,F=_(K[I],E);switch(F){case"require":D=J&&J.require||$;break;case"exports":D=J.exports;break;case"module":D=J;break;default:D=A(F)}G.push(D)}return G}function A(_){var $=C[_];if(!$)throw new Error("No "+_);if(!$.defined){var D=$.factory,A=D.apply(this,B($.deps||[],D,_));"undefined"!=typeof A&&($.exports=A),$.defined=1}return $.exports}var C={};D=function(_,$,A){C[_]={id:_,deps:$,factory:A,defined:0,exports:{},require:E(_)}},$=E("")}(),D("echarts/chart/bar",["require","./base","zrender/shape/Rectangle","../component/axis","../component/grid","../component/dataZoom","../config","../util/ecData","zrender/tool/util","zrender/tool/color","../chart"],function(_){function $(_,$,C,B,A){F.call(this,_,$,C,B,A),this.refresh(B)}var F=_("./base"),E=_("zrender/shape/Rectangle");_("../component/axis"),_("../component/grid"),_("../component/dataZoom");var B=_("../config");B.bar={zlevel:0,z:2,clickable:!0,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,barMinHeight:0,barGap:"30%",barCategoryGap:"20%",itemStyle:{normal:{barBorderColor:"#fff",barBorderRadius:0,barBorderWidth:0,label:{show:!1}},emphasis:{barBorderColor:"#fff",barBorderRadius:0,barBorderWidth:0,label:{show:!1}}}};var A=_("../util/ecData"),C=_("zrender/tool/util"),D=_("zrender/tool/color");return $.prototype={type:B.CHART_TYPE_BAR,_buildShape:function(){this._buildPosition()},_buildNormal:function(j,W,f,k,Z){for(var a,e,b,V,Y,l,i,U,T,n,c,R,h=this.series,o=f[0][0],X=h[o],P="horizontal"==Z,M=this.component.xAxis,m=this.component.yAxis,F=P?M.getAxis(X.xAxisIndex):m.getAxis(X.yAxisIndex),g=this._mapSize(F,f),G=g.gap,H=g.barGap,C=g.barWidthMap,_=g.barMaxWidthMap,d=g.barWidth,L=g.barMinHeightMap,J=g.interval,O=this.deepQuery([this.ecTheme,B],"island.r"),Q=0,$=W;$>Q&&null!=F.getNameByIndex(Q);Q++){P?V=F.getCoordByIndex(Q)-G/2:Y=F.getCoordByIndex(Q)+G/2;for(var I=0,D=f.length;D>I;I++){var K=h[f[I][0]].yAxisIndex||0,A=h[f[I][0]].xAxisIndex||0;a=P?m.getAxis(K):M.getAxis(A),i=l=T=U=a.getCoord(0);for(var N=0,S=f[I].length;S>N;N++)o=f[I][N],X=h[o],c=X.data[Q],R=this.getDataFromOption(c,"-"),k[o]=k[o]||{min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY,sum:0,counter:0,average:0},b=Math.min(_[o]||Number.MAX_VALUE,C[o]||d),"-"!==R&&(R>0?(e=N>0?a.getCoordSize(R):P?i-a.getCoord(R):a.getCoord(R)-i,1===S&&L[o]>e&&(e=L[o]),P?(l-=e,Y=l):(V=l,l+=e)):0>R?(e=N>0?a.getCoordSize(R):P?a.getCoord(R)-T:T-a.getCoord(R),1===S&&L[o]>e&&(e=L[o]),P?(Y=U,U+=e):(U-=e,V=U)):(e=0,P?(l-=e,Y=l):(V=l,l+=e)),k[o][Q]=P?V+b/2:Y-b/2,k[o].min>R&&(k[o].min=R,P?(k[o].minY=Y,k[o].minX=k[o][Q]):(k[o].minX=V+e,k[o].minY=k[o][Q])),k[o].max<R&&(k[o].max=R,P?(k[o].maxY=Y,k[o].maxX=k[o][Q]):(k[o].maxX=V+e,k[o].maxY=k[o][Q])),k[o].sum+=R,k[o].counter++,Q%J===0&&(n=this._getBarItem(o,Q,F.getNameByIndex(Q),V,Y-(P?0:b),P?b:e,P?e:b,P?"vertical":"horizontal"),this.shapeList.push(new E(n))));for(N=0,S=f[I].length;S>N;N++)o=f[I][N],X=h[o],c=X.data[Q],R=this.getDataFromOption(c,"-"),b=Math.min(_[o]||Number.MAX_VALUE,C[o]||d),"-"==R&&this.deepQuery([c,X,this.option],"calculable")&&(P?(l-=O,Y=l):(V=l,l+=O),n=this._getBarItem(o,Q,F.getNameByIndex(Q),V,Y-(P?0:b),P?b:O,P?O:b,P?"vertical":"horizontal"),n.hoverable=!1,n.draggable=!1,n.style.lineWidth=1,n.style.brushType="stroke",n.style.strokeColor=X.calculableHolderColor||this.ecTheme.calculableHolderColor||B.calculableHolderColor,this.shapeList.push(new E(n)));P?V+=b+H:Y-=b+H}}this._calculMarkMapXY(k,f,P?"y":"x")},_buildHorizontal:function(_,$,B,A){return this._buildNormal(_,$,B,A,"horizontal")},_buildVertic