@@ -17,7 +17,7 @@ if (navClose) {
17
17
}
18
18
const ctx = document . getElementById ( 'skillsChart' ) . getContext ( '2d' ) ;
19
19
const skillsChart = new Chart ( ctx , {
20
- type : 'radar' , // Radar chart
20
+ type : 'radar' ,
21
21
data : {
22
22
labels : [
23
23
'Languages' ,
@@ -32,47 +32,47 @@ const skillsChart = new Chart(ctx, {
32
32
] ,
33
33
datasets : [ {
34
34
label : 'Skill Level (%)' ,
35
- data : [ 85 , 88 , 85 , 90 , 85 , 85 , 85 , 90 , 80 ] , // Calculated averages
36
- backgroundColor : 'rgba(75, 192, 192, 0.2)' , // Light green fill
37
- borderColor : 'rgba(75, 192, 192, 1)' , // Dark green border
35
+ data : [ 85 , 88 , 85 , 90 , 85 , 85 , 85 , 90 , 80 ] ,
36
+ backgroundColor : 'rgba(75, 192, 192, 0.2)' ,
37
+ borderColor : 'rgba(75, 192, 192, 1)' ,
38
38
borderWidth : 2 ,
39
- pointBackgroundColor : 'rgba(75, 192, 192, 1)' , // Point color
40
- pointBorderColor : '#fff' , // Point border
41
- pointHoverBackgroundColor : '#fff' , // Hover background
42
- pointHoverBorderColor : 'rgba(75, 192, 192, 1)' , // Hover border
39
+ pointBackgroundColor : 'rgba(75, 192, 192, 1)' ,
40
+ pointBorderColor : '#fff' ,
41
+ pointHoverBackgroundColor : '#fff' ,
42
+ pointHoverBorderColor : 'rgba(75, 192, 192, 1)' ,
43
43
} ]
44
44
} ,
45
45
options : {
46
46
responsive : true ,
47
- maintainAspectRatio : false , // Makes chart larger and responsive
47
+ maintainAspectRatio : false ,
48
48
scales : {
49
49
r : {
50
50
angleLines : {
51
51
display : true ,
52
- color : 'rgba(128, 128, 128, 0.3)' // Customize the radar grid line color
52
+ color : 'rgba(128, 128, 128, 0.3)'
53
53
} ,
54
54
suggestedMin : 50 ,
55
55
suggestedMax : 100 ,
56
56
ticks : {
57
- display : false // Removes number labels
57
+ display : false
58
58
} ,
59
59
grid : {
60
- color : 'rgba(128, 128, 128, 0.2)' // Subtle grid color
60
+ color : 'rgba(128, 128, 128, 0.2)'
61
61
}
62
62
}
63
63
} ,
64
64
plugins : {
65
65
legend : {
66
- position : 'top' , // Keeps the legend on top
66
+ position : 'top' ,
67
67
labels : {
68
- color : 'rgba(75, 192, 192, 1)' // Match text color
68
+ color : 'rgba(75, 192, 192, 1)'
69
69
}
70
70
} ,
71
71
tooltip : {
72
- enabled : true , // Interactive tooltips
72
+ enabled : true ,
73
73
callbacks : {
74
74
label : function ( context ) {
75
- return context . dataset . label + ': ' + context . formattedValue + '%' ; // Tooltip formatting
75
+ return context . dataset . label + ': ' + context . formattedValue + '%' ;
76
76
}
77
77
}
78
78
}
@@ -424,9 +424,9 @@ document.addEventListener('DOMContentLoaded', function () {
424
424
425
425
document . addEventListener ( "DOMContentLoaded" , function ( ) {
426
426
const observerOptions = {
427
- root : null , // Use the browser viewport as the container
427
+ root : null ,
428
428
rootMargin : "0px" ,
429
- threshold : 0.1 // Trigger when 10% of the element is visible
429
+ threshold : 0.1
430
430
} ;
431
431
432
432
const elementsToAnimate = document . querySelectorAll ( '.scroll-animation' ) ;
@@ -435,7 +435,7 @@ document.addEventListener("DOMContentLoaded", function () {
435
435
entries . forEach ( entry => {
436
436
if ( entry . isIntersecting ) {
437
437
entry . target . classList . add ( 'scroll-in-view' ) ;
438
- observer . unobserve ( entry . target ) ; // Stop observing once animated
438
+ observer . unobserve ( entry . target ) ;
439
439
}
440
440
} ) ;
441
441
} , observerOptions ) ;
0 commit comments