webpackJsonp([123],{tqu3:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("Xxa5"),i=n.n(r),a=n("exGp"),o=n.n(a),l=n("5i7M"),c={data:function(){return{chart:null}},props:{charData:{type:Array,default:function(){return[]}},id:String,width:{type:Number,default:1192}},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 o()(i.a.mark(function e(){return i.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:t.chart&&t.chart.destroy(),t.chart=new l.a({container:t.id,height:359,forceFit:!0,width:t.width,padding:[20,40,80,80]}),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}}}]}),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 10:case"end":return e.stop()}},e,t)}))()}}},s={render:function(){var t=this.$createElement;return(this._self._c||t)("div",{attrs:{id:this.id}})},staticRenderFns:[]},u=n("VU/8")(c,s,!1,null,null,null);e.default=u.exports}});