New line character inside Scale Label Prefix not working on Android

Hello,

I have a SfCircularGauge that i'm using for my app on Android and iOS. I'm using the Scale and have LabelPrefix with New Line Character ("\n").

What i'm seeing is a different between how the label is rendered on Android and iOS. on iOS, the label become two lines, otherwise, on Android only have one lines.

This is my code:

var scale = new Scale
            {
                
StartValue = 0,
               
  StartAngle = 180,
                LabelColor = Palette.Secondary.Blue,
                LabelFontSize = 12,
                LabelPrefix = "Target\n"
                LabelOffset = 1,
                ShowFirstLabel = false,
                ShowTicks = false,
                ShowRim = false
            };
scale.SetBinding(Syncfusion.SfGauge.XForms.Scale.EndValueProperty, "TARGET");
scale.SetBinding(Syncfusion.SfGauge.XForms.Scale.IntervalProperty, "TARGET");
scale.SetBinding(Syncfusion.SfGauge.XForms.Scale.SweepAngleProperty, "SWEEP");

I have been used  => LabelPrefix = string.Format("Target{0}", Environment.NewLine), but not working too..

Any ideas?

Thanks..


1 Reply

SG Sri Gayathri Gopalakrishnan Syncfusion Team November 3, 2017 12:31 PM UTC

Hi Rewaldy,

Sorry for the inconvenience,

We can reproduce the reported issue “New line character inside Scale Label Prefix not working on Android” at our end. And we have logged a defect report regarding the same. A support incident to track the status of this defect has been created under your account.

Please log on to our support website to check for further updates.

https://www.syncfusion.com/account/login?ReturnUrl=%2fsupport%2fdirecttrac%2fincidents/  

Please get back to us if you need any other assistance.

Regards,
Sri Gayathri.G

Loader.
Up arrow icon