You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
424 KiB

  1. !function(t,e){"function"==typeof define&&define.amd?define([],e):"object"==typeof module&&module.exports?module.exports=e():t.echarts=e()}(this,function(){var t,e;!function(){function i(t,e){if(!e)return t;if(0===t.indexOf(".")){var i=e.split("/"),n=t.split("/"),r=i.length-1,a=n.length,o=0,s=0;t:for(var l=0;a>l;l++)switch(n[l]){case"..":if(!(r>o))break t;o++,s++;break;case".":s++;break;default:break t}return i.length=r-o,n=n.slice(s),i.concat(n).join("/")}return t}function n(t){function e(e,o){if("string"==typeof e){var s=n[e];return s||(s=a(i(e,t)),n[e]=s),s}e instanceof Array&&(o=o||function(){},o.apply(this,r(e,o,t)))}var n={};return e}function r(e,n,r){for(var s=[],l=o[r],c=0,u=Math.min(e.length,n.length);u>c;c++){var h,d=i(e[c],r);switch(d){case"require":h=l&&l.require||t;break;case"exports":h=l.exports;break;case"module":h=l;break;default:h=a(d)}s.push(h)}return s}function a(t){var e=o[t];if(!e)throw new Error("No "+t);if(!e.defined){var i=e.factory,n=i.apply(this,r(e.deps||[],i,t));"undefined"!=typeof n&&(e.exports=n),e.defined=1}return e.exports}var o={};e=function(t,e,i){if(2===arguments.length&&(i=e,e=[],"function"!=typeof i)){var r=i;i=function(){return r}}o[t]={id:t,deps:e,factory:i,defined:0,exports:{},require:n(t)}},t=n("")}();var i="../../visual/VisualMapping",n="categories",r="getLayout",a="reverse",o="eachNode",s="_controller",l="enable",c="roamDetail",u="layout",h="itemGap",d="orient",f="formatTooltip",p="padding",v="../../util/format",m="legendDataProvider",g="$superApply",y="selected",x="axisLine",_="axisTick",w="label.emphasis",b="itemStyle.normal",M="itemStyle.emphasis",S="label.normal",A="../../echarts",C="../../model/Model",T="cartesian2d",k="getBoxLayoutParams",L="getRect",D="../../coord/axisHelper",I="../../util/layout",P="../../model/Component",z="axisLabel",V="coordToData",R="dataToCoord",O="getFormattedLabels",E="createScaleByModel",N="interval",B="splitNumber",G="boundaryGap",Z="niceScaleExtent",F="getLabel",H="getTicks",W="setExtent",q="unionExtent",U="../layout/points",j="../visual/symbol",X="../echarts",Y="getLineStyle",$="lineStyle.normal",K="_symbolDraw",J="inverse",Q="getAxis",tt="getBandWidth",et="onBand",it="../../view/Chart",nt="../helper/SymbolDraw",rt="dataToPoint",at="getExtent",ot="getOtherAxis",st="getBaseAxis",lt="execute",ct="getFormattedLabel",ut="getItemStyle",ht="circle",dt="symbol",ft="symbolSize",pt="createSymbol",vt="updateData",mt="../../util/number",gt="../../util/graphic",yt="../../util/symbol",xt="setColor",_t="../../model/Series",wt="../helper/createListFromArray",bt="getCategories",Mt="category",St="coordinateSystem",At="../../util/model",Ct="../../data/helper/completeDimensions",Tt="../../data/List",kt="setItemGraphicEl",Lt="getItemVisual",Dt="setItemLayout",It="getItemLayout",Pt="getVisual",zt="mapArray",Vt="filterSelf",Rt="getSum",Ot="getDataExtent",Et="initData",Nt="dimensions",Bt="extendComponentView",Gt="extendSeriesModel",Zt="extendComponentModel",Ft="extendChartView",Ht="registerVisualCoding",Wt="registerLayout",qt="registerAction",Ut="registerProcessor",jt="registerPreprocessor",Xt="hostModel",Yt="downplay",$t="highlight",Kt="eachComponent",Jt="_model",Qt="itemStyle.normal.color",te="scatter",ee="dataZoom",ie="legend",ne="itemStyle",re="lineStyle",ae="eachSeries",oe="eachSeriesByType",se="setItemVisual",le="isSeriesFiltered",ce="setVisual",ue="dispose",he="canvasSupported",de="clientHeight",fe="backgroundColor",pe="appendChild",ve="innerHTML",me="intersect",ge="resize",ye="update",xe="zlevel",_e="silent",we="getDisplayList",be="painter",Me="storage",Se="parentNode",Ae="offsetY",Ce="offsetX",Te="mouseup",ke="mousemove",Le="mousedown",De="zrender/core/event",Ie="zrender/core/env",Pe="initProps",ze="updateProps",Ve="animateTo",Re="getTextColor",Oe="setText",Ee="mouseout",Ne="mouseover",Be="setHoverStyle",Ge="hoverStyle",Ze="setStyle",Fe="subPixelOptimizeRect",He="extendShape",We="Polyline",qe="Polygon",Ue="Sector",je="Circle",Xe="offset",Ye="points",$e="clockwise",Ke="endAngle",Je="startAngle",Qe="setData",ti="setShape",ei="restore",ii="buildPath",ni="zren
  2. f(r,e,i)}},getSeriesByName:function(t){var e=this._componentsMap[Mn];return p(e,function(e){return e.name===t})},getSeriesByIndex:function(t){return this._componentsMap[Mn][t]},getSeriesByType:function(t){var e=this._componentsMap[Mn];return p(e,function(e){return e.subType===t})},getSeries:function(){return this._componentsMap[Mn].slice()},eachSeries:function(t,e){u(this),f(this._seriesIndices,function(i){var n=this._componentsMap[Mn][i];t.call(e,n,i)},this)},eachRawSeries:function(t,e){f(this._componentsMap[Mn],t,e)},eachSeriesByType:function(t,e,i){u(this),f(this._seriesIndices,function(n){var r=this._componentsMap[Mn][n];r.subType===t&&e.call(i,r,n)},this)},eachRawSeriesByType:function(t,e,i){return f(this.getSeriesByType(t),e,i)},isSeriesFiltered:function(t){return u(this),h[Br](this._seriesIndices,t.componentIndex)<0},filterSeries:function(t,e){u(this);var i=p(this._componentsMap[Mn],t,e);this._seriesIndices=s(i)},restoreData:function(){var t=this._componentsMap;this._seriesIndices=s(t[Mn]);var e=[];f(t,function(t,i){e.push(i)}),x.topologicalTravel(e,x.getAllClassMainTypes(),function(e,i){f(t[e],function(t){t.restoreData()})})}});return w}),e("echarts/ExtensionAPI",[Yr,jr],function(t){function e(t){i.each(n,function(e){this[e]=i.bind(t[e],t)},this)}var i=t(jr),n=[xn,"getZr",yn,gn,mn,"on","off","getDataURL","getConnectedDataURL"];return e}),e("echarts/CoordinateSystem",[Yr],function(t){function e(){this._coordinateSystems={},this._coordinateSystemsList=[]}var i={};return e[Xr]={constructor:e,update:function(t,e){var n={};for(var r in i)n[r]=i[r][fr](t,e);this._coordinateSystems=n},get:function(t,e){var i=this._coordinateSystems[t];return i?i[e||0]:void 0}},e[vn]=function(t,e){i[t]=e},e}),e("echarts/model/OptionManager",[Yr,jr],function(t){function e(t){this._api=t,this._timelineOptions,this._mediaList,this._mediaDefault,this._currentMediaIndices=[],this._optionBackup}function i(t,e){var i,n,r=[],a=[],l=t[Sn];if(t.baseOption&&(n=t.baseOption),(l||t.options)&&(n=n||{},r=(t.options||[]).slice()),t.media){n=n||{};var c=t.media;s(c,function(t){t&&t[Un]&&(t.query?a.push(t):i||(i=t))})}return n||(n=t),n[Sn]||(n[Sn]=l),s([n][Or](r)[Or](o.map(a,function(t){return t[Un]})),function(t){s(e,function(e){e(t)})}),{baseOption:n,timelineOptions:r,mediaDefault:i,mediaList:a}}function n(t,e,i){var n={width:e,height:i,aspectratio:e/i},a=!0;return o.each(t,function(t,e){var i=e.match(u);if(i&&i[1]&&i[2]){var o=i[1],s=i[2][Bn]();r(n[s],t,o)||(a=!1)}}),a}function r(t,e,i){return"min"===i?t>=e:"max"===i?e>=t:t===e}function a(t,e){return t.join(",")===e.join(",")}var o=t(jr),s=o.each,l=o.clone,c=o.map,u=/^(min|max)?(.+)$/;return e[Xr]={constructor:e,setOption:function(t,e){t=l(t,!0),this._optionBackup=i.call(this,t,e)},mountOption:function(){var t=this._optionBackup;return this._timelineOptions=c(t.timelineOptions,l),this._mediaList=c(t.mediaList,l),this._mediaDefault=l(t.mediaDefault),this._currentMediaIndices=[],l(t.baseOption)},getTimelineOption:function(t){var e,i=this._timelineOptions;if(i[Hr]){var n=t[pn](Sn);n&&(e=l(i[n.getCurrentIndex()],!0))}return e},getMediaOption:function(t){var e=this._api[yn](),i=this._api[gn](),r=this._mediaList,o=this._mediaDefault,s=[],u=[];if(!r[Hr]&&!o)return u;for(var h=0,d=r[Hr];d>h;h++)n(r[h].query,e,i)&&s.push(h);return!s[Hr]&&o&&(s=[-1]),s[Hr]&&!a(s,this._currentMediaIndices)&&(u=c(s,function(t){return l(-1===t?o[Un]:r[t][Un])})),this._currentMediaIndices=s,u}},e}),e("echarts/util/model",[Yr,"./format","./number",jr,"../model/Model"],function(t){var e=t("./format"),i=t("./number"),n=t(jr),r=t("../model/Model"),a=["x","y","z",fn,"angle"],o={};return o.createNameEach=function(t,e){t=t.slice();var i=n.map(t,o.capitalFirst);e=(e||[]).slice();var r=n.map(e,o.capitalFirst);return function(a,o){n.each(t,function(t,n){for(var s={name:t,capital:i[n]},l=0;l<e[Hr];l++)s[e[l]]=t+r[l];a.call(o,s)})}},o.capitalFirst=function(t){return t?t.charAt(0)[Nn]()+t[nr](1):t},o.eachAxisDim=o.createNameEach(a,[dn,"axis","index"]),o[hn]=function(t){return n[kr](t)?t:null==t?[]:[t]},o.createLinkedNodesFinder=function(t,e,i){
  3. function e(t,e){return typeof t===Nr?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}function i(t,e){t[Wi](e[0],e[1],e[2],e[3],e[4],e[5])}var n=t("../../contain/text"),r=t("../../core/BoundingRect"),a=new r,o=function(){};return o[Xr]={constructor:o,drawRectText:function(t,r,o){var s=this.style,l=s.text;if(null!=l&&(l+=""),l){var c,u,h=s[pi],d=s.textDistance,f=s[fi],p=s.textFont||s.font,v=s[di];o=o||n[Qn](l,p,f,v);var m=this[Wi],g=this[Gi];if(m&&(a.copy(r),a[vr](m),r=a,i(t,g)),h instanceof Array)c=r.x+e(h[0],r.width),u=r.y+e(h[1],r[pr]),f=f||"left",v=v||"top";else{var y=n.adjustTextPositionOnRect(h,r,o,d);c=y.x,u=y.y,f=f||y[fi],v=v||y[di]}t[fi]=f,t[di]=v;var x=s.textFill,_=s.textStroke;x&&(t.fillStyle=x),_&&(t.strokeStyle=_),t.font=p,t[wr]=s.textShadowColor,t[Mr]=s.textShadowBlur,t[br]=s.textShadowOffsetX,t.shadowOffsetY=s.textShadowOffsetY;for(var w=l.split("\n"),b=0;b<w[Hr];b++)x&&t.fillText(w[b],c,u),_&&t.strokeText(w[b],c,u),u+=o.lineHeight;m&&i(t,m)}}},o}),e("zrender/graphic/Displayable",[Yr,ur,"./Style","../Element","./mixin/RectText"],function(t){function e(t){t=t||{},r.call(this,t);for(var e in t)t.hasOwnProperty(e)&&"style"!==e&&(this[e]=t[e]);this.style=new n(t.style),this._rect=null,this.__clipPaths=[]}var i=t(ur),n=t("./Style"),r=t("../Element"),a=t("./mixin/RectText");return e[Xr]={constructor:e,type:"displayable",__dirty:!0,invisible:!1,z:0,z2:0,zlevel:0,draggable:!1,dragging:!1,silent:!1,culling:!1,cursor:"pointer",rectHover:!1,beforeBrush:function(t){},afterBrush:function(t){},brush:function(t){},getBoundingRect:function(){},contain:function(t,e){return this.rectContain(t,e)},traverse:function(t,e){t.call(e,this)},rectContain:function(t,e){var i=this[Ni](t,e),n=this[Qn]();return n[hi](i[0],i[1])},dirty:function(){this[ki]=!0,this._rect=null,this.__zr&&this.__zr[Li]()},animateStyle:function(t){return this[Pi]("style",t)},attrKV:function(t,e){"style"!==t?r[Xr].attrKV.call(this,t,e):this.style.set(e)},setStyle:function(t,e){return this.style.set(t,e),this.dirty(),this}},i[Ir](e,r),i.mixin(e,a),e}),e("zrender/core/curve",[Yr,"./vector"],function(t){function e(t){return t>-_&&_>t}function i(t){return t>_||-_>t}function n(t,e,i,n,r){var a=1-r;return a*a*(a*t+3*r*e)+r*r*(r*n+3*a*i)}function r(t,e,i,n,r){var a=1-r;return 3*(((e-t)*a+2*(i-e)*r)*a+(n-i)*r*r)}function a(t,i,n,r,a,o){var s=r+3*(i-n)-t,l=3*(n-2*i+t),c=3*(i-t),u=t-a,h=l*l-3*s*c,d=l*c-9*s*u,f=c*c-3*l*u,p=0;if(e(h)&&e(d))if(e(l))o[0]=0;else{var v=-c/l;v>=0&&1>=v&&(o[p++]=v)}else{var m=d*d-4*h*f;if(e(m)){var g=d/h,v=-l/s+g,_=-g/2;v>=0&&1>=v&&(o[p++]=v),_>=0&&1>=_&&(o[p++]=_)}else if(m>0){var M=x(m),S=h*l+1.5*s*(-d+M),A=h*l+1.5*s*(-d-M);S=0>S?-y(-S,b):y(S,b),A=0>A?-y(-A,b):y(A,b);var v=(-l-(S+A))/(3*s);v>=0&&1>=v&&(o[p++]=v)}else{var C=(2*h*l-3*s*d)/(2*x(h*h*h)),T=Math.acos(C)/3,k=x(h),L=Math.cos(T),v=(-l-2*k*L)/(3*s),_=(-l+k*(L+w*Math.sin(T)))/(3*s),D=(-l+k*(L-w*Math.sin(T)))/(3*s);v>=0&&1>=v&&(o[p++]=v),_>=0&&1>=_&&(o[p++]=_),D>=0&&1>=D&&(o[p++]=D)}}return p}function o(t,n,r,a,o){var s=6*r-12*n+6*t,l=9*n+3*a-3*t-9*r,c=3*n-3*t,u=0;if(e(l)){if(i(s)){var h=-c/s;h>=0&&1>=h&&(o[u++]=h)}}else{var d=s*s-4*l*c;if(e(d))o[0]=-s/(2*l);else if(d>0){var f=x(d),h=(-s+f)/(2*l),p=(-s-f)/(2*l);h>=0&&1>=h&&(o[u++]=h),p>=0&&1>=p&&(o[u++]=p)}}return u}function s(t,e,i,n,r,a){var o=(e-t)*r+t,s=(i-e)*r+e,l=(n-i)*r+i,c=(s-o)*r+o,u=(l-s)*r+s,h=(u-c)*r+c;a[0]=t,a[1]=o,a[2]=c,a[3]=h,a[4]=h,a[5]=u,a[6]=l,a[7]=n}function l(t,e,i,r,a,o,s,l,c,u,h){var d,f,p,v,m,y=.005,w=1/0;M[0]=c,M[1]=u;for(var b=0;1>b;b+=.05)S[0]=n(t,i,a,s,b),S[1]=n(e,r,o,l,b),v=g(M,S),w>v&&(d=b,w=v);w=1/0;for(var C=0;32>C&&!(_>y);C++)f=d-y,p=d+y,S[0]=n(t,i,a,s,f),S[1]=n(e,r,o,l,f),v=g(S,M),f>=0&&w>v?(d=f,w=v):(A[0]=n(t,i,a,s,p),A[1]=n(e,r,o,l,p),m=g(A,M),1>=p&&w>m?(d=p,w=m):y*=.5);return h&&(h[0]=n(t,i,a,s,d),h[1]=n(e,r,o,l,d)),x(w)}function c(t,e,i,n){var r=1-n;return r*(r*t+2*n*e)+n*n*i}function u(t,e,i,n){return 2*((1-n)*(e-t)+n*(i-e))}function h(t,n,r,a,o){var s=t-2*n+r,l=2*(n-t),c=t-a,u=0;if(e(s)){if(i(l)){var h=-c/l;h>=0&&1>=h&&(o[u++]=h)}}else{var d=l*l-4*s*c;if(e(d)){var h=-l/(2*s);h>=0&&1>=h&&(
  4. clockwise:!0},style:{stroke:"#000",fill:null},buildPath:function(t,e){var i=e.cx,n=e.cy,r=Math.max(e.r,0),a=e[Je],o=e[Ke],s=e[$e],l=Math.cos(a),c=Math.sin(a);t[li](l*r+i,c*r+n),t.arc(i,n,r,a,o,!s)}})}),e("zrender/graphic/LinearGradient",[Yr,ur,"./Gradient"],function(t){var e=t(ur),i=t("./Gradient"),n=function(t,e,n,r,a){this.x=null==t?0:t,this.y=null==e?0:e,this.x2=null==n?1:n,this.y2=null==r?0:r,i.call(this,a)};return n[Xr]={constructor:n,type:"linear",updateCanvasGradient:function(t,e){for(var i=t[Qn](),n=this.x*i.width+i.x,r=this.x2*i.width+i.x,a=this.y*i[pr]+i.y,o=this.y2*i[pr]+i.y,s=e.createLinearGradient(n,a,r,o),l=this.colorStops,c=0;c<l[Hr];c++)s.addColorStop(l[c][Xe],l[c].color);this.canvasGradient=s}},e[Ir](n,i),n}),e("zrender/graphic/RadialGradient",[Yr,ur,"./Gradient"],function(t){var e=t(ur),i=t("./Gradient"),n=function(t,e,n,r){this.x=null==t?.5:t,this.y=null==e?.5:e,this.r=null==n?.5:n,i.call(this,r)};return n[Xr]={constructor:n,type:"radial",updateCanvasGradient:function(t,e){for(var i=t[Qn](),n=i.width,r=i[pr],a=Math.min(n,r),o=this.x*n+i.x,s=this.y*r+i.y,l=this.r*a,c=e.createRadialGradient(o,s,0,o,s,l),u=this.colorStops,h=0;h<u[Hr];h++)c.addColorStop(u[h][Xe],u[h].color);this.canvasGradient=c}},e[Ir](n,i),n}),e("echarts/util/graphic",[Yr,jr,"zrender/tool/path",ni,Oi,gr,_r,"zrender/graphic/Gradient","zrender/container/Group","zrender/graphic/Image","zrender/graphic/Text","zrender/graphic/shape/Circle","zrender/graphic/shape/Sector","zrender/graphic/shape/Polygon","zrender/graphic/shape/Polyline","zrender/graphic/shape/Rect","zrender/graphic/shape/Line","zrender/graphic/shape/BezierCurve","zrender/graphic/shape/Arc","zrender/graphic/LinearGradient","zrender/graphic/RadialGradient"],function(t){function e(t){if(!t.__isHover){if(t.__hoverStlDirty){var e=t.style[Ar],i=t.style.fill,n=t.__hoverStl;n.fill=n.fill||(i instanceof y?i:v.lift(i,-.1)),n[Ar]=n[Ar]||(e instanceof y?e:v.lift(e,-.1));var r={};for(var a in n)n.hasOwnProperty(a)&&(r[a]=t.style[a]);t.__normalStl=r,t.__hoverStlDirty=!1}t[Ze](t.__hoverStl),t.z2+=1,t.__isHover=!0}}function i(t){if(t.__isHover){var e=t.__normalStl;e&&t[Ze](e),t.z2-=1,t.__isHover=!1}}function n(t){"group"===t.type?t[Si](function(t){"group"!==t.type&&e(t)}):e(t)}function r(t){"group"===t.type?t[Si](function(t){"group"!==t.type&&i(t)}):i(t)}function a(t,e){t.__hoverStl=t[Ge]||e,t.__hoverStlDirty=!0}function o(){!this.__isEmphasis&&n(this)}function s(){!this.__isEmphasis&&r(this)}function l(){this.__isEmphasis=!0,n(this)}function c(){this.__isEmphasis=!1,r(this)}function u(t,e,i,n,r){var a=t?"Update":"",o=n&&n[Tr]("animationDuration"+a),s=n&&n[Tr]("animationEasing"+a);n&&n[Tr](Ri)?e[Ve](i,o,s,r):(e.attr(i),r&&r())}var h=t(jr),d=t("zrender/tool/path"),f=Math.round,p=t(ni),v=t(Oi),m=t(gr),g=t(_r),y=t("zrender/graphic/Gradient"),x={};return x.Group=t("zrender/container/Group"),x.Image=t("zrender/graphic/Image"),x.Text=t("zrender/graphic/Text"),x[je]=t("zrender/graphic/shape/Circle"),x[Ue]=t("zrender/graphic/shape/Sector"),x[qe]=t("zrender/graphic/shape/Polygon"),x[We]=t("zrender/graphic/shape/Polyline"),x.Rect=t("zrender/graphic/shape/Rect"),x.Line=t("zrender/graphic/shape/Line"),x.BezierCurve=t("zrender/graphic/shape/BezierCurve"),x.Arc=t("zrender/graphic/shape/Arc"),x.LinearGradient=t("zrender/graphic/LinearGradient"),x.RadialGradient=t("zrender/graphic/RadialGradient"),x[He]=function(t){return p[Pr](t)},x.extendPath=function(t,e){return d.extendFromString(t,e)},x.makePath=function(t,e,i,n){var r=d.createFromString(t,e),a=r[Qn]();if(i){var o=a.width/a[pr];if(n===or){var s,l=i[pr]*o;l<=i.width?s=i[pr]:(l=i.width,s=l/o);var c=i.x+i.width/2,u=i.y+i[pr]/2;i.x=c-l/2,i.y=u-s/2,i.width=l,i[pr]=s}this.resizePath(r,i)}return r},x.mergePath=d.mergePath,x.resizePath=function(t,e){if(t[vr]){var i=t[Qn](),n=i.calculateTransform(e);t[vr](n)}},x.subPixelOptimizeLine=function(t){var e=x.subPixelOptimize,i=t.shape,n=t.style[Cr];return f(2*i.x1)===f(2*i.x2)&&(i.x1=i.x2=e(i.x1,n,!0)),f(2*i.y1)===f(2*i.y2)&&(i.y1=i.y2=e(i.y1,n,!0)),t},x[Fe]=function(t){var e=x.subPixelOptimize,i=t.shape,n=t.style[Cr],
  5. n[_n](o,1),delete r[s.__id])}}function s(t){k(D,function(e){k(N[e]||[],function(e){e(t)})})}function l(t){var e={};t[ae](function(t){var i=t.get("stack"),n=t[an]();if(i&&"list"===n.type){var r=e[i];r&&(n.stackedOn=r),e[i]=n}})}function c(t,e){var i=this._api;k(E,function(n){n(t,i,e)})}function u(t,e){k(L,function(i){k(G[i]||[],function(i){i(t,e)})})}function h(t,e){var i=this._api;k(this._componentsViews,function(n){var r=n.__model;n[_i](r,t,i,e),d(r,n)},this),k(this._chartsViews,function(t){t.__alive=!1},this),t[ae](function(n,r){var a=this._chartsMap[n.__viewId];a.__alive=!0,a[_i](n,t,i,e),d(n,a)},this),k(this._chartsViews,function(e){e.__alive||e[Ti](t,i)},this)}function d(t,e){var i=t.get("z"),n=t.get(xe);e.group[Si](function(t){null!=i&&(t.z=i),null!=n&&(t[xe]=n)})}function f(t){function e(t,e){for(var i=0;i<t[Hr];i++){var n=t[i];n[a]=e}}var i=0,n=1,r=2,a="__connectUpdateStatus";S.each(O,function(o,s){t._messageCenter.on(s,function(o){if(H[t.group]&&t[a]!==i){var s=t.makeActionFromEvent(o),l=[];for(var c in F){var u=F[c];u!==t&&u.group===t.group&&l.push(u)}e(l,i),k(l,function(t){t[a]!==n&&t[mn](s)}),e(l,r)}})})}var p=t("./model/Global"),v=t("./ExtensionAPI"),m=t("./CoordinateSystem"),g=t("./model/OptionManager"),y=t("./model/Component"),x=t("./model/Series"),_=t("./view/Component"),w=t("./view/Chart"),b=t("./util/graphic"),M=t("zrender"),S=t(jr),A=t(Oi),C=t(Ie),T=t(ji),k=S.each,L=["echarts","chart","component"],D=[Wi,Ur,"statistic"];i[Xr].on=e("on"),i[Xr].off=e("off"),i[Xr].one=e("one"),S.mixin(i,T);var I=n[Xr];I[xn]=function(){return this._dom},I.getZr=function(){return this._zr},I.setOption=function(t,e,i){(!this[Jt]||e)&&(this[Jt]=new p(null,null,this._theme,new g(this._api))),this[Jt].setOption(t,B),P.prepareAndUpdate.call(this),!i&&this._zr.refreshImmediately()},I.setTheme=function(){console.log("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},I[er]=function(){return this[Jt]},I.getOption=function(){return S.clone(this[Jt][Un])},I[yn]=function(){return this._zr[yn]()},I[gn]=function(){return this._zr[gn]()},I.getRenderedCanvas=function(t){if(C[he]){t=t||{},t.pixelRatio=t.pixelRatio||1,t[fe]=t[fe]||this[Jt].get(fe);var e=this._zr,i=e[Me][we]();return S.each(i,function(t){t[zi](!0)}),e[be].getRenderedCanvas(t)}},I.getDataURL=function(t){t=t||{};var e=t.excludeComponents,i=this[Jt],n=[],r=this;k(e,function(t){i[Kt]({mainType:t},function(t){var e=r._componentsMap[t.__viewId];e.group[Di]||(n.push(e),e.group[Di]=!0)})});var a=this.getRenderedCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return k(n,function(t){t.group[Di]=!1}),a},I.getConnectedDataURL=function(t){if(C[he]){var e=this.group,i=Math.min,n=Math.max,r=1/0;if(H[e]){var a=r,o=r,s=-r,l=-r,c=[],u=t&&t.pixelRatio||1;for(var h in F){var d=F[h];if(d.group===e){var f=d.getRenderedCanvas(S.clone(t)),p=d[xn]().getBoundingClientRect();a=i(p.left,a),o=i(p.top,o),s=n(p.right,s),l=n(p[lr],l),c.push({dom:f,left:p.left,top:p.top})}}a*=u,o*=u,s*=u,l*=u;var v=s-a,m=l-o,g=S.createCanvas();g.width=v,g[pr]=m;var y=M.init(g);return k(c,function(t){var e=new b.Image({style:{x:t.left*u-a,y:t.top*u-o,image:t.dom}});y.add(e)}),y.refreshImmediately(),g.toDataURL("image/"+(t&&t.type||"png"))}return this.getDataURL(t)}};var P={update:function(t){var e=this[Jt];if(e){e.restoreData(),s.call(this,e),l.call(this,e),this._coordinateSystem[ye](e,this._api),c.call(this,e,t),u.call(this,e,t),h.call(this,e,t);var i=e.get(fe)||"transparent",n=this._zr[be];if(n.isSingleCanvas&&n.isSingleCanvas())this._zr.configLayer(0,{clearColor:i});else{if(!C[he]){var r=A.parse(i);i=A.stringify(r,"rgb"),0===r[3]&&(i="transparent")}i=i,this._dom.style[fe]=i}}},updateView:function(t){var e=this[Jt];e&&(c.call(this,e,t),u.call(this,e,t),a.call(this,"updateView",e,t))},updateVisual:function(t){var e=this[Jt];e&&(u.call(this,e,t),a.call(this,"updateVisual",e,t))},updateLayout:function(t){var e=this[Jt];e&&(c.call(this,e,t),a.call(this,bi,e,t))},highlight:function(t){r.call(this,$t,t)},downplay:function(t){r.call(this,Yt,t)},prepareAndUpdate:function(t){var e=this[Jt];o.call(this,"component",e),o.call(this,"c
  6. null!=i&&r[se](t,dt,i),null!=n&&r[se](t,ft,n)}))})}}),e("echarts/layout/points",[Yr],function(t){return function(t,e,i){e[oe](t,function(t){var e=t[an](),i=t[St],n=i[Nt];e.each(n,function(t,n,r){var a;a=isNaN(t)||isNaN(n)?[NaN,NaN]:i[rt]([t,n]),e[Dt](r,a)},!0)})}}),e("echarts/chart/line",[Yr,jr,X,"./line/LineSeries","./line/LineView",j,U],function(t){var e=t(jr),i=t(X);t("./line/LineSeries"),t("./line/LineView"),i[Ht]("chart",e.curry(t(j),"line",ht,"line")),i[Wt](e.curry(t(U),"line"))}),e("echarts/scale/Scale",[Yr,Xn],function(t){function e(){this._extent=[1/0,-(1/0)],this._interval=0,this.init&&this.init.apply(this,arguments)}var i=t(Xn),n=e[Xr];return n[hi]=function(t){var e=this._extent;return t>=e[0]&&t<=e[1]},n.normalize=function(t){var e=this._extent;return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])},n.scale=function(t){var e=this._extent;return t*(e[1]-e[0])+e[0]},n[q]=function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1])},n[at]=function(){return this._extent.slice()},n[W]=function(t,e){var i=this._extent;isNaN(t)||(i[0]=t),isNaN(e)||(i[1]=e)},n.getTicksLabels=function(){for(var t=[],e=this[H](),i=0;i<e[Hr];i++)t.push(this[F](e[i]));return t},i[zr](e),i[Dr](e,{registerWhenExtend:!0}),e}),e("echarts/scale/Ordinal",[Yr,jr,"./Scale"],function(t){var e=t(jr),i=t("./Scale"),n=i[Xr],r=i[Pr]({type:"ordinal",init:function(t,e){this._data=t,this._extent=e||[0,t[Hr]-1]},contain:function(t){return n[hi].call(this,t)&&null!=this._data[t]},normalize:function(t){return typeof t===Nr&&(t=e[Br](this._data,t)),n.normalize.call(this,t)},scale:function(t){return Math.round(n.scale.call(this,t))},getTicks:function(){for(var t=[],e=this._extent,i=e[0];i<=e[1];)t.push(i),i++;return t},getLabel:function(t){return this._data[t]},count:function(){return this._extent[1]-this._extent[0]+1},niceTicks:e.noop,niceExtent:e.noop});return r[fr]=function(){return new r},r}),e("echarts/scale/Interval",[Yr,"../util/number","../util/format","./Scale"],function(t){var e=t("../util/number"),i=t("../util/format"),n=t("./Scale"),r=Math.floor,a=Math.ceil,o=n[Pr]({type:"interval",_interval:0,setExtent:function(t,e){var i=this._extent;isNaN(t)||(i[0]=t),isNaN(e)||(i[1]=e)},unionExtent:function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1]),o[Xr][W].call(this,e[0],e[1])},getInterval:function(){return this._interval||this.niceTicks(),this._interval},setInterval:function(t){this._interval=t,this._niceExtent=this._extent.slice()},getTicks:function(){this._interval||this.niceTicks();var t=this._interval,i=this._extent,n=[],r=1e4;if(t){var a=this._niceExtent;i[0]<a[0]&&n.push(i[0]);for(var o=a[0];o<=a[1];)if(n.push(o),o=e.round(o+t),n[Hr]>r)return[];i[1]>a[1]&&n.push(i[1])}return n},getTicksLabels:function(){for(var t=[],e=this[H](),i=0;i<e[Hr];i++)t.push(this[F](e[i]));return t},getLabel:function(t){return i[Yi](t)},niceTicks:function(t){t=t||10;var i=this._extent,n=i[1]-i[0];if(!(n===1/0||0>=n)){var o=Math.pow(10,Math.floor(Math.log(n/t)/Math.LN10)),s=t/n*o;.15>=s?o*=10:.3>=s?o*=5:.5>=s?o*=3:.75>=s&&(o*=2);var l=[e.round(a(i[0]/o)*o),e.round(r(i[1]/o)*o)];this._interval=o,this._niceExtent=l}},niceExtent:function(t,i,n){var o=this._extent;if(o[0]===o[1])if(0!==o[0]){var s=o[0]/2;o[0]-=s,o[1]+=s}else o[1]=1;o[1]===-(1/0)&&o[0]===1/0&&(o[0]=0,o[1]=1),this.niceTicks(t,i,n);var l=this._interval;i||(o[0]=e.round(r(o[0]/l)*l)),n||(o[1]=e.round(a(o[1]/l)*l))}});return o[fr]=function(){return new o},o}),e("echarts/scale/Time",[Yr,jr,"../util/number","./Interval"],function(t){var e=t(jr),i=t("../util/number"),n=t("./Interval"),r=n[Xr],a=Math.ceil,o=Math.floor,s=864e5,l=function(t,e,i,n){for(;n>i;){var r=i+n>>>1;t[r][2]<e?i=r+1:n=r}return i},c=function(t){return 10>t?"0"+t:t},u=function(t,e){("week"===t||"month"===t||"quarter"===t||"half-year"===t||"year"===t)&&(t="MM-dd\nyyyy");var n=i.parseDate(e),r=n.getFullYear(),a=n.getMonth()+1,o=n.getDate(),s=n.getHours(),l=n.getMinutes(),u=n.getSeconds();return t=t[Wn]("MM",c(a))[Bn]()[Wn]("yyyy",r)[Wn]("yy",r%100)[Wn]("dd",c(o))[Wn]("d",o)[Wn]("hh",c(s))[Wn]("h",s)[Wn]("mm",c(l))[Wn]("m",l)[W
  7. }function s(){l[zi](!0),l[Ve]({shape:{r:h.r}},300,"elasticOut")}var l=this[Rn](0),c=t[Xt],u=t[Qi](e),h=t[It](e),d=o[Pr]({},h);d.label=null,n?(l[ti](d),l.shape[Ke]=h[Je],a[ze](l,{shape:{endAngle:h[Ke]}},c)):a[ze](l,{shape:d},c);var f=u[er](ne),p=t[Lt](e,"color");l[Ze](o[rr]({fill:p},f[er](ln)[ut]())),l[Ge]=f[er](cn)[ut](),i(this,t[It](e),u.get(y),c.get("selectedOffset"),c.get(Ri)),l.off(Ne).off(Ee).off(cn).off(ln),u.get("hoverAnimation")&&l.on(Ne,r).on(Ee,s).on(cn,r).on(ln,s),this._updateLabel(t,e),a[Be](this)},s._updateLabel=function(t,e){var i=this[Rn](1),n=this[Rn](2),o=t[Xt],s=t[Qi](e),l=t[It](e),c=l.label,u=t[Lt](e,"color");a[ze](i,{shape:{points:c.linePoints||[[c.x,c.y],[c.x,c.y],[c.x,c.y]]}},o),a[ze](n,{style:{x:c.x,y:c.y}},o),n.attr({style:{textAlign:c[fi],textBaseline:c[di],textFont:c.font},rotation:c[Ui],origin:[c.x,c.y],z2:10});var h=s[er](S),d=s[er](w),f=s[er]("labelLine.normal"),p=s[er]("labelLine.emphasis");n[Ze](r(t,e,ln,h)),n[Di]=n.normalIgnore=!h.get("show"),n.hoverIgnore=!d.get("show"),i[Di]=i.normalIgnore=!f.get("show"),i.hoverIgnore=!p.get("show"),i[Ze]({stroke:u}),i[Ze](f[er](re)[Y]()),n[Ge]=r(t,e,cn,d),i[Ge]=p[er](re)[Y]();var v=f.get("smooth");v&&v===!0&&(v=.4),i[ti]({smooth:v})},o[Ir](n,a.Group);var l=t(it)[Pr]({type:"pie",init:function(){var t=new a.Group;this._sectorGroup=t},render:function(t,i,r,a){if(!a||a.from!==this.uid){var s=t[an](),l=this._data,c=this.group,u=i.get(Ri),h=!l,d=o.curry(e,this.uid,t,u,r),f=t.get("selectedMode");if(s.diff(l).add(function(t){var e=new n(s,t);h&&e[En](function(t){t[zi](!0)}),f&&e.on("click",d),s[kt](t,e),c.add(e)})[ye](function(t,e){var i=l[gi](e);i[vt](s,t),i.off("click"),f&&i.on("click",d),c.add(i),s[kt](t,i)})[Ti](function(t){var e=l[gi](t);c[Ti](e)})[lt](),u&&h&&s.count()>0){var p=s[It](0),v=Math.max(r[yn](),r[gn]())/2,m=o.bind(c.removeClipPath,c);c.setClipPath(this._createClipPath(p.cx,p.cy,v,p[Je],p[$e],m,t))}this._data=s}},_createClipPath:function(t,e,i,n,r,o,s){var l=new a[Ue]({shape:{cx:t,cy:e,r0:0,r:i,startAngle:n,endAngle:n,clockwise:r}});return a[Pe](l,{shape:{endAngle:n+(r?1:-1)*Math.PI*2}},s,o),l}});return l}),e("echarts/action/createDataSelectAction",[Yr,X,jr],function(t){var e=t(X),i=t(jr);return function(t,n){i.each(n,function(i){i[ye]="updateView",e[qt](i,function(e,n){var r={};return n[Kt]({mainType:"series",subType:t,query:e},function(t){t[i.method]&&t[i.method](e.name);var n=t[an]();n.each(function(e){var i=n[tn](e);r[i]=t.isSelected(i)||!1})}),{name:e.name,selected:r}})})}}),e("echarts/visual/dataColor",[Yr],function(t){return function(t,e){var i=e.get("color"),n=0;e.eachRawSeriesByType(t,function(t){var r=t.get("color",!0),a=t.getRawData();if(!e[le](t)){var o=t[an]();o.each(function(t){var e=o[Qi](t),s=o[en](t),l=o[Lt](t,"color",!0);if(l)a[se](s,"color",l);else{var c=r?r[s%r[Hr]]:i[(s+n)%i[Hr]],u=e.get(Qt)||c;a[se](s,"color",u),o[se](t,"color",u)}})}n+=a.count()})}}),e("echarts/chart/pie/labelLayout",[Yr,hr],function(t){function e(t,e,i,n,r,a,o){function s(e,i,n,r){for(var a=e;i>a;a++)if(t[a].y+=n,a>e&&i>a+1&&t[a+1].y>t[a].y+t[a][pr])return void l(a,n/2);l(i-1,n/2)}function l(e,i){for(var n=e;n>=0&&(t[n].y-=i,!(n>0&&t[n].y>t[n-1].y+t[n-1][pr]));n--);}t.sort(function(t,e){return t.y-e.y});for(var c,u=0,h=t[Hr],d=[],f=[],p=0;h>p;p++)c=t[p].y-u,0>c&&s(p,h,-c,r),u=t[p].y+t[p][pr];0>o-u&&l(h-1,u-o);for(var p=0;h>p;p++)t[p].y>=i?f.push(t[p]):d.push(t[p])}function i(t,i,n,r,a,o){for(var s=[],l=[],c=0;c<t[Hr];c++)t[c].x<i?s.push(t[c]):l.push(t[c]);e(s,i,n,r,-1,a,o),e(l,i,n,r,1,a,o);for(var c=0;c<t[Hr];c++){var u=t[c].linePoints;u&&(t[c].x<i?u[2][0]=t[c].x+3:u[2][0]=t[c].x-3,u[1][1]=u[2][1]=t[c].y)}}var n=t(hr);return function(t,e,r,a){var o,s,l=t[an](),c=[],u=!1;l.each(function(i){var r,a,h,d,f=l[It](i),p=l[Qi](i),v=p[er](S),m=v.get(On),g=p[er]("labelLine.normal"),y=g.get(Hr),x=g.get("length2"),_=(f[Je]+f[Ke])/2,w=Math.cos(_),b=Math.sin(_);if(o=f.cx,s=f.cy,m===or)r=f.cx,a=f.cy,d=or;else{var M=m===ar||"inner"===m,A=(M?f.r/2*w:f.r*w)+o,C=(M?f.r/2*b:f.r*b)+s;if(y+=e-f.r,r=A+3*w,a=C+3*b,!M){var T=A+w*y,k=C+b*y,L=T+(0>w?-1:1)*x,D=k;r=L+(0>w?-5:5),a=D,
  8. for(var a=1;a<n[Hr];a++){var r=n[a],o=e.clone(i);t[Mn].push(e[Pr](o,{name:r.name,data:r.value,indicator:u}))}for(var a=0;a<r.value[Hr];a++)for(var s=0;s<n[Hr];s++)p[a].push(n[s].value[a])}}),r(p,function(t,e){var r=new i,a=1/0,o=-(1/0),s=t[Hr];if(s){for(var l=0;s>l;l++)a=Math.min(a,t[l]),o=Math.max(o,t[l]);r[W](a,o),r.niceExtent(n[B]||5);var c=r[at]();null==u[e].min&&(u[e].min=c[0]),null==u[e].max&&(u[e].max=c[1])}})}}))}}),e("echarts/chart/radar",[Yr,jr,X,"./radar/RadarSeries","./radar/RadarView",j,U,"./radar/backwardCompat"],function(t){var e=t(jr),i=t(X);t("./radar/RadarSeries"),t("./radar/RadarView"),i[Ht]("chart",e.curry(t(j),"radar",ht,null)),i[Wt](e.curry(t(U),"radar")),i[jt](t("./radar/backwardCompat"))}),e("echarts/component/legend/LegendModel",[Yr,jr,C,A],function(t){var e=t(jr),i=t(C);return t(A)[Zt]({type:"legend",dependencies:[Mn],layoutMode:{type:"box",ignoreSize:!0},init:function(t,n,r){this[kn](t,r),t[y]=t[y]||{};var a=e.map(t.data||[],function(t){return typeof t===Nr&&(t={name:t}),new i(t,this,this[ir])},this);this._data=a,this._updateAvailableNames(r);var o=this[Un][y];if(a[0]&&"single"===this.get("selectedMode")){var s=!1;for(var l in o)o[l]&&(this.select(l),s=!0);!s&&this.select(a[0].get("name"))}},mergeOption:function(t){this.$superCall(An,t),this._updateAvailableNames(this[ir])},_updateAvailableNames:function(t){var i=e.map(t.getSeries(),function(t){return t.name});t[ae](function(t){if(t[m]){var e=t[m]();i=i[Or](e[zt](e[tn]))}}),this._availableNames=i},getData:function(){return this._data},select:function(t){var i=this[Un][y],n=this.get("selectedMode");if("single"===n){var r=this._data;e.each(r,function(t){i[t.get("name")]=!1})}i[t]=!0},unSelect:function(t){"single"!==this.get("selectedMode")&&(this[Un][y][t]=!1)},toggleSelected:function(t){var e=this[Un][y];t in e||(e[t]=!0),this[e[t]?"unSelect":"select"](t)},isSelected:function(t){var i=this[Un][y];return!(t in i&&!i[t])&&e[Br](this._availableNames,t)>=0},defaultOption:{zlevel:0,z:4,show:!0,orient:"horizontal",left:"center",top:"top",align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,textStyle:{color:"#333"},selectedMode:!0}})}),e("echarts/component/legend/legendAction",[Yr,A,jr],function(t){function e(t,e,i){var r,a={},o="toggleSelected"===t;return i[Kt](ie,function(i){o&&null!=r?i[r?"select":"unSelect"](e.name):(i[t](e.name),r=i.isSelected(e.name));var s=i[an]();n.each(s,function(t){var e=t.get("name");if("\n"!==e&&""!==e){var n=i.isSelected(e);e in a?a[e]=a[e]&&n:a[e]=n}})}),{name:e.name,selected:a}}var i=t(A),n=t(jr);i[qt]("legendToggleSelect","legendselectchanged",n.curry(e,"toggleSelected")),i[qt]("legendSelect","legendselected",n.curry(e,"select")),i[qt]("legendUnSelect","legendunselected",n.curry(e,"unSelect"))}),e("echarts/component/helper/listComponent",[Yr,I,v,gt],function(t){function e(t,e,n){i[Ln](t,e[k](),{width:n[yn](),height:n[gn]()},e.get(p))}var i=t(I),n=t(v),r=t(gt);return{layout:function(t,n,r){i.box(n.get(d),t,n.get(h),r[yn](),r[gn]()),e(t,n,r)},addBackground:function(t,e){var i=n[Pn](e.get(p)),a=t[Qn](),o=e[ut](["color",Sr]);o.fill=e.get(fe);var s=new r.Rect({shape:{x:a.x-i[3],y:a.y-i[0],width:a.width+i[1]+i[3],height:a[pr]+i[0]+i[2]},style:o,silent:!0});r[Fe](s),t.add(s)}}}),e("echarts/component/legend/LegendView",[Yr,jr,yt,gt,"../helper/listComponent",A],function(t){function e(t,e){e[mn]({type:"legendToggleSelect",name:t})}function i(t,e,i){t.get("legendHoverLink")&&i[mn]({type:"highlight",seriesName:t.name,name:e})}function n(t,e,i){t.get("legendHoverLink")&&i[mn]({type:"downplay",seriesName:t.name,name:e})}var r=t(jr),a=t(yt),o=t(gt),s=t("../helper/listComponent"),l=r.curry,c="#ccc";return t(A)[Bt]({type:"legend",init:function(){this._symbolTypeStore={}},render:function(t,a,h){var f=this.group;if(f[wi](),t.get("show")){var p=t.get("selectedMode"),v=t.get("itemWidth"),g=t.get("itemHeight"),y=t.get("align");"auto"===y&&(y="right"===t.get("left")&&t.get(d)===zn?"right":"left");var x={},_={};r.each(t[an](),function(r){var s=r.get("name");(""===s||"\n"
  9. if(a[wi](),n.get("show")&&i){var o=n[er](b),s=o[er](tr),l={pos:{left:n.get("left"),right:n.get("right"),top:n.get("top"),bottom:n.get(lr)},box:{width:e[yn](),height:e[gn]()},emptyItemWidth:n.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(n,i,l,s),this._renderContent(n,i,l,o,s),r[Ln](a,l.pos,l.box)}},_prepare:function(t,e,i,n){for(var r=e;r;r=r[Se]){var a=r[er]().get("name"),l=n.getTextRect(a),c=Math.max(l.width+2*o,i.emptyItemWidth);i.totalWidth+=c+s,i.renderList.push({node:r,text:a,width:c})}},_renderContent:function(t,e,o,l,c){for(var u=0,h=o.emptyItemWidth,d=t.get(pr),f=r.getAvailableSize(o.pos,o.box),p=o.totalWidth,v=o.renderList,m=v[Hr]-1;m>=0;m--){var g=v[m],y=g.width,x=g.text;p>f.width&&(p-=y-h,y=h,x=""),this.group.add(new n[qe]({shape:{points:i(u,0,y,d,m===v[Hr]-1,0===m)},style:a[rr](l[ut](),{lineJoin:"bevel",text:x,textFill:c[Re](),textFont:c[Jn]()}),onclick:a.bind(this._onSelect,this,g.node)})),u+=y+s}},remove:function(){this.group[wi]()}},e}),e("echarts/util/animation",[Yr,jr],function(t){function e(){var t,e=[],n={};return{add:function(t,r,a,o,s){return i[bn](o)&&(s=o,o=0),n[t.id]?!1:(n[t.id]=1,e.push({el:t,target:r,time:a,delay:o,easing:s}),!0)},done:function(e){return t=e,this},start:function(){function i(){r--,r||(e[Hr]=0,n={},t&&t())}for(var r=e[Hr],a=0,o=e[Hr];o>a;a++){var s=e[a];s.el[Ve](s[Ei],s.time,s.delay,s.easing,i)}return this}}}var i=t(jr);return{createWrap:e}}),e("echarts/chart/treemap/TreemapView",[Yr,jr,gt,"../../data/DataDiffer","./helper","./Breadcrumb","../../component/helper/RoamController",mr,gr,"../../util/animation",A],function(t){function e(){return{nodeGroup:[],background:[],content:[]}}var i=t(jr),n=t(gt),a=t("../../data/DataDiffer"),c=t("./helper"),u=t("./Breadcrumb"),h=t("../../component/helper/RoamController"),d=t(mr),f=t(gr),p=t("../../util/animation"),v=i.bind,m=n.Group,g=n.Rect,y=i.each,x=3;return t(A)[Ft]({type:"treemap",init:function(t,i){this._containerGroup,this._storage=e(),this._oldTree,this._breadcrumb,this[s],this._state="ready",this._mayClick},render:function(t,e,n,r){var a=e[wn]({mainType:"series",subType:"treemap",query:r});if(!(i[Br](a,t)<0)){this.seriesModel=t,this.api=n,this[ir]=e;var o=r&&r.type,s=t.layoutInfo,l=!this._oldTree,u=this._giveContainerGroup(s),h=this._doRender(u,t);l||o&&"treemapZoomToNode"!==o?h.renderFinally():this._doAnimation(u,h,t),this._resetController(n);var d=c.retrieveTargetInfo(r,t);this._renderBreadcrumb(t,n,d)}},_giveContainerGroup:function(t){var e=this._containerGroup;return e||(e=this._containerGroup=new m,this._initEvents(e),this.group.add(e)),e[On]=[t.x,t.y],e},_doRender:function(t,n){function r(t,e,n,o,s){function l(t){return t.getId()}function c(i,a){var l=null!=i?t[i]:null,c=null!=a?e[a]:null,u=s||l===x;u||(l=null);var h=g(l,c,n);h&&r(l&&l.viewChildren||[],c&&c.viewChildren||[],h,o,u)}o?(e=t,y(t,function(t,e){!t.isRemoved()&&c(e,e)})):new a(e,t,l,l).add(c)[ye](c)[Ti](i.curry(c,null))[lt]()}function o(t){var i=e();return t&&y(t,function(t,e){var n=i[e];y(t,function(t){t&&(n.push(t),t.__tmWillDelete=e)})}),i}function s(){y(m,function(t){y(t,function(t){t[Fi]&&t[Fi][Ti](t)})}),y(f,function(t){t[Mi]=!0}),y(p,function(t){t[Mi]=!1,t.__tmWillVisible=!1,t.dirty()})}var l=n[an]().tree,c=this._oldTree,u=e(),h=e(),d=this._storage,f=[],p=[],m=[],g=v(this._renderNode,this,h,d,u,f,p),x=n.getViewRoot();r(l.root?[l.root]:[],c&&c.root?[c.root]:[],t,l===c||!c,x===l.root);var m=o(d);return this._oldTree=l,this._storage=h,{lastsForAnimation:u,willDeleteEls:m,renderFinally:s}},_renderNode:function(t,e,n,a,o,s,l,c){function u(i,r){var a=null!=v&&e[i][v],o=n[i];return a?(e[i][v]=null,h(o,a,i)):w||(a=new r,d(o,a,i)),t[i][p]=a}function h(t,e,n){var r=t[p]={};r.old="nodeGroup"===n?e[On].slice():i[Pr]({},e.shape)}function d(t,e,i){if("background"===i)e[Mi]=!0,e.__tmWillVisible=!0,o.push(e);else{var r,a=s[Se],l=0,c=0;a&&(r=n.background[a[en]()])&&(l=r.old.width,c=r.old[pr]);var u=t[p]={};u.old="nodeGroup"===i?[l,c]:{x:l,y:c,width:0,height:0},u.fadein="nodeGroup"!==i}}function f(t,e){w?!t[Mi]&&a.push(t):(t[Ze](e),t.__tmWillVisible||(t[Mi]=!1)
  10. return function(t){var e=t[St];if(!e||"view"===e.type){var i=t.getGraph();i[o](function(t){var e=t[er]();t.setLayout([+e.get("x"),+e.get("y")])}),i.eachEdge(function(t){var e,i=t[er]().get("lineStyle.normal.curveness")||0,n=t.node1[r](),a=t.node2[r]();i>0&&(e=[(n[0]+a[0])/2-(n[1]-a[1])*i,(n[1]+a[1])/2-(a[0]-n[0])*i]),t.setLayout([n,a,e])})}}}),e("echarts/chart/graph/simpleLayout",[Yr,"./simpleLayoutHelper"],function(t){var e=t("./simpleLayoutHelper");return function(t,i){t[oe]("graph",function(t){var i=t.get(u);i&&"none"!==i||e(t)})}}),e("echarts/chart/graph/circularLayoutHelper",[Yr],function(t){return function(t){var e=t[St];if(!e||"view"===e.type){var i=e[Qn](),n=t[an](),a=n.graph,s=0,l=n[Rt]("value"),c=2*Math.PI/(l||n.count()),u=i.width/2+i.x,h=i[pr]/2+i.y,d=Math.min(i.width,i[pr])/2;a[o](function(t){var e=t.getValue("value");s+=c*(l?e:2)/2,t.setLayout([d*Math.cos(s)+u,d*Math.sin(s)+h]),s+=c*(l?e:2)/2}),a.eachEdge(function(t){var e,i=t[er]().get("lineStyle.normal.curveness")||0,n=t.node1[r](),a=t.node2[r]();i>0&&(e=[u,h]),t.setLayout([n,a,e])})}}}),e("echarts/chart/graph/circularLayout",[Yr,"./circularLayoutHelper"],function(t){var e=t("./circularLayoutHelper");return function(t,i){t[oe]("graph",function(t){"circular"===t.get(u)&&e(t)})}}),e("echarts/chart/graph/forceHelper",[Yr,_r],function(t){var e=t(_r),i=e.scaleAndAdd;return function(t,n,r){for(var a=r.rect,o=a.width,s=a[pr],l=[a.x+o/2,a.y+s/2],c=null==r.gravity?.1:r.gravity,u=0;u<t[Hr];u++){var h=t[u];h.p||(h.p=e[fr](o*(Math.random()-.5)+l[0],s*(Math.random()-.5)+l[1])),h.pp=e.clone(h.p),h.edges=null}var d=.6;return{warmUp:function(){d=.5},setFixed:function(e){t[e].fixed=!0},setUnfixed:function(e){t[e].fixed=!1},step:function(r){for(var a=[],o=t[Hr],s=0;s<n[Hr];s++){var u=n[s],h=u.n1,f=u.n2;e.sub(a,f.p,h.p);var p=e.len(a)-u.d,v=f.w/(h.w+f.w);e.normalize(a,a),!h.fixed&&i(h.p,h.p,a,v*p*d),!f.fixed&&i(f.p,f.p,a,-(1-v)*p*d)}for(var s=0;o>s;s++){var m=t[s];m.fixed||(e.sub(a,l,m.p),e.scaleAndAdd(m.p,m.p,a,c*d))}for(var s=0;o>s;s++)for(var h=t[s],g=s+1;o>g;g++){var f=t[g];e.sub(a,f.p,h.p);var p=e.len(a);0===p&&(e.set(a,Math.random()-.5,Math.random()-.5),p=1);var y=(h.rep+f.rep)/p/p;!h.fixed&&i(h.pp,h.pp,a,y),!f.fixed&&i(f.pp,f.pp,a,-y)}for(var x=[],s=0;o>s;s++){var m=t[s];m.fixed||(e.sub(x,m.p,m.pp),e.scaleAndAdd(m.p,m.p,x,d),e.copy(m.pp,m.p))}d=.992*d,r&&r(t,n,.01>d)}}}}),e("echarts/chart/graph/forceLayout",[Yr,"./forceHelper",mt,"./simpleLayoutHelper","./circularLayoutHelper",_r],function(t){var e=t("./forceHelper"),i=t(mt),n=t("./simpleLayoutHelper"),a=t("./circularLayoutHelper"),o=t(_r);return function(t,s){t[oe]("graph",function(t){if("force"===t.get(u)){var s=t.preservedPoints||{},l=t.getGraph(),c=l.data,h=l.edgeData,d=t[er]("force"),f=d.get("initLayout");t.preservedPoints?c.each(function(t){var e=c.getId(t);c[Dt](t,s[e]||[NaN,NaN])}):f&&"none"!==f?"circular"===f&&a(t):n(t);var p=c[Ot]("value"),v=d.get("repulsion"),m=d.get("edgeLength"),g=c[zt]("value",function(t,e){var n=c[It](e),r=i[Hn](t,p,[0,v])||v/2;return{w:r,rep:r,p:!n||isNaN(n[0])||isNaN(n[1])?null:n}}),y=h[zt]("value",function(t,e){var i=l.getEdgeByIndex(e);return{n1:g[i.node1[yi]],n2:g[i.node2[yi]],d:m,curveness:i[er]().get("lineStyle.normal.curveness")||0}}),x=t[St],_=x[Qn](),w=e(g,y,{rect:_,gravity:d.get("gravity")}),b=w.step;w.step=function(t){for(var e=0,i=g[Hr];i>e;e++)g[e].fixed&&o.copy(g[e].p,l.getNodeByIndex(e)[r]());b(function(e,i,n){for(var r=0,a=e[Hr];a>r;r++)e[r].fixed||l.getNodeByIndex(r).setLayout(e[r].p),s[c.getId(r)]=e[r].p;for(var r=0,a=i[Hr];a>r;r++){var o=i[r],u=o.n1.p,h=o.n2.p,d=[u,h];o.curveness>0&&d.push([(u[0]+h[0])/2-(u[1]-h[1])*o.curveness,(u[1]+h[1])/2-(h[0]-u[0])*o.curveness]),l.getEdgeByIndex(r).setLayout(d)}t&&t(n)})},t.forceLayout=w,t.preservedPoints=s,w.step()}else t.forceLayout=null})}}),e("echarts/chart/graph/createView",[Yr,"../../coord/View",I,"zrender/core/bbox"],function(t){function e(t,e,i){var r=t[k]();return r.aspect=i,n[In](r,{width:e[yn](),height:e[gn]()})}var i=t("../../coord/View"),n=t(I),r=t("zrender/core/bbox");return function(t,n){t[oe]("graph",function(t)
  11. }).sortKeys(b).entries(t).map(function(t){return t.values});u(t,o,e,i,n),h(o,n,i);for(var s=1;a>0;a--)s*=.99,d(o,s),h(o,n,i),p(o,s),h(o,n,i)}function u(t,e,i,n,a){var o=[];C.each(e,function(t){var e=t[Hr],i=0;C.each(t,function(t){i+=t[r]().value});var s=(n-(e-1)*a)/i;o.push(s)}),o.sort(function(t,e){return t-e});var s=o[0];C.each(e,function(t){C.each(t,function(t,e){t.setLayout({y:e},!0);var i=t[r]().value*s;t.setLayout({dy:i},!0)})}),C.each(i,function(t){var e=+t.getValue()*s;t.setLayout({dy:e},!0)})}function h(t,e,i){C.each(t,function(t){var n,a,o,s=0,l=t[Hr];for(t.sort(w),o=0;l>o;o++){if(n=t[o],a=s-n[r]().y,a>0){var c=n[r]().y+a;n.setLayout({y:c},!0)}s=n[r]().y+n[r]().dy+e}if(a=s-e-i,a>0){var c=n[r]().y-a;for(n.setLayout({y:c},!0),s=n[r]().y,o=l-2;o>=0;--o)n=t[o],a=n[r]().y+n[r]().dy+e-s,a>0&&(c=n[r]().y-a,n.setLayout({y:c},!0)),s=n[r]().y}})}function d(t,e){C.each(t.slice()[a](),function(t){C.each(t,function(t){if(t.outEdges[Hr]){var i=x(t.outEdges,f)/x(t.outEdges,M),n=t[r]().y+(i-_(t))*e;t.setLayout({y:n},!0)}})})}function f(t){return _(t.node2)*t.getValue()}function p(t,e){C.each(t,function(t){C.each(t,function(t){if(t.inEdges[Hr]){var i=x(t.inEdges,v)/x(t.inEdges,M),n=t[r]().y+(i-_(t))*e;t.setLayout({y:n},!0)}})})}function v(t){return _(t.node1)*t.getValue()}function m(t){C.each(t,function(t){t.outEdges.sort(g),t.inEdges.sort(y)}),C.each(t,function(t){var e=0,i=0;C.each(t.outEdges,function(t){t.setLayout({sy:e},!0),e+=t[r]().dy}),C.each(t.inEdges,function(t){t.setLayout({ty:i},!0),i+=t[r]().dy})})}function g(t,e){return t.node2[r]().y-e.node2[r]().y}function y(t,e){return t.node1[r]().y-e.node1[r]().y}function x(t,e){var i,n=0,r=t[Hr],a=-1;if(1===arguments[Hr])for(;++a<r;)i=+t[a],isNaN(i)||(n+=i);else for(;++a<r;)i=+e.call(t,t[a],a),isNaN(i)||(n+=i);return n}function _(t){return t[r]().y+t[r]().dy/2}function w(t,e){return t[r]().y-e[r]().y}function b(t,e){return e>t?-1:t>e?1:t==e?0:NaN}function M(t){return t.getValue()}var S=t(I),A=t("../../util/array/nest"),C=t(jr);return function(t,a){t[oe]("sankey",function(t){var o=t.get("nodeWidth"),s=t.get("nodeGap"),l=e(t,a);t.layoutInfo=l;var c=l.width,u=l[pr],h=t.getGraph(),d=h.nodes,f=h.edges;n(d);var p=d[Ur](function(t){return 0===t[r]().value}),v=0!==p[Hr]?0:t.get("layoutIterations");i(d,f,o,s,c,u,v)})}}),e("echarts/chart/sankey/sankeyVisual",[Yr,i],function(t){var e=t(i);return function(t,i){t[oe]("sankey",function(t){var i=t.getGraph(),n=i.nodes;n.sort(function(t,e){return t[r]().value-e[r]().value});var a=n[0][r]().value,o=n[n[Hr]-1][r]().value;n.forEach(function(i){var n=new e({type:"color",mappingMethod:"linear",dataExtent:[a,o],visual:t.get("color")}),s=n.mapValueToVisual(i[r]().value);i[ce]("color",s)})})}}),e("echarts/chart/sankey",[Yr,X,"./sankey/SankeySeries","./sankey/SankeyView","./sankey/sankeyLayout","./sankey/sankeyVisual"],function(t){var e=t(X);t("./sankey/SankeySeries"),t("./sankey/SankeyView"),e[Wt](t("./sankey/sankeyLayout")),e[Ht]("chart",t("./sankey/sankeyVisual"))}),e("echarts/chart/helper/WhiskerBoxDraw",[Yr,jr,gt,ni],function(t){function e(t,e,i,n){o.Group.call(this),this.bodyIndex,this.whiskerIndex,this.styleUpdater=i,this._createContent(t,e,n),this[vt](t,e,n),this._seriesModel}function i(t,e,i){return a.map(t,function(t){return t=t.slice(),t[e]=i.initBaseline,t})}function n(t){var e={};return a.each(t,function(t,i){e["ends"+i]=t}),e}function r(t){this.group=new o.Group,this.styleUpdater=t}var a=t(jr),o=t(gt),s=t(ni),l=s[Pr]({type:"whiskerInBox",shape:{},buildPath:function(t,e){for(var i in e)if(0===i[Br]("ends")){var n=e[i];t[li](n[0][0],n[0][1]),t[si](n[1][0],n[1][1])}}}),c=e[Xr];c._createContent=function(t,e,r){var s=t[It](e),c=s.chartLayout===Vn?1:0,u=0;this.add(new o[qe]({shape:{points:r?i(s.bodyEnds,c,s):s.bodyEnds},style:{strokeNoScale:!0},z2:100})),this.bodyIndex=u++;var h=a.map(s.whiskerEnds,function(t){return r?i(t,c,s):t});this.add(new l({shape:n(h),style:{strokeNoScale:!0},z2:100})),this.whiskerIndex=u++},c[vt]=function(t,e,i){var r=this._seriesModel=t[Xt],a=t[It](e),s=o[i?Pe:ze];s(this[Rn](this.bodyIndex),{shape:{points:a.bodyEnd
  12. return t.throttle=function(t,e,i,n){function r(r){function f(){u=(new Date).getTime(),h=null,(d?t:t[r]).apply(o,s||[])}var p=function(){l=(new Date).getTime(),o=this,s=arguments,a=l-(n?c:u)-e,clearTimeout(h),n?i?h=setTimeout(f,e):a>=0&&f():a>=0?f():i&&(h=setTimeout(f,-a)),c=l};return p.clear=function(){h&&(clearTimeout(h),h=null)},p}var a,o,s,l=(new Date).getTime(),c=0,u=0,h=null,d=typeof t===Rr;if(e=e||0,d)return r();for(var f=[],p=0;p<t[Hr];p++)f[p]=r(p);return f},t.fixRate=function(e,i){return null!=i?t.throttle(e,i,!0,!1):e},t.debounce=function(e,i){return null!=i?t.throttle(e,i,!0,!0):e},t.createOrUpdate=function(n,r,a,o){var s=n[r];if(s&&null!=a&&o){var l=s[e]||s,c=s[i];c!==a&&(s=n[r]=t[o](l,a),s[e]=l,s[i]=a)}},t.clear=function(t,i){var n=t[i];n&&n[e]&&(t[i]=n[e])},t}),e("echarts/component/helper/sliderMove",[Yr],function(t){return function(t,e,i,n,r){function o(t,e,i){var n=e[Hr]?e.slice():[e,e];return e[0]>e[1]&&n[a](),0>t&&n[0]+t<i[0]&&(t=i[0]-n[0]),t>0&&n[1]+t>i[1]&&(t=i[1]-n[1]),t}return t?("rigid"===n?(t=o(t,e,i),e[0]+=t,e[1]+=t):(t=o(t,e[r],i),e[r]+=t,"push"===n&&e[0]>e[1]&&(e[1-r]=e[r])),e):e}}),e("echarts/component/dataZoom/SliderZoomView",[Yr,jr,gt,"../../util/throttle","./DataZoomView",mt,I,"../helper/sliderMove"],function(t){function e(t){return"x"===t?"y":"x"}var i=t(jr),n=t(gt),r=t("../../util/throttle"),o=t("./DataZoomView"),s=n.Rect,l=t(mt),c=l[Hn],u=t(I),h=t("../helper/sliderMove"),f=l.asc,v=i.bind,m=Math.round,y=Math.max,x=i.each,_=7,w=1,b=30,M=Vn,S=zn,A=5,C=["line","bar","candlestick",te];return o[Pr]({type:"dataZoom.slider",init:function(t,e){this._displayables={},this._orient,this._range,this._handleEnds,this._size,this._halfHandleSize,this._location,this._dragging,this._dataShadowInfo,this.api=e},render:function(t,e,i,n){return this[g](_i,arguments),r.createOrUpdate(this,"_dispatchZoomAction",this.dataZoomModel.get("throttle"),"fixRate"),this._orient=t.get(d),this._halfHandleSize=m(t.get("handleSize")/2),this.dataZoomModel.get("show")===!1?void this.group[wi]():(n&&n.type===ee&&n.from===this.uid||this._buildView(),void this._updateView())},remove:function(){this[g](Ti,arguments),r.clear(this,"_dispatchZoomAction")},dispose:function(){this[g](ue,arguments),r.clear(this,"_dispatchZoomAction")},_buildView:function(){var t=this.group;t[wi](),this._resetLocation(),this._resetInterval();var e=this._displayables.barGroup=new n.Group;this._renderBackground(),this._renderDataShadow(),this._renderHandle(),t.add(e),this._positionGroup()},_resetLocation:function(){var t=this.dataZoomModel,e=this.api,n=this._findCoordRect(),r={width:e[yn](),height:e[gn]()},o=this._orient===M?{left:n.x,top:r[pr]-b-_,width:n.width,height:b}:{right:_,top:n.y,width:b,height:n[pr]};i.each(u.getLayoutParams(t[Un]),function(t,e){"auto"!==t&&(o[e]=t)});var s=u[In](o,r,t[p]);this._location={x:s.x,y:s.y},this._size=[s.width,s[pr]],this._orient===S&&this._size[a]()},_positionGroup:function(){var t=this.group,e=this._location,i=this._orient,n=this.dataZoomModel.getFirstTargetAxisModel(),r=n&&n.get(J),a=this._displayables.barGroup,o=(this._dataShadowInfo||{}).otherAxisInverse;a.attr(i!==M||r?i===M&&r?{scale:o?[-1,1]:[-1,-1]}:i!==S||r?{scale:o?[-1,-1]:[-1,1],rotation:Math.PI/2}:{scale:o?[1,-1]:[1,1],rotation:Math.PI/2}:{scale:o?[1,1]:[1,-1]});var s=t[Qn]([a]);t[On][0]=e.x-s.x,t[On][1]=e.y-s.y},_getViewExtent:function(){var t=this._halfHandleSize,e=y(this._size[0],4*t),i=[t,e-t];return i},_renderBackground:function(){var t=this.dataZoomModel,e=this._size;this._displayables.barGroup.add(new s({silent:!0,shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:t.get(fe)}}))},_renderDataShadow:function(){var t=this._dataShadowInfo=this._prepareDataShadowInfo();if(t){var e=this._size,i=t[Mn],r=i.getRawData(),a=i.getShadowDim?i.getShadowDim():t.otherDim,o=r[Ot](a),s=.3*(o[1]-o[0]);o=[o[0]-s,o[1]+s];var l=[0,e[1]],u=[0,e[0]],h=[[e[0],0],[0,0]],d=u[1]/r.count(),f=0,p=Math.round(r.count()/e[0]);r.each([a],function(t,e){if(p>0&&e%p)return void(f+=d);var i=null==t||isNaN(t)||""===t?null:c(t,o,l,!0);null!=i&&h.push([f,i]),f+=d}),this._displayables.barGr
  13. zlevel:0,z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{normal:{show:!0,position:"inside"},emphasis:{show:!0}},itemStyle:{normal:{borderWidth:2},emphasis:{}}}});return n}),e("echarts/component/marker/markerHelper",[Yr,jr,mt],function(t){function e(t,e,i){var n=-1;do n=Math.max(r.getPrecision(t.get(e,i)),n),t=t.stackedOn;while(t);return n}function i(t,i,n,r,a){var o=[],s="average"===t?i[Rt](r,!0)/i.count():i[Ot](r)["max"===t?1:0],l=i.indexOfNearest(r,s);o[1-a]=i.get(n,l),o[a]=i.get(r,l,!0);var c=e(i,r,l);return c>=0&&(o[a]=+o[a][Zn](c)),o}var n=t(jr),r=t(mt),a=n.curry,o={min:a(i,"min"),max:a(i,"max"),average:a(i,"average")},s=function(t,e,i){if((isNaN(i.x)||isNaN(i.y))&&!n[kr](i.coord)&&e){var r,a,s,l;null!=i.valueIndex?(r=e[Nt][i.valueIndex],a=e[Nt][1-i.valueIndex],s=e[Q](r),l=e[Q](a)):(l=e[st](),s=e[ot](l),a=l.dim,r=s.dim);var c=null!=i.valueIndex?i.valueIndex:"angle"===r||"x"===r?0:1;i=n[Pr]({},i),i.type&&o[i.type]&&l&&s?(i.coord=o[i.type](t,l.dim,r,c),i.value=i.coord[c]):i.coord=[null!=i.xAxis?i.xAxis:i.radiusAxis,null!=i.yAxis?i.yAxis:i.angleAxis]}return i},l=function(t,e){return t&&e.coord&&(null==e.x||null==e.y)?t.containData(e.coord):!0},c=function(t,e,i,n){return 2>n?t.coord&&t.coord[n]:void t.value};return{dataTransform:s,dataFilter:l,dimValueGetter:c}}),e("echarts/component/marker/MarkPointView",[Yr,"../../chart/helper/SymbolDraw",jr,v,At,mt,Tt,"./markerHelper",A],function(t){function e(t,e,i){var r=e[Nt],a=new c(n.map(r,e.getDimensionInfo,e),i);return t&&a[Et](n[Ur](n.map(i.get("data"),n.curry(u.dataTransform,e,t)),n.curry(u.dataFilter,t)),null,u.dimValueGetter),a}var i=t("../../chart/helper/SymbolDraw"),n=t(jr),r=t(v),a=t(At),o=t(mt),s=r[Yi],l=r[$i],c=t(Tt),u=t("./markerHelper"),h={getRawDataArray:function(){return this[Un].data},formatTooltip:function(t){var e=this[an](),i=this[nn](t),r=n[kr](i)?n.map(i,s).join(", "):s(i),a=e[tn](t);return this.name+Xi+((a?l(a)+" : ":"")+r)},getData:function(){return this._data},setData:function(t){this._data=t}};n[rr](h,a.dataFormatMixin),t(A)[Bt]({type:"markPoint",init:function(){this._symbolDrawMap={}},render:function(t,e,i){var n=this._symbolDrawMap;for(var r in n)n[r].__keep=!1;e[ae](function(t){var e=t.markPointModel;e&&this._renderSeriesMP(t,e,i)},this);for(var r in n)n[r].__keep||(n[r][Ti](),this.group[Ti](n[r].group))},_renderSeriesMP:function(t,r,a){var s=t[St],l=t.name,c=t[an](),u=this._symbolDrawMap,d=u[l];d||(d=u[l]=new i);var f=e(s,c,r),p=s&&s[Nt];n.mixin(r,h),r[Qe](f),f.each(function(t){var e,i=f[Qi](t),n=i[Tr]("x"),l=i[Tr]("y");if(null!=n&&null!=l)e=[o[Fn](n,a[yn]()),o[Fn](l,a[gn]())];else if(s){var u=f.get(p[0],t),h=f.get(p[1],t);e=s[rt]([u,h])}f[Dt](t,e);var d=i[Tr](ft);typeof d===Rr&&(d=d(r[nn](t),r[Ji](t))),f[se](t,{symbolSize:d,color:i.get(Qt)||c[Pt]("color"),symbol:i[Tr](dt)})}),d[vt](f),this.group.add(d.group),f[vi](function(t){t[Si](function(t){t[Xt]=r})}),d.__keep=!0}})}),e("echarts/component/markPoint",[Yr,"./marker/MarkPointModel","./marker/MarkPointView"],function(t){t("./marker/MarkPointModel"),t("./marker/MarkPointView")}),e("echarts/component/marker/MarkLineModel",[Yr,"../../model/globalDefault",At,A],function(t){var e=t("../../model/globalDefault"),i=t(At);e.markLine={};var n=t(A)[Zt]({type:"markLine",dependencies:[Mn,"grid","polar"],init:function(t,e,i,n,r){this[kn](t,i),this[An](t,r,!0)},mergeOption:function(t,e,r){if(!e){var a=this[ir];a[ae](function(t){var e=t.get("markLine"),o=t.markLineModel;if(!e||!e.data)return void(t.markLineModel=null);if(o)o[An](e,!0);else{r&&i[un](e.label,[On,"show",tr,yr,Ki]);var s={seriesIndex:t[on],name:t.name};o=new n(e,this,a,s,!0)}t.markLineModel=o},this)}},defaultOption:{zlevel:0,z:5,symbol:[ht,"arrow"],symbolSize:[8,16],precision:2,tooltip:{trigger:"item"},label:{normal:{show:!0,position:"end"},emphasis:{show:!0}},lineStyle:{normal:{type:"dashed"},emphasis:{width:3}},animationEasing:"linear"}});return n}),e("echarts/component/marker/MarkLineView",[Yr,jr,Tt,v,At,mt,"./markerHelper","../../chart/helper/LineDraw",A],function(t){function e(t,e){return u.dataFilter(t,e[0])&&u.dataFilter(t,e[1])}
  14. t("./dataZoom/typeDefaulter"),t("./dataZoom/DataZoomModel"),t("./dataZoom/DataZoomView"),t("./dataZoom/SelectZoomModel"),t("./dataZoom/SelectZoomView"),t("./dataZoom/dataZoomProcessor"),t("./dataZoom/dataZoomAction")}),e("echarts/component/toolbox/feature/DataZoom",[Yr,jr,"../../../util/number","../../helper/SelectController",mr,"zrender/container/Group","../../dataZoom/history","../../helper/interactionMutex","../../dataZoomSelect","../featureManager","../../../echarts"],function(t){function e(t){this.model=t,this._controllerGroup,this[s],this._isZoomActive}function i(t,e){var i=[{axisModel:t[Q]("x").model,axisIndex:0},{axisModel:t[Q]("y").model,axisIndex:0}];return i.grid=t,e[Kt]({mainType:"dataZoom",subType:"select"},function(t,r){n("xAxis",i[0].axisModel,t,e)&&(i[0].dataZoomModel=t),n("yAxis",i[1].axisModel,t,e)&&(i[1].dataZoomModel=t)}),i}function n(t,e,i,n){var r=i.get(t+"Index");return null!=r&&n[pn](t,r)===e}function r(t,e){var i=e.grid,n=new d(t[0][0],t[1][0],t[0][1]-t[0][0],t[1][1]-t[1][0]);if(n[me](i[L]())){var r=i.getCartesian(e[0][dn],e[1][dn]),a=r.pointToData([t[0][0],t[1][0]],!0),o=r.pointToData([t[0][1],t[1][1]],!0);return[g([a[0],o[0]]),g([a[1],o[1]])]}}function a(t,e,i,n){var r=e[i],a=r.dataZoomModel;return a?{dataZoomId:a.id,startValue:t[i][0],endValue:t[i][1]}:void 0}function o(t,e){t.setIconStatus("back",p.count(e)>1?cn:ln)}var c=t(jr),u=t("../../../util/number"),h=t("../../helper/SelectController"),d=t(mr),f=t("zrender/container/Group"),p=t("../../dataZoom/history"),v=t("../../helper/interactionMutex"),m=c.each,g=u.asc;t("../../dataZoomSelect");var x="\x00_ec_\x00toolbox-dataZoom_";e.defaultOption={show:!0,icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:{zoom:"区域缩放",back:"区域缩放还原"}};var _=e[Xr];_[_i]=function(t,e,i){o(t,e)},_.onclick=function(t,e,i){var n=this._controllerGroup;this._controllerGroup||(n=this._controllerGroup=new f,e.getZr().add(n)),w[i].call(this,n,this.model,t,e)},_[Ti]=function(t,e){this._disposeController(),v.release("globalPan",e.getZr())},_[ue]=function(t,e){var i=e.getZr();v.release("globalPan",i),this._disposeController(),this._controllerGroup&&i[Ti](this._controllerGroup)};var w={zoom:function(t,e,i,n){var r=this._isZoomActive=!this._isZoomActive,a=n.getZr();v[r?"take":"release"]("globalPan",a),e.setIconStatus("zoom",r?cn:ln),r?(a.setDefaultCursorStyle("crosshair"),this._createController(t,e,i,n)):(a.setDefaultCursorStyle("default"),this._disposeController())},back:function(t,e,i,n){this._dispatchAction(p.pop(i),n)}};return _._createController=function(t,e,i,n){var r=this[s]=new h("rect",n.getZr(),{lineWidth:3,stroke:"#333",fill:"rgba(0,0,0,0.2)"});r.on("selectEnd",c.bind(this._onSelected,this,r,e,i,n)),r[l](t,!1)},_._disposeController=function(){var t=this[s];t&&(t.off(y),t[ue]())},_._onSelected=function(t,e,n,o,s){if(s[Hr]){var l=s[0];t[ye]();var c={};n[Kt]("grid",function(t,e){var o=t[St],s=i(o,n),u=r(l,s);if(u){var h=a(u,s,0,"x"),d=a(u,s,1,"y");h&&(c[h.dataZoomId]=h),d&&(c[d.dataZoomId]=d)}},this),p.push(n,c),this._dispatchAction(c,o)}},_._dispatchAction=function(t,e){var i=[];m(t,function(t){i.push(t)}),i[Hr]&&e[mn]({type:"dataZoom",from:this.uid,batch:c.clone(i,!0)})},t("../featureManager")[vn](ee,e),t("../../../echarts")[jt](function(t){function e(t,e){if(e){var r=t+"Index",a=e[r];null==a||c[kr](a)||(a=a===!1?[]:[a]),i(t,function(e,i){if(null==a||-1!==c[Br](a,i)){var o={type:"select",$fromToolbox:!0,id:x+t+i};o[r]=i,n.push(o)}})}}function i(e,i){var n=t[e];c[kr](n)||(n=n?[n]:[]),m(n,i)}if(t){var n=t[ee]||(t[ee]=[]);c[kr](n)||(n=[n]);var r=t.toolbox;if(r&&(c[kr](r)&&(r=r[0]),r&&r.feature)){var a=r.feature[ee];e("xAxis",a),e("yAxis",a)}}}),e}),e("echarts/component/toolbox/feature/Restore",[Yr,"../../dataZoom/history","../featureManager","../../../echarts"],function(t){function e(t){this.model=t}var i=t("../../dataZoom/history");e.defaultOption={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v1