import{A as s}from"./apexcharts.common-vztPuFDU.js";import{d as n,l,ae as i,c as d,o as p}from"./app-DJb_CRLj.js";const c=["id"],m=n({__name:"ApextBarChart",props:{id:{},labels:{},color:{},datasets:{}},setup(r){const t=r;var a={chart:{height:275,type:"bar",toolbar:{show:!1},dropShadow:{enabled:!0,top:0,left:2,bottom:2,right:0,blur:5,color:"#00000030",opacity:.35}},plotOptions:{bar:{horizontal:!1,endingShape:"rounded",columnWidth:"35%",borderRadius:2}},dataLabels:{enabled:!1},stroke:{show:!0,width:1,colors:["transparent"]},colors:t.color,series:[{name:t.datasets.one.label,data:t.datasets.one.data}],xaxis:{show:!0,categories:t.labels,axisBorder:{show:!0,color:"#f1f1f1"},axisTicks:{show:!0},labels:{show:!0,style:{fontSize:"11px",fontFamily:"IRANYekanX",fontWeight:500}}},legend:{position:"top",horizontalAlign:"left",fontFamily:"IRANYekanX",offsetY:0},yaxis:{show:!0,labels:{show:!0,style:{fontSize:"12px",fontFamily:"IRANYekanX",fontWeight:400}}},fill:{opacity:1},grid:{row:{colors:["transparent","transparent"],opacity:.1},borderColor:"#f1f1f1"},tooltip:{style:{fontSize:"12px",fontFamily:"IRANYekanX"},y:{formatter:function(o){return""+o}}}};t.datasets.two!=null&&a.series.push({name:t.datasets.two.label,data:t.datasets.two.data});let e;return l(()=>{e=new s(document.querySelector("#bar-chart-"+t.id),a),e.render()}),i(()=>{e.destroy()}),(o,f)=>(p(),d("div",{id:"bar-chart-"+o.id},null,8,c))}});export{m as _};
