Hi,
When tried creating a gauge, it takes half the space and rest of the space is empty since it starts from 180 and sweeps 180. I would like not to have the empty space. How can I achieve it?
C# Code:-
var circularGauge = new RadRadialGauge
{
Indicators ={
new GaugeNeedleIndicator {
Value = selectedMyAnalyticsSummary.MDM,
Fill = Color.FromHex("#666"),
Position = GaugeElementPosition.Start
}
},
Axis = new GaugeLinearAxis
{
Minimum = 0,
Maximum = 100,
Step = 100,
StrokeThickness = 0,
TickThickness = 0,
TextColor = Color.Gray,
LabelPosition = GaugeElementPosition.Start,
TickPosition = GaugeElementPosition.Start,
LabelOffset = 25,
FontSize = Device.GetNamedSize(NamedSize.Small,typeof(Label))
},
AnimationSettings = {
Easing = Easing.CubicOut
},
StartAngle = 180,
SweepAngle = 180
};
circularGauge.Ranges.Ranges.Add(new GaugeRange { From = 0, To = 20, Color = CommonStrings.GetRatingColor("1") });
circularGauge.Ranges.Ranges.Add(new GaugeRange { From = 20, To = 40, Color = CommonStrings.GetRatingColor("2") });
circularGauge.Ranges.Ranges.Add(new GaugeRange { From = 40, To = 60, Color = CommonStrings.GetRatingColor("3") });
circularGauge.Ranges.Ranges.Add(new GaugeRange { From = 60, To = 80, Color = CommonStrings.GetRatingColor("4") });
circularGauge.Ranges.Ranges.Add(new GaugeRange { From = 80, To = 100, Color = CommonStrings.GetRatingColor("5") });
Thanks