function generateRandomData(t=15,e=5,a=20){return Array.from({length:t},()=>Math.floor(Math.random()*(a-e+1))+e)}function generateRandomCharts(){var t=document.querySelectorAll('[data-chart="apex"]');0===t.length?console.error('No elements found with data-chart="apex"'):t.forEach(function(t){let e=t.getAttribute("data-chart-type")||"bar";new CustomApexChart({selector:t,options:()=>({chart:{type:e,height:30,width:100,sparkline:{enabled:!0}},stroke:{width:"line"===e?2:0,curve:"smooth"},plotOptions:{bar:{columnWidth:"50%",borderRadius:2}},series:[{data:generateRandomData()}],colors:["#3b82f6"],tooltip:{enabled:!1}})})})}generateRandomCharts();