- Home
- Forum
- Xamarin.Forms
- Annotations not working as expected!
Annotations not working as expected!
Hello,
I am trying to reproduce this SfLinearGauge with SfGauge(18.3.0.53) but it doesnt seem to work :
I am trying to reproduce this SfLinearGauge with SfGauge(18.3.0.53) but it doesnt seem to work :
<gauge:SfLinearGauge BackgroundColor="White" >
<gauge:SfLinearGauge.Scales>
<gauge:LinearScale OpposedPosition="True" MinimumValue="0" MaximumValue="150" ShowTicks="False" ShowLabels = "False" ScaleBarColor="Aqua" ScaleBarSize = "30" >
<gauge:LinearScale.Pointers>
<gauge:BarPointer Thickness="30" Value="100" EnableAnimation = "false" Color = "Blue" />
<gauge:SymbolPointer Value ="76" Thickness="20" EnableAnimation ="False" Color= "Black" SymbolPointerPosition="Far" MarkerShape="Triangle"/>
</gauge:LinearScale.Pointers>
</gauge:LinearScale>
</gauge:SfLinearGauge.Scales>
<gauge:SfLinearGauge.Annotations>
<gauge:LinearGaugeAnnotation ScaleValue ="76" HorizontalViewAlignment="Center" VerticalViewAlignment="Center" >
<gauge:LinearGaugeAnnotation.View>
<Label Text="76%" HeightRequest="50" HorizontalTextAlignment="End" VerticalTextAlignment="End" FontAttributes = "Bold" TextColor="White" FontSize ="15"/>
</gauge:LinearGaugeAnnotation.View>
</gauge:LinearGaugeAnnotation>
</gauge:SfLinearGauge.Annotations>
</gauge:SfLinearGauge>
The LinearGaugeAnnotation seems to disregard the properties ScaleValue, OffsetX, OffsetY and always appears in the start of the control ! Is there a known problem?
The LinearGaugeAnnotation seems to disregard the properties ScaleValue, OffsetX, OffsetY and always appears in the start of the control ! Is there a known problem?
SIGN IN To post a reply.
3 Replies
1 reply marked as answer
RS
Ramya Soundar Rajan
Syncfusion Team
December 17, 2020 10:41 AM UTC
Hi Laurence Cortana,
Greetings from Syncfusion,
We checked the reported problem that SfLinearGauge annotation not rendered properly in the mentioned Syncfusion version with the provided code snippet. But it’s working fine in all three platforms.
Output:
We have checked with the below configuration.
Syncfusion Version: 18.3.0.51 and 18.3.0.53
Xamarin Forms Version: 4.7 and 4.8
Android Device: HUAWEI PRA
iOS version: 14.2
So, could you please check the issue with the attached sample and let us know whether it is reproduced or not?
Can you please provide the detailed information on the reported query?
· Please provide the parent view structure where the SfLinearGauge added.
· Can you please share the issue reproducing platform and video?
· If the issue is not reproduced in the above sample, please revert us by modifying the sample based on your application along with the replication procedure.
· Can you provide the overall page structure used in your project?
· Can you share the Xamarin.Forms, Syncfusion versions and also device configuration details?
Regards,
Ramya S
LC
Laurence Cortana
December 17, 2020 11:59 AM UTC
Thank you for your reply!
The parent layouts are a grid and a scrollview. Scrollview seems to be the actual problem, when its added, annotation's scalevalue does not work
The parent layouts are a grid and a scrollview. Scrollview seems to be the actual problem, when its added, annotation's scalevalue does not work
SS
Sridevi Sivakumar
Syncfusion Team
December 18, 2020 02:41 PM UTC
Hi Laurence Cortana,
We have checked the query by adding the SfLInearGauge control inside the Grid and ScrollView as you mentioned. The Annotation text is added properly in all three platforms. We have prepared a simple sample and video. Please find from the below link,
Sample link: https://www.syncfusion.com/downloads/support/forum/160714/ze/GaugeSample-1791249538
Video link: https://www.syncfusion.com/downloads/support/forum/160714/ze/GaugeVideo-1674185381
Please check with the sample and if the issue still persists please modify the same with the issue reproducing steps and mention in which scenario you could reproduce the issue and can you please share the request details in the previous update which will be helpful for us to analyse further and provide an appropriate solution.
Regards,
Sridevi S
We have checked the query by adding the SfLInearGauge control inside the Grid and ScrollView as you mentioned. The Annotation text is added properly in all three platforms. We have prepared a simple sample and video. Please find from the below link,
Sample link: https://www.syncfusion.com/downloads/support/forum/160714/ze/GaugeSample-1791249538
Video link: https://www.syncfusion.com/downloads/support/forum/160714/ze/GaugeVideo-1674185381
Please check with the sample and if the issue still persists please modify the same with the issue reproducing steps and mention in which scenario you could reproduce the issue and can you please share the request details in the previous update which will be helpful for us to analyse further and provide an appropriate solution.
Regards,
Sridevi S
Marked as answer
SIGN IN To post a reply.
- 3 Replies
- 3 Participants
- Marked answer
-
LC Laurence Cortana
- Dec 16, 2020 04:55 PM UTC
- Dec 18, 2020 02:41 PM UTC