Hi,
I am testing the component using the code below from SyncFusion Documentation Site:
<linear:SfLinearGauge>
<linear:SfLinearGauge.Annotations>
<linear:LinearGaugeAnnotation ScaleValue ="60" OffsetX = "0.5" OffsetY ="0.6" ScaleIndex ="1">
<linear:LinearGaugeAnnotation.View>
<Label Text="Receitas" FontAttributes = "Bold" TextColor= "#F95C85" FontSize ="10"/>
</linear:LinearGaugeAnnotation.View>
</linear:LinearGaugeAnnotation>
</linear:SfLinearGauge.Annotations>
<linear:SfLinearGauge.Scales>
<linear:LinearScale ScaleBarColor="#e0e9f9" LabelColor="#424242" ScaleBarSize = "40" LabelFontSize ="14" MinorTicksPerInterval ="0">
<linear:LinearScale.MajorTickSettings>
<linear:LinearTickSettings Thickness="10" Color ="#9E9E9E" Length = "10"/>
</linear:LinearScale.MajorTickSettings>
<linear:LinearScale.Pointers>
<linear:BarPointer Value="75" EnableAnimation = "false" Color = "#36d1dc" Thickness = "20" CornerRadiusType = "Start" CornerRadius = "10"/>
</linear:LinearScale.Pointers>
</linear:LinearScale>
</linear:SfLinearGauge.Scales>
</linear:SfLinearGauge>
And when I enter in the page, Xamarin return to me this error:
Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
Stack Tracer:
at System.Collections.Generic.List`1[T].get_Item (System.Int32 index) [0x00009] in /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/src/Xamarin.iOS/external/corefx/src/Common/src/CoreLib/System/Collections/Generic/List.cs:161
at System.Collections.ObjectModel.Collection`1[T].get_Item (System.Int32 index) [0x00000] in /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/src/Xamarin.iOS/external/corefx/src/Common/src/CoreLib/System/Collections/ObjectModel/Collection.cs:46
at Syncfusion.SfGauge.iOS.SFLinearGauge.TicksLayer () [0x000ed] in <9405b71f46a64445a74fbcf87ad39027>:0
at Syncfusion.SfGauge.iOS.SFLinearGauge.Draw (CoreGraphics.CGRect rect) [0x00033] in <9405b71f46a64445a74fbcf87ad39027>:0
at (wrapper managed-to-native) UIKit.UIApplication.UIApplicationMain(int,string[],intptr,intptr)
at UIKit.UIApplication.Main (System.String[] args, System.IntPtr principal, System.IntPtr delegate) [0x00005] in /Library/Frameworks/Xamarin.iOS.framework/Versions/13.14.1.39/src/Xamarin.iOS/UIKit/UIApplication.cs:86
at UIKit.UIApplication.Main (System.String[] args, System.String principalClassName, System.String delegateClassName) [0x0000e] in /Library/Frameworks/Xamarin.iOS.framework/Versions/13.14.1.39/src/Xamarin.iOS/UIKit/UIApplication.cs:65
at e_Beauty.iOS.Application.Main (System.String[] args) [0x00001] in /Users/henriquedrumond/Projetos/e-Beauty/e_Beauty.iOS/Main.cs:18
What happens?
Thanks a lot.