small improvements in displaying, fixed scale

This commit is contained in:
Martin Putzlocher 2023-02-02 14:05:39 +01:00
parent 82c8482bb3
commit 4ea22feea9

View File

@ -36,21 +36,25 @@
let data = new Map(); let data = new Map();
data.set("INS", 0); // instructional principle data.set("instructional principle", 4); // instructional principle
data.set("VIS", 2); // visibility / audio data.set("visibility", 2); // visibility / audio
data.set("SEG", 3); // segmentation data.set("segmentation", 3); // segmentation
data.set("ACT", 4); // activity data.set("activity", 4); // activity
data.set("INT", 5); // interactivity data.set("interactivity", 5); // interactivity
data.set("DYN", 1); // dynamic drawing data.set("dynamic drawing", 3); // dynamic drawing
data.set("TRA", 2); // translatability data.set("translatability", 2); // translatability
function loadNewRadarChar(chrtelement, data) {
function loadNewRadarChart(data, videotitle) {
chartId.update();
} }
function setNewValues() { function setNewValues() {
console.log("Hi!"); console.log("Hi!");
let nameValue = document.getElementById("videoname").value;
console.log(nameValue);
loadNewRadarChart(chartId, data, nameValue);
} }
</script> </script>
</head> </head>
@ -182,6 +186,15 @@
}], }],
}, },
options: { options: {
scales: {
r: {
angleLines: {
display: true
},
min: 0,
max: 5
},
},
responsive: false, responsive: false,
elements: { elements: {
line: { line: {
@ -189,6 +202,7 @@
} }
} }
}, },
plugins: []
}); });
</script> </script>