webpackJsonp([36],{cFqF:function(t,e){},ygI1:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=r("tBDB"),a=r.n(i),n=r("9r/T"),h={data:function(){return{chart:null}},props:{charData:{type:Array,default:function(){return[]}},id:String,width:{type:Number,default:null},total:{type:Number,default:null}},mounted:function(){var t=this;Object(n.setTimeout)(function(){t.drawChart()},100)},beforeUpdate:function(){this.drawChart()},watch:{charData:function(){this.drawChart()}},methods:{drawChart:function(){var t=this;this.chart&&this.chart.destroy(),this.chart=new a.a.Chart({container:this.id,width:this.width}),this.chart.source(this.charData,{"新增会员":{min:1},"会员率":{min:0,formatter:function(e){return(Number(e)/t.total*100).toFixed(2)+"%"}}}),this.chart.legend({items:[{value:"会员率",marker:{symbol:"square",fill:"#3182bd",radius:5}},{value:"新增会员",marker:{symbol:"hyphen",stroke:"#fdae6b",radius:5,lineWidth:4}}],onClick:function(t){for(var e=t.item.value,r=t.checked,i=chart.getAllGeoms(),a=0;a<i.length;a++){var n=i[a];n.getYScale().field===e&&(r?n.show():n.hide())}}}),this.chart.axis("新增会员",{grid:null,label:{textStyle:{fill:"#fdae6b",width:5}}}),this.chart.interval().position("keyword*会员率").color("#3182bd").size(40),this.chart.line().position("keyword*新增会员").color("#fdae6b").size(3).shape("smooth"),this.chart.point().position("keyword*新增会员").color("#fdae6b").size(3).shape("circle"),this.chart.render()}}},o={render:function(){var t=this.$createElement;return(this._self._c||t)("div",{attrs:{id:this.id}})},staticRenderFns:[]};var s=r("C7Lr")(h,o,!1,function(t){r("cFqF")},"data-v-307b213c",null);e.default=s.exports}});