I would like to animate my kendoUI gauges in realtime, whenever the data changes. I currently can do this by setting the values of the gauge pointer directly and refresh, but when i do that it will jump straight to the new value and not animate gracefully to it. How do I add the animation, like the Gauge control does when it first starts?
You don't need to refresh it, just set the new value using
valueand it gets updated and animated.Example: Defined an HTML
inputthat I decorate with a Kendo Numeric Text Box. Each time I update the value both a radial and linear gauge get updated.HTML code:
JavaScript (Gauges initialization):
and
NumericTextBoxwith change event handler that updates thegauges:Example in JSFiddle