reference http://justgage.com http://raphaeljs.com
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
var g1;
window.onload = function(){
var g1 = new JustGage({
id: "g1",
value: 350,
min: 0,
max: 600,
title: "Test",
label: "",
});
}
//where somewhere later use as :
g1.refresh(101);
//more later change value with :
$('#speedometer').val(100).change()
<div id="g1"></div>
origin - http://www.pipiscrew.com/?p=1557 javascript-justgage-w-raphael-reference