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