1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-bc859454"],{"00ba3":function(e,t,r){var a=r("3eba"),i=r("6d8b"),n=r("e46b"),o=r("e0d3"),l=o.defaultEmphasis,s=r("0f99"),u=s.makeSeriesEncodeForNameBased,d=r("c4a3"),c=a.extendSeriesModel({type:"series.funnel",init:function(e){c.superApply(this,"init",arguments),this.legendVisualProvider=new d(i.bind(this.getData,this),i.bind(this.getRawData,this)),this._defaultLabelLine(e)},getInitialData:function(e,t){return n(this,{coordDimensions:["value"],encodeDefaulter:i.curry(u,this)})},_defaultLabelLine:function(e){l(e,"labelLine",["show"]);var t=e.labelLine,r=e.emphasis.labelLine;t.show=t.show&&e.label.show,r.show=r.show&&e.emphasis.label.show},getDataParams:function(e){var t=this.getData(),r=c.superCall(this,"getDataParams",e),a=t.mapDimension("value"),i=t.getSum(a);return r.percent=i?+(t.get(a,e)/i*100).toFixed(2):0,r.$vars.push("percent"),r},defaultOption:{zlevel:0,z:2,legendHoverLink:!0,left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1,type:"solid"}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}}}}),h=c;e.exports=h},"17b8":function(e,t,r){var a=r("3014"),i=a.extend({type:"series.bar",dependencies:["grid","polar"],brushSelector:"rect",getProgressive:function(){return!!this.get("large")&&this.get("progressive")},getProgressiveThreshold:function(){var e=this.get("progressiveThreshold"),t=this.get("largeThreshold");return t>e&&(e=t),e},defaultOption:{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1}}});e.exports=i},"24b9":function(e,t,r){var a=r("4e08"),i=(a.__DEV__,r("f934")),n=r("3842"),o=n.parsePercent,l=n.linearMap;function s(e,t){return i.getLayoutRect(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function u(e,t){for(var r=e.mapDimension("value"),a=e.mapArray(r,(function(e){return e})),i=[],n="ascending"===t,o=0,l=e.count();o<l;o++)i[o]=o;return"function"===typeof t?i.sort(t):"none"!==t&&i.sort((function(e,t){return n?a[e]-a[t]:a[t]-a[e]})),i}function d(e){e.each((function(t){var r,a,i,n,o=e.getItemModel(t),l=o.getModel("label"),s=l.get("position"),u=o.get("orient"),d=o.getModel("labelLine"),c=e.getItemLayout(t),h=c.points,g="inner"===s||"inside"===s||"center"===s||"insideLeft"===s||"insideRight"===s;if(g)"insideLeft"===s?(a=(h[0][0]+h[3][0])/2+5,i=(h[0][1]+h[3][1])/2,r="left"):"insideRight"===s?(a=(h[1][0]+h[2][0])/2-5,i=(h[1][1]+h[2][1])/2,r="right"):(a=(h[0][0]+h[1][0]+h[2][0]+h[3][0])/4,i=(h[0][1]+h[1][1]+h[2][1]+h[3][1])/4,r="center"),n=[[a,i],[a,i]];else{var p,f,m,v,y=d.get("length");"left"===s?(p=(h[3][0]+h[0][0])/2,f=(h[3][1]+h[0][1])/2,m=p-y,a=m-5,r="right"):"right"===s?(p=(h[1][0]+h[2][0])/2,f=(h[1][1]+h[2][1])/2,m=p+y,a=m+5,r="left"):"top"===s?(p=(h[3][0]+h[0][0])/2,f=(h[3][1]+h[0][1])/2,v=f-y,i=v-5,r="center"):"bottom"===s?(p=(h[1][0]+h[2][0])/2,f=(h[1][1]+h[2][1])/2,v=f+y,i=v+5,r="center"):"rightTop"===s?(p="horizontal"===u?h[3][0]:h[1][0],f="horizontal"===u?h[3][1]:h[1][1],"horizontal"===u?(v=f-y,i=v-5,r="center"):(m=p+y,a=m+5,r="top")):"rightBottom"===s?(p=h[2][0],f=h[2][1],"horizontal"===u?(v=f+y,i=v+5,r="center"):(m=p+y,a=m+5,r="bottom")):"leftTop"===s?(p=h[0][0],f="horizontal"===u?h[0][1]:h[1][1],"horizontal"===u?(v=f-y,i=v-5,r="center"):(m=p-y,a=m-5,r="right")):"leftBottom"===s?(p="horizontal"===u?h[1][0]:h[3][0],f="horizontal"===u?h[1][1]:h[2][1],"horizontal"===u?(v=f+y,i=v+5,r="center"):(m=p-y,a=m-5,r="right")):(p=(h[1][0]+h[2][0])/2,f=(h[1][1]+h[2][1])/2,"horizontal"===u?(v=f+y,i=v+5,r="center"):(m=p+y,a=m+5,r="left")),"horizontal"===u?(m=p,a=m):(v=f,i=v),n=[[p,f],[m,v]]}c.label={linePoints:n,x:a,y:i,verticalAlign:"middle",textAlign:r,inside:g}}))}function c(e,t,r){e.eachSeriesByType("funnel",(function(e){var r=e.getData(),a=r.mapDimension("value"),i=e.get("sort"),n=s(e,t),c=u(r,i),h=e.get("orient"),g=n.width,p=n.height,f=n.x,m=n.y,v="horizontal"===h?[o(e.get("minSize"),p),o(e.get("maxSize"),p)]:[o(e.get("minSize"),g),o(e.get("maxSize"),g)],y=r.getDataExtent(a),b=e.get("min"),x=e.get("max");null==b&&(b=Math.min(y[0],0)),null==x&&(x=y[1]);var w=e.get("funnelAlign"),S=e.get("gap"),_="horizontal"===h?g:p,I=(_-S*(r.count()-1))/r.count(),A=function(e,t){if("horizontal"===h){var i,n=r.get(a,e)||0,o=l(n,[b,x],v,!0);switch(w){case"top":i=m;break;case"center":i=m+(p-o)/2;break;case"bottom":i=m+(p-o);break}return[[t,i],[t,i+o]]}n=r.get(a,e)||0;var s,u=l(n,[b,x],v,!0);switch(w){case"left":s=f;break;case"center":s=f+(g-u)/2;break;case"right":s=f+g-u;break}return[[s,t],[s+u,t]]};"ascending"===i&&(I=-I,S=-S,"horizontal"===h?f+=g:m+=p,c=c.reverse());for(var L=0;L<c.length;L++){var M=c[L],D=c[L+1],P=r.getItemModel(M);if("horizontal"===h){var k=P.get("itemStyle.width");null==k?k=I:(k=o(k,g),"ascending"===i&&(k=-k));var V=A(M,f),T=A(D,f+k);f+=k+S,r.setItemLayout(M,{points:V.concat(T.slice().reverse())})}else{var z=P.get("itemStyle.height");null==z?z=I:(z=o(z,p),"ascending"===i&&(z=-z));V=A(M,"horizontal"===h?f:m),T=A(D,"horizontal"===h?f+k:m+z);m+=z+S,r.setItemLayout(M,{points:V.concat(T.slice().reverse())})}}d(r)}))}e.exports=c},3014:function(e,t,r){var a=r("4f85"),i=r("3301"),n=a.extend({type:"series.__base_bar__",getInitialData:function(e,t){return i(this.getSource(),this,{useEncodeDefaulter:!0})},getMarkerPosition:function(e){var t=this.coordinateSystem;if(t){var r=t.dataToPoint(t.clampData(e)),a=this.getData(),i=a.getLayout("offset"),n=a.getLayout("size"),o=t.getBaseAxis().isHorizontal()?0:1;return r[o]+=i+n/2,r}return[NaN,NaN]},defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod",itemStyle:{},emphasis:{}}});e.exports=n},"4d62":function(e,t,r){var a=r("2306"),i=r("6d8b"),n=r("e887");function o(e,t){a.Group.call(this);var r=new a.Polygon,i=new a.Polyline,n=new a.Text;this.add(r),this.add(i),this.add(n),this.highDownOnUpdate=function(e,t){"emphasis"===t?(i.ignore=i.hoverIgnore,n.ignore=n.hoverIgnore):(i.ignore=i.normalIgnore,n.ignore=n.normalIgnore)},this.updateData(e,t,!0)}var l=o.prototype,s=["itemStyle","opacity"];l.updateData=function(e,t,r){var n=this.childAt(0),o=e.hostModel,l=e.getItemModel(t),u=e.getItemLayout(t),d=e.getItemModel(t).get(s);d=null==d?1:d,n.useStyle({}),r?(n.setShape({points:u.points}),n.setStyle({opacity:0}),a.initProps(n,{style:{opacity:d}},o,t)):a.updateProps(n,{style:{opacity:d},shape:{points:u.points}},o,t);var c=l.getModel("itemStyle"),h=e.getItemVisual(t,"color");n.setStyle(i.defaults({lineJoin:"round",fill:h},c.getItemStyle(["opacity"]))),n.hoverStyle=c.getModel("emphasis").getItemStyle(),this._updateLabel(e,t),a.setHoverStyle(this)},l._updateLabel=function(e,t){var r=this.childAt(1),i=this.childAt(2),n=e.hostModel,o=e.getItemModel(t),l=e.getItemLayout(t),s=l.label,u=e.getItemVisual(t,"color");a.updateProps(r,{shape:{points:s.linePoints||s.linePoints}},n,t),a.updateProps(i,{style:{x:s.x,y:s.y}},n,t),i.attr({rotation:s.rotation,origin:[s.x,s.y],z2:10});var d=o.getModel("label"),c=o.getModel("emphasis.label"),h=o.getModel("labelLine"),g=o.getModel("emphasis.labelLine");u=e.getItemVisual(t,"color");a.setLabelStyle(i.style,i.hoverStyle={},d,c,{labelFetcher:e.hostModel,labelDataIndex:t,defaultText:e.getName(t),autoColor:u,useInsideStyle:!!s.inside},{textAlign:s.textAlign,textVerticalAlign:s.verticalAlign}),i.ignore=i.normalIgnore=!d.get("show"),i.hoverIgnore=!c.get("show"),r.ignore=r.normalIgnore=!h.get("show"),r.hoverIgnore=!g.get("show"),r.setStyle({stroke:u}),r.setStyle(h.getModel("lineStyle").getLineStyle()),r.hoverStyle=g.getModel("lineStyle").getLineStyle()},i.inherits(o,a.Group);var u=n.extend({type:"funnel",render:function(e,t,r){var a=e.getData(),i=this._data,n=this.group;a.diff(i).add((function(e){var t=new o(a,e);a.setItemGraphicEl(e,t),n.add(t)})).update((function(e,t){var r=i.getItemGraphicEl(t);r.updateData(a,e),n.add(r),a.setItemGraphicEl(e,r)})).remove((function(e){var t=i.getItemGraphicEl(e);n.remove(t)})).execute(),this._data=a},remove:function(){this.group.removeAll(),this._data=null},dispose:function(){}}),d=u;e.exports=d},"67cc":function(e,t,r){var a=r("4e08"),i=(a.__DEV__,r("3eba")),n=r("6d8b"),o=r("2306"),l=r("e7aa"),s=l.setLabel,u=r("4319"),d=r("b5c7"),c=r("cbe5"),h=r("e1fc"),g=r("88b3"),p=g.throttle,f=r("b0af"),m=f.createClipPath,v=r("c2be"),y=["itemStyle","barBorderWidth"],b=[0,0];function x(e,t){var r=e.getArea&&e.getArea();if("cartesian2d"===e.type){var a=e.getBaseAxis();if("category"!==a.type||!a.onBand){var i=t.getLayout("bandWidth");a.isHorizontal()?(r.x-=i,r.width+=2*i):(r.y-=i,r.height+=2*i)}}return r}n.extend(u.prototype,d);var w=i.extendChartView({type:"bar",render:function(e,t,r){this._updateDrawMode(e);var a=e.get("coordinateSystem");return"cartesian2d"!==a&&"polar"!==a||(this._isLargeDraw?this._renderLarge(e,t,r):this._renderNormal(e,t,r)),this.group},incrementalPrepareRender:function(e,t,r){this._clear(),this._updateDrawMode(e)},incrementalRender:function(e,t,r,a){this._incrementalRenderLarge(e,t)},_updateDrawMode:function(e){var t=e.pipelineContext.large;(null==this._isLargeDraw||t^this._isLargeDraw)&&(this._isLargeDraw=t,this._clear())},_renderNormal:function(e,t,r){var a,i=this.group,n=e.getData(),l=this._data,s=e.coordinateSystem,u=s.getBaseAxis();"cartesian2d"===s.type?a=u.isHorizontal():"polar"===s.type&&(a="angle"===u.dim);var d=e.isAnimationEnabled()?e:null,c=e.get("clip",!0),g=x(s,n);i.removeClipPath();var p=e.get("roundCap",!0),f=e.get("showBackground",!0),m=e.getModel("backgroundStyle"),v=m.get("barBorderRadius")||0,y=[],b=this._backgroundEls||[],w=function(e){var t=D[s.type](n,e),r=E(s,a,t);return r.useStyle(m.getBarItemStyle()),"cartesian2d"===s.type&&r.setShape("r",v),y[e]=r,r};n.diff(l).add((function(t){var r=n.getItemModel(t),o=D[s.type](n,t,r);if(f&&w(t),n.hasValue(t)){if(c){var l=I[s.type](g,o);if(l)return void i.remove(u)}var u=A[s.type](t,o,a,d,!1,p);n.setItemGraphicEl(t,u),i.add(u),k(u,n,t,r,o,e,a,"polar"===s.type)}})).update((function(t,r){var u=n.getItemModel(t),h=D[s.type](n,t,u);if(f){var x;0===b.length?x=w(r):(x=b[r],x.useStyle(m.getBarItemStyle()),"cartesian2d"===s.type&&x.setShape("r",v),y[t]=x);var S=D[s.type](n,t),_=R(a,S,s);o.updateProps(x,{shape:_},d,t)}var L=l.getItemGraphicEl(r);if(n.hasValue(t)){if(c){var M=I[s.type](g,h);if(M)return void i.remove(L)}L?o.updateProps(L,{shape:h},d,t):L=A[s.type](t,h,a,d,!0,p),n.setItemGraphicEl(t,L),i.add(L),k(L,n,t,u,h,e,a,"polar"===s.type)}else i.remove(L)})).remove((function(e){var t=l.getItemGraphicEl(e);"cartesian2d"===s.type?t&&L(e,d,t):t&&M(e,d,t)})).execute();var S=this._backgroundGroup||(this._backgroundGroup=new h);S.removeAll();for(var _=0;_<y.length;++_)S.add(y[_]);i.add(S),this._backgroundEls=y,this._data=n},_renderLarge:function(e,t,r){this._clear(),z(e,this.group);var a=e.get("clip",!0)?m(e.coordinateSystem,!1,e):null;a?this.group.setClipPath(a):this.group.removeClipPath()},_incrementalRenderLarge:function(e,t){this._removeBackground(),z(t,this.group,!0)},dispose:n.noop,remove:function(e){this._clear(e)},_clear:function(e){var t=this.group,r=this._data;e&&e.get("animation")&&r&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],r.eachItemGraphicEl((function(t){"sector"===t.type?M(t.dataIndex,e,t):L(t.dataIndex,e,t)}))):t.removeAll(),this._data=null},_removeBackground:function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null}}),S=Math.max,_=Math.min,I={cartesian2d:function(e,t){var r=t.width<0?-1:1,a=t.height<0?-1:1;r<0&&(t.x+=t.width,t.width=-t.width),a<0&&(t.y+=t.height,t.height=-t.height);var i=S(t.x,e.x),n=_(t.x+t.width,e.x+e.width),o=S(t.y,e.y),l=_(t.y+t.height,e.y+e.height);t.x=i,t.y=o,t.width=n-i,t.height=l-o;var s=t.width<0||t.height<0;return r<0&&(t.x+=t.width,t.width=-t.width),a<0&&(t.y+=t.height,t.height=-t.height),s},polar:function(e,t){var r=t.r0<=t.r?1:-1;if(r<0){var a=t.r;t.r=t.r0,t.r0=a}a=_(t.r,e.r);var i=S(t.r0,e.r0);t.r=a,t.r0=i;var n=a-i<0;if(r<0){a=t.r;t.r=t.r0,t.r0=a}return n}},A={cartesian2d:function(e,t,r,a,i){var l=new o.Rect({shape:n.extend({},t),z2:1});if(l.name="item",a){var s=l.shape,u=r?"height":"width",d={};s[u]=0,d[u]=t[u],o[i?"updateProps":"initProps"](l,{shape:d},a,e)}return l},polar:function(e,t,r,a,i,l){var s=t.startAngle<t.endAngle,u=!r&&l?v:o.Sector,d=new u({shape:n.defaults({clockwise:s},t),z2:1});if(d.name="item",a){var c=d.shape,h=r?"r":"endAngle",g={};c[h]=r?0:t.startAngle,g[h]=t[h],o[i?"updateProps":"initProps"](d,{shape:g},a,e)}return d}};function L(e,t,r){r.style.text=null,o.updateProps(r,{shape:{width:0}},t,e,(function(){r.parent&&r.parent.remove(r)}))}function M(e,t,r){r.style.text=null,o.updateProps(r,{shape:{r:r.shape.r0}},t,e,(function(){r.parent&&r.parent.remove(r)}))}var D={cartesian2d:function(e,t,r){var a=e.getItemLayout(t),i=r?V(r,a):0,n=a.width>0?1:-1,o=a.height>0?1:-1;return{x:a.x+n*i/2,y:a.y+o*i/2,width:a.width-n*i,height:a.height-o*i}},polar:function(e,t,r){var a=e.getItemLayout(t);return{cx:a.cx,cy:a.cy,r0:a.r0,r:a.r,startAngle:a.startAngle,endAngle:a.endAngle}}};function P(e){return null!=e.startAngle&&null!=e.endAngle&&e.startAngle===e.endAngle}function k(e,t,r,a,i,l,u,d){var c=t.getItemVisual(r,"color"),h=t.getItemVisual(r,"opacity"),g=t.getVisual("borderColor"),p=a.getModel("itemStyle"),f=a.getModel("emphasis.itemStyle").getBarItemStyle();d||e.setShape("r",p.get("barBorderRadius")||0),e.useStyle(n.defaults({stroke:P(i)?"none":g,fill:P(i)?"none":c,opacity:h},p.getBarItemStyle()));var m=a.getShallow("cursor");m&&e.attr("cursor",m);var v=u?i.height>0?"bottom":"top":i.width>0?"left":"right";d||s(e.style,f,a,c,l,r,v),P(i)&&(f.fill=f.stroke="none"),o.setHoverStyle(e,f)}function V(e,t){var r=e.get(y)||0,a=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),i=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(r,a,i)}var T=c.extend({type:"largeBar",shape:{points:[]},buildPath:function(e,t){for(var r=t.points,a=this.__startPoint,i=this.__baseDimIdx,n=0;n<r.length;n+=2)a[i]=r[n+i],e.moveTo(a[0],a[1]),e.lineTo(r[n],r[n+1])}});function z(e,t,r){var a=e.getData(),i=[],n=a.getLayout("valueAxisHorizontal")?1:0;i[1-n]=a.getLayout("valueAxisStart");var o=a.getLayout("largeDataIndices"),l=a.getLayout("barWidth"),s=e.getModel("backgroundStyle"),u=e.get("showBackground",!0);if(u){var d=a.getLayout("largeBackgroundPoints"),c=[];c[1-n]=a.getLayout("backgroundStart");var h=new T({shape:{points:d},incremental:!!r,__startPoint:c,__baseDimIdx:n,__largeDataIndices:o,__barWidth:l,silent:!0,z2:0});C(h,s,a),t.add(h)}var g=new T({shape:{points:a.getLayout("largePoints")},incremental:!!r,__startPoint:i,__baseDimIdx:n,__largeDataIndices:o,__barWidth:l});t.add(g),B(g,e,a),g.seriesIndex=e.seriesIndex,e.get("silent")||(g.on("mousedown",N),g.on("mousemove",N))}var N=p((function(e){var t=this,r=O(t,e.offsetX,e.offsetY);t.dataIndex=r>=0?r:null}),30,!1);function O(e,t,r){var a=e.__baseDimIdx,i=1-a,n=e.shape.points,o=e.__largeDataIndices,l=Math.abs(e.__barWidth/2),s=e.__startPoint[i];b[0]=t,b[1]=r;for(var u=b[a],d=b[1-a],c=u-l,h=u+l,g=0,p=n.length/2;g<p;g++){var f=2*g,m=n[f+a],v=n[f+i];if(m>=c&&m<=h&&(s<=v?d>=s&&d<=v:d>=v&&d<=s))return o[g]}return-1}function B(e,t,r){var a=r.getVisual("borderColor")||r.getVisual("color"),i=t.getModel("itemStyle").getItemStyle(["color","borderColor"]);e.useStyle(i),e.style.fill=null,e.style.stroke=a,e.style.lineWidth=r.getLayout("barWidth")}function C(e,t,r){var a=t.get("borderColor")||t.get("color"),i=t.getItemStyle(["color","borderColor"]);e.useStyle(i),e.style.fill=null,e.style.stroke=a,e.style.lineWidth=r.getLayout("barWidth")}function R(e,t,r){var a,i="polar"===r.type;return a=i?r.getArea():r.grid.getRect(),i?{cx:a.cx,cy:a.cy,r0:e?a.r0:t.r0,r:e?a.r:t.r,startAngle:e?t.startAngle:0,endAngle:e?t.endAngle:2*Math.PI}:{x:e?t.x:a.x,y:e?a.y:t.y,width:e?t.width:a.width,height:e?a.height:t.height}}function E(e,t,r){var a="polar"===e.type?o.Sector:o.Rect;return new a({shape:R(t,r,e),silent:!0,z2:0})}e.exports=w},"947c":function(e,t,r){"use strict";function a(e){return e&&"object"===typeof e&&"default"in e?e["default"]:e}var i=r("89d6"),n=r("6f0c");r("a4b1");var o=a(r("6521"));function l(e,t){return{trigger:"item",formatter:function(r){var a=[];return a.push(i.itemPoint(r.color)),a.push(r.name+": "+n.getFormated(r.data.realValue,e,t)),a.join("")}}}function s(e){var t=e.data,r=e.legendName;return{data:t,formatter:function(e){return null!=r[e]?r[e]:e}}}function u(e){var t=e.dimension,r=e.metrics,a=e.rows,i=e.sequence,n=e.ascending,o=e.label,l=e.labelLine,s=e.itemStyle,u=e.filterZero,d=e.useDefaultOrder,c={type:"funnel"},h=a.sort((function(e,r){return i.indexOf(e[t])-i.indexOf(r[t])}));u&&(h=h.filter((function(e){return e[r]})));var g=!1;h.some((function(e,t){if(t&&e[r]>h[t-1][r])return g=!0,!0}));var p=100/h.length;return c.data=g&&!d?h.slice().reverse().map((function(e,a){return{name:e[t],value:(a+1)*p,realValue:e[r]}})):h.map((function(e){return{name:e[t],value:e[r],realValue:e[r]}})),n&&(c.sort="ascending"),o&&(c.label=o),l&&(c.labelLine=l),s&&(c.itemStyle=s),c}var d=function(e,t,r,a){var i=e.slice(),n=t.slice(),o=r.dataType,d=void 0===o?"normal":o,c=r.dimension,h=void 0===c?i[0]:c,g=r.sequence,p=void 0===g?n.map((function(e){return e[h]})):g,f=r.digit,m=void 0===f?2:f,v=r.ascending,y=r.label,b=r.labelLine,x=r.legendName,w=void 0===x?{}:x,S=r.itemStyle,_=r.filterZero,I=r.useDefaultOrder,A=a.tooltipVisible,L=a.legendVisible,M=void 0;if(r.metrics)M=r.metrics;else{var D=i.slice();D.splice(i.indexOf(h),1),M=D[0]}var P=A&&l(d,m),k=L&&s({data:p,legendName:w}),V=u({dimension:h,metrics:M,rows:n,sequence:p,ascending:v,label:y,labelLine:b,itemStyle:S,filterZero:_,useDefaultOrder:I}),T={tooltip:P,legend:k,series:V};return T},c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},h=c({},o,{name:"VeFunnel",data:function(){return this.chartHandler=d,{}}});e.exports=h},"94b1":function(e,t,r){var a=r("3eba"),i=r("6d8b"),n=r("9d57"),o=n.layout,l=n.largeLayout;r("5aa9"),r("17b8"),r("67cc"),r("01ed"),a.registerLayout(a.PRIORITY.VISUAL.LAYOUT,i.curry(o,"bar")),a.registerLayout(a.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,l),a.registerVisual({seriesType:"bar",reset:function(e){e.getData().setVisual("legendSymbol","roundRect")}})},"98e7":function(e,t,r){var a=r("6d8b"),i=a.createHashMap;function n(e){return{getTargetSeries:function(t){var r={},a=i();return t.eachSeriesByType(e,(function(e){e.__paletteScope=r,a.set(e.uid,e)})),a},reset:function(e,t){var r=e.getRawData(),a={},i=e.getData();i.each((function(e){var t=i.getRawIndex(e);a[t]=e})),r.each((function(t){var n,o=a[t],l=null!=o&&i.getItemVisual(o,"color",!0),s=null!=o&&i.getItemVisual(o,"borderColor",!0);if(l&&s||(n=r.getItemModel(t)),!l){var u=n.get("itemStyle.color")||e.getColorFromPalette(r.getName(t)||t+"",e.__paletteScope,r.count());null!=o&&i.setItemVisual(o,"color",u)}if(!s){var d=n.get("itemStyle.borderColor");null!=o&&i.setItemVisual(o,"borderColor",d)}}))}}}e.exports=n},a4b1:function(e,t,r){var a=r("3eba");r("00ba3"),r("4d62");var i=r("98e7"),n=r("24b9"),o=r("d3f47");a.registerVisual(i("funnel")),a.registerLayout(n),a.registerProcessor(o("funnel"))},b5c7:function(e,t,r){var a=r("282b"),i=a([["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["stroke","barBorderColor"],["lineWidth","barBorderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),n={getBarItemStyle:function(e){var t=i(this,e);if(this.getBorderLineDash){var r=this.getBorderLineDash();r&&(t.lineDash=r)}return t}};e.exports=n},c2be:function(e,t,r){var a=r("2306"),i=a.extendShape,n=i({type:"sausage",shape:{cx:0,cy:0,r0:0,r:0,startAngle:0,endAngle:2*Math.PI,clockwise:!0},buildPath:function(e,t){var r=t.cx,a=t.cy,i=Math.max(t.r0||0,0),n=Math.max(t.r,0),o=.5*(n-i),l=i+o,s=t.startAngle,u=t.endAngle,d=t.clockwise,c=Math.cos(s),h=Math.sin(s),g=Math.cos(u),p=Math.sin(u),f=d?u-s<2*Math.PI:s-u<2*Math.PI;f&&(e.moveTo(c*i+r,h*i+a),e.arc(c*l+r,h*l+a,o,-Math.PI+s,s,!d)),e.arc(r,a,n,s,u,!d),e.moveTo(g*n+r,p*n+a),e.arc(g*l+r,p*l+a,o,u-2*Math.PI,u-Math.PI,!d),0!==i&&(e.arc(r,a,i,u,s,d),e.moveTo(c*i+r,p*i+a)),e.closePath()}});e.exports=n},c4a3:function(e,t){function r(e,t){this.getAllNames=function(){var e=t();return e.mapArray(e.getName)},this.containName=function(e){var r=t();return r.indexOfName(e)>=0},this.indexOfName=function(t){var r=e();return r.indexOfName(t)},this.getItemVisual=function(t,r){var a=e();return a.getItemVisual(t,r)}}var a=r;e.exports=a},d3f47:function(e,t){function r(e){return{seriesType:e,reset:function(e,t){var r=t.findComponents({mainType:"legend"});if(r&&r.length){var a=e.getData();a.filterSelf((function(e){for(var t=a.getName(e),i=0;i<r.length;i++)if(!r[i].isSelected(t))return!1;return!0}))}}}}e.exports=r},d768:function(e,t,r){"use strict";function a(e){return e&&"object"===typeof e&&"default"in e?e["default"]:e}var i=r("89d6"),n=r("6f0c"),o=r("4cbb");r("94b1");var l=a(r("6521")),s=function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e},u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},d=.5;function c(e){var t=e.innerRows,r=e.dimAxisName,a=e.dimension,i=e.axisVisible,n=e.dimAxisType,o=e.dims;return a.map((function(e){return{type:"category",name:r,nameLocation:"middle",nameGap:22,data:"value"===n?h(o):t.map((function(t){return t[e]})),axisLabel:{formatter:function(e){return String(e)}},show:i}}))}function h(e){for(var t=Math.max.apply(null,e),r=Math.min.apply(null,e),a=[],i=r;i<=t;i++)a.push(i);return a}function g(e){for(var t=e.meaAxisName,r=e.meaAxisType,a=e.axisVisible,i=e.digit,o=e.scale,l=e.min,s=e.max,d={type:"value",axisTick:{show:!1},show:a},c=[],h=function(e){r[e]?c[e]=u({},d,{axisLabel:{formatter:function(t){return n.getFormated(t,r[e],i)}}}):c[e]=u({},d),c[e].name=t[e]||"",c[e].scale=o[e]||!1,c[e].min=l[e]||null,c[e].max=s[e]||null},g=0;g<2;g++)h(g);return c}function p(e){var t=e.axisSite,r=e.isHistogram,a=e.meaAxisType,o=e.digit,l=e.labelMap,s=r?t.right||[]:t.top||[];return l&&(s=s.map((function(e){return void 0===l[e]?e:l[e]}))),{trigger:"axis",formatter:function(e){var t=[];return t.push(e[0].name+"<br>"),e.forEach((function(e){var r=e.seriesName,l=~s.indexOf(r)?a[1]:a[0];t.push(i.itemPoint(e.color)),t.push(r+": "),t.push(n.getFormated(e.value,l,o)),t.push("<br>")})),t.join("")}}}function f(e,t){for(var r=Math.max.apply(null,t),a=Math.min.apply(null,t),i=[],n=a;n<=r;n++){var o=t.indexOf(n);~o?i.push(e[o]):i.push(null)}return i}function m(e){var t=e.innerRows,r=e.metrics,a=e.stack,i=e.axisSite,l=e.isHistogram,u=e.labelMap,c=e.itemStyle,h=e.label,g=e.showLine,p=void 0===g?[]:g,m=e.dimAxisType,v=e.barGap,y=e.opacity,b=e.dims,x=[],w={},S=l?i.right||[]:i.top||[],_=l?"yAxisIndex":"xAxisIndex",I=a&&n.getStackMap(a);return r.forEach((function(e){w[e]=[]})),t.forEach((function(e){r.forEach((function(t){w[t].push(e[t])}))})),x=Object.keys(w).map((function(e,t){var r="value"===m?f(w[e],b):w[e],i=s({name:null!=u[e]?u[e]:e,type:~p.indexOf(e)?"line":"bar",data:r},_,~S.indexOf(e)?"1":"0");a&&I[e]&&(i.stack=I[e]),h&&(i.label=h),c&&(i.itemStyle=c);var n=y||o.get(i,"itemStyle.normal.opacity");return"value"===m&&(i.barGap=v,i.barCategoryGap="1%",null==n&&(n=d)),null!=n&&o.set(i,"itemStyle.normal.opacity",n),i})),!!x.length&&x}function v(e){var t=e.metrics,r=e.labelMap,a=e.legendName;if(!a&&!r)return{data:t};var i=r?t.map((function(e){return null==r[e]?e:r[e]})):t;return{data:i,formatter:function(e){return null!=a[e]?a[e]:e}}}function y(e,t){return e.map((function(e){return e[t[0]]}))}var b=function(e,t,r,a){var i=o.cloneDeep(t),n=r.axisSite,l=void 0===n?{}:n,s=r.dimension,u=void 0===s?[e[0]]:s,d=r.stack,h=void 0===d?{}:d,f=r.axisVisible,b=void 0===f||f,x=r.digit,w=void 0===x?2:x,S=r.dataOrder,_=void 0!==S&&S,I=r.scale,A=void 0===I?[!1,!1]:I,L=r.min,M=void 0===L?[null,null]:L,D=r.max,P=void 0===D?[null,null]:D,k=r.labelMap,V=void 0===k?{}:k,T=r.legendName,z=void 0===T?{}:T,N=r.label,O=r.itemStyle,B=r.showLine,C=r.barGap,R=void 0===C?"-100%":C,E=r.opacity;if(_){var G=_.label,H=_.order;G&&H?i.sort((function(e,t){return"desc"===H?e[G]-t[G]:t[G]-e[G]})):console.warn("Need to provide name and order parameters")}var W=a.tooltipVisible,j=a.legendVisible,F=e.slice();l.left&&l.right?F=l.left.concat(l.right):l.left&&!l.right?F=l.left:r.metrics?F=r.metrics:F.splice(e.indexOf(u[0]),1);var U=r.yAxisType||["normal","normal"],Y=r.xAxisType||"category",X=r.yAxisName||[],q=r.xAxisName||"",J=!0,Z=y(i,u),$=j&&v({metrics:F,labelMap:V,legendName:z}),K=c({innerRows:i,dimAxisName:q,dimension:u,axisVisible:b,dimAxisType:Y,dims:Z}),Q=g({meaAxisName:X,meaAxisType:U,axisVisible:b,digit:w,scale:A,min:M,max:P}),ee=m({innerRows:i,metrics:F,stack:h,axisSite:l,isHistogram:J,labelMap:V,itemStyle:O,label:N,showLine:B,dimAxisType:Y,dimension:u,barGap:R,opacity:E,dims:Z}),te={axisSite:l,isHistogram:J,meaAxisType:U,digit:w,labelMap:V},re=W&&p(te),ae={legend:$,yAxis:Q,series:ee,xAxis:K,tooltip:re};return ae},x=u({},l,{name:"VeHistogram",data:function(){return this.chartHandler=b,{}}});e.exports=x},e46b:function(e,t,r){var a=r("b1d4"),i=r("6179"),n=r("6d8b"),o=n.extend,l=n.isArray;function s(e,t,r){t=l(t)&&{coordDimensions:t}||o({},t);var n=e.getSource(),s=a(n,t),u=new i(s,e);return u.initData(n,r),u}e.exports=s},e7aa:function(e,t,r){var a=r("2306"),i=r("c775f"),n=i.getDefaultLabel;function o(e,t,r,i,o,s,u){var d=r.getModel("label"),c=r.getModel("emphasis.label");a.setLabelStyle(e,t,d,c,{labelFetcher:o,labelDataIndex:s,defaultText:n(o.getData(),s),isRectText:!0,autoColor:i}),l(e),l(t)}function l(e,t){"outside"===e.textPosition&&(e.textPosition=t)}t.setLabel=o}}]);
|