webpackJsonp([113],{C762: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"),c=a.n(n),s=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 c()(r.a.mark(function e(){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 s.a({container:t.id,autoFit:!0,forceFit:!0,height:359,width:1400,padding:[70,60,40,70]}),t.chart.source(t.charData,{value:{type:"linear",tickInterval:50}}),t.chart.tooltip({showMarkers:!1,shared:!0}),t.chart.scale({bizDate:{dataKey:"date",type:"cat"},clickTimes:{min:0,nice:!0},clickNum:{min:0},addNum:{min:0}}),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.axis("clickTimes",{grid:{line:{type:"line",style:{stroke:"#E4E7ED",lineDash:[3,3]}}},label:{formatter:function(t){return Number(t)+"人次"}}}),t.chart.axis("clickNum",{grid:{line:{type:"line",style:{stroke:"#E4E7ED",lineDash:[3,3]}}},label:{formatter:function(t){return Number(t)+"人"}}}),t.chart.axis("addNum",!1),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*clickNum").tooltip("clickNum",function(t){return{name:"今日点击人数",value:t}}).color("#14C9C9"),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.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("C762")},"data-v-17ce76d8",null);e.default=u.exports}});