added video tax categories, opacity, datamodel
This commit is contained in:
parent
3403adc4bf
commit
db0fb72947
30
main.html
30
main.html
@ -4,23 +4,39 @@
|
|||||||
<head>
|
<head>
|
||||||
<meta charset- "UTF-8" />
|
<meta charset- "UTF-8" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
<title>chart.js</title>
|
<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 = [
|
||||||
|
{
|
||||||
|
ins: 0, // instructional principle
|
||||||
|
vis: 0, // visibility / audio
|
||||||
|
seg: 0, // segmentation
|
||||||
|
act: 0, // activity
|
||||||
|
int: 0, // interactivity
|
||||||
|
dyn: 0, // dynamic drawing
|
||||||
|
tra: 0 // translatability
|
||||||
|
}
|
||||||
|
]
|
||||||
|
|
||||||
|
</script>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<h1>Video lectures taxonomy</h1>
|
<h1>Video lectures taxonomy</h1>
|
||||||
<canvas id="chartId" aria-label="chart" height="350" width="580"></canvas>
|
<canvas id="chartId" aria-label="chart" height="350" width="580"></canvas>
|
||||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/3.1.1/chart.min.js"></script>
|
|
||||||
<script>
|
<script>
|
||||||
var chrt = document.getElementById("chartId").getContext("2d");
|
var chrt = document.getElementById("chartId").getContext("2d");
|
||||||
var chartId = new Chart(chrt, {
|
var chartId = new Chart(chrt, {
|
||||||
type: 'radar',
|
type: 'radar',
|
||||||
data: {
|
data: {
|
||||||
labels: ["HTML", "CSS", "JAVASCRIPT", "CHART.JS", "JQUERY", "BOOTSTRP"],
|
labels: ["INS", "VIS", "SEG", "ACT", "INT", "DYN", "TRA"],
|
||||||
datasets: [{
|
datasets: [{
|
||||||
label: "online tutorial subjects",
|
label: "Title of video",
|
||||||
data: [20, 40, 33, 35, 30, 38],
|
data: [1, 2, 3, 5, 4, 3, 4],
|
||||||
backgroundColor: ['lightgrey'],
|
backgroundColor: "rgba(128,128,128,0.5)",
|
||||||
pointBackgroundColor: ['yellow', 'aqua', 'pink', 'lightgreen', 'lightblue', 'gold'],
|
pointBackgroundColor: ['yellow', 'aqua', 'pink', 'lightgreen', 'lightblue', 'gold', 'maroon'],
|
||||||
borderColor: ['black'],
|
borderColor: ['black'],
|
||||||
borderWidth: 1,
|
borderWidth: 1,
|
||||||
pointRadius: 6,
|
pointRadius: 6,
|
||||||
|
Loading…
Reference in New Issue
Block a user