<!-- JS -->
<script src="assets/libs/raphael/raphael.min.js"></script>
<script src="assets/libs/justgage/justgage.min.js"></script>
<!-- HTML -->
<div id="jg1" class="gauge"></div>
<div id="jg2" class="gauge"></div>
<div id="jg3" class="gauge"></div>
<!-- Init js -->
var defs1 = {
label: "label",
value: 65,
min: 0,
max: 100,
decimals: 0,
gaugeWidthScale: 0.6,
pointer: true,
gaugeColor: ['rgba(42, 118, 244, .1)'],
levelColors:['#4c7cf5'],
pointerOptions: {
toplength: 10,
bottomlength: 10,
bottomwidth: 2
},
counter: true
}
var defs2 = {
label: "label",
value: 35,
min: 0,
max: 100,
decimals: 0,
gaugeWidthScale: 0.6,
pointer: true,
gaugeColor: ['rgba(42, 118, 244, .1)'],
levelColors:['#4c7cf5'],
pointerOptions: {
toplength: 5,
bottomlength: 15,
bottomwidth: 2
},
counter: true,
donut: true
}
var jg1 = new JustGage({
id: "jg1",
defaults: defs1
});
var jg2 = new JustGage({
id: "jg2",
defaults: defs1
});
var jg3 = new JustGage({
id: "jg3",
defaults: defs1
});