Hello. I my xamarin android app I am trying to have SfCircularGauge. Until with point I have problem. The problem is that I wanna display only the North part of the Gauge. I tried this with StartAngle = 180; and SweepAngle = 180; but the graph is displaying empty place in the South part of the Gauge. After online searching I found a way to avoid the empty South part of the graph using CircularGauge.GaugeType = GaugeType.North; But when I am using this line I have no the empty South part but the gauge is losing all the styles. What I have to do to have only the North part of the Gauge without South empty space. I attached a rar file with two image. One is my output without using the GaugeType and one with y output when I am using GaugeType. Thank you very much for your time.
This is the code
SfCircularGauge CircularGauge = new SfCircularGauge(Activity);
ObservableCollection<CircularScale> Scales = new ObservableCollection<CircularScale>();
CircularScale Scale = new CircularScale();
CircularGauge.GaugeType = GaugeType.North;
Scale.StartValue = 0;
Scale.EndValue = 100;
Scale.ShowTicks = false;
Scale.StartAngle = 180;
Scale.SweepAngle = 180;
Scale.ShowLabels = false;
CircularGauge.SetPadding(0, 25, 0, 0);
CircularRange Range = new CircularRange();
Range.StartValue = 0;
Range.EndValue = 100;
Range.Width = 13;
Range.Offset = 1;
Scale.CircularRanges.Add(Range);
ObservableCollection<GaugeGradientStop> gradientColor1 = new ObservableCollection<GaugeGradientStop>();
GaugeGradientStop gaugeGradientStop = new GaugeGradientStop();
gaugeGradientStop.Value = 0;
gaugeGradientStop.Color = Color.WhiteSmoke;
gradientColor1.Add(gaugeGradientStop);
GaugeGradientStop gaugeGradientStop1 = new GaugeGradientStop();e
gaugeGradientStop1.Value = 50;
gaugeGradientStop1.Color = Color.Olive;
gradientColor1.Add(gaugeGradientStop1);
Range.GradientStops = gradientColor1;
Scales.Add(Scale);
CircularGauge.CircularScales = Scales;
grapg.AddView(CircularGauge);
Attachment:
GaugeImages_2f2f83d1.rar