Sign in to follow this  
datagod2

Control animation of Dial in an angular guage

Recommended Posts

I am trying to control the animation of the dial in the KPH angular guage. I cannot find any examples online to support this.

 

 

 

I want the needle (dial) to start at zero and (rather quickly) work its way up to the value. The default animation does this, but I really do not like the dial itself being drawn. When I start my car, the needle is already at zero, it does not need to "grow" from the center.

 

 

 

Thanks...

Share this post


Link to post
Share on other sites

Hi,

Could you please try setting defaultAnimation='0'

and

add rotation animation style to the chart?

<styles>

<definition>

 <style name='dialani' type='animation' param='_rotation' duration='5' start='-230'  />

</definition>

<application>

 <apply styles='dialani' toObject='DIAL'/>

</application>

 </styles>

Please set your startAngle as per the starting position of the dial.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this