10 lines
307 KiB
JavaScript
10 lines
307 KiB
JavaScript
![]() |
!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],u=0,c=Math.min(e.length,n.length);c>u;u++){var h,d=i(e[u],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){o[t]={id:t,deps:e,factory:i,defined:0,exports:{},require:n(t)}},t=n("")}();var i="horizontal",n="../../util/number",r="textBaseline",a="selected",o="superApply",s="symbol",l="mapArray",u="radius",c="getItemVisual",h="getItemLayout",d="../../echarts",f="../../util/graphic",p="dataToPoint",v="dimensions",m="ordinal",g="category",y="toFixed",x="parsePercent",_="getItemModel",w="../core/util",b="undefined",M="createElement",S="parent",T="animation",C="inside",z="stroke",A="lineWidth",P="applyTransform",L="zrender/core/BoundingRect",k="getItemGraphicEl",D="normal",I="emphasis",R="getName",V="getBaseAxis",O="formatter",E="ecModel",B="getComponent",G="concat",N="mergeOption",F="option",Z="getExtent",H="contain",W="../util/number",q="opacity",j="setStyle",X="position",U="center",Y="middle",J="getBoundingRect",K="getTextColor",$="getFont",Q="textAlign",te="textStyle",ee="getItemStyle",ie="coordinateSystem",ne="removeAll",re="isString",ae="inherits",oe="number",se="itemStyle",le="extendComponentView",ue="register",ce="function",he="registerAction",de="indexOf",fe="isArray",pe="replace",ve="traverse",me="zlevel",ge="getDataParams",ye="seriesIndex",xe="dataIndex",_e="target",we="mouseout",be="mouseover",Me="getData",Se="splice",Te="dispose",Ce="series",ze="eachSeries",Ae="trigger",Pe="length",Le="defaults",ke="dispatchAction",De="extend",Ie="remove",Re="isObject",Ve="update",Oe="create",Ee="height",Be="bottom",Ge="ignore",Ne="eachComponent",Fe="backgroundColor",Ze="canvasSupported",He="getHeight",We="getWidth",qe="getModel",je="resize",Xe="string",Ue="prototype",Ye="toLowerCase",Je="filter",Ke="transform",$e="zrender/core/vector",Qe="zrender/core/util",ti="require";e("echarts/echarts",[ti,"./model/Global","./ExtensionAPI","./CoordinateSystem","./model/OptionManager","./model/Component","./model/Series","./view/Component","./view/Chart","./util/graphic","zrender",Qe,"zrender/tool/color","zrender/core/env","zrender/mixin/Eventful","./loading/default","./visual/seriesColor","./preprocessor/backwardCompat","./util/number","./util/format","zrender/core/matrix",$e],function(t){function e(t){return function(e,i,n){e=e&&e[Ye](),z[Ue][t].call(this,e,i,n)}}function i(){z.call(this)}function n(t,e,n){n=n||{},typeof e===Xe&&(e=F[e]),e&&A(G,function(t){t(e)}),this.id,this.group,this._dom=t,this._zr=M.init(t,{renderer:n.renderer||"canvas",devicePixelRatio:n.devicePixelRatio}),this._theme=S.clone(e),this._chartsViews=[],this._chartsMap={},this._componentsViews=[],this._componentsMap={},this._api=new v(this),this._coordSysMgr=new m,z.call(this),this._messageCenter=new i,this._initEvents(),this[je]=S.bind(this[je],this)}function r(t,e){var i=this._model;i&&i[Ne]({mainType:"series",query:e},function(n){var r=this._chartsMap[n.__viewId];r&&r.__alive&&r[t](n,i,this._api,e)},this)}function a(t,e,i){var n=this._api;A(this._componentsViews,function(r){var a=r.__model;r[t](a,e,n,i),d(a,r)},this),e[ze](function(r){var a=this._chartsMap[r.__viewId];a[t](r,e,n,i),d(r,a)},this)}func
|
||
|
},restoreData:function(){this._data=this._dataBeforeProcessed.cloneShallow()}});return e.mixin(s,n.dataFormatMixin),s}),e("echarts/view/Component",[ti,"zrender/container/Group","../util/component","../util/clazz"],function(t){var e=t("zrender/container/Group"),i=t("../util/component"),n=t("../util/clazz"),r=function(){this.group=new e,this.uid=i.getUID("viewComponent")};r[Ue]={constructor:r,init:function(){},render:function(){},dispose:function(){}};var a=r[Ue];return a.updateView=a.updateLayout=a.updateVisual=function(){},n.enableClassExtend(r),n.enableClassManagement(r,{registerWhenExtend:!0}),r}),e("echarts/view/Chart",[ti,"zrender/container/Group","../util/component","../util/clazz"],function(t){function e(){this.group=new r,this.uid=a.getUID("viewChart")}function i(t,e){if(t&&(t[Ae](e),"group"===t.type))for(var n=0;n<t.childCount();n++)i(t.childAt(n),e)}function n(t,e,n){if(null!=e[xe]){var r=t[k](e[xe]);i(r,n)}else if(e.name){var a=t.indexOfName(e.name),r=t[k](a);i(r,n)}else t.eachItemGraphicEl(function(t){i(t,n)})}var r=t("zrender/container/Group"),a=t("../util/component"),o=t("../util/clazz");e[Ue]={type:"chart",init:function(){},render:function(){},highlight:function(t,e,i,r){n(t[Me](),r,I)},downplay:function(t,e,i,r){n(t[Me](),r,D)},remove:function(){this.group[ne]()},dispose:function(){}};var s=e[Ue];return s.updateView=s.updateLayout=s.updateVisual=function(t,e,i,n){this.render(t,e,i,n)},o.enableClassExtend(e),o.enableClassManagement(e,{registerWhenExtend:!0}),e}),e("echarts/util/graphic",[ti,Qe,"zrender/tool/path","zrender/graphic/Path","zrender/tool/color","zrender/core/matrix",$e,"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",L],function(t){function e(t){if(!t.__isHover){if(t.__hoverStlDirty){var e=t.style[z],i=t.style.fill,n=t.__hoverStl;n.fill=n.fill||(i instanceof y?i:v.lift(i,-.1)),n[z]=n[z]||(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[j](t.__hoverStl),t.z2+=1,t.__isHover=!0}}function i(t){if(t.__isHover){var e=t.__normalStl;e&&t[j](e),t.z2-=1,t.__isHover=!1}}function n(t){"group"===t.type?t[ve](function(t){"group"!==t.type&&e(t)}):e(t)}function r(t){"group"===t.type?t[ve](function(t){"group"!==t.type&&i(t)}):i(t)}function a(t,e){t.__hoverStl=t.hoverStyle||e,t.__hoverStlDirty=!0}function o(){!this.__isEmphasis&&n(this)}function s(){!this.__isEmphasis&&r(this)}function l(){this.__isEmphasis=!0,n(this)}function u(){this.__isEmphasis=!1,r(this)}function c(t,e,i,n,r){var a=t?"Update":"",o=n&&n.getShallow("animationDuration"+a),s=n&&n.getShallow("animationEasing"+a);n&&n.getShallow(T)?e.animateTo(i,o,s,r):(e.attr(i),r&&r())}var h=t(Qe),d=t("zrender/tool/path"),f=Math.round,p=t("zrender/graphic/Path"),v=t("zrender/tool/color"),m=t("zrender/core/matrix"),g=t($e),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.Circle=t("zrender/graphic/shape/Circle"),x.Sector=t("zrender/graphic/shape/Sector"),x.Polygon=t("zrender/graphic/shape/Polygon"),x.Polyline=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.BoundingRect=t(L),x.extendShape=function(t){return p[De](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[J]();if(i){var o=a.width/a[Ee];if(n===U){var s,l=i[Ee]*o;l<=i.width?s=i[Ee]:(l=i.width,s=l/o);var u=i.x+i.width/2,c=i.y+i[Ee]/2
|
||
|
a.grid=this,this._coordsMap[r]=a,this._coordsList.push(a),a.addAxis(t),a.addAxis(i)},this)},this)):(this._axesMap={},void(this._axesList=[]))},f._updateScale=function(t,i){function n(t,e,i){c(i.coordDimToDataDim(e.dim),function(i){e.scale.unionExtent(t.getDataExtent(i,e.scale.type!==m))})}s.each(this._axesList,function(t){t.scale.setExtent(1/0,-1/0)}),t[ze](function(r){if("cartesian2d"===r.get(ie)){var a=r.get("xAxisIndex"),o=r.get("yAxisIndex"),s=t[B]("xAxis",a),l=t[B]("yAxis",o);if(!e(s,i,t)||!e(l,i,t))return;var u=this.getCartesian(a,o),c=r[Me](),h=u.getAxis("x"),d=u.getAxis("y");"list"===c.type&&(n(c,h,r),n(c,d,r))}},this)},n[Oe]=function(t,e){var i=[];return t[Ne]("grid",function(r,a){var o=new n(r,t,e);o.name="grid_"+a,o[je](r,e),r[ie]=o,i.push(o)}),t[ze](function(e){if("cartesian2d"===e.get(ie)){var n=e.get("xAxisIndex"),r=t[B]("xAxis",n),a=i[r.get("gridIndex")];e[ie]=a.getCartesian(n,e.get("yAxisIndex"))}}),i},n[v]=l[Ue][v],t("../../CoordinateSystem")[ue]("cartesian2d",n),n}),e("echarts/chart/bar/BarSeries",[ti,"../../model/Series","../helper/createListFromArray"],function(t){var e=t("../../model/Series"),i=t("../helper/createListFromArray");return e[De]({type:"series.bar",dependencies:["grid","polar"],getInitialData:function(t,e){return i(t.data,this,e)},getMarkerPosition:function(t){var e=this[ie];if(e){var i=e[p](t),n=this[Me](),r=n.getLayout("offset"),a=n.getLayout("size"),o=e[V]().isHorizontal()?0:1;return i[o]+=r+a/2,i}return[0/0,0/0]},defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,barMinHeight:0,itemStyle:{normal:{barBorderColor:"#fff",barBorderWidth:0},emphasis:{barBorderColor:"#fff",barBorderWidth:0}}}})}),e("echarts/chart/bar/BarView",[ti,Qe,f,"../../model/Model","./barItemStyle",d],function(t){function e(t,e){var i=t.width>0?1:-1,n=t[Ee]>0?1:-1;e=Math.min(e,Math.abs(t.width),Math.abs(t[Ee])),t.x+=i*e/2,t.y+=n*e/2,t.width-=i*e,t[Ee]-=n*e}var i=t(Qe),n=t(f);return i[De](t("../../model/Model")[Ue],t("./barItemStyle")),t(d).extendChartView({type:"bar",render:function(t,e,i){var n=t.get(ie);return"cartesian2d"===n&&this._renderOnCartesian(t,e,i),this.group},_renderOnCartesian:function(t){function r(r,a){var s=o[h](r),l=o[_](r).get(f)||0;e(s,l);var u=new n.Rect({shape:i[De]({},s)});if(d){var p=u.shape,v=c?Ee:"width",m={};p[v]=0,m[v]=s[v],n[a?"updateProps":"initProps"](u,{shape:m},t)}return u}var a=this.group,o=t[Me](),s=this._data,l=t[ie],u=l[V](),c=u.isHorizontal(),d=t.get(T),f=[se,D,"barBorderWidth"];o.diff(s).add(function(t){if(o.hasValue(t)){var e=r(t);o.setItemGraphicEl(t,e),a.add(e)}})[Ve](function(i,l){var u=s[k](l);if(!o.hasValue(i))return void a[Ie](u);u||(u=r(i,!0));var c=o[h](i),d=o[_](i).get(f)||0;e(c,d),n.updateProps(u,{shape:c},t),o.setItemGraphicEl(i,u),a.add(u)})[Ie](function(e){var i=s[k](e);i&&(i.style.text="",n.updateProps(i,{shape:{width:0}},t,function(){a[Ie](i)}))}).execute(),this._updateStyle(t,o,c),this._data=o},_updateStyle:function(t,e,r){function a(t,e,i,r,a){n.setText(t,e,i),t.text=r,"outside"===t.textPosition&&(t.textPosition=a)}e.eachItemGraphicEl(function(o,s){var l=e[_](s),u=e[c](s,"color"),d=e[h](s),f=l[qe]("itemStyle.normal"),p=l[qe]("itemStyle.emphasis")[ee]();o.setShape("r",f.get("barBorderRadius")||0),o[j](i[Le]({fill:u},f.getBarItemStyle()));var v=r?d[Ee]>0?Be:"top":d.width>0?"left":"right",m=l[qe]("label.normal"),g=l[qe]("label.emphasis"),y=o.style;m.get("show")?a(y,m,u,i.retrieve(t.getFormattedLabel(s,D),t.getRawValue(s)),v):y.text="",g.get("show")?a(p,g,u,i.retrieve(t.getFormattedLabel(s,I),t.getRawValue(s)),v):p.text="",n.setHoverStyle(o,p)})},remove:function(t){var e=this.group;t.get(T)?this._data&&this._data.eachItemGraphicEl(function(i){i.style.text="",n.updateProps(i,{shape:{width:0}},t,function(){e[Ie](i)})}):e[ne]()}})}),e("echarts/layout/barGrid",[ti,Qe,W],function(t){function e(t){return t.get("stack")||"__ec_stack_"+t[ye]}function i(t){var i={};r.each(t,function(t){var n=t[ie],r=n[V](),a=i[r.index]||{remainedWidth:r.getBandWidth(),autoWidthCount:0,categoryGap:"20%",gap:"30%",axis:r,stacks:{}},o=a.stac
|
||
|
return n}),e("echarts/component/legend/legendAction",[ti,d,Qe],function(t){function e(t,e,i){var r,a={},o="toggleSelected"===t;return i[Ne]("legend",function(i){o&&null!=r?i[r?"select":"unSelect"](e.name):(i[t](e.name),r=i.isSelected(e.name));var s=i[Me]();n.each(s,function(t){var e=t.get("name");if("\n"!==e&&""!==e){var n=i.isSelected(e);a[e]=e in a?a[e]&&n:n}})}),{name:e.name,selected:a}}var i=t(d),n=t(Qe);i[he]("legendToggleSelect","legendselectchanged",n.curry(e,"toggleSelected")),i[he]("legendSelect","legendselected",n.curry(e,"select")),i[he]("legendUnSelect","legendunselected",n.curry(e,"unSelect"))}),e("echarts/component/legend/LegendView",[ti,Qe,"../../util/symbol",f,"../helper/listComponent",d],function(t){function e(t,e){e[ke]({type:"legendToggleSelect",name:t})}function i(t,e,i){t.get("legendHoverLink")&&i[ke]({type:"highlight",seriesName:t.name,name:e})}function n(t,e,i){t.get("legendHoverLink")&&i[ke]({type:"downplay",seriesName:t.name,name:e})}var r=t(Qe),a=t("../../util/symbol"),o=t(f),l=t("../helper/listComponent"),u=r.curry,h="#ccc";return t(d)[le]({type:"legend",init:function(){this._symbolTypeStore={}},render:function(t,a,d){var f=this.group;if(f[ne](),t.get("show")){var p=t.get("selectedMode"),v=t.get("itemWidth"),m=t.get("itemHeight"),g=t.get("align");"auto"===g&&(g="right"===t.get("left")&&"vertical"===t.get("orient")?"right":"left");var y={},x={};r.each(t[Me](),function(r){var l=r.get("name");(""===l||"\n"===l)&&f.add(new o.Group({newline:!0}));var c=a.getSeriesByName(l)[0];if(y[l]=r,c&&!x[l]){var _=c[Me](),w=_.getVisual("color");t.isSelected(l)||(w=h),typeof w===ce&&(w=w(c[ge](0)));var b=_.getVisual("legendSymbol")||"roundRect",M=_.getVisual(s),S=this._createItem(l,r,t,b,M,v,m,g,w,p);S.on("click",u(e,l,d)).on(be,u(i,c,"",d)).on(we,u(n,c,"",d)),x[l]=!0}},this),a.eachRawSeries(function(r){if(r.legendDataProvider){var a=r.legendDataProvider();a.each(function(o){var s=a[R](o);if(y[s]&&!x[s]){var l=a[c](o,"color");t.isSelected(s)||(l=h);var f="roundRect",_=this._createItem(s,y[s],t,f,null,v,m,g,l,p);_.on("click",u(e,s,d)).on(be,u(i,r,s,d)).on(we,u(n,r,s,d)),x[s]=!0}},!1,this)}},this),l.layout(f,t,d),l.addBackground(f,t)}},_createItem:function(t,e,i,n,r,s,l,u,c,h){var d=new o.Group,f=e[qe](te),p=e.get("icon");if(n=p||n,d.add(a.createSymbol(n,0,0,s,l,c)),!p&&r&&r!==n&&"none"!=r){var v=.8*l;d.add(a.createSymbol(r,(s-v)/2,(l-v)/2,v,v,c))}var m="left"===u?s+5:-5,g=u,y=i.get(O);typeof y===Xe&&y?t=y[pe]("{name}",t):typeof y===ce&&(t=y(t));var x=new o.Text({style:{text:t,x:m,y:l/2,fill:f[K](),textFont:f[$](),textAlign:g,textBaseline:"middle"}});return d.add(x),d.add(new o.Rect({shape:d[J](),invisible:!0})),d.eachChild(function(t){t.silent=!h}),this.group.add(d),d}})}),e("echarts/component/legend/legendFilter",[],function(){return function(t){var e=t.findComponents({mainType:"legend"});e&&e[Pe]&&t.filterSeries(function(t){for(var i=0;i<e[Pe];i++)if(!e[i].isSelected(t.name))return!1;return!0})}}),e("echarts/component/tooltip/TooltipModel",[ti,d],function(t){t(d).extendComponentModel({type:"tooltip",defaultOption:{zlevel:0,z:8,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove",alwaysShowContent:!1,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"rgba(50,50,50,0.7)",borderColor:"#333",borderRadius:4,borderWidth:0,padding:5,axisPointer:{type:"line",axis:"auto",animation:!0,animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",lineStyle:{color:"#555",width:1,type:"solid"},crossStyle:{color:"#555",width:1,type:"dashed",textStyle:{}},shadowStyle:{color:"rgba(150,150,150,0.3)"}},textStyle:{color:"#fff",fontSize:14}}})}),e("echarts/component/tooltip/TooltipView",[ti,"./TooltipContent",f,Qe,"../../util/format",n,"zrender/core/env",d],function(t){function e(t,e){if(!t||!e)return!1;var i=S.round;return i(t[0])===i(e[0])&&i(t[1])===i(e[1])}function r(t,e,i,n){return{x1:t,y1:e,x2:i,y2:n}}function a(t,e,i,n){return{x:t,y:e,width:i,height:n}}function o(t,e,i,n,r,a){return{cx:t,cy:e,r0:i,r:n,startAngle:r,endAngle:a,clockwise:!0}}function s(t,e,i,n,r){var a=i.clientWidth,o=i.clientHeight,
|
||
|
}),e("zrender/tool/path",[ti,"../graphic/Path","../core/PathProxy","./transformPath","../core/matrix"],function(t){function e(t,e,i,n,r,a,o,s,l,f,m){var g=l*(d/180),y=h(g)*(t-i)/2+c(g)*(e-n)/2,x=-1*c(g)*(t-i)/2+h(g)*(e-n)/2,_=y*y/(o*o)+x*x/(s*s);_>1&&(o*=u(_),s*=u(_));var w=(r===a?-1:1)*u((o*o*s*s-o*o*x*x-s*s*y*y)/(o*o*x*x+s*s*y*y))||0,b=w*o*x/s,M=w*-s*y/o,S=(t+i)/2+h(g)*b-c(g)*M,T=(e+n)/2+c(g)*b+h(g)*M,C=v([1,0],[(y-b)/o,(x-M)/s]),z=[(y-b)/o,(x-M)/s],A=[(-1*y-b)/o,(-1*x-M)/s],P=v(z,A);p(z,A)<=-1&&(P=d),p(z,A)>=1&&(P=0),0===a&&P>0&&(P-=2*d),1===a&&0>P&&(P+=2*d),m.addData(f,S,T,o,s,C,P,g,a)}function i(t){if(!t)return[];var i,n=t[pe](/-/g," -")[pe](/ /g," ")[pe](/ /g,",")[pe](/,,/g,",");for(i=0;i<l[Pe];i++)n=n[pe](new RegExp(l[i],"g"),"|"+l[i]);var r,o=n.split("|"),s=0,u=0,c=new a,h=a.CMD;for(i=1;i<o[Pe];i++){var d,f=o[i],p=f.charAt(0),v=0,m=f.slice(1)[pe](/e,-/g,"e-").split(",");m[Pe]>0&&""===m[0]&&m.shift();for(var g=0;g<m[Pe];g++)m[g]=parseFloat(m[g]);for(;v<m[Pe]&&!isNaN(m[v])&&!isNaN(m[0]);){var y,x,_,w,b,M,S,T=s,C=u;switch(p){case"l":s+=m[v++],u+=m[v++],d=h.L,c.addData(d,s,u);break;case"L":s=m[v++],u=m[v++],d=h.L,c.addData(d,s,u);break;case"m":s+=m[v++],u+=m[v++],d=h.M,c.addData(d,s,u),p="l";break;case"M":s=m[v++],u=m[v++],d=h.M,c.addData(d,s,u),p="L";break;case"h":s+=m[v++],d=h.L,c.addData(d,s,u);break;case"H":s=m[v++],d=h.L,c.addData(d,s,u);break;case"v":u+=m[v++],d=h.L,c.addData(d,s,u);break;case"V":u=m[v++],d=h.L,c.addData(d,s,u);break;case"C":d=h.C,c.addData(d,m[v++],m[v++],m[v++],m[v++],m[v++],m[v++]),s=m[v-2],u=m[v-1];break;case"c":d=h.C,c.addData(d,m[v++]+s,m[v++]+u,m[v++]+s,m[v++]+u,m[v++]+s,m[v++]+u),s+=m[v-2],u+=m[v-1];break;case"S":y=s,x=u;var z=c.len(),A=c.data;r===h.C&&(y+=s-A[z-4],x+=u-A[z-3]),d=h.C,T=m[v++],C=m[v++],s=m[v++],u=m[v++],c.addData(d,y,x,T,C,s,u);break;case"s":y=s,x=u;var z=c.len(),A=c.data;r===h.C&&(y+=s-A[z-4],x+=u-A[z-3]),d=h.C,T=s+m[v++],C=u+m[v++],s+=m[v++],u+=m[v++],c.addData(d,y,x,T,C,s,u);break;case"Q":T=m[v++],C=m[v++],s=m[v++],u=m[v++],d=h.Q,c.addData(d,T,C,s,u);break;case"q":T=m[v++]+s,C=m[v++]+u,s+=m[v++],u+=m[v++],d=h.Q,c.addData(d,T,C,s,u);break;case"T":y=s,x=u;var z=c.len(),A=c.data;r===h.Q&&(y+=s-A[z-4],x+=u-A[z-3]),s=m[v++],u=m[v++],d=h.Q,c.addData(d,y,x,s,u);break;case"t":y=s,x=u;var z=c.len(),A=c.data;r===h.Q&&(y+=s-A[z-4],x+=u-A[z-3]),s+=m[v++],u+=m[v++],d=h.Q,c.addData(d,y,x,s,u);break;case"A":_=m[v++],w=m[v++],b=m[v++],M=m[v++],S=m[v++],T=s,C=u,s=m[v++],u=m[v++],d=h.A,e(T,C,s,u,M,S,_,w,b,d,c);break;case"a":_=m[v++],w=m[v++],b=m[v++],M=m[v++],S=m[v++],T=s,C=u,s+=m[v++],u+=m[v++],d=h.A,e(T,C,s,u,M,S,_,w,b,d,c)}}("z"===p||"Z"===p)&&(d=h.Z,c.addData(d)),r=d}return c.toStatic(),c}function n(t,e){var n,r=i(t);return e=e||{},e.buildPath=function(t){t.setData(r.data),n&&o(t,n);var e=t.getContext();e&&t.rebuildPath(e)},e[P]=function(t){n||(n=s[Oe]()),s.mul(n,t,n)},e}var r=t("../graphic/Path"),a=t("../core/PathProxy"),o=t("./transformPath"),s=t("../core/matrix"),l=["m","M","l","L","v","V","h","H","z","Z","c","C","q","Q","t","T","s","S","a","A"],u=Math.sqrt,c=Math.sin,h=Math.cos,d=Math.PI,f=function(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])},p=function(t,e){return(t[0]*e[0]+t[1]*e[1])/(f(t)*f(e))},v=function(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(p(t,e))};return{createFromString:function(t,e){return new r(n(t,e))},extendFromString:function(t,e){return r[De](n(t,e))},mergePath:function(t,e){var i,n,a=[],o=t[Pe];for(n=0;o>n;n++)i=t[n],i.__dirty&&i.buildPath(i.path,i.shape),a.push(i.path);var s=new r(e);return s.buildPath=function(t){t.appendPath(a);var e=t.getContext();e&&t.rebuildPath(e)},s}}}),e("zrender/graphic/Path",[ti,"./Displayable",w,"../core/PathProxy","../contain/path","./Gradient"],function(t){function e(t){var e=t.fill;return null!=e&&"none"!==e}function i(t){var e=t[z];return null!=e&&"none"!==e&&t[A]>0}function n(t){r.call(this,t),this.path=new o}var r=t("./Displayable"),a=t(w),o=t("../core/PathProxy"),s=t("../contain/path"),l=t("./Gradient"),u=Math.abs;return n[Ue]={constructor:n,type:"path",__dirtyPath:!0,strokeContainThreshold:5,brush:function(t){t.save(
|
||
|
}),e("echarts/coord/axisHelper",[ti,"../scale/Ordinal","../scale/Interval","../scale/Time","../scale/Log","../scale/Scale",W,Qe,"zrender/contain/text"],function(t){var e=t("../scale/Ordinal"),i=t("../scale/Interval");t("../scale/Time"),t("../scale/Log");var n=t("../scale/Scale"),r=t(W),a=t(Qe),o=t("zrender/contain/text"),s={};return s.niceScaleExtent=function(t,e){var i=t.scale,n=i[Z](),o=n[1]-n[0];if(i.type===m)return void(isFinite(o)||i.setExtent(0,0));var s=e.get("min"),l=e.get("max"),u=!e.get("scale"),c=e.get("boundaryGap");a[fe](c)||(c=[c||0,c||0]),c[0]=r[x](c[0],1),c[1]=r[x](c[1],1);var h=!0,d=!0;null==s&&(s=n[0]-c[0]*o,h=!1),null==l&&(l=n[1]+c[1]*o,d=!1),"dataMin"===s&&(s=n[0]),"dataMax"===l&&(l=n[1]),u&&(s>0&&l>0&&!h&&(s=0),0>s&&0>l&&!d&&(l=0)),i.setExtent(s,l),i.niceExtent(e.get("splitNumber"),h,d);var f=e.get("interval");null!=f&&i.setInterval&&i.setInterval(f)},s.createScaleByModel=function(t,r){if(r=r||t.get("type"))switch(r){case g:return new e(t.getCategories(),[1/0,-1/0]);case"value":return new i;default:return(n.getClass(r)||i)[Oe](t)}},s.ifAxisCrossZero=function(t){var e=t.scale[Z](),i=e[0],n=e[1];return!(i>0&&n>0||0>i&&0>n)},s.getAxisLabelInterval=function(t,e,i,n){var r,a=0,s=0,l=1;e[Pe]>40&&(l=Math.round(e[Pe]/40));for(var u=0;u<t[Pe];u+=l){var c=t[u],h=o[J](e[u],i,U,"top");h[n?"x":"y"]+=c,h[n?"width":Ee]*=1.5,r?r.intersect(h)?(s++,a=Math.max(a,s)):(r.union(h),s=0):r=h.clone()}return 0===a&&l>1?l:a*l},s.getFormattedLabels=function(t,e){var i=t.scale,n=i.getTicksLabels(),r=i.getTicks();return typeof e===Xe?(e=function(t){return function(e){return t[pe]("{value}",e)}}(e),a.map(n,e)):typeof e===ce?a.map(r,function(n,r){return e(t.type===g?i.getLabel(n):n,r)},this):n},s}),e("echarts/coord/cartesian/Cartesian2D",[ti,Qe,"./Cartesian"],function(t){function e(t){n.call(this,t)}var i=t(Qe),n=t("./Cartesian");return e[Ue]={constructor:e,type:"cartesian2d",dimensions:["x","y"],getBaseAxis:function(){return this.getAxesByScale(m)[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},containPoint:function(t){var e=this.getAxis("x"),i=this.getAxis("y");return e[H](e.toLocalCoord(t[0]))&&i[H](i.toLocalCoord(t[1]))},containData:function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},dataToPoints:function(t,e){return t[l](["x","y"],function(t,e){return this[p]([t,e])},e,this)},dataToPoint:function(t,e){var i=this.getAxis("x"),n=this.getAxis("y");return[i.toGlobalCoord(i.dataToCoord(t[0],e)),n.toGlobalCoord(n.dataToCoord(t[1],e))]},pointToData:function(t,e){var i=this.getAxis("x"),n=this.getAxis("y");return[i.coordToData(i.toLocalCoord(t[0]),e),n.coordToData(n.toLocalCoord(t[1]),e)]},getOtherAxis:function(t){return this.getAxis("x"===t.dim?"y":"x")}},i[ae](e,n),e}),e("echarts/coord/cartesian/Axis2D",[ti,Qe,"../Axis","./axisLabelInterval"],function(t){var e=t(Qe),i=t("../Axis"),n=t("./axisLabelInterval"),r=function(t,e,n,r,a){i.call(this,t,e,n),this.type=r||"value",this[X]=a||Be};return r[Ue]={constructor:r,index:0,onZero:!1,model:null,isHorizontal:function(){var t=this[X];return"top"===t||t===Be},getGlobalExtent:function(){var t=this[Z]();return t[0]=this.toGlobalCoord(t[0]),t[1]=this.toGlobalCoord(t[1]),t},getLabelInterval:function(){var t=this._labelInterval;return t||(t=this._labelInterval=n(this)),t},isLabelIgnored:function(t){if(this.type===g){var e=this.getLabelInterval();return typeof e===ce&&!e(t,this.scale.getLabel(t))||t%(e+1)}},toLocalCoord:null,toGlobalCoord:null},e[ae](r,i),r}),e("echarts/coord/cartesian/GridModel",[ti,"./AxisModel","../../model/Component"],function(t){t("./AxisModel");var e=t("../../model/Component");return e[De]({type:"grid",dependencies:["xAxis","yAxis"],layoutMode:"box",coordinateSystem:null,defaultOption:{show:!1,zlevel:0,z:0,left:"10%",top:60,right:"10%",bottom:60,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"}})}),e("zrender/tool/transformPath",[ti,"../core/PathProxy","../core/vector"],function(t){function e(t,e){var n,l,u,c,h,d,f=t.data,p=i.M,v=i.C,m=i.L,g=i.R,y=i.A,x=i.Q;for(u=0,c=0;u<f[Pe];){switch(n=f[u++],
|
||
|
}var i=t("./easing");return e[Ue]={constructor:e,step:function(t){this._initialized||(this._startTime=(new Date).getTime()+this._delay,this._initialized=!0);var e=(t-this._startTime)/this._life;if(!(0>e)){e=Math.min(e,1);var n=this.easing,r=typeof n==Xe?i[n]:n,a=typeof r===ce?r(e):e;return this.fire("frame",a),1==e?this.loop?(this.restart(),"restart"):(this._needsRemove=!0,"destroy"):null}},restart:function(){var t=(new Date).getTime(),e=(t-this._startTime)%this._life;this._startTime=(new Date).getTime()-e+this.gap,this._needsRemove=!1},fire:function(t,e){t="on"+t,this[t]&&this[t](this._target,e)}},e}),e("echarts/coord/geo/Region",[ti,"zrender/contain/polygon",L,"zrender/core/bbox",$e],function(t){function e(t,e,i){if(this.name=t,this.contours=e,i)i=[i[0],i[1]];else{var n=this[J]();i=[n.x+n.width/2,n.y+n[Ee]/2]}this[U]=i}var i=t("zrender/contain/polygon"),n=t(L),r=t("zrender/core/bbox"),a=t($e);return e[Ue]={constructor:e,getBoundingRect:function(){var t=this._rect;if(t)return t;for(var e=Number.MAX_VALUE,i=[e,e],o=[-e,-e],s=[],l=[],u=this.contours,c=0;c<u[Pe];c++)r.fromPoints(u[c],s,l),a.min(i,i,s),a.max(o,o,l);return 0===c&&(i[0]=i[1]=o[0]=o[1]=0),this._rect=new n(i[0],i[1],o[0]-i[0],o[1]-i[1])},contain:function(t){var e=this[J](),n=this.contours;if(e[H](t[0],t[1]))for(var r=0,a=n[Pe];a>r;r++)if(i[H](n[r],t[0],t[1]))return!0;return!1},transformTo:function(t,e,i,r){var o=this[J](),s=o.width/o[Ee];i?r||(r=i/s):i=s*r;for(var l=new n(t,e,i,r),u=o.calculateTransform(l),c=this.contours,h=0;h<c[Pe];h++)for(var d=0;d<c[h][Pe];d++)a[P](c[h][d],c[h][d],u);o=this._rect,o.copy(l),this[U]=[o.x+o.width/2,o.y+o[Ee]/2]}},e}),e("echarts/coord/cartesian/AxisModel",[ti,"../../model/Component",Qe,"../axisModelCreator","../axisModelCommonMixin"],function(t){function e(t,e){return e.type||(e.data?g:"value")}var i=t("../../model/Component"),n=t(Qe),r=t("../axisModelCreator"),a=i[De]({type:"cartesian2dAxis",axis:null,setNeedsCrossZero:function(t){this[F].scale=!t},setMin:function(t){this[F].min=t},setMax:function(t){this[F].max=t}});n.merge(a[Ue],t("../axisModelCommonMixin"));var o={gridIndex:0};return r("x",a,e,o),r("y",a,e,o),a}),e("zrender/animation/easing",[],function(){var t={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return.5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return 0===t?0:Math.pow(1024,t-1)},exponentialOut:function(t){return 1===t?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return 0===t?0:1===t?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(-Math.pow(2,-10*(t-1))+2)},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,i=.1,n=.4;return 0===t?0:1===t?1:(!i||1>i?(i=1,e=n/4):e=n*Math.asin(1/i)/(2*Math.PI),-(i*Math.pow(2,10*(t-=1))*Math.sin(2*(t-e)*Math.PI/n)))},elasticOut:function(t){var e,i=.1,n=.4;return 0===t?0:1===t?1:(!i||1>i?(i=1,e=n/4):e=n*Math.asin(1/i)/(2*Math.PI),i*Math.pow(2,-10*t)*Math.sin(2*(t-e)*Math.PI/n)+1)},elasticInOut:function(t){var e,i=.1,n=.4;return 0===t?0:1===t?1:(!i||1>i?(i=1,e=n/4):e=n*Math.asin(1/i)/(2*Math.PI),(t*=2)<1?-.5*i*Math.pow(2,10*(t-=1))*Math.sin(2*(t-e)*Math.PI/n):i*Math.pow(2,-10*(t-=1))*Math.sin(2*(t-e)*Math.PI/n)*.5+1)},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e
|
||
|
},M=w[Ue];M.type="list",M.getDimension=function(t){return isNaN(t)||(t=this[v][t]||t),t},M.getDimensionInfo=function(t){return f.clone(this._dimensionInfos[this.getDimension(t)])},M.initData=function(t,e,i){t=t||[],this._rawData=t;var n=this._storage={},r=this.indices=[],a=this[v],o=t[Pe],l=this._dimensionInfos,u=[],c={};e=e||[];for(var h=0;h<a[Pe];h++){var d=l[a[h]],m=s[d.type];n[a[h]]=new m(o)}i=i||function(t,e,i,n){var r=p.getDataItemValue(t);return p.converDataValue(f[fe](r)?r[n]:r,l[e])};for(var g=0;g<t[Pe];g++){for(var y=t[g],x=0;x<a[Pe];x++){var _=a[x],w=n[_];w[g]=i(y,_,g,x)}r.push(g)}for(var h=0;h<t[Pe];h++){var b="";e[h]||(e[h]=t[h].name,b=t[h].id);var M=e[h]||"";!b&&M&&(c[M]=c[M]||0,b=M,c[M]>0&&(b+="__ec__"+c[M]),c[M]++),b&&(u[h]=b)}this._nameList=e,this._idList=u},M.count=function(){return this.indices[Pe]},M.get=function(t,e,i){var n=this._storage,r=this.indices[e],a=n[t]&&n[t][r];if(i){var o=this._dimensionInfos[t];if(o&&o.stackable)for(var s=this.stackedOn;s;){var l=s.get(t,e);(a>=0&&l>0||0>=a&&0>l)&&(a+=l),s=s.stackedOn}}return a},M.getValues=function(t,e,i){var n=[];f[fe](t)||(i=e,e=t,t=this[v]);for(var r=0,a=t[Pe];a>r;r++)n.push(this.get(t[r],e,i));return n},M.hasValue=function(t){for(var e=this[v],i=this._dimensionInfos,n=0,r=e[Pe];r>n;n++)if(i[e[n]].type!==m&&isNaN(this.get(e[n],t)))return!1;return!0},M.getDataExtent=function(t,e){var i=this._storage[t],n=this.getDimensionInfo(t);e=n&&n.stackable&&e;var r,a=(this._extent||(this._extent={}))[t+!!e];if(a)return a;if(i){for(var o=1/0,s=-1/0,l=0,u=this.count();u>l;l++)r=this.get(t,l,e),o>r&&(o=r),r>s&&(s=r);return this._extent[t+e]=[o,s]}return[1/0,-1/0]},M.getSum=function(t,e){var i=this._storage[t],n=0;if(i)for(var r=0,a=this.count();a>r;r++){var o=this.get(t,r,e);isNaN(o)||(n+=o)}return n},M[de]=function(t,e){var i=this._storage,n=i[t],r=this.indices;if(n)for(var a=0,o=r[Pe];o>a;a++){var s=r[a];if(n[s]===e)return a}return-1},M.indexOfName=function(t){for(var e=this.indices,i=this._nameList,n=0,r=e[Pe];r>n;n++){var a=e[n];if(i[a]===t)return n}return-1},M.indexOfNearest=function(t,e,i){var n=this._storage,r=n[t];if(r){for(var a=Number.MAX_VALUE,o=-1,s=0,l=this.count();l>s;s++){var u=Math.abs(this.get(t,s,i)-e);a>=u&&(a=u,o=s)}return o}return-1},M.getRawIndex=function(t){var e=this.indices[t];return null==e?-1:e},M[R]=function(t){return this._nameList[this.indices[t]]||""},M.getId=function(t){return this._idList[this.indices[t]]||this.getRawIndex(t)+""},M.each=function(t,i,n,r){typeof t===ce&&(r=n,n=i,i=t,t=[]),t=f.map(e(t),this.getDimension,this);var a=[],o=t[Pe],s=this.indices;r=r||this;for(var l=0;l<s[Pe];l++)if(0===o)i.call(r,l);else if(1===o)i.call(r,this.get(t[0],l,n),l);else{for(var u=0;o>u;u++)a[u]=this.get(t[u],l,n);a[u]=l,i.apply(r,a)}},M.filterSelf=function(t,i,n,r){typeof t===ce&&(r=n,n=i,i=t,t=[]),t=f.map(e(t),this.getDimension,this);var a=[],o=[],s=t[Pe],l=this.indices;r=r||this;for(var u=0;u<l[Pe];u++){var c;if(1===s)c=i.call(r,this.get(t[0],u,n),u);else{for(var h=0;s>h;h++)o[h]=this.get(t[h],u,n);o[h]=u,c=i.apply(r,o)}c&&a.push(l[u])}return this.indices=a,this._extent={},this},M[l]=function(t,e,i,n){typeof t===ce&&(n=i,i=e,e=t,t=[]);var r=[];return this.each(t,function(){r.push(e&&e.apply(this,arguments))},i,n),r},M.map=function(t,n,r,a){t=f.map(e(t),this.getDimension,this);var o=i(this,t),s=o.indices=this.indices,l=o._storage,u=[];return this.each(t,function(){var e=arguments[arguments[Pe]-1],i=n&&n.apply(this,arguments);if(null!=i){typeof i===oe&&(u[0]=i,i=u);for(var r=0;r<i[Pe];r++){var a=t[r],o=l[a],c=s[e];o&&(o[c]=i[r])}}},r,a),o},M.downSample=function(t,e,n,r){for(var a=i(this,[t]),o=this._storage,s=a._storage,l=this.indices,u=a.indices=[],c=[],h=[],d=Math.floor(1/e),f=s[t],p=this.count(),v=0;v<o[t][Pe];v++)s[t][v]=o[t][v];for(var v=0;p>v;v+=d){d>p-v&&(d=p-v,c[Pe]=d);for(var m=0;d>m;m++){var g=l[v+m];c[m]=f[g],h[m]=g}var y=n(c),g=h[r(c,y)||0];f[g]=y,u.push(g)}return a},M[_]=function(t){var e=this.hostModel;return t=this.indices[t],new u(this._rawData[t],e,e[E])},M.diff=function(t){var e=this._idList,i=t&&t._idList;return new d(t?t.in
|
||
|
var r=t.toolbox;if(r&&(l[fe](r)&&(r=r[0]),r&&r.feature)){var a=r.feature.dataZoom;e("xAxis",a),e("yAxis",a)}}}),e}),e("echarts/chart/helper/SymbolDraw",[ti,f,"./Symbol"],function(t){function e(t){this.group=new n.Group,this._symbolCtor=t||r}function i(t,e,i){var n=t[h](e);return!(!n||isNaN(n[0])||isNaN(n[1])||i&&i(e)||"none"===t[c](e,s))}var n=t(f),r=t("./Symbol"),a=e[Ue];return a.updateData=function(t,e){var r=this.group,a=t.hostModel,o=this._data,s=this._symbolCtor;t.diff(o).add(function(n){var a=t[h](n);if(i(t,n,e)){var o=new s(t,n);o.attr(X,a),t.setItemGraphicEl(n,o),r.add(o)}})[Ve](function(l,u){var c=o[k](u),d=t[h](l);return i(t,l,e)?(c?(c.updateData(t,l),n.updateProps(c,{position:d},a)):(c=new s(t,l),c.attr(X,d)),r.add(c),void t.setItemGraphicEl(l,c)):void r[Ie](c)})[Ie](function(t){var e=o[k](t);e&&e.fadeOut(function(){r[Ie](e)})}).execute(),this._data=t},a.updateLayout=function(){var t=this._data;t&&t.eachItemGraphicEl(function(e,i){e.attr(X,t[h](i))})},a[Ie]=function(t){var e=this.group,i=this._data;i&&(t?i.eachItemGraphicEl(function(t){t.fadeOut(function(){e[Ie](t)})}):e[ne]())},e}),e("echarts/chart/helper/Symbol",[ti,Qe,"../../util/symbol",f,n],function(t){function e(t){return a[fe](t)||(t=[+t,+t]),t}function i(t,e){l.Group.call(this),this.updateData(t,e)}function r(t,e){this[S].drift(t,e)}var a=t(Qe),o=t("../../util/symbol"),l=t(f),u=t(n),h=i[Ue];h._createSymbol=function(t,i,n){this[ne]();var a=i.hostModel,s=i[c](n,"color"),u=o.createSymbol(t,-.5,-.5,1,1,s);u.attr({style:{strokeNoScale:!0},z2:100,culling:!0,scale:[0,0]}),u.drift=r;var h=e(i[c](n,"symbolSize"));l.initProps(u,{scale:h},a),this._symbolType=t,this.add(u)},h.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(t)},h.getScale=function(){return this.childAt(0).scale},h.highlight=function(){this.childAt(0)[Ae](I)},h.downplay=function(){this.childAt(0)[Ae](D)},h.setZ=function(t,e){var i=this.childAt(0);i[me]=t,i.z=e},h.setDraggable=function(t){var e=this.childAt(0);e.draggable=t,e.cursor=t?"move":"pointer"},h.updateData=function(t,i){var n=t[c](i,s)||"circle",r=t.hostModel,a=e(t[c](i,"symbolSize"));if(n!==this._symbolType)this._createSymbol(n,t,i);else{var o=this.childAt(0);l.updateProps(o,{scale:a},r)}this._updateCommon(t,i,a),this._seriesModel=r};var d=[se,D],p=[se,I],g=["label",D],y=["label",I];return h._updateCommon=function(t,i,n){var r=this.childAt(0),o=t.hostModel,s=t[_](i),h=s[qe](d),f=t[c](i,"color"),w=s[qe](p)[ee]();r.rotation=s.getShallow("symbolRotate")*Math.PI/180||0;var b=s.getShallow("symbolOffset");if(b){var M=r[X];M[0]=u[x](b[0],n[0]),M[1]=u[x](b[1],n[1])}r.setColor(f),a[De](r.style,h[ee](["color"]));for(var S,T=s[qe](g),C=s[qe](y),z=r.style,A=t[v].slice(),P=A.pop();(S=t.getDimensionInfo(P).type)===m||"time"===S;)P=A.pop();T.get("show")?(l.setText(z,T,f),z.text=a.retrieve(o.getFormattedLabel(i,D),t.get(P,i))):z.text="",C.getShallow("show")?(l.setText(w,C,f),w.text=a.retrieve(o.getFormattedLabel(i,I),t.get(P,i))):w.text="";var L=e(t[c](i,"symbolSize"));if(r.off(be).off(we).off(I).off(D),l.setHoverStyle(r,w),s.getShallow("hoverAnimation")){var k=function(){var t=L[1]/L[0];this.animateTo({scale:[Math.max(1.1*L[0],L[0]+3),Math.max(1.1*L[1],L[1]+3*t)]},400,"elasticOut")},R=function(){this.animateTo({scale:L},400,"elasticOut")};r.on(be,k).on(we,R).on(I,k).on(D,R)}},h.fadeOut=function(t){var e=this.childAt(0);e.style.text="",l.updateProps(e,{scale:[0,0]},this._seriesModel,t)},a[ae](i,l.Group),i}),e("echarts/chart/line/lineAnimationDiff",[ti],function(){function t(t){return t>=0?1:-1}function e(e,i,n){for(var r,a=e[V](),o=e.getOtherAxis(a),s=a.onZero?0:o.scale[Z]()[0],l=o.dim,c="x"===l||l===u?1:0,h=i.stackedOn,d=i.get(l,n);h&&t(h.get(l,n))===t(d);){r=h;break}var f=[];return f[c]=i.get(a.dim,n),f[1-c]=r?r.get(l,n,!0):s,e[p](f)}function i(t,e){var i=[];return e.diff(t).add(function(t){i.push({cmd:"+",idx:t})})[Ve](function(t,e){i.push({cmd:"=",idx:e,idx1:t})})[Ie](function(t){i.push({cmd:"-",idx:t})}).execute(),i}return function(t,n,r,a,o,s){for(var l=i(t,n),u=[],c=[],d=[],f=[],m=[],g=[],y=[],x=s[v],_=0;_<l[Pe];_++){var w=l[_],b=!0;s
|
||
|
}for(var o=e[Pe]-1;o>=0;o--)null==i[o]&&(delete r[e[o]],e.pop())}function r(t){return{applyVisual:function(e,i,n){var r=i("color"),a=c[fe](e);if(e=a?[this.mapValueToVisual(e[0]),this.mapValueToVisual(e[1])]:this.mapValueToVisual(e),c[fe](r))for(var o=0,s=r[Pe];s>o;o++)r[o].color=t(r[o].color,a?e[o]:e);else n("color",t(r,e))},mapValueToVisual:function(t){var i=this._normalizeData(t),n=this._getSpecifiedVisual(t),r=this[F].visual;return null==n&&(n=u(this)?l(this,r,i):e(i,[0,1],r,!0)),n}}}function a(t,i){return t[Math.round(e(i,[0,1],[0,t[Pe]-1],!0))]}function o(t,e,i){i("color",this.mapValueToVisual(t))}function l(t,e,i){return e[t[F].loop&&i!==v?i%e[Pe]:i]}function u(t){return t[F].mappingMethod===g}var c=t(Qe),h=t("zrender/tool/color"),d=t(W).linearMap,f=c.each,p=c[Re],v=-1,m=function(t){var e=t.mappingMethod,r=t.type;this.type=r,this.mappingMethod=e;var a=this[F]=c.clone(t);this._normalizeData=x[e],this._getSpecifiedVisual=c.bind(_[e],this,r),c[De](this,y[r]),"piecewise"===e&&i(a),e===g&&n(a)};m[Ue]={constructor:m,applyVisual:null,isValueActive:null,mapValueToVisual:null,getNormalizer:function(){return c.bind(this._normalizeData,this)}};var y=m.visualHandlers={color:{applyVisual:o,getColorMapper:function(){var t=u(this)?this[F].visual:c.map(this[F].visual,h.parse);return c.bind(u(this)?function(e,i){return!i&&(e=this._normalizeData(e)),l(this,t,e)}:function(e,i,n){var r=!!n;return!i&&(e=this._normalizeData(e)),n=h.fastMapToColor(e,t,n),r?n:c.stringify(n,"rgba")},this)},mapValueToVisual:function(t){var e=this[F].visual;if(c[fe](t))return t=[this._normalizeData(t[0]),this._normalizeData(t[1])],h.mapIntervalToColor(t,e);var i=this._normalizeData(t),n=this._getSpecifiedVisual(t);return null==n&&(n=u(this)?l(this,e,i):h.mapToColor(i,e)),n}},colorHue:r(function(t,e){return h.modifyHSL(t,e)}),colorSaturation:r(function(t,e){return h.modifyHSL(t,null,e)}),colorLightness:r(function(t,e){return h.modifyHSL(t,null,null,e)}),colorAlpha:r(function(t,e){return h.modifyAlpha(t,e)}),symbol:{applyVisual:function(t,e,i){var n=this.mapValueToVisual(t);if(c[re](n))i(s,n);else if(p(n))for(var r in n)n.hasOwnProperty(r)&&i(r,n[r])},mapValueToVisual:function(t){var e=this._normalizeData(t),i=this._getSpecifiedVisual(t),n=this[F].visual;return null==i&&(i=u(this)?l(this,n,e):a(n,e)||{}),i}},symbolSize:{applyVisual:function(t,e,i){i("symbolSize",this.mapValueToVisual(t))},mapValueToVisual:function(t){var i=this._normalizeData(t),n=this._getSpecifiedVisual(t),r=this[F].visual;return null==n&&(n=u(this)?l(this,r,i):e(i,[0,1],r,!0)),n}}},x={linear:function(t){return e(t,this[F].dataExtent,[0,1],!0)},piecewise:function(t){var i=this[F].pieceList,n=m.findPieceIndex(t,i);return null!=n?e(n,[0,i[Pe]-1],[0,1],!0):void 0},category:function(t){var e=this[F].categories?this[F].categoryMap[t]:t;return null==e?v:e}},_={linear:c.noop,piecewise:function(t,e){var i=this[F],n=i.pieceList;if(i.hasSpecialVisual){var r=m.findPieceIndex(e,n),a=n[r];if(a&&a.visual)return a.visual[t]}},category:c.noop};return m.addVisualHandler=function(t,e){y[t]=e},m.isValidType=function(t){return y.hasOwnProperty(t)},m.eachVisual=function(t,e,i){c[Re](t)?c.each(t,e,i):e.call(i,t)},m.mapVisual=function(t,e,i){var n,r=c[fe](t)?[]:c[Re](t)?{}:(n=!0,null);return m.eachVisual(t,function(t,a){var o=e.call(i,t,a);n?r=o:r[a]=o}),r},m.isInVisualCluster=function(t,e){return"color"===e?!(!t||0!==t[de](e)):t===e},m.retrieveVisuals=function(t){var e,i={};return t&&f(y,function(n,r){t.hasOwnProperty(r)&&(i[r]=t[r],e=!0)}),e?i:null},m.prepareVisualTypes=function(t){if(p(t)){var e=[];f(t,function(t,i){e.push(i)}),t=e}else{if(!c[fe](t))return[];t=t.slice()}return t.sort(function(t,e){return"color"===e&&"color"!==t&&0===t[de]("color")?1:-1}),t},m.findPieceIndex=function(t,e){for(var i=0,n=e[Pe];n>i;i++){var r=e[i];if(null!=r.value&&r.value===t)return i}for(var i=0,n=e[Pe];n>i;i++){var r=e[i],a=r.interval;if(a)if(a[0]===-1/0){if(t<a[1])return i}else if(1/0===a[1]){if(a[0]<t)return i}else if(r.interval[0]<=t&&t<=r.interval[1])return i}},m}),e("echarts/component/dataZoom/typeDefaulter",[ti,"../../mod
|