1import{C as n,A as h,i as g,p as c,D as C,c as f}from"./chart-CxJpUjda.js";import{t as b}from"./try-parse-json-PNnY1j55.js";import{a as m,g as v}from"./theme-settings-C6A0L8ST.js";const w=o=>{const a=o.querySelector(".js-doughnut-chart-canvas"),s=b(o.dataset.chartModel);if(!a)return console.error("No canvas found for",o);if(!s)return console.error("No chart props found for",o);const{chartElements:e,hideLegend:l,showTooltip:u}=s;n.register(h,g,c,C,f);const{labels:i,data:d,backgroundColor:p}=e.reduce((t,r)=>(t.labels.push(r.label),t.data.push(r.data),t.backgroundColor.push(m(r)),t),{labels:[],data:[],backgroundColor:[]});new n(a,{type:"doughnut",options:{maintainAspectRatio:!1,color:v(o),plugins:{legend:{position:"bottom",display:!l},tooltip:{enabled:u,mode:"point"}}},data:{labels:i,datasets:[{data:d,backgroundColor:p}]}})};export{w as DoughnutChart};
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.