webpackJsonp([32],{"+TeL":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=i("zxxV"),s={data:function(){return{chart:null,list:[{value:27594,name:"胸痛"},{value:18594,name:"卒中"},{value:18594,name:"创/烧伤"},{value:18594,name:"其他"}],total:0}},mounted:function(){var t=0;this.list.forEach(function(e){t+=e.value}),this.total=t,this.init()},methods:{init:function(){var t=this,e=this.chart||a.a(this.$refs.chart),i={tooltip:{trigger:"item"},legend:{orient:"vertical",left:"50%",top:"middle",itemGap:72,itemWidth:24,itemHeight:24,formatter:function(e){var i=t.list.find(function(t){return t.name=e}),a=parseInt(i.value/t.total*100);return"{a|"+e+"}{b|"+a+"%}{x|"+i.value+"人}"},textStyle:{padding:[0,20,0,0],rich:{a:{color:"rgba(255, 255, 255, 0.6)",fontSize:40,width:180,padding:[0,0,0,10]},b:{color:"#FFFFFF",fontSize:40,width:120},x:{color:"#FFFFFF",fontSize:40,width:200}}}},color:["#FF3178","#00C9FF","#FFA400","#7A52FF"],series:[{name:"访问来源",type:"pie",clockwise:!1,radius:["60%","85%"],avoidLabelOverlap:!1,label:{show:!1,position:"center"},center:["25%","50%"],labelLine:{show:!1},data:this.list,emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}}}]};e.setOption(i),this.chart=e}}},n={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"main"},[e("div",{staticClass:"total"},[e("span",[this._v("总人数")]),this._v(" "),e("p",[this._v(this._s(this.total)+"人 ")])]),this._v(" "),e("div",{ref:"chart",staticClass:"chart"})])},staticRenderFns:[]};var r=i("C7Lr")(s,n,!1,function(t){i("bs1c")},"data-v-63074cfc",null);e.default=r.exports},bs1c:function(t,e){}});
//# sourceMappingURL=32.e1510c67a2b805118ae9.1629880373763.js.map