1 line
1.1 MiB
JavaScript
1 line
1.1 MiB
JavaScript
|
!function(_){var $,D;!function(){function _(_,$){if(!$)return _;if(0===_.indexOf(".")){var G=$.split("/"),D=_.split("/"),C=G.length-1,E=D.length,B=0,A=0;$:for(var F=0;E>F;F++)switch(D[F]){case"..":if(!(C>B))break $;B++,A++;break;case".":A++;break;default:break $}return G.length=C-B,D=D.slice(A),G.concat(D).join("/")}return _}function C($){function C(F,D){if("string"==typeof F){var C=A[F];return C||(C=E(_(F,$)),A[F]=C),C}F instanceof Array&&(D=D||function(){},D.apply(this,B(F,D,$)))}var A={};return C}function B(K,G,F){for(var D=[],H=A[F],J=0,I=Math.min(K.length,G.length);I>J;J++){var C,B=_(K[J],F);switch(B){case"require":C=H&&H.require||$;break;case"exports":C=H.exports;break;case"module":C=H;break;default:C=E(B)}D.push(C)}return D}function E(_){var $=A[_];if(!$)throw new Error("No "+_);if(!$.defined){var D=$.factory,C=D.apply(this,B($.deps||[],D,_));"undefined"!=typeof C&&($.exports=C),$.defined=1}return $.exports}var A={};D=function(_,$,B){A[_]={id:_,deps:$,factory:B,defined:0,exports:{},require:C(_)}},$=C("")}(),D("echarts",["echarts/echarts"],function($){return $}),D("echarts/echarts",["require","./config","zrender/tool/util","zrender/tool/event","zrender/tool/env","zrender","zrender/config","./chart/island","./component/toolbox","./component","./component/title","./component/tooltip","./component/legend","./util/ecData","./chart","zrender/tool/color","./component/timeline","zrender/shape/Image","zrender/loadingEffect/Bar","zrender/loadingEffect/Bubble","zrender/loadingEffect/DynamicLine","zrender/loadingEffect/Ring","zrender/loadingEffect/Spin","zrender/loadingEffect/Whirling","./theme/macarons","./theme/infographic"],function(_){function I(){L.Dispatcher.call(this)}function G($){$.innerHTML="",this._themeConfig={},this.dom=$,this._connected=!1,this._status={dragIn:!1,dragOut:!1,needRefresh:!1},this._curEventType=!1,this._chartList=[],this._messageCenter=new I,this._messageCenterOutSide=new I,this.resize=this.resize(),this._init()}function B(_,$,F,D,C){for(var E=_._chartList,B=E.length;B--;){var A=E[B];"function"==typeof A[$]&&A[$](F,D,C)}}var A=_("./config"),C=_("zrender/tool/util"),L=_("zrender/tool/event"),K={},D=_("zrender/tool/env").canvasSupported,F=new Date-0,E={},J="_echarts_instance_";K.version="2.2.7",K.dependencies={zrender:"2.1.1"},K.init=function($,B){var A=_("zrender");A.version.replace(".","")-0<K.dependencies.zrender.replace(".","")-0&&console.error("ZRender "+A.version+" is too old for ECharts "+K.version+". Current version need ZRender "+K.dependencies.zrender+"+"),$=$ instanceof Array?$[0]:$;var C=$.getAttribute(J);return C||(C=F++,$.setAttribute(J,C)),E[C]&&E[C].dispose(),E[C]=new G($),E[C].id=C,E[C].canvasSupported=D,E[C].setTheme(B),E[C]},K.getInstanceById=function($){return E[$]},C.merge(I.prototype,L.Dispatcher.prototype,!0);var H=_("zrender/config").EVENT,$=["CLICK","DBLCLICK","MOUSEOVER","MOUSEOUT","DRAGSTART","DRAGEND","DRAGENTER","DRAGOVER","DRAGLEAVE","DROP"];return G.prototype={_init:function(){var C=this,M=_("zrender").init(this.dom);this._zr=M,this._messageCenter.dispatch=function($,B,A,_){A=A||{},A.type=$,A.event=B,C._messageCenter.dispatchWithContext($,A,_),C._messageCenterOutSide.dispatchWithContext($,A,_)},this._onevent=function($){return C.__onevent($)};for(var G in A.EVENT)"CLICK"!=G&&"DBLCLICK"!=G&&"HOVER"!=G&&"MOUSEOUT"!=G&&"MAP_ROAM"!=G&&this._messageCenter.bind(A.EVENT[G],this._onevent,this);var I={};this._onzrevent=function($){return C[I[$.type]]($)};for(var E=0,D=$.length;D>E;E++){var J=$[E],L=H[J];I[L]="_on"+J.toLowerCase(),M.on(L,this._onzrevent)}this.chart={},this.component={};var K=_("./chart/island");this._island=new K(this._themeConfig,this._messageCenter,M,{},this),this.chart.island=this._island;var B=_("./component/toolbox");this._toolbox=new B(this._themeConfig,this._messageCenter,M,{},this),this.component.toolbox=this._toolbox;var F=_("./component");F.define("title",_("./component/title")),F.define("tooltip",_("./component/tooltip")),F.define("legend",_("./component/legend")),(0===M.getWidth()||0===M.getHeight())&&console.error("Dom\u2019s width & height should
|