-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathspoke_graph.html
73 lines (68 loc) · 2.16 KB
/
spoke_graph.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Spoke Graph</title>
<link rel="stylesheet" type="text/css" href="./css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="./css/slider.css">
</head>
<body>
<div class="row">
<div class="col">
<div class="row">
<h1>Spoke Graph (Similar to Aster Plot)</h1>
</div>
<div class="row">
<p>Displays each value/segment as a percentage to 100 to the edge. Max value can be anything, size is
adjustable in code. (style=max-width:400px needs to change too in the html)</p>
</div>
<div class="row">
<p>Todo: labels for segments, clean up hacky css in slider.css</p>
</div>
</div>
</div>
<div class="row">
<div id="inputs" class="col" style="min-width:150px">
<div class="row">
<button id="add_value" type="button" class="btn" style="width:50%;">
+
</button>
<button id="remove_value" type="button" class="btn" style="width:50%">
-
</button>
</div>
<div class="row">
<p>Angle (60-360):</p>
</div>
<div class="row">
<input type="range" id="angle" value="160" min="60" max="360"/>
</div>
<div class="row">
<p>Value 1 (0-100):</p>
</div>
<div class="row">
<input type="range" class="value" value="10" min="0" max="100"/>
</div>
<div class="row">
<p>Value 2 (0-100):</p>
</div>
<div class="row">
<input type="range" class="value" value="10" min="0" max="100"/>
</div>
<div class="row">
<p>Value 3 (0-100):</p>
</div>
<div class="row">
<input type="range" class="value" value="10" min="0" max="100"/>
</div>
<div id="hidden" style="visibility:hidden"></div>
</div>
<div class="col" style="max-width:400px">
<canvas id="spoke"></canvas>
</div>
</div>
</div>
<script src="js/imports/jquery-3.2.1.min.js"></script>
<script src="js/spoke_graph.js"></script>
</body>
</html>