import"./chunk-BNv3lrIs.js";import{n as e,t}from"./jsx-runtime-pmtNMKr4.js";import{c as n,i as r,n as i,p as a,r as o,t as s}from"./dist-Cy37wDV0.js";e(),n.register(...a);var c=t(),l=({frecuencias:e,etiquetas:t,chartType:n,chartTitle:a,titInfo:l,bgColor:u})=>{let d={labels:t,datasets:[{label:l,backgroundColor:u,borderColor:u,data:e}]},f={responsive:!0,plugins:{legend:{position:`bottom`},title:{display:!0,text:a}}},p;switch(n){case`line`:p=o;break;case`bar`:p=s;break;case`pie`:p=r;break;case`doughnut`:p=i;break;default:p=o}return(0,c.jsx)(`div`,{style:{width:`90%`,maxHeight:`400px`,display:`flex`,alignItems:`center`,alignContent:`center`},children:(0,c.jsx)(p,{data:d,options:f})})};export{l as t};