function getChartColorsArray(r){if(null!==document.getElementById(r)){var e=document.getElementById(r).getAttribute("data-colors");return(e=JSON.parse(e)).map(function(r){var e=r.replace(" ","");if(-1==e.indexOf("--"))return e;var a=getComputedStyle(document.documentElement).getPropertyValue(e);return a||void 0})}}var options={series:[{name:"Series 1",data:[80,50,30,40,100,20]}],chart:{height:350,type:"radar",toolbar:{show:!1}},stroke:{colors:barchartColors=getChartColorsArray("basic_radar")},xaxis:{categories:["January","February","March","April","May","June"]}},chart=new ApexCharts(document.querySelector("#basic_radar"),options);chart.render();options={series:[{name:"Series 1",data:[80,50,30,40,100,20]},{name:"Series 2",data:[20,30,40,80,20,80]},{name:"Series 3",data:[44,76,78,13,43,10]}],chart:{height:350,type:"radar",dropShadow:{enabled:!0,blur:1,left:1,top:1},toolbar:{show:!1}},stroke:{width:2},fill:{opacity:.2},markers:{size:0},colors:barchartColors=getChartColorsArray("multi_radar"),xaxis:{categories:["2014","2015","2016","2017","2018","2019"]}};(chart=new ApexCharts(document.querySelector("#multi_radar"),options)).render();var barchartColors=getChartColorsArray("polygon_radar"),options={series:[{name:"Series 1",data:[20,100,40,30,50,80,33]}],chart:{height:350,type:"radar",toolbar:{show:!1}},dataLabels:{enabled:!0},plotOptions:{radar:{size:140}},title:{text:"Radar with Polygon Fill",style:{fontWeight:500}},colors:["#5FD0F5"],markers:{size:4,colors:["#fff"],strokeColor:"#f34e4e",strokeWidth:2},tooltip:{y:{formatter:function(r){return r}}},xaxis:{categories:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},yaxis:{tickAmount:7,labels:{formatter:function(r,e){return e%2==0?r:""}}}};(chart=new ApexCharts(document.querySelector("#polygon_radar"),options)).render();