animation

Specifies animation options.

Type: Object

To make your gauge "live", enable animation for it by setting the enabled option of the animation object to true. In this instance, the gauge bars will appear in motion. In addition, within the animation object you can set an appropriate easing mode using the easing option, and specify how long the animation should run using the duration option.

Show Example:
jQuery

In this example, the animation performs in the 'linear' mode and lasts for ten seconds.


                                    

                                    

duration

Determines how long animation runs.

Type: Number
Default Value: 1000

When animation is enabled for a gauge, you can specify how long the animation must run. To do this, set the animation | duration option to a numeric value in milliseconds. The bigger the value, the slower the animation.

Show Example:
jQuery

In this example, gauge animation lasts for ten seconds because the duration option is set to 10000.


                                    

                                    

easing

Specifies the animation easing mode.

Type: String
Default Value: 'easeOutCubic'
Accepted Values: 'easeOutCubic' | 'linear'

The animation easing mode specifies the speed at which the animation progresses at different points within the animation. The following values are available.

  • easeOutCubic
    The animation progresses according to the Ease-out cubic interpolation function - quickly at the beginning and slowly at the end of the animation process.
  • linear
    The animation progresses at a constant pace.

NOTE: When configuring the widget using ASP.NET MVC Wrappers, specify this option using the VizAnimationEasing enum. This enum accepts the following values: EaseOutCubic and Linear.

Show Example:
jQuery

In the following example, you can see the difference between the 'ease-out cubic' and 'linear' algorithms of performing animation. To change the animation mode, choose the corresponding value from the drop-down menu in the bottom of the example. The animation performs in the chosen mode after you change the set of the gauge's values using the radio buttons below.


                                    

                                    

enabled

Indicates whether or not animation is enabled.

Type: Boolean
Default Value: true

When this option is set to true, gauge indicators move smoothly to the specified values.

Show Example:
jQuery

Use the check box under the gauge to enable/disable animation. Then, choose which array of values to display on the gauge using the set of radio buttons.