68 lines
2.0 KiB
HTML
68 lines
2.0 KiB
HTML
|
|
<!DOCTYPE>
|
|
<html>
|
|
<head>
|
|
<meta charset- "UTF-8" />
|
|
<meta name="description" content="Visualization of video lecture taxonomy">
|
|
<meta name="keywords" content="video, taxonomy, quality, properties, instruction, visualization">
|
|
<meta name="author" content="Martin Putzlocher">
|
|
<meta name='viewport' content='width=device-width, initial-scale=1'>
|
|
<link rel='stylesheet' href='./css/w3.css'>
|
|
<link rel='stylesheet' href='./css/w3-colors-signal.css'>
|
|
|
|
<title>Video Taxonomy Visualization</title>
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/3.1.1/chart.min.js"></script>
|
|
|
|
<script>
|
|
let data = new Map();
|
|
data.set("INS", 0); // instructional principle
|
|
data.set("VIS", 2); // visibility / audio
|
|
data.set("SEG", 3); // segmentation
|
|
data.set("ACT", 4); // activity
|
|
data.set("INT", 5); // interactivity
|
|
data.set("DYN", 1); // dynamic drawing
|
|
data.set("TRA", 2); // translatability
|
|
|
|
function loadNewRadarChar(chrtelement, data) {
|
|
|
|
|
|
}
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<h1 class="w3-container w3-green">Video lectures taxonomy</h1>
|
|
|
|
|
|
|
|
<canvas id="chartId" aria-label="chart" height="350" width="580"></canvas>
|
|
|
|
<script>
|
|
var chrt = document.getElementById("chartId").getContext("2d");
|
|
var chartId = new Chart(chrt, {
|
|
type: 'radar',
|
|
data: {
|
|
labels: Array.from(data.keys()),
|
|
datasets: [{
|
|
label: "Title of video",
|
|
data: Array.from(data.values()),
|
|
backgroundColor: "rgba(128,128,128,0.5)",
|
|
pointBackgroundColor: ['yellow', 'aqua', 'pink', 'lightgreen', 'lightblue', 'gold', 'maroon'],
|
|
borderColor: ['black'],
|
|
borderWidth: 1,
|
|
pointRadius: 6,
|
|
}],
|
|
},
|
|
options: {
|
|
responsive: false,
|
|
elements: {
|
|
line: {
|
|
borderWidth: 3
|
|
}
|
|
}
|
|
},
|
|
});
|
|
|
|
</script>
|
|
</body>
|
|
</html>
|