-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplot.html
More file actions
34 lines (31 loc) · 960 Bytes
/
plot.html
File metadata and controls
34 lines (31 loc) · 960 Bytes
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
<!DOCTYPE HTML>
<html>
<head>
<script>
window.onload = function() {
var a =5
var b =3
var chart = new CanvasJS.Chart("chartContainer", {
animationEnabled: true,
title: {
text: "Visual Description of Attention "
},
data: [{
type: "pie",
startAngle: 240,
indexLabel: "{label} {y}",
dataPoints: [
{y: a, label: "Attentive hours"},
{y: b, label: "Non Attentive hours"},
]
}]
});
chart.render();
}
</script>
</head>
<body>
<div id="chartContainer" style="height: 370px; width: 100%;"></div>
<script src="/?originalUrl=https%3A%2F%2Fgithub.com%2F%26quot%3Bhttps%3A%2F%2Fcanvasjs.com%2Fassets%2Fscript%2Fcanvasjs.min.js%26quot%3B%26gt%3B%26lt%3B%2Fscript%26gt%3B%253C%2Fdiv">
</body>
</html>