Animated Speedometer

469 views
Skip to first unread message

Dominic Warzok

unread,
Aug 15, 2012, 2:42:07 AM8/15/12
to Google-We...@googlegroups.com
Hi together,

I want to build an animated speedometer with GWT but I have no idea where to
start.

I have visited the GWT showcase website and found some animation there.
But it is alway how to move a picture from one position to another, in my case I
need to rotate the needle, and not to move it from one position to another.

And I can't use Canvas because this website is for IE8 :-(

Any Ideas?

Thanks in advance
Dominic

Jens

unread,
Aug 15, 2012, 4:40:42 AM8/15/12
to google-we...@googlegroups.com, Google-We...@googlegroups.com, dom...@googlemail.com
Hmm IE8 does not support CSS3 rotate/transform/animation/transition and with pure JS I think you can't rotate a needle. 

There is something called ExplorerCanvas: http://code.google.com/p/explorercanvas/ that seems to provide canvas support in IE8 by converting canvas elements in IE to VML. I guess it is also used by http://www.htmldrive.net/items/demo/832/jQuery-Speedometer so you could see how it works in IE8.

The only alternative would be to have a large sprite image that contains all possible needle positions side by side and then change the sprite image position to animate the needle (example: http://source.futurecolors.ru/fc.tape/ )

-- J.

Dominic Warzok

unread,
Aug 15, 2012, 4:54:50 AM8/15/12
to google-we...@googlegroups.com, Google-We...@googlegroups.com, dom...@googlemail.com
Yes thats the very big problem with the IE8. But ca. 90% of my useres use this. :-( 

Thanks for the Speedometer Example this helps me a lot. 

Rob

unread,
Aug 15, 2012, 11:41:16 PM8/15/12
to google-we...@googlegroups.com, Google-We...@googlegroups.com, dom...@googlemail.com

Jens

unread,
Aug 16, 2012, 4:17:55 AM8/16/12
to google-we...@googlegroups.com, Google-We...@googlegroups.com, dom...@googlemail.com
Looks nice! Didn't know that Highcharts supports gauges.

-- J.
Reply all
Reply to author
Forward
0 new messages