import{b as c}from"./chunk-AVOTGRPZ.js";import{Ja as o,Lb as s,ib as a,jb as r,oa as i}from"./chunk-GJDGQISV.js";var p=class t{config;data;ngAfterViewInit(){this.initPieChart()}ngOnChanges(){this.initPieChart()}initPieChart(){let n={chart:{plotBackgroundColor:null,plotBorderWidth:null,plotShadow:!1,type:"pie",height:this.config.height},title:{text:this.config.title},credits:{enabled:!1},legend:this.config.legend,tooltip:{pointFormat:"{series.name}: <b>{point.percentage:.1f}%</b>"},plotOptions:{pie:{allowPointSelect:!0,cursor:"pointer",dataLabels:{enabled:this.config.dataLabels,format:"<b>{point.name}</b>: {point.percentage:.1f} %"},showInLegend:!0}},series:[{name:this.config.labelTooltips,colorByPoint:!0,data:this.data}]};c.default.chart("container",n)}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=a({type:t,selectors:[["POS-pie-chart"]],inputs:{config:"config",data:"data"},standalone:!1,features:[o],decls:2,vars:0,consts:[["container",""],["id","container"]],template:function(e,f){e&1&&s(0,"div",1,0)},encapsulation:2})},l=class t{static \u0275fac=function(e){return new(e||t)};static \u0275mod=r({type:t});static \u0275inj=i({})};export{p as a,l as b};
