@@ -18,7 +18,7 @@ const AXIS_LABEL_STYLE = {
1818 fontSize : "12px" ,
1919} ;
2020
21- // ==== DATA ====
21+
2222const data = [
2323 { month : "January" , total : 65 , closed : 80 } ,
2424 { month : "February" , total : 90 , closed : 60 } ,
@@ -34,13 +34,13 @@ const data = [
3434 { month : "December" , total : 88 , closed : 15 } ,
3535] ;
3636
37- // ==== SERIES ====
37+
3838const chartSeries = [
3939 { name : "Total Alerts" , data : data . map ( ( d ) => d . total ) } ,
4040 { name : "Closed Alerts" , data : data . map ( ( d ) => d . closed ) } ,
4141] ;
4242
43- // ==== OPTIONS (Line Chart) ====
43+
4444const chartOptions : ApexOptions = {
4545 chart : {
4646 type : "line" ,
@@ -68,8 +68,8 @@ const chartOptions: ApexOptions = {
6868 grid : {
6969 borderColor : "#e5e7eb" ,
7070 strokeDashArray : 4 ,
71- xaxis : { lines : { show : true } } , // ⭐ เปิดเส้น Vertical grid
72- yaxis : { lines : { show : true } } , // Horizontal grid
71+ xaxis : { lines : { show : true } } ,
72+ yaxis : { lines : { show : true } } ,
7373 } ,
7474
7575 xaxis : {
@@ -97,7 +97,7 @@ const chartOptions: ApexOptions = {
9797 } ,
9898} ;
9999
100- // ==== MAIN COMPONENT ====
100+
101101export default function AlertResolutionRate ( { height = 250 } : Props ) {
102102 return (
103103 < div className = "w-full rounded-3xl bg-white px-6 py-5 shadow-sm border border-[#e5e7f5]" >
0 commit comments