Skip to content

Commit

Permalink
Examples update
Browse files Browse the repository at this point in the history
  • Loading branch information
Mykhailo Stadnyk committed Feb 14, 2016
1 parent 38ee110 commit 025e01c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 17 deletions.
4 changes: 2 additions & 2 deletions examples/example.html
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@
innerStart: '#222',
innerEnd: '#222'
},
shadowUp: true,
shadowDown: true
shadowUp: false,
shadowDown: false
},
valueBox: {
rectStart: '#888',
Expand Down
24 changes: 9 additions & 15 deletions examples/noborder.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,7 @@
majorTicks : ['0','20','40','60','80','100','120','140','160','180','200','220'],
minorTicks : 2,
strokeTicks : true,
highlights : [{ from : 160, to : 220, color : 'rgba(255, 0, 0, .25)' }],
/*{ from : 0, to : 50, color : 'rgba(0, 255, 0, .15)' },
{ from : 50, to : 100, color : 'rgba(255, 255, 0, .15)' },
{ from : 100, to : 150, color : 'rgba(255, 30, 0, .25)' },
{ from : 150, to : 200, color : 'rgba(255, 0, 225, .25)' },
{ from : 200, to : 220, color : 'rgba(0, 0, 255, .25)' }
],*/
highlights : [{ from : 160, to : 220, color : 'rgba(200, 50, 50, .75)' }],
colors : {
plate : '#222',
majorTicks : '#f5f5f5',
Expand All @@ -37,13 +31,13 @@
units : '#ccc',
numbers : '#eee',
needle : {
start : '#ff9966',
end : '#ff9966',
start : 'rgba(200, 50, 50, .75)',
end : 'rgba(200, 50, 50, .75)',
circle: {
outerStart: '#ff9966',
outerEnd: '#ff9966'
outerStart: 'rgba(200, 200, 200, 1)',
outerEnd: 'rgba(200, 200, 200, 1)'
},
shadowUp: false,
shadowUp: true,
shadowDown: false
}

Expand All @@ -70,16 +64,16 @@
}
},
animation: {
delay: 25,
duration: 2000,
delay: 10,
duration: 1500,
fn: 'linear'
}
});

gauge.onready = function() {
setInterval( function() {
gauge.setValue(Math.random() * (165 - 120) + 120);
}, 2000);
}, 1500);
};

gauge.draw();
Expand Down

0 comments on commit 025e01c

Please sign in to comment.