This is a migrated thread and some comments may be shown as answers.

Dynamically update values of radial gauge with multiple pointers in AngluarJS

1 Answer 242 Views
Gauges
This is a migrated thread and some comments may be shown as answers.
Zak
Top achievements
Rank 1
Zak asked on 14 Jul 2015, 11:38 AM

I have a gauge on my html page, defained like this:

 <span kendo-radialgauge="gauge.kendoGaugeInstance" k-options="gauge.options"></span>

IT has multiple pointers and I need to update the values

How can I do it? 

I tried the setOptions method similar to line chart :

kendoGaugeInstance.setOptions({
    options: updatedOptions
});​

but that doesn't work.

kendoGaugeInstance.redraw();

works somewhat, but it redraws it completely with all pointers animation from 0.

How can I do it properly?

Thanks

1 Answer, 1 is accepted

Sort by
0
Dimiter Madjarov
Telerik team
answered on 16 Jul 2015, 01:51 PM

Hello Zak,

If only the values of the pointers should be set, I would recommend using the allValues method of the Gauge. It accepts an array of values to be set. Let me know if this was the information that you were looking for.

Regards,
Dimiter Madjarov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Gauges
Asked by
Zak
Top achievements
Rank 1
Answers by
Dimiter Madjarov
Telerik team
Share this question
or