1import{R as t}from"./index-Dfko1WKQ.js";import{g as c}from"./Theme-BvlfuKku.js";import{C as d,R as s,L as u,T as h,a as f}from"./generateCategoricalChart-C2_jTOPI.js";import{P as C,a as g}from"./PieChart-2dwXKiB9.js";import"./Text-BVTkCRcj.js";const T=e=>{var l;const n=c(e.theme);let a=0;const i=e.data.map((m,r)=>{a=a+m[e.pie.dataKey];const o=n.pie[r%n.pie.length];return t.createElement(d,{key:r,fill:o.fill})});return t.createElement(s,null,t.createElement(C,null,t.createElement(g,{dataKey:e.pie.dataKey,data:e.data,innerRadius:((l=e.donutChart)==null?void 0:l.radiusAsPercentage)+"%"},i,e.donutChart&&t.createElement(u,{fontSize:e.donutChart.fontSize+"px",value:e.dataFormatter?e.dataFormatter(a):a,position:"center"})),t.createElement(h,{content:e.tooltip}),t.createElement(f,{content:e.customLegend,...e.legendAttributes})))};export{T as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.