SfCircularGauge does not change size with added Pointer

Hello,

in my application I am triing to use SpCircularGauge, where I took your sample code in documentation.

Unfrotunately I am not able to display a correct size. I would excpect that contol will adjust the size based on added elements (headers, MarkerPointer, etc ...). It looks like the control is ignoring that.

This is the code I am using:

```

<Frame Margin="0" Padding="0">

<Label Text="Hello"></Label>

</Frame>

<Frame Margin="0" Padding="0">

<xForms:SfCircularGauge Margin="0" BackgroundColor="BurlyWood">

<xForms:SfCircularGauge.Scales>

<xForms:Scale>

<xForms:Scale.Pointers>

<xForms:MarkerPointer Value="40" Color="Red" MarkerHeight="40" MarkerWidth="40" Offset="1"/>

</xForms:Scale.Pointers>

</xForms:Scale>

</xForms:SfCircularGauge.Scales>

</xForms:SfCircularGauge>

</Frame>

```


My result in Android looks following:


As you can see, the gauge size is too small for the marker and therefore part of it is not displayed.


Thanks for help


3 Replies

VR Vignesh Ramesh Syncfusion Team September 13, 2021 11:59 AM UTC

Hi Martin Arion,  
  
Greetings from Syncfusion.  
  
We have checked your requirement and it can be achieved by using the CircularCoefficient property of SfCircularGauge. The CircularCoefficient property is used to change the diameter of the gauge. Please find the code snippet below.  
  
[XAML]: 
<xForms:SfCircularGauge BackgroundColor="BurlyWood"  
                                              CircularCoefficient="0.7">  
  
We have prepared a sample based on your requirement and please get it from the below link. 
 
Please find the below User Guide link for more information 
 
Please let us know if you need any further assistance.   
 
Regards,  
Vignesh Ramesh.


MA Martin ARION September 13, 2021 03:33 PM UTC

Thanks a lot for your help. Very helpful answer.

Tomas



ET Eswaran Thirugnanasambandam Syncfusion Team September 14, 2021 06:04 AM UTC

Hi Martin Arion,   
 
Thanks for your update, 
 
Let us know, if you need further assistance. 
 
Regards, 
Eswaran 


Loader.
Up arrow icon