webpackJsonp([40],{dXX5:function(t,e){},elqy:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=r("OTcb"),i=r.n(a),n={data:function(){return{chart:null}},props:{charData:{type:Array,default:function(){return[]}},id:String,width:{type:Number,default:null}},mounted:function(){var t=this;setTimeout(function(){t.drawChart()},30)},beforeUpdate:function(){this.drawChart()},watch:{charData:function(){this.drawChart()}},methods:{drawChart:function(){this.chart&&this.chart.destroy(),this.chart=new i.a.Chart({container:this.id,width:this.width,height:300}),this.chart.source(this.charData),this.chart.scale("value",{min:0}),this.chart.scale("year",{range:[0,1]}),this.chart.tooltip({crosshairs:{type:"line"}}),this.chart.line().position("year*value"),this.chart.point().position("year*value").size(4).shape("circle").style({stroke:"#fff",lineWidth:1}),this.chart.render()}}},h={render:function(){var t=this.$createElement;return(this._self._c||t)("div",{attrs:{id:this.id}})},staticRenderFns:[]};var s=r("C7Lr")(n,h,!1,function(t){r("dXX5")},"data-v-0f57358e",null);e.default=s.exports}});