webpackJsonp([110],{qTJQ:function(t,e){},tqu3:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=a("Xxa5"),r=a.n(i),n=a("exGp"),s=a.n(n),c=a("5i7M"),o={data:function(){return{chart:null}},props:{charData:{type:Array,default:function(){return[]}},id:String},mounted:function(){var t=this;setTimeout(function(){t.drawChart()},30)},beforeUpdate:function(){this.drawChart()},watch:{charData:function(){this.drawChart()}},methods:{drawChart:function(){var t=this;return s()(r.a.mark(function e(){var a;return r.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t.chart&&t.chart.destroy(),t.charData.length){e.next=3;break}return e.abrupt("return");case 3:t.chart=new c.a({container:t.id,autoFit:!0,forceFit:!0,padding:[20,40,40,20]}),t.chart.data(t.charData),t.chart.legend({custom:!0,position:"top-left",items:[{name:"今日添加人数",value:"addNum",marker:{symbol:"line",style:{stroke:"#4B74E8",lineWidth:12,lineHeight:8}}},{name:"今日点击人次",value:"clickTimes",marker:{symbol:"line",style:{stroke:"#D6B38C",lineWidth:12,lineHeight:8}}},{name:"今日点击人数",value:"clickNum",marker:{symbol:"line",style:{stroke:"#14C9C9",lineWidth:12,lineHeight:8}}}]}),a={grid:{line:{type:"line",style:{stroke:"#E4E7ED",lineDash:[3,3]}}},label:{style:{fill:"#606266"},formatter:function(t){return t}}},t.chart.axis("bizDate",a),t.chart.axis("addNum",a),t.chart.axis("clickTimes",a),t.chart.axis("clickNum",a),t.chart.tooltip({showCrosshairs:!0,shared:!0,itemTpl:'<div style="margin-bottom: 10px;list-style:none;">\n            <span style="background-color:{color};" class="g2-tooltip-marker"></span>\n            {name}: {value}\n            </div>'}),t.chart.line().position("bizDate*addNum").color("#4B74E8").tooltip("addNum",function(t){return{name:"今日添加人数",value:t}}),t.chart.line().position("bizDate*clickTimes").tooltip("clickTimes",function(t){return{name:"今日点击人次",value:t}}).color("#D6B38C"),t.chart.line().position("bizDate*clickNum").tooltip("clickNum",function(t){return{name:"今日点击人数",value:t}}).color("#14C9C9"),t.chart.removeInteraction("legend-filter"),t.chart.render();case 17:case"end":return e.stop()}},e,t)}))()}}},l={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",[e("div",{staticClass:"chart--nodata",attrs:{id:this.id}}),this._v(" "),this.charData.length?this._e():e("div",{staticClass:"chart--nodata"},[this._m(0)])])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",[e("img",{staticClass:"image-120",attrs:{src:a("es7N")}}),this._v(" "),e("p",{staticClass:"font-14 color-606266 no-data-text"},[this._v("暂无数据")])])}]};var u=a("VU/8")(o,l,!1,function(t){a("qTJQ")},"data-v-1cee5684",null);e.default=u.exports}});