Interaction and Animation
29 Nov 20173 minutes to read
Interaction
- Circular Gauge control contains Interaction feature. You can use this interaction feature to change the pointer values manually. You can achieve this by clicking and dragging the pointer over the Gauge and you can see the value of pointer changes dynamically while dragging.
- To Enable/Disable the user interaction you can use the Boolean property called
read-only. The user interaction option is enabled when you set the value as false for the property readOnly.By default it holds the true value.That is by default it does not support interaction.
<ej-circular-gauge id="circulargauge" read-only="false" >
</ej-circular-gauge>Execute the above code to render the following output.

Circular Gauge with basic interaction property
Animations
- Circular Gauge contains an attractive concept called Animation. The animation option enables the pointer to rotate from the minimum value to the current value with animation effects. By using this animation you can change the pointer value dynamically.You can apply the animation on pointer either by clockwise or counterclockwise based on the scale direction.
- You can enable / disable it using the property
enable-animation. Animation is enabled when you set enable-animation as ‘true’. By default it holds the true value. You can control the speed of the pointer during animating by using the propertyanimation-speed. It is a numerical value that holds the time in milliseconds. That is when the value is given as 1000, it is considered as 1 second.
<ej-circular-gauge id="circulargauge" enable-animation=true animation-speed="1000" >
</ej-circular-gauge>Execute the above code to render the following output.

Circular Gauge with basic Animation property
Gradient
You can change the interior gradient of Circular Gauge by using InteriorGradient property. The isRadialGradient property is used to check whether the gradient is circular or not.
<ej-circular-gauge id="circularGauge1" is-radial-gradient ="true" >
<% Code %>
<% Code %>
</ej-circular-gauge>Distance From Corner
You can display the circular gauge from distance apart from the corner by specifying value for distance-from-corner property.
<ej-circular-gauge id="circularGauge1" distance-from-corner="5" >
</ej-circular-gauge>Resize
Circular gauge can be responsive while resizing by specifying enable-resize property as true.
<ej-circular-gauge id="circularGauge1" enable-resize="true" >
</ej-circular-gauge>Localization
The circular gauge can be localized based on name of culture specified in Locale property.
<ej-circular-gauge id="circularGauge1" locale="en-fr" >
</ej-circular-gauge>Themes
CircularGauge Theme is a set of pre-defined options that are applied to the control before CircularGauge is instantiated. Following predefined themes are available in JavaScript CircularGauge.
- flat light
- flat dark
- gradient light
- gradient dark
- azure
- azure dark
- lime
- lime dark
- saffron
- saffron dark
- gradient azure
- gradient azure dark
- gradient lime
- gradient lime dark
- gradient saffron
- gradient saffron dark
The theme for circular gauge can be specified using Theme property.
<ej-circular-gauge id="circularGauge1" theme="saffron" >
</ej-circular-gauge>Circular Gauge Values
The minimum, maximum, radius and value attributes of circular gauge are used to render the circular gauge with specified location.
<ej-circular-gauge id="circularGauge1" minimum="10" maximum="100" radius="50" value="30">
</ej-circular-gauge>