SfCircularGauge circularGauge = new SfCircularGauge();
circularGauge.HorizontalOptions = LayoutOptions.CenterAndExpand;
Scale scale = new Scale();
scale.StartValue = 0;
scale.EndValue = 100;
scale.Interval = 10;
scale.StartAngle = 135;
scale.SweepAngle = 270;
scale.RimThickness = 20;
scale.RimColor = Color.FromHex("#FB0101");
scale.MinorTicksPerInterval = 4;
NeedlePointer needlePointer = new NeedlePointer();
needlePointer.Color = Color.White;
needlePointer.KnobColor = Color.White;
needlePointer.Thickness = 5;
needlePointer.KnobRadius = 20;
needlePointer.LengthFactor = 0.8;
needlePointer.SetBinding(NeedlePointer.ValueProperty, "Pressure");
scale.Pointers.Add(needlePointer);
SymbolPointer minPointer = new SymbolPointer();
minPointer.Color = Color.Red;
minPointer.SetBinding(SymbolPointer.ValueProperty, "Min");
scale.Pointers.Add(minPointer);
What am I doing wrong?
Hi Jens,
Thanks for your interest in Syncfusion products.
As of now, SymbolPointer is not available in SfCircularGauge control for Xamarin. Instead other two types (RangePointer and NeedlePointer) of pointers can be added to CircularScale in SfCircularGauge, to know more about it, please refer the below UG link.
CircularGauge UG link: http://help.syncfusion.com/xamarin/circulargauge/getting-started#create-your-first-circular-gauge-in-xamarinforms
SymbolPointer support is available in SfLinearGauge for Xamarin, where SfLinearGauge and SfDigitalGauge also shares the same namespace (“Syncfusion.SfGauge.XForms”) with SfCirularGauge. To know more about our linear gauge control, refer the below UG link.
LinearGauge UG link: http://help.syncfusion.com/xamarin/lineargauge/getting-started#add-a-pointer
Please let us know, if you have any query.
Regards,
Nijamudeen M.