-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscript.js
More file actions
88 lines (84 loc) · 2.85 KB
/
Copy pathscript.js
File metadata and controls
88 lines (84 loc) · 2.85 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
document.addEventListener('DOMContentLoaded', function() {
const ctx = document.getElementById('skillsChart').getContext('2d');
const skillsData = {
labels: [
'Data Analysis & Interpretation',
'Technical Proficiencies (SQL, Python)',
'Business Analysis',
'SEO & Keyword Strategy',
'Collaboration & Communication',
'IT Systems & Consulting'
],
datasets: [{
label: 'Proficiency Level',
data: [90, 75, 85, 80, 95, 88],
backgroundColor: 'rgba(163, 191, 178, 0.2)',
borderColor: 'rgba(122, 163, 145, 1)',
pointBackgroundColor: 'rgba(122, 163, 145, 1)',
pointBorderColor: '#fff',
pointHoverBackgroundColor: '#fff',
pointHoverBorderColor: 'rgba(122, 163, 145, 1)'
}]
};
const chartConfig = {
type: 'radar',
data: skillsData,
options: {
responsive: true,
maintainAspectRatio: false,
plugins: {
legend: {
display: false
},
tooltip: {
callbacks: {
label: function(context) {
let label = context.dataset.label || '';
if (label) {
label += ': ';
}
if (context.parsed.r !== null) {
label += context.parsed.r + '%';
}
return label;
}
}
}
},
scales: {
r: {
angleLines: {
color: 'rgba(0, 0, 0, 0.1)'
},
grid: {
color: 'rgba(0, 0, 0, 0.1)'
},
pointLabels: {
font: {
size: 12,
family: "'Inter', sans-serif"
},
color: '#333'
},
ticks: {
backdropColor: 'transparent',
stepSize: 25,
display: false
},
min: 0,
max: 100
}
}
}
};
new Chart(ctx, chartConfig);
// Smooth scrolling for navigation links
document.querySelectorAll('a.nav-link').forEach(anchor => {
anchor.addEventListener('click', function (e) {
e.preventDefault();
document.querySelector(this.getAttribute('href')).scrollIntoView({
behavior: 'smooth'
});
});
});
});