-
Notifications
You must be signed in to change notification settings - Fork 0
/
jqueryknob.html
105 lines (102 loc) · 6.45 KB
/
jqueryknob.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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.2.1/css/bootstrap.min.css" integrity="sha384-GJzZqFGwb1QTTN6wy59ffF1BuGJpLSa9DkKMp0DgiMDm4iYMj70gZWKYbI706tWS" crossorigin="anonymous">
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.js"></script>
<link rel="stylesheet" href="css/style.css">
<title>Chart.js</title>
</head>
<body>
<div class="container-fluid">
<h3 class="mt-2 text-center">Jquery KnobJs</h3>
<div class="row mt-5">
<div class="col-md-6">
<div class="card rounded-0">
<div class="card-header bg-warning rounded-0 text-white">
chart 1
</div>
<div class="card-body p-3">
<!-- first -->
<input class="knob" data-width="180" data-bgcolor="rgba(0, 0, 0, 0.05)" data-fgcolor="#02ba5a" data-displayinput="false" value="35" style="display: none; width: 0px; visibility: hidden;">
<!-- second -->
<input class="knob" data-width="180" data-min="-100" data-bgcolor="rgba(0, 0, 0, 0.05)" data-fgcolor="#d13adf" data-displayprevious="true" value="44" style="width: 94px; height: 60px; position: absolute; vertical-align: middle; margin-top: 60px; margin-left: -137px; border: 0px; background: none; font: bold 36px Arial; text-align: center; color: rgb(209, 58, 223); padding: 0px; -webkit-appearance: none;">
<!-- third -->
<input class="knob" data-width="180" data-cursor="true" data-bgcolor="rgba(0, 0, 0, 0.05)" data-fgcolor="#14abef" value="29" style="width: 94px; height: 60px; position: absolute; vertical-align: middle; margin-top: 60px; margin-left: -137px; border: 0px; background: none; font: bold 36px Arial; text-align: center; color: rgb(20, 171, 239); padding: 0px; -webkit-appearance: none;">
</div>
</div>
</div>
<div class="col-md-6">
<div class="card rounded-0">
<div class="card-header bg-primary rounded-0 text-white">
chart 2
</div>
<div class="card-body p-3">
<!-- first -->
<input class="knob" data-width="180" data-readonly="true" data-angleoffset="90" data-linecap="round" data-bgcolor="rgba(0, 0, 0, 0.05)" data-fgcolor="#eb5076" data-max="15000" value="8550" readonly="readonly" style="width: 94px; height: 60px; position: absolute; vertical-align: middle; margin-top: 60px; margin-left: -137px; border: 0px; background: none; font: bold 25px Arial; text-align: center; color: rgb(235, 80, 118); padding: 0px; -webkit-appearance: none;">
<!-- second -->
<input class="knob" data-width="180" data-min="-15000" data-displayprevious="true" data-max="15000" data-step="1000" value="-11000" data-bgcolor="rgba(0, 0, 0, 0.05)" data-fgcolor="#000000" style="width: 94px; height: 60px; position: absolute; vertical-align: middle; margin-top: 60px; margin-left: -137px; border: 0px; background: none; font: bold 25px Arial; text-align: center; color: rgb(0, 0, 0); padding: 0px; -webkit-appearance: none;">
<!-- third -->
<input class="knob" data-width="180" data-cursor="true" data-bgcolor="rgba(0, 0, 0, 0.05)" data-fgcolor="#fba540" value="29" style="width: 94px; height: 60px; position: absolute; vertical-align: middle; margin-top: 60px; margin-left: -137px; border: 0px; background: none; font: bold 36px Arial; text-align: center; color: rgb(251, 165, 64); padding: 0px; -webkit-appearance: none;">
</div>
</div>
</div>
<div class="col-md-6">
<div class="card rounded-0">
<div class="card-header bg-info rounded-0 text-white">
chart 3
</div>
<div class="card-body p-0">
</div>
</div>
</div>
<div class="col-md-6">
<div class="card rounded-0">
<div class="card-header bg-success rounded-0 text-white">
chart 4
</div>
<div class="card-body p-2">
<canvas id="myChart4" width="400" ></canvas>
</div>
</div>
</div>
<div class="col-md-6">
<div class="card rounded-0">
<div class="card-header bg-dark rounded-0 text-white">
chart 5
</div>
<div class="card-body p-2">
<canvas id="myChart5" width="400" ></canvas>
</div>
</div>
</div>
<div class="col-md-6">
<div class="card rounded-0">
<div class="card-header bg-warning rounded-0 text-white">
chart 6
</div>
<div class="card-body p-2">
<canvas id="dash2-chart1" width="400" ></canvas>
</div>
</div>
</div>
</div>
</div>
<!-- Optional JavaScript -->
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.6/umd/popper.min.js" integrity="sha384-wHAiFfRlMFy6i5SRaxvfOCifBUQy1xHdJ/yoi7FRNXMRBu5WHdZYu1hA6ZOblgut" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.2.1/js/bootstrap.min.js" integrity="sha384-B0UglyR+jN6CkvvICOB2joaf5I4l3gm9GU6Hc1og6Ls7i6U/mkkaduKaBhlAXv9k" crossorigin="anonymous"></script>
<!-- jquery knob -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jQuery-Knob/1.2.13/jquery.knob.min.js"></script>
<script>
$(function() {
$(".knob").knob();
});
</script>
</script>
</body>
</html>