webpackJsonp([30],{"56CL":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i("8fg9"),a={props:{dataList:{type:Array,default:[]},colorList:{type:Array,default:[]}},watch:{dataList:function(t){t.length>0&&this.init()}},data:function(){return{chart:null}},mounted:function(){this.init()},methods:{init:function(){var t=this,e=this.chart||n.a(this.$refs.chart),i={tooltip:{trigger:"item"},legend:{left:"center",bottom:"24",itemWidth:12,itemHeight:12,itemGap:12,orient:"horizontal",textStyle:{color:"#666666",fontSize:12,height:12,padding:[2,20,0,0]}},series:[{type:"pie",radius:["60%","100%"],left:"center",height:200,width:584,minAngle:5,bottom:100,top:50,label:{alignTo:"edge",edgeDistance:10,minMargin:5,margin:"15%",formatter:function(t){return"{a|"+t.name+"}\n{a|"+Math.round(t.percent)+"% "+t.value+"辆}"},rich:{a:{color:"#333333",fontSize:14,fontWeight:500}}},labelLine:{lineStyle:{color:"#B3B3B3"},length:15,length2:15},labelLayout:function(t){var i=t.labelRect.x<e.getWidth()/2,n=t.labelLinePoints;return n[2][0]=i?t.labelRect.x:t.labelRect.x+t.labelRect.width,{labelLinePoints:n}},itemStyle:{color:function(e){var i=t.colorList.find(function(t){return t.name===e.name});return i&&i.color||"#333333"}},data:this.dataList}]};e.setOption(i),this.chart=e}}},r={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"main"},[e("div",{ref:"chart",staticClass:"chart"})])},staticRenderFns:[]};var l=i("C7Lr")(a,r,!1,function(t){i("zgxb")},"data-v-b7c7168c",null);e.default=l.exports},zgxb:function(t,e){}});
//# sourceMappingURL=30.8c217bd427d83c909361.1631244905981.js.map