-
Notifications
You must be signed in to change notification settings - Fork 0
/
triangle_graph.html
59 lines (57 loc) · 1.74 KB
/
triangle_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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Triangle</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>Triangle percentage graph</h1>
</div>
<div class="row">
<p>Displays the ratio of three items, by showing it closer to one corner (in a corner equals 100%).
Size is adjustable in the code.</p>
</div>
<div class="row">
<p>Todo: labels for corners, nicer point, background colours</p>
</div>
</div>
</div>
<div class="row">
<div id="inputs" class="col-md-2">
<div class="row">
<p>Segments(1-50):</p>
</div>
<div class="row bottom-pad">
<input type="range" id="segments" value="6" min="1" max="50" width="500px"/>
</div>
<div class="row">
<p>Value 1 (0-100):</p>
</div>
<div class="row bottom-pad">
<input type="range" id="val1" value="10" min="0" max="100" width="500px"/>
</div>
<div class="row">
<p>Value 2 (0-100):</p>
</div>
<div class="row bottom-pad">
<input type="range" id="val2" value="10" min="0" max="100" width="500px"/>
</div>
<div class="row">
<p>Value 3 (0-100):</p>
</div>
<div class="row bottom-pad">
<input type="range" id="val3" value="80" min="0" max="100" width="500px"/>
</div>
</div>
<div class="col-md-7">
<canvas id="triangle"></canvas>
</div>
</div>
<script src="js/triangle.js"></script>
</body>
</html>