webpackJsonp([123],{tqu3:function(i,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=t("Xxa5"),c=t.n(a),l=t("exGp"),r=t.n(l),n=t("5i7M"),s={data:function(){return{chart:null}},props:{charData:{type:Array,default:function(){return[]}},id:String,width:{type:Number,default:1192}},mounted:function(){var i=this;setTimeout(function(){i.drawChart()},30)},beforeUpdate:function(){this.drawChart()},watch:{charData:function(){this.drawChart()}},methods:{drawChart:function(){var i=this;return r()(c.a.mark(function e(){return c.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:i.chart&&i.chart.destroy(),i.chart=new n.a({container:i.id,height:359,forceFit:!0,width:i.width,padding:[20,40,80,80]}),i.charData=[{addNum:1,bizDate:"2022-07-11",clickNum:11,clickTimes:12},{addNum:2,bizDate:"2022-07-12",clickNum:22,clickTimes:13},{addNum:3,bizDate:"2022-07-13",clickNum:33,clickTimes:14},{addNum:4,bizDate:"2022-07-14",clickNum:44,clickTimes:15},{addNum:5,bizDate:"2022-07-15",clickNum:55,clickTimes:15},{addNum:6,bizDate:"2022-07-16",clickNum:66,clickTimes:14},{addNum:7,bizDate:"2022-07-17",clickNum:77,clickTimes:14},{addNum:8,bizDate:"2022-07-18",clickNum:88,clickTimes:10},{addNum:9,bizDate:"2022-07-19",clickNum:99,clickTimes:120}],i.chart.data(i.charData,{bizDate:{alias:"日期"},addNum:{alias:"今日添加人数"},clickNum:{alias:"今日点击人数"},clickTimes:{alias:"今日点击人次"}}),i.chart.axis("bizDate",{line:{style:{stroke:"#606266",lineDash:[3,3]}},tickLine:{style:{fill:"#E4E7ED",lineDash:[3,3]}},label:{style:{fill:"#606266"}}}),i.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}}}]}),i.chart.line().position("bizDate*addNum").color("#4B74E8"),i.chart.line().position("bizDate*clickTimes").color("#D6B38C"),i.chart.line().position("bizDate*clickNum").color("#14C9C9"),i.chart.removeInteraction("legend-filter"),i.chart.render();case 11:case"end":return e.stop()}},e,i)}))()}}},u={render:function(){var i=this.$createElement;return(this._self._c||i)("div",{attrs:{id:this.id}})},staticRenderFns:[]},d=t("VU/8")(s,u,!1,null,null,null);e.default=d.exports}});