webpackJsonp([16],{Er5a:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("WR23"),i=n.n(r),o=n("ifQC"),a={data:function(){return{chart:null}},computed:{isCollapse:function(){return this.$store.state.sys.isCollapse}},watch:{isCollapse:{handler:function(){var t=this;setTimeout(function(){t.chart.forceFit()},400)}}},methods:{_chart:function(){var t=new(0,o.DataSet.DataView);t.source([{item:"事例一",count:40},{item:"事例二",count:21},{item:"事例三",count:17},{item:"事例四",count:13},{item:"事例五",count:9}]).transform({type:"percent",field:"count",dimension:"item",as:"percent"}),this.chart=new i.a.Chart({container:"_pie",forceFit:!0,height:100,padding:[0,0,0,0]}),this.chart.source(t,{percent:{formatter:function(t){return t=100*t+"%"}}}),this.chart.coord("theta"),this.chart.tooltip({showTitle:!1,itemTpl:'<li><span style="background-color:{color};" class="g2-tooltip-marker"></span>{name}: {value}</li>'}),this.chart.intervalStack().position("percent").color("item").label("percent",{offset:-15,autoRotate:!0,textStyle:{rotate:0,textAlign:"center",shadowBlur:2,shadowColor:"rgba(0, 0, 0, .45)"}}).tooltip("item*percent",function(t,e){return{name:t,value:e=100*e+"%"}}).style({lineWidth:1,stroke:"#fff"}),this.chart.render()}},mounted:function(){this._chart()}},c={render:function(){var t=this.$createElement;return(this._self._c||t)("div",{attrs:{id:"_pie"}})},staticRenderFns:[]},s=n("VU/8")(a,c,!1,null,null,null);e.default=s.exports}});