text: !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("echarts/lib/echarts"),require("echarts/lib/component/tooltip"),require("echarts/lib/component/legend"),require("echarts/lib/chart/bar")):"function"==typeof define&&define.amd?define(["echarts/lib/echarts","echarts/lib/component/tooltip","echarts/lib/component/legend","echarts/lib/chart/bar"],e):t.VeBar=e(t.echarts)}(this,function(t){"use strict";(t="default"in t?t.default:t).registerTheme("ve-chart",{categoryAxis:{axisLine:{show:!1},axisTick:{show:!1},splitLine:{show:!1}},valueAxis:{axisLine:{show:!1}},line:{smooth:!0},grid:{containLabel:!0,left:10,right:10}});var e=function(t){return['<span style="',"background-color:"+t+";","display: inline-block;","width: 10px;","height: 10px;","border-radius: 50%;","margin-right:2px;",'"></span>'].join("")},i=["#19d4ae","#5ab1ef","#fa6e86","#ffb980","#0067a6","#c4b4e4","#d87a80","#9cbbff","#d9d0c7","#87a997","#d49ea2","#5b4947","#7ba3a8"],n=function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"-";if(null==t||isNaN(t))return n;switch(e){case"KMB":return function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;if(isNaN(+t))return t;for(var i=[{value:1e18,symbol:"E"},{value:1e15,symbol:"P"},{value:1e12,symbol:"T"},{value:1e9,symbol:"B"},{value:1e6,symbol:"M"},{value:1e3,symbol:"k"}],n=0;n<i.length;n++)if(Math.abs(t)>=i[n].value)return(t/i[n].value).toFixed(e)+i[n].symbol;return t.toString()}(t);case"percent":return parseFloat((100*t).toFixed(i))+"%";case"normal":return String(t).replace(/^(\s+|-)?\d+(?=.?\d*($|\s))/g,function(t){return t.replace(/(?=(?!\b)(\d{3})+$)/g,",")});default:return t}},r=function(t){var e={};return Object.keys(t).forEach(function(i){t[i].forEach(function(t){e[t]=i})}),e},a=function(t){return Object.prototype.toString.call(t)},o=function(t){return"[object Object]"===a(t)},s="object"==typeof global&&global&&global.Object===Object&&global,c="object"==typeof self&&self&&self.Object===Object&&self,l=s||c||Function("return this")(),h=l.Symbol,u=Object.prototype,d=u.hasOwnProperty,p=u.toString,f=h?h.toStringTag:void 0;var y=Object.prototype.toString;var v="[object Null]",b="[object Undefined]",m=h?h.toStringTag:void 0;function g(t){return null==t?void 0===t?b:v:m&&m in Object(t)?function(t){var e=d.call(t,f),i=t[f];try{t[f]=void 0;var n=!0}catch(t){}var r=p.call(t);return n&&(e?t[f]=i:delete t[f]),r}(t):(e=t,y.call(e));var e}function x(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}var O="[object AsyncFunction]",_="[object Function]",j="[object GeneratorFunction]",A="[object Proxy]";var w,S=l["__core-js_shared__"],k=(w=/[^.]+$/.exec(S&&S.keys&&S.keys.IE_PROTO||""))?"Symbol(src)_1."+w:"";var E=Function.prototype.toString;var $=/^\[object .+?Constructor\]$/,C=Function.prototype,P=Object.prototype,N=C.toString,T=P.hasOwnProperty,z=RegExp("^"+N.call(T).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function L(t){return!(!x(t)||k&&k in t)&&(function(t){if(!x(t))return!1;var e=g(t);return e==_||e==j||e==O||e==A}(t)?z:$).test(function(t){if(null!=t){try{return E.call(t)}catch(t){}try{return t+""}catch(t){}}return""}(t))}function M(t,e){var i,n=null==(i=t)?void 0:i[e];return L(n)?n:void 0}var F=function(){try{var t=M(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();function H(t,e){return t===e||t!=t&&e!=e}var V=Object.prototype.hasOwnProperty;function B(t,e,i){var n,r,a,o=t[e];V.call(t,e)&&H(o,i)&&(void 0!==i||e in t)||(n=t,a=i,"__proto__"==(r=e)&&F?F(n,r,{configurable:!0,enumerable:!0,value:a,writable:!0}):n[r]=a)}var W=Array.isArray;var R="[object Symbol]";function G(t){return"symbol"==typeof t||null!=(e=t)&&"object"==typeof e&&g(t)==R;var e}var q=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,D=/^\w*$/;var I=M(Object,"create");var Z="__lodash_hash_undefined__",J=Object.prototype.hasOwnProperty;var K=Object.prototype.hasOwnProperty;var U="__lodash_hash_undefined__";function Q(t){var e=-1,i=null==t?0:t.length;for(this.clear();++e<i;){var n=t[e];this.set(n[0],n[1])}}function X(t,e){for(var i=t.length;i--;)if(H(t[i][0],e))return i;return-1}Q.prototype.clear=function(){this.__data__=I?I(null):{},this.size=0},Q.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},Q.prototype.get=function(t){var e=this.__data__;if(I){var i=e[t];return i===Z?void 0:i}return J.call(e,t)?e[t]:void 0},Q.prototype.has=function(t){var e=this.__data__;return I?void 0!==e[t]:K.call(e,t)},Q.prototype.set=function(t,e){var i=this.__data__;return this.size+=this.has(t)?0:1,i[t]=I&&void 0===e?U:e,this};var Y=Array.prototype.splice;function tt(t){var e=-1,i=null==t?0:t.length;for(this.clear();++e<i;){var n=t[e];this.set(n[0],n[1])}}tt.prototype.clear=function(){this.__data__=[],this.size=0},tt.prototype.delete=function(t){var e=this.__data__,i=X(e,t);return!(i<0||(i==e.length-1?e.pop():Y.call(e,i,1),--this.size,0))},tt.prototype.get=function(t){var e=this.__data__,i=X(e,t);return i<0?void 0:e[i][1]},tt.prototype.has=function(t){return X(this.__data__,t)>-1},tt.prototype.set=function(t,e){var i=this.__data__,n=X(i,t);return n<0?(++this.size,i.push([t,e])):i[n][1]=e,this};var et=M(l,"Map");function it(t,e){var i,n,r=t.__data__;return("string"==(n=typeof(i=e))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==i:null===i)?r["string"==typeof e?"string":"hash"]:r.map}function nt(t){var e=-1,i=null==t?0:t.length;for(this.clear();++e<i;){var n=t[e];this.set(n[0],n[1])}}nt.prototype.clear=function(){this.size=0,this.__data__={hash:new Q,map:new(et||tt),string:new Q}},nt.prototype.delete=function(t){var e=it(this,t).delete(t);return this.size-=e?1:0,e},nt.prototype.get=function(t){return it(this,t).get(t)},nt.prototype.has=function(t){return it(this,t).has(t)},nt.prototype.set=function(t,e){var i=it(this,t),n=i.size;return i.set(t,e),this.size+=i.size==n?0:1,this};var rt="Expected a function";function at(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError(rt);var i=function(){var n=arguments,r=e?e.apply(this,n):n[0],a=i.cache;if(a.has(r))return a.get(r);var o=t.apply(this,n);return i.cache=a.set(r,o)||a,o};return i.cache=new(at.Cache||nt),i}at.Cache=nt;var ot=500;var st,ct,lt=/^\./,ht=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ut=/\\(\\)?/g,dt=(st=at(function(t){var e=[];return lt.test(t)&&e.push(""),t.replace(ht,function(t,i,n,r){e.push(n?r.replace(ut,"$1"):i||t)}),e},function(t){return ct.size===ot&&ct.clear(),t}),ct=st.cache,st);var pt=1/0,ft=h?h.prototype:void 0,yt=ft?ft.toString:void 0;function vt(t){if("string"==typeof t)return t;if(W(t))return function(t,e){for(var i=-1,n=null==t?0:t.length,r=Array(n);++i<n;)r[i]=e(t[i],i,t);return r}(t,vt)+"";if(G(t))return yt?yt.call(t):"";var e=t+"";return"0"==e&&1/t==-pt?"-0":e}function bt(t,e){return W(t)?t:function(t,e){if(W(t))return!1;var i=typeof t;return!("number"!=i&&"symbol"!=i&&"boolean"!=i&&null!=t&&!G(t))||D.test(t)||!q.test(t)||null!=e&&t in Object(e)}(t,e)?[t]:dt(null==(i=t)?"":vt(i));var i}var mt=9007199254740991,gt=/^(?:0|[1-9]\d*)$/;var xt=1/0;function Ot(t){if("string"==typeof t||G(t))return t;var e=t+"";return"0"==e&&1/t==-xt?"-0":e}function _t(t,e,i){return null==t?t:function(t,e,i,n){if(!x(t))return t;for(var r,a,o=-1,s=(e=bt(e,t)).length,c=s-1,l=t;null!=l&&++o<s;){var h=Ot(e[o]),u=i;if(o!=c){var d=l[h];void 0===(u=n?n(d,h,l):void 0)&&(u=x(d)?d:(r=e[o+1],(a=null==(a=void 0)?mt:a)&&("number"==typeof r||gt.test(r))&&r>-1&&r%1==0&&r<a?[]:{}))}B(l,h,u),l=l[h]}return t}(t,e,i)}function jt(t,e,i){var n=null==t?void 0:function(t,e){for(var i=0,n=(e=bt(e,t)).length;null!=t&&i<n;)t=t[Ot(e[i++])];return i&&i==n?t:void 0}(t,e);return void 0===n?i:n}var At=function(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t},wt=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t},St=.5;function kt(t){var e=t.innerRows,i=t.dimAxisName,n=t.dimension,r=t.axisVisible,a=t.dimAxisType,o=t.dims;return n.map(function(t){return{type:"category",name:i,nameLocation:"middle",nameGap:22,data:"value"===a?function(t){for(var e=Math.max.apply(null,t),i=[],n=Math.min.apply(null,t);n<=e;n++)i.push(n);return i}(o):e.map(function(e){return e[t]}),axisLabel:{formatter:function(t){return String(t)}},show:r}})}function Et(t){var e,i=t.innerRows,n=t.metrics,a=t.stack,o=t.axisSite,s=t.isHistogram,c=t.labelMap,l=t.itemStyle,h=t.label,u=t.showLine,d=void 0===u?[]:u,p=t.dimAxisType,f=t.barGap,y=t.opacity,v=t.dims,b={},m=s?o.right||[]:o.top||[],g=s?"yAxisIndex":"xAxisIndex",x=a&&r(a);return n.forEach(function(t){b[t]=[]}),i.forEach(function(t){n.forEach(function(e){b[e].push(t[e])})}),!!(e=Object.keys(b).map(function(t,e){var i="value"===p?function(t,e){for(var i=Math.max.apply(null,e),n=[],r=Math.min.apply(null,e);r<=i;r++){var a=e.indexOf(r);~a?n.push(t[a]):n.push(null)}return n}(b[t],v):b[t],n=At({name:null!=c[t]?c[t]:t,type:~d.indexOf(t)?"line":"bar",data:i},g,~m.indexOf(t)?"1":"0");a&&x[t]&&(n.stack=x[t]),h&&(n.label=h),l&&(n.itemStyle=l);var r=y||jt(n,"itemStyle.normal.opacity");return"value"===p&&(n.barGap=f,n.barCategoryGap="1%",null==r&&(r=St)),null!=r&&_t(n,"itemStyle.normal.opacity",r),n})).length&&e}var $t=function(t,i,r,a){var o,s=(o=i,JSON.parse(JSON.stringify(o))),c=r.axisSite,l=void 0===c?{}:c,h=r.dimension,u=void 0===h?[t[0]]:h,d=r.stack,p=void 0===d?{}:d,f=r.axisVisible,y=void 0===f||f,v=r.digit,b=void 0===v?2:v,m=r.dataOrder,g=void 0!==m&&m,x=r.scale,O=void 0===x?[!1,!1]:x,_=r.min,j=void 0===_?[null,null]:_,A=r.max,w=void 0===A?[null,null]:A,S=r.legendName,k=void 0===S?{}:S,E=r.labelMap,$=void 0===E?{}:E,C=r.label,P=r.itemStyle,N=r.showLine,T=r.barGap,z=void 0===T?"-100%":T,L=r.opacity,M=a.tooltipVisible,F=a.legendVisible,H=t.slice();l.top&&l.bottom?H=l.top.concat(l.bottom):l.bottom&&!l.right?H=l.bottom:r.metrics?H=r.metrics:H.splice(t.indexOf(u[0]),1);var V=r.xAxisType||["normal","normal"],B=r.yAxisType||"category",W=r.xAxisName||[],R=r.yAxisName||"";if(g){var G=g.label,q=g.order;G&&q?s.sort(function(t,e){return"desc"===q?t[G]-e[G]:e[G]-t[G]}):console.warn("Need to provide name and order parameters")}var D,I,Z,J,K,U,Q,X,Y,tt,et,it,nt=(D=u,s.map(function(t){return t[D[0]]})),rt=F&&(Z=(I={metrics:H,labelMap:$,legendName:k}).metrics,J=I.labelMap,(K=I.legendName)||J?{data:J?Z.map(function(t){return null==J[t]?t:J[t]}):Z,formatter:function(t){return null!=K[t]?K[t]:t}}:{data:Z}),at=kt({innerRows:s,dimAxisName:R,dimension:u,axisVisible:y,dimAxisType:B,dims:nt}),ot=function(t){for(var e=t.meaAxisName,i=t.meaAxisType,r=t.axisVisible,a=t.digit,o=t.scale,s=t.min,c=t.max,l={type:"value",axisTick:{show:!1},show:r},h=[],u=function(t){i[t]?h[t]=wt({},l,{axisLabel:{formatter:function(e){return n(e,i[t],a)}}}):h[t]=wt({},l),h[t].name=e[t]||"",h[t].scale=o[t]||!1,h[t].min=s[t]||null,h[t].max=c[t]||null},d=0;d<2;d++)u(d);return h}({meaAxisName:W,meaAxisType:V,axisVisible:y,digit:b,scale:O,min:j,max:w});return{legend:rt,yAxis:at,series:Et({innerRows:s,metrics:H,stack:p,axisSite:l,isHistogram:!1,labelMap:$,itemStyle:P,label:C,showLine:N,dimAxisType:B,dimension:u,barGap:z,opacity:L,dims:nt}),xAxis:ot,tooltip:M&&(Q=(U={axisSite:l,isHistogram:!1,meaAxisType:V,digit:b,labelMap:$}).axisSite,X=U.isHistogram,Y=U.meaAxisType,tt=U.digit,et=U.labelMap,it=X?Q.right||[]:Q.top||[],et&&(it=it.map(function(t){return void 0===et[t]?t:et[t]})),{trigger:"axis",formatter:function(t){var i=[];return i.push(t[0].name+"<br>"),t.forEach(function(t){var r=t.seriesName,a=~it.indexOf(r)?Y[1]:Y[0];i.push(e(t.color)),i.push(r+": "),i.push(n(t.value,a,tt)),i.push("<br>")}),i.join("")}})}},Ct={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"v-charts-component-loading"},[e("div",{staticClass:"loader"},[e("div",{staticClass:"loading-spinner"},[e("svg",{staticClass:"circular",attrs:{viewBox:"25 25 50 50"}},[e("circle",{staticClass:"path",attrs:{cx:"50",cy:"50",r:"20",fill:"none"}})])])])])},staticRenderFns:[]},Pt={render:function(){var t=this.$createElement;return(this._self._c||t)("div",{staticClass:"v-charts-data-empty"},[this._v(" 暂无数据 ")])},staticRenderFns:[]};return{name:"VeBar",mixins:[{render:function(t){return t("div",{class:[(e=this.$options.name||this.$options._componentTag,e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase())],style:this.canvasStyle},[t("div",{style:this.canvasStyle,ref:"canvas"}),t(Ct,{style:{display:this.loading?"":"none"}}),t(Pt,{style:{display:this.dataEmpty?"":"none"}}),this.$slots.default]);var e},props:{data:{type:[Object,Array],default:function(){return{}}},settings:{type:Object,default:function(){return{}}},width:{type:String,default:"auto"},height:{type:String,default:"400px"},beforeConfig:{type:Function},afterConfig:{type:Function},afterSetOption:{type:Function},afterSetOptionOnce:{type:Function},events:{type:Object},grid:{type:[Object,Array]},colors:{type:Array},tooltipVisible:{type:Boolean,default:!0},legendVisible:{type:Boolean,default:!0},legendPosition:{type:String},markLine:{type:Object},markArea:{type:Object},markPoint:{type:Object},visualMap:{type:[Object,Array]},dataZoom:{type:[Object,Array]},toolbox:{type:[Object,Array]},initOptions:{type:Object,default:function(){return{}}},title:Object,legend:[Object,Array],xAxis:[Object,Array],yAxis:[Object,Array],radar:Object,tooltip:Object,axisPointer:Object,brush:[Object,Array],geo:Object,timeline:[Object,Array],graphic:[Object,Array],series:[Object,Array],backgroundColor:[Object,String],textStyle:Object,animation:Object,theme:Object,themeName:String,loading:Boolean,dataEmpty:Boolean,extend:Object,judgeWidth:{type:Boolean,default:!0},widthChangeDelay:{type:Number,default:300},tooltipFormatter:{type:Function}},watch:{data:{deep:!0,handler:function(t){t&&this.dataHandler(t)}},settings:{deep:!0,handler:function(t){t.type&&this.chartLib&&(this.chartHandler=this.chartLib[t.type]),this.dataHandler(this.data)}},events:{deep:!0,handler:function(){this.createEventProxy()}},theme:{deep:!0,handler:function(t){this.themeChange(t)}},themeName:function(t){this.themeChange(t)}},computed:{canvasStyle:function(){return{width:this.width,height:this.height,position:"relative"}},chartColor:function(){return this.colors||this.theme&&this.theme.color||i}},methods:{dataHandler:function(t){if(this.chartHandler){var e=t,i=e.columns,n=void 0===i?[]:i,r=e.rows,a=void 0===r?[]:r,o={tooltipVisible:this.tooltipVisible,legendVisible:this.legendVisible,echarts:this.echarts,color:this.chartColor,tooltipFormatter:this.tooltipFormatter};this.beforeConfig&&(t=this.beforeConfig(t));var s=this.chartHandler(n,a,this.settings,o);s&&("function"==typeof s.then?s.then(this.optionsHandler):this.optionsHandler(s))}},resize:function(){this.echarts.resize()},optionsHandler:function(t){var e=this;this.legendPosition&&t.legend&&(t.legend[this.legendPosition]=10,~["left","right"].indexOf(this.legendPosition)&&(t.legend.top="middle",t.legend.orient="vertical")),this.themeName||(t.color=this.chartColor);if(["grid","dataZoom","visualMap","toolbox","title","legend","xAxis","yAxis","radar","tooltip","axisPointer","brush","geo","timeline","graphic","series","backgroundColor","textStyle"].forEach(function(i){e[i]&&(t[i]=e[i])}),this.animation&&Object.keys(this.animation).forEach(function(i){t[i]=e.animation[i]}),this.markArea||this.markLine||this.markPoint){var i={markArea:this.markArea,markLine:this.markLine,markPoint:this.markPoint},n=t.series;"[object Array]"===a(n)?n.forEach(function(t){e.addMark(t,i)}):"[object Object]"===a(n)&&this.addMark(n,i)}this.extend&&Object.keys(this.extend).forEach(function(i){var n;"function"==typeof e.extend[i]?t[i]=e.extend[i](t[i]):(n=t[i],"[object Array]"===a(n)&&o(t[i][0])?t[i].forEach(function(n,r){t[i][r]=wt({},n,e.extend[i])}):o(t[i])?t[i]=wt({},t[i],e.extend[i]):t[i]=e.extend[i])}),this.afterConfig&&(t=this.afterConfig(t)),this.echarts.setOption(t,!0),this.$emit("ready",this.echarts),this._once["ready-once"]||(this._once["ready-once"]=!0,this.$emit("ready-once",this.echarts)),this.judgeWidth&&this.judgeWidthHandler(t),this.afterSetOption&&this.afterSetOption(this.echarts),this.afterSetOptionOnce&&!this._once.afterSetOptionOnce&&(this._once.afterSetOptionOnce=this.afterSetOptionOnce(this.echarts))},judgeWidthHandler:function(t){var e=this,i=this.echarts,n=this.widthChangeDelay;this.$el.clientWidth?i&&i.resize():this.$nextTick(function(t){e.$el.clientWidth?i&&i.resize():setTimeout(function(t){i&&i.resize(),e.$el.clientWidth||console.warn(" Can't get dom width or height ")},n)})},addMark:function(t,e){Object.keys(e).forEach(function(i){e[i]&&(t[i]=e[i])})},init:function(){if(!this.echarts){var t=this.themeName||this.theme||"ve-chart";this.echarts=this.echartsLib.init(this.$refs.canvas,t,this.initOptions),this.data&&this.dataHandler(this.data),this.createEventProxy(),window.addEventListener("resize",this.echarts.resize)}},addWatchToProps:function(){var t=this,e=this._watchers.map(function(t){return t.expression});Object.keys(this.$props).forEach(function(i){if(!~e.indexOf(i)){var n={};"[object Object]"===a(t.$props[i])&&(n.deep=!0),t.$watch(i,function(){t.dataHandler(t.data)},n)}})},createEventProxy:function(){var t=this,e=this,i=Object.keys(this.events||{});i.length&&i.forEach(function(i){var n;-1===t.registeredEvents.indexOf(i)&&(t.registeredEvents.push(i),t.echarts.on(i,(n=i,function(){if(n in e.events){for(var t=arguments.length,i=Array(t),r=0;r<t;r++)i[r]=arguments[r];e.events[n].apply(null,i)}})))})},themeChange:function(t){this.clean(),this.echarts=null,this.init()},clean:function(){window.removeEventListener("resize",this.echarts.resize),this.echarts.dispose()}},created:function(){this.echarts=null,this.registeredEvents=[],this._once={},this.addWatchToProps()},mounted:function(){this.init()},beforeDestroy:function(){this.clean()}}],created:function(){this.chartHandler=$t,this.echartsLib=t}}});
  