Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
860
Control of labels
posted

Hello

 

I have a XamLiniearGauge with dynamic intervals. Is it possible to somehow “chose” which labels you want to show? I know the LabelInterval property, but it is not sufficient. Example of intervals:

 

0 – 14000. Shown labels: 0, 10.000 and 14.000

0 -1. Shown labels: 0, 0.5 and 1

90-98: Show labels: 90, 95 and 98

 

There is  some other values between these.  

Normally it should be possible to just take the difference between two items in the gauge and do some magic in the LabelFormat event. The problem is the difference between items is not the same. So in the lower end the difference could be 1 and in higher ends 1,2.

Any suggestions?