function renderApexChart(){$(".apexchart").each((function(){if(null!=$(this).attr("data-categories")){var t=$(this).attr("data-type"),e=$(this).attr("data-title"),a=$(this).attr("data-height"),r=$(this).attr("data-categories");r=r.replace(/'/g,'"'),r=JSON.parse(r);var o,i=$(this).attr("data-dataseries");i=i.replace(/'/g,'"'),i=JSON.parse(i),"line"==t?o={chart:{height:parseInt(a),type:"line",zoom:{enabled:!1}},title:{text:e,align:"left"},series:i,dataLabels:{enabled:!1},stroke:{curve:"straight"},grid:{row:{colors:["#f3f3f3","transparent"],opacity:.5}},xaxis:{categories:r}}:"area"==t?o={chart:{height:parseInt(a),type:"area",zoom:{enabled:!1}},title:{text:e,align:"left"},dataLabels:{enabled:!1},stroke:{curve:"straight"},series:i,labels:r,yaxis:{opposite:!0},legend:{horizontalAlign:"left"}}:"column"==t||"column2"==t||"column3"==t?o={chart:{height:parseInt(a),type:"bar"},title:{text:e,align:"left"},plotOptions:{bar:{horizontal:!1,columnWidth:"55%",endingShape:"rounded"}},dataLabels:{enabled:!1},stroke:{show:!0,width:2,colors:["transparent"]},series:i,xaxis:{categories:r},fill:{opacity:1}}:"bar"==t?o={chart:{height:parseInt(a),type:"bar"},title:{text:e,align:"left"},plotOptions:{bar:{horizontal:!0}},dataLabels:{enabled:!1},series:[{data:i}],xaxis:{categories:r}}:"pie"==t&&(parseInt(a)>window.innerWidth&&(a=window.innerWidth),o={chart:{height:parseInt(a),type:"pie"},title:{text:e,align:"left"},labels:r,series:i[0].data,responsive:[{breakpoint:480,options:{chart:{width:parseInt(a)},legend:{position:"bottom"}}}]}),new ApexCharts(this,o).render()}}))}function renderChart(){if(null!=$(".chartjs").attr("data-chart-value")){var t,e=JSON.parse($(".chartjs").attr("data-chart-value")),a=e.map((t=>t.value)),r=e.map((t=>t.label)),o=$(".chartjs").attr("data-chart");t="bar2"==o?{chart:{type:"bar",toolbar:{show:!1}},series:[{data:a}],xaxis:{type:"category",categories:r,labels:{show:!0,rotate:-45,rotateAlways:!1,hideOverlappingLabels:!0,showDuplicates:!1,trim:!0,minHeight:void 0,maxHeight:120,style:{colors:[],fontSize:"12px",fontFamily:"Helvetica, Arial, sans-serif",cssClass:"apexcharts-xaxis-label",fontWeight:"bold"},offsetX:0,offsetY:0,format:void 0,formatter:void 0,datetimeFormatter:{year:"yyyy",month:"MMM 'yy",day:"dd MMM",hour:"HH:mm"}},axisBorder:{show:!0,color:"#78909C",height:1,width:"100%",offsetX:0,offsetY:0}},plotOptions:{bar:{horizontal:!0,endingShape:"flat",columnWidth:"30%",barHeight:"30%",distributed:!1,colors:{ranges:[{from:0,to:0,color:void 0}],backgroundBarColors:[],backgroundBarOpacity:1},dataLabels:{position:"top",maxItems:100,hideOverflowingLabels:!0}}},tooltip:{enabled:!1,shared:!0,followCursor:!1,intersect:!1,inverseOrder:!1,custom:void 0,fillSeriesColor:!1,theme:!1,style:{fontSize:"12px",fontFamily:void 0},onDatasetHover:{highlightDataSeries:!1},x:{show:!0,format:"dd MMM",formatter:void 0},y:{formatter:void 0,title:{formatter:t=>t}},z:{formatter:void 0,title:"Size: "},marker:{show:!0},fixed:{enabled:!1,position:"topRight",offsetX:0,offsetY:0}}}:{chart:{type:o,toolbar:{show:!1}},series:[{data:a}],xaxis:{type:"category",categories:r,labels:{show:!0,rotate:-45,rotateAlways:!1,hideOverlappingLabels:!0,showDuplicates:!1,trim:!0,minHeight:void 0,maxHeight:120,style:{colors:[],fontSize:"12px",fontFamily:"Helvetica, Arial, sans-serif",cssClass:"apexcharts-xaxis-label",fontWeight:"bold"},offsetX:0,offsetY:0,format:void 0,formatter:void 0,datetimeFormatter:{year:"yyyy",month:"MMM 'yy",day:"dd MMM",hour:"HH:mm"}},axisBorder:{show:!0,color:"#78909C",height:1,width:"100%",offsetX:0,offsetY:0}},plotOptions:{bar:{horizontal:!1,endingShape:"flat",columnWidth:"30%",barHeight:"70%",distributed:!1,colors:{ranges:[{from:0,to:0,color:void 0}],backgroundBarColors:[],backgroundBarOpacity:1},dataLabels:{position:"top",maxItems:100,hideOverflowingLabels:!0}}},tooltip:{enabled:!1,shared:!0,followCursor:!1,intersect:!1,inverseOrder:!1,custom:void 0,fillSeriesColor:!1,theme:!1,style:{fontSize:"12px",fontFamily:void 0},onDatasetHover:{highlightDataSeries:!1},x:{show:!0,format:"dd MMM",formatter:void 0},y:{formatter:void 0,title:{formatter:t=>t}},z:{formatter:void 0,title:"Size: "},marker:{show:!0},fixed:{enabled:!1,position:"topRight",offsetX:0,offsetY:0}}},new ApexCharts(document.querySelector(".chartjs"),t).render()}}