12 |
- (self["webpackChunkapp"]=self["webpackChunkapp"]||[]).push([[4370],{10064:function(e,t,a){var i=a(70492);a(42980),a(5249),a(28401),a(18958);var n=a(34804),o=a(80685),r=a(31293),l=a(87949),s=a(75324);i.registerLayout(n),i.registerVisual(o),i.registerProcessor(i.PRIORITY.PROCESSOR.STATISTIC,r),i.registerPreprocessor(l),s("map",[{type:"mapToggleSelect",event:"mapselectchanged",method:"toggleSelected"},{type:"mapSelect",event:"mapselected",method:"select"},{type:"mapUnSelect",event:"mapunselected",method:"unSelect"}])},42980:function(e,t,a){var i=a(33051),n=a(23263),o=a(93321),r=a(78988),l=r.encodeHTML,s=r.addCommas,c=a(1501),p=a(68540),h=p.retrieveRawAttr,u=a(11194),g=a(61772),d=g.makeSeriesEncodeForNameBased,m=o.extend({type:"series.map",dependencies:["geo"],layoutMode:"box",needsDrawMap:!1,seriesGroup:[],getInitialData:function(e){for(var t=n(this,{coordDimensions:["value"],encodeDefaulter:i.curry(d,this)}),a=t.mapDimension("value"),o=i.createHashMap(),r=[],l=[],s=0,c=t.count();s<c;s++){var p=t.getName(s);o.set(p,!0),r.push({name:p,value:t.get(a,s),selected:h(t,s,"selected")})}var g=u.load(this.getMapType(),this.option.nameMap,this.option.nameProperty);return i.each(g.regions,(function(e){var t=e.name;o.get(t)||(r.push({name:t}),l.push(t))})),this.updateSelectedMap(r),t.appendValues([],l),t},getHostGeoModel:function(){var e=this.option.geoIndex;return null!=e?this.dependentModels.geo[e]:null},getMapType:function(){return(this.getHostGeoModel()||this).option.map},getRawValue:function(e){var t=this.getData();return t.get(t.mapDimension("value"),e)},getRegionModel:function(e){var t=this.getData();return t.getItemModel(t.indexOfName(e))},formatTooltip:function(e){for(var t=this.getData(),a=s(this.getRawValue(e)),i=t.getName(e),n=this.seriesGroup,o=[],r=0;r<n.length;r++){var c=n[r].originalData.indexOfName(i),p=t.mapDimension("value");isNaN(n[r].originalData.get(p,c))||o.push(l(n[r].name))}return o.join(", ")+"<br />"+l(i+" : "+a)},getTooltipPosition:function(e){if(null!=e){var t=this.getData().getName(e),a=this.coordinateSystem,i=a.getRegion(t);return i&&a.dataToPoint(i.center)}},setZoom:function(e){this.option.zoom=e},setCenter:function(e){this.option.center=e},defaultOption:{zlevel:0,z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:.75,showLegendSymbol:!0,dataRangeHoverLink:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},nameProperty:"name"}});i.mixin(m,c);var v=m;e.exports=v},5249:function(e,t,a){var i=a(70492),n=a(33051),o=a(51177),r=a(44121),l="__seriesMapHighDown",s="__seriesMapCallKey",c=i.extendChartView({type:"map",render:function(e,t,a,i){if(!i||"mapToggleSelect"!==i.type||i.from!==this.uid){var n=this.group;if(n.removeAll(),!e.getHostGeoModel()){if(i&&"geoRoam"===i.type&&"series"===i.componentType&&i.seriesId===e.id){o=this._mapDraw;o&&n.add(o.group)}else if(e.needsDrawMap){var o=this._mapDraw||new r(a,!0);n.add(o.group),o.draw(e,t,a,this,i),this._mapDraw=o}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;e.get("showLegendSymbol")&&t.getComponent("legend")&&this._renderSymbols(e,t,a)}}},remove:function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},dispose:function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},_renderSymbols:function(e,t,a){var i=e.originalData,r=this.group;i.each(i.mapDimension("value"),(function(t,a){if(!isNaN(t)){var c=i.getItemLayout(a);if(c&&c.point){var u=c.point,g=c.offset,d=new o.Circle({style:{fill:e.getData().getVisual("color")},shape:{cx:u[0]+9*g,cy:u[1],r:3},silent:!0,z2:8+(g?0:o.Z2_EMPHASIS_LIFT+1)});if(!g){var m=e.mainSeries.getData(),v=i.getName(a),f=m.indexOfName(v),y=i.getItemModel(a),S=y.getModel("label"),w=y.getModel("emphasis.label"),I=m.getItemGraphicEl(f),x=n.retrieve2(e.getFormattedLabel(f,"normal"),v),D=n.retrieve2(e.getFormattedLabel(f,"emphasis"),x),M=I[l],b=Math.random();if(!M){M=I[l]={};var _=n.curry(p,!0),L=n.curry(p,!1);I.on("mouseover",_).on("mouseout",L).on("emphasis",_).on("normal",L)}I[s]=b,n.extend(M,{recordVersion:b,circle:d,labelModel:S,hoverLabelModel:w,emphasisText:D,normalText:x}),h(M,!1)}r.add(d)}}}))}});function p(e){var t=this[l];t&&t.recordVersion===this[s]&&h(t,e)}function h(e,t){var a=e.circle,i=e.labelModel,n=e.hoverLabelModel,r=e.emphasisText,l=e.normalText;t?(a.style.extendFrom(o.setTextStyle({},n,{text:n.get("show")?r:null},{isRectText:!0,useInsideStyle:!1},!0)),a.__mapOriginalZ2=a.z2,a.z2+=o.Z2_EMPHASIS_LIFT):(o.setTextStyle(a.style,i,{text:i.get("show")?l:null,textPosition:i.getShallow("position")||"bottom"},{isRectText:!0,useInsideStyle:!1}),a.dirty(!1),null!=a.__mapOriginalZ2&&(a.z2=a.__mapOriginalZ2,a.__mapOriginalZ2=null))}e.exports=c},87949:function(e,t,a){var i=a(33051);function n(e){var t=[];i.each(e.series,(function(e){e&&"map"===e.type&&(t.push(e),e.map=e.map||e.mapType,i.defaults(e,e.mapLocation))}))}e.exports=n},31293:function(e,t,a){var i=a(33051);function n(e,t){var a={};return i.each(e,(function(e){e.each(e.mapDimension("value"),(function(t,i){var n="ec-"+e.getName(i);a[n]=a[n]||[],isNaN(t)||a[n].push(t)}))})),e[0].map(e[0].mapDimension("value"),(function(i,n){for(var o,r="ec-"+e[0].getName(n),l=0,s=1/0,c=-1/0,p=a[r].length,h=0;h<p;h++)s=Math.min(s,a[r][h]),c=Math.max(c,a[r][h]),l+=a[r][h];return o="min"===t?s:"max"===t?c:"average"===t?l/p:l,0===p?NaN:o}))}function o(e){var t={};e.eachSeriesByType("map",(function(e){var a=e.getHostGeoModel(),i=a?"o"+a.id:"i"+e.getMapType();(t[i]=t[i]||[]).push(e)})),i.each(t,(function(e,t){for(var a=n(i.map(e,(function(e){return e.getData()})),e[0].get("mapValueCalculation")),o=0;o<e.length;o++)e[o].originalData=e[o].getData();for(o=0;o<e.length;o++)e[o].seriesGroup=e,e[o].needsDrawMap=0===o&&!e[o].getHostGeoModel(),e[o].setData(a.cloneShallow()),e[o].mainSeries=e[0]}))}e.exports=o},34804:function(e,t,a){var i=a(33051);function n(e){var t={};e.eachSeriesByType("map",(function(a){var n=a.getMapType();if(!a.getHostGeoModel()&&!t[n]){var o={};i.each(a.seriesGroup,(function(t){var a=t.coordinateSystem,i=t.originalData;t.get("showLegendSymbol")&&e.getComponent("legend")&&i.each(i.mapDimension("value"),(function(e,t){var n=i.getName(t),r=a.getRegion(n);if(r&&!isNaN(e)){var l=o[n]||0,s=a.dataToPoint(r.center);o[n]=l+1,i.setItemLayout(t,{point:s,offset:l})}}))}));var r=a.getData();r.each((function(e){var t=r.getName(e),a=r.getItemLayout(e)||{};a.showLabel=!o[t],r.setItemLayout(e,a)})),t[n]=!0}}))}e.exports=n},80685:function(e){function t(e){e.eachSeriesByType("map",(function(e){var t=e.get("color"),a=e.getModel("itemStyle"),i=a.get("areaColor"),n=a.get("color")||t[e.seriesIndex%t.length];e.getData().setVisual({areaColor:i,color:n})}))}e.exports=t},28571:function(e,t,a){var i=a(70492);a(75781),a(20710),a(6335);var n=a(75608);i.registerVisual(n)},20710:function(e,t,a){var i=a(33051),n=i.each,o=i.createHashMap,r=a(93321),l=a(40488),s=r.extend({type:"series.parallel",dependencies:["parallel"],visualColorAccessPath:"lineStyle.color",getInitialData:function(e,t){var a=this.getSource();return c(a,this),l(a,this)},getRawIndicesByActiveState:function(e){var t=this.coordinateSystem,a=this.getData(),i=[];return t.eachActiveState(a,(function(t,n){e===t&&i.push(a.getRawIndex(n))})),i},defaultOption:{zlevel:0,z:2,coordinateSystem:"parallel",parallelIndex:0,label:{show:!1},inactiveOpacity:.05,activeOpacity:1,lineStyle:{width:1,opacity:.45,type:"solid"},emphasis:{label:{show:!1}},progressive:500,smooth:!1,animationEasing:"linear"}});function c(e,t){if(!e.encodeDefine){var a=t.ecModel.getComponent("parallel",t.get("parallelIndex"));if(a){var i=e.encodeDefine=o();n(a.dimensions,(function(e){var t=p(e);i.set(e,t)}))}}}function p(e){return+e.replace("dim","")}e.exports=s},6335:function(e,t,a){var i=a(51177),n=a(75797),o=.3,r=n.extend({type:"parallel",init:function(){this._dataGroup=new i.Group,this.group.add(this._dataGroup),this._data,this._initialized},render:function(e,t,a,n){var o=this._dataGroup,r=e.getData(),u=this._data,g=e.coordinateSystem,d=g.dimensions,m=p(e);function v(e){var t=c(r,o,e,d,g);h(t,r,e,m)}function f(t,a){var o=u.getItemGraphicEl(a),l=s(r,t,d,g);r.setItemGraphicEl(t,o);var c=n&&!1===n.animation?null:e;i.updateProps(o,{shape:{points:l}},c,t),h(o,r,t,m)}function y(e){var t=u.getItemGraphicEl(e);o.remove(t)}if(r.diff(u).add(v).update(f).remove(y).execute(),!this._initialized){this._initialized=!0;var S=l(g,e,(function(){setTimeout((function(){o.removeClipPath()}))}));o.setClipPath(S)}this._data=r},incrementalPrepareRender:function(e,t,a){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},incrementalRender:function(e,t,a){for(var i=t.getData(),n=t.coordinateSystem,o=n.dimensions,r=p(t),l=e.start;l<e.end;l++){var s=c(i,this._dataGroup,l,o,n);s.incremental=!0,h(s,i,l,r)}},dispose:function(){},remove:function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null}});function l(e,t,a){var n=e.model,o=e.getRect(),r=new i.Rect({shape:{x:o.x,y:o.y,width:o.width,height:o.height}}),l="horizontal"===n.get("layout")?"width":"height";return r.setShape(l,0),i.initProps(r,{shape:{width:o.width,height:o.height}},t,a),r}function s(e,t,a,i){for(var n=[],o=0;o<a.length;o++){var r=a[o],l=e.get(e.mapDimension(r),t);u(l,i.getAxis(r).type)||n.push(i.dataToPoint(l,r))}return n}function c(e,t,a,n,o){var r=s(e,a,n,o),l=new i.Polyline({shape:{points:r},silent:!0,z2:10});return t.add(l),e.setItemGraphicEl(a,l),l}function p(e){var t=e.get("smooth",!0);return!0===t&&(t=o),{lineStyle:e.getModel("lineStyle").getLineStyle(),smooth:null!=t?t:o}}function h(e,t,a,i){var n=i.lineStyle;if(t.hasItemOption){var o=t.getItemModel(a).getModel("lineStyle");n=o.getLineStyle()}e.useStyle(n);var r=e.style;r.fill=null,r.stroke=t.getItemVisual(a,"color"),r.opacity=t.getItemVisual(a,"opacity"),i.smooth&&(e.shape.smooth=i.smooth)}function u(e,t){return"category"===t?null==e:null==e||isNaN(e)}var g=r;e.exports=g},75608:function(e){var t=["lineStyle","normal","opacity"],a={seriesType:"parallel",reset:function(e,a,i){var n=e.getModel("itemStyle"),o=e.getModel("lineStyle"),r=a.get("color"),l=o.get("color")||n.get("color")||r[e.seriesIndex%r.length],s=e.get("inactiveOpacity"),c=e.get("activeOpacity"),p=e.getModel("lineStyle").getLineStyle(),h=e.coordinateSystem,u=e.getData(),g={normal:p.opacity,active:c,inactive:s};function d(e,a){h.eachActiveState(a,(function(e,i){var n=g[e];if("normal"===e&&a.hasItemOption){var o=a.getItemModel(i).get(t,!0);null!=o&&(n=o)}a.setItemVisual(i,"opacity",n)}),e.start,e.end)}return u.setVisual("color",l),{progress:d}}};e.exports=a},59314:function(e,t,a){var i=a(70492),n=a(33051);a(77532),a(77346),a(25874);var o=a(79093),r=o.layout,l=a(34586);a(84617),i.registerLayout(n.curry(r,"pictorialBar")),i.registerVisual(l("pictorialBar","roundRect"))},52702:function(e,t,a){var i=a(70492),n=a(23263),o=a(33051),r=a(32234),l=a(85669),s=l.getPercentWithPrecision,c=a(1501),p=a(68540),h=p.retrieveRawAttr,u=a(61772),g=u.makeSeriesEncodeForNameBased,d=a(72019),m=i.extendSeriesModel({type:"series.pie",init:function(e){m.superApply(this,"init",arguments),this.legendVisualProvider=new d(o.bind(this.getData,this),o.bind(this.getRawData,this)),this.updateSelectedMap(this._createSelectableList()),this._defaultLabelLine(e)},mergeOption:function(e){m.superCall(this,"mergeOption",e),this.updateSelectedMap(this._createSelectableList())},getInitialData:function(e,t){return n(this,{coordDimensions:["value"],encodeDefaulter:o.curry(g,this)})},_createSelectableList:function(){for(var e=this.getRawData(),t=e.mapDimension("value"),a=[],i=0,n=e.count();i<n;i++)a.push({name:e.getName(i),value:e.get(t,i),selected:h(e,i,"selected")});return a},getDataParams:function(e){var t=this.getData(),a=m.superCall(this,"getDataParams",e),i=[];return t.each(t.mapDimension("value"),(function(e){i.push(e)})),a.percent=s(i,e,t.hostModel.get("percentPrecision")),a.$vars.push("percent"),a},_defaultLabelLine:function(e){r.defaultEmphasis(e,"labelLine",["show"]);var t=e.labelLine,a=e.emphasis.labelLine;t.show=t.show&&e.label.show,a.show=a.show&&e.emphasis.label.show},defaultOption:{zlevel:0,z:2,legendHoverLink:!0,hoverAnimation:!0,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,minShowLabelAngle:0,selectedOffset:10,hoverOffset:10,avoidLabelOverlap:!0,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:!1,show:!0,position:"outer",alignTo:"none",margin:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1},animationType:"expansion",animationTypeUpdate:"transition",animationEasing:"cubicOut"}});o.mixin(m,c);var v=m;e.exports=v},42471:function(e,t,a){var i=a(33051),n=a(51177),o=a(75797);function r(e,t,a,i){var n=t.getData(),o=this.dataIndex,r=n.getName(o),s=t.get("selectedOffset");i.dispatchAction({type:"pieToggleSelect",from:e,name:r,seriesId:t.id}),n.each((function(e){l(n.getItemGraphicEl(e),n.getItemLayout(e),t.isSelected(n.getName(e)),s,a)}))}function l(e,t,a,i,n){var o=(t.startAngle+t.endAngle)/2,r=Math.cos(o),l=Math.sin(o),s=a?i:0,c=[r*s,l*s];n?e.animate().when(200,{position:c}).start("bounceOut"):e.attr("position",c)}function s(e,t){n.Group.call(this);var a=new n.Sector({z2:2}),i=new n.Polyline,o=new n.Text;this.add(a),this.add(i),this.add(o),this.updateData(e,t,!0)}var c=s.prototype;c.updateData=function(e,t,a){var o=this.childAt(0),r=this.childAt(1),s=this.childAt(2),c=e.hostModel,p=e.getItemModel(t),h=e.getItemLayout(t),u=i.extend({},h);u.label=null;var g=c.getShallow("animationTypeUpdate");if(a){o.setShape(u);var d=c.getShallow("animationType");"scale"===d?(o.shape.r=h.r0,n.initProps(o,{shape:{r:h.r}},c,t)):(o.shape.endAngle=h.startAngle,n.updateProps(o,{shape:{endAngle:h.endAngle}},c,t))}else"expansion"===g?o.setShape(u):n.updateProps(o,{shape:u},c,t);var m=e.getItemVisual(t,"color");o.useStyle(i.defaults({lineJoin:"bevel",fill:m},p.getModel("itemStyle").getItemStyle())),o.hoverStyle=p.getModel("emphasis.itemStyle").getItemStyle();var v=p.getShallow("cursor");v&&o.attr("cursor",v),l(this,e.getItemLayout(t),c.isSelected(e.getName(t)),c.get("selectedOffset"),c.get("animation"));var f=!a&&"transition"===g;this._updateLabel(e,t,f),this.highDownOnUpdate=c.get("silent")?null:function(e,t){var a=c.isAnimationEnabled()&&p.get("hoverAnimation");"emphasis"===t?(r.ignore=r.hoverIgnore,s.ignore=s.hoverIgnore,a&&(o.stopAnimation(!0),o.animateTo({shape:{r:h.r+c.get("hoverOffset")}},300,"elasticOut"))):(r.ignore=r.normalIgnore,s.ignore=s.normalIgnore,a&&(o.stopAnimation(!0),o.animateTo({shape:{r:h.r}},300,"elasticOut")))},n.setHoverStyle(this)},c._updateLabel=function(e,t,a){var i=this.childAt(1),o=this.childAt(2),r=e.hostModel,l=e.getItemModel(t),s=e.getItemLayout(t),c=s.label,p=e.getItemVisual(t,"color");if(!c||isNaN(c.x)||isNaN(c.y))o.ignore=o.normalIgnore=o.hoverIgnore=i.ignore=i.normalIgnore=i.hoverIgnore=!0;else{var h={points:c.linePoints||[[c.x,c.y],[c.x,c.y],[c.x,c.y]]},u={x:c.x,y:c.y};a?(n.updateProps(i,{shape:h},r,t),n.updateProps(o,{style:u},r,t)):(i.attr({shape:h}),o.attr({style:u})),o.attr({rotation:c.rotation,origin:[c.x,c.y],z2:10});var g=l.getModel("label"),d=l.getModel("emphasis.label"),m=l.getModel("labelLine"),v=l.getModel("emphasis.labelLine");p=e.getItemVisual(t,"color");n.setLabelStyle(o.style,o.hoverStyle={},g,d,{labelFetcher:e.hostModel,labelDataIndex:t,defaultText:c.text,autoColor:p,useInsideStyle:!!c.inside},{textAlign:c.textAlign,textVerticalAlign:c.verticalAlign,opacity:e.getItemVisual(t,"opacity")}),o.ignore=o.normalIgnore=!g.get("show"),o.hoverIgnore=!d.get("show"),i.ignore=i.normalIgnore=!m.get("show"),i.hoverIgnore=!v.get("show"),i.setStyle({stroke:p,opacity:e.getItemVisual(t,"opacity")}),i.setStyle(m.getModel("lineStyle").getLineStyle()),i.hoverStyle=v.getModel("lineStyle").getLineStyle();var f=m.get("smooth");f&&!0===f&&(f=.4),i.setShape({smooth:f})}},i.inherits(s,n.Group);var p=o.extend({type:"pie",init:function(){var e=new n.Group;this._sectorGroup=e},render:function(e,t,a,n){if(!n||n.from!==this.uid){var o=e.getData(),l=this._data,c=this.group,p=t.get("animation"),h=!l,u=e.get("animationType"),g=e.get("animationTypeUpdate"),d=i.curry(r,this.uid,e,p,a),m=e.get("selectedMode");if(o.diff(l).add((function(e){var t=new s(o,e);h&&"scale"!==u&&t.eachChild((function(e){e.stopAnimation(!0)})),m&&t.on("click",d),o.setItemGraphicEl(e,t),c.add(t)})).update((function(e,t){var a=l.getItemGraphicEl(t);h||"transition"===g||a.eachChild((function(e){e.stopAnimation(!0)})),a.updateData(o,e),a.off("click"),m&&a.on("click",d),c.add(a),o.setItemGraphicEl(e,a)})).remove((function(e){var t=l.getItemGraphicEl(e);c.remove(t)})).execute(),p&&o.count()>0&&(h?"scale"!==u:"transition"!==g)){for(var v=o.getItemLayout(0),f=1;isNaN(v.startAngle)&&f<o.count();++f)v=o.getItemLayout(f);var y=Math.max(a.getWidth(),a.getHeight())/2,S=i.bind(c.removeClipPath,c);c.setClipPath(this._createClipPath(v.cx,v.cy,y,v.startAngle,v.clockwise,S,e,h))}else c.removeClipPath();this._data=o}},dispose:function(){},_createClipPath:function(e,t,a,i,o,r,l,s){var c=new n.Sector({shape:{cx:e,cy:t,r0:0,r:a,startAngle:i,endAngle:i,clockwise:o}}),p=s?n.initProps:n.updateProps;return p(c,{shape:{endAngle:i+(o?1:-1)*Math.PI*2}},l,r),c},containPoint:function(e,t){var a=t.getData(),i=a.getItemLayout(0);if(i){var n=e[0]-i.cx,o=e[1]-i.cy,r=Math.sqrt(n*n+o*o);return r<=i.r&&r>=i.r0}}}),h=p;e.exports=h}}]);
- //# sourceMappingURL=chunk-vendors-b160bec6.10f573ea.js.map
|