-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
45 lines (42 loc) · 1.26 KB
/
index.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<h1>Acá va el gráfico</h1>
<div style="text-align: 'center';">
<svg height="800" width="800">
<g height={800} width={800} transform="translate(400,400)"></g>
</svg>
</div>
<script src="https://unpkg.com/berles-boolean-skill-map@latest/umd/skillsMap.js"></script>
<script>
const formData = {
'Internet': [1, 1, 1, 2, 3],
'Backend': [1, 1, 0, 0, 0],
'Programación': [1, 1, 3, 0, 0],
'Control Versiones': [1, 1, 2, 3, 0],
'HTML y A11y': [1, 1, 1, 2, 3],
'CSS': [1, 1, 1, 2, 3],
'Javascript': [1, 1, 3, 0, 0],
'Testing': [1, 1, 3, 0, 0],
'Performance': [1, 1, 0, 0, 0],
'Devops': [1, 1, 1, 0, 0],
'Arquitectura': [1, 3, 0, 0, 0]
};
const skillsMapTarget = document.querySelector('svg > g');
const onClickSegment = (segmentName, levelsData) => {
console.log(segmentName, levelsData);
};
// UMD package it is available in window.skillsMap global variable
window.SkillsMap.createSpiderChart(
skillsMapTarget,
formData,
{ onClickSegment }
);
</script>
</body>
</html>