We are attempting to use the chart's CartesianPlotBandAnnotation to highlight a section of a graph on a DateTimeContinuousAxis. This works well on Android, but in our code it produces an exception on iOS (stack trace below).
I attempted to reproduce the problem with the SDKBrowser solution. I converted the PlotBandAnnotationsCSharp to use a DateTimeContinuousAxis on the horizontal axis, and TemporalData for the ViewModel. When I try to run this on an iOS simulator, it doesn't even navigate to the page; maybe an exception is being thrown and caught that I can't see.
I'm attaching the revised SDKBrowser solution, and including the stack trace from our app (below).
System.ArgumentNullException: Value cannot be null.
Parameter name: minimum
at TelerikUI.TKRange..ctor (Foundation.NSObject minimum, Foundation.NSObject maximum) [0x0000e] in <20898b345e0a4b08b39b1ef59a6e7021>:0
at Telerik.XamarinForms.ChartRenderer.iOS.PlotBandAnnotationAdapter.UpdateCore (Telerik.XamarinForms.Chart.CartesianPlotBandAnnotation sourceOwner, TelerikUI.TKChartBandAnnotation targetOwner, System.String propertyName, Telerik.XamarinForms.Common.IParentElement sourceOwnerRoot, System.Object targetOwnerRoot) [0x0006d] in <510bffb3000f45598b357d8e04d38717>:0
at Telerik.XamarinForms.Chart.ChartElementFacadeAdapter`2[S,T].Update (System.Object sourceOwner, System.Object targetOwner, System.String propertyName, System.Object sourceOwnerRoot, System.Object targetOwnerRoot) [0x00000] in <510bffb3000f45598b357d8e04d38717>:0
at Telerik.XamarinForms.Common.XamarinToNativeControlExtensions.Update[T,K] (T nativeElement, K xfЕlement, System.String propertyName, System.Object sourceOwnerRoot, System.Object targetOwnerRoot) [0x00031] in <a803b4fb350e421cab61e2cee294d08a>:0
at Telerik.XamarinForms.ChartRenderer.iOS.CartesianChartAdapter.UpdateAnnotations (Telerik.XamarinForms.Chart.RadCartesianChart sourceOwner, TelerikUI.TKChart targetOwner) [0x0002f] in <510bffb3000f45598b357d8e04d38717>:0
at Telerik.XamarinForms.ChartRenderer.iOS.CartesianChartAdapter.UpdateCore (Telerik.XamarinForms.Chart.RadCartesianChart sourceOwner, Telerik.XamarinForms.ChartRenderer.iOS.TKExtendedChart targetOwner, System.String propertyName, Telerik.XamarinForms.Common.IParentElement sourceOwnerRoot, System.Object targetOwnerRoot) [0x0004d] in <510bffb3000f45598b357d8e04d38717>:0
at Telerik.XamarinForms.ChartRenderer.iOS.BaseChartAdapter`1[S].Update (System.Object sourceOwner, System.Object targetOwner, System.String propertyName, System.Object sourceOwnerRoot, System.Object targetOwnerRoot) [0x00000] in <510bffb3000f45598b357d8e04d38717>:0
at Telerik.XamarinForms.Common.XamarinToNativeControlExtensions.Update[T,K] (T nativeElement, K xfЕlement, System.String propertyName, System.Object sourceOwnerRoot, System.Object targetOwnerRoot) [0x00031] in <a803b4fb350e421cab61e2cee294d08a>:0
at Telerik.XamarinForms.ChartRenderer.iOS.BaseChartRenderer`1[T].OnElementAttached (T newElement) [0x00069] in <510bffb3000f45598b357d8e04d38717>:0
at Telerik.XamarinForms.ChartRenderer.iOS.CartesianChartRenderer.OnElementAttached (Telerik.XamarinForms.Chart.RadCartesianChart newElement) [0x00000] in <510bffb3000f45598b357d8e04d38717>:0
at Telerik.XamarinForms.Common.iOS.IosRendererBase`2[S,T].OnElementChanged (Xamarin.Forms.Platform.iOS.ElementChangedEventArgs`1[TElement] e) [0x0003f] in <a803b4fb350e421cab61e2cee294d08a>:0
at Xamarin.Forms.Platform.iOS.VisualElementRenderer`1[TElement].SetElement (TElement element) [0x0017a] in <1d764fcfefe54199aacfcb4c6acaaa69>:0
at Xamarin.Forms.Platform.iOS.VisualElementRenderer`1[TElement].Xamarin.Forms.Platform.iOS.IVisualElementRenderer.SetElement (Xamarin.Forms.VisualElement element) [0x00000] in <1d764fcfefe54199aacfcb4c6acaaa69>:0
at Xamarin.Forms.Platform.iOS.Platform.CreateRenderer (Xamarin.Forms.VisualElement element) [0x00014] in /Users/admin/workspace/Xamarin.Forms/Xamarin.Forms/src/Xamarin.Forms.Platform.iOS/Platform.cs:227
at Xamarin.Forms.Platform.iOS.VisualElementPackager.OnChildAdded (Xamarin.Forms.VisualElement view) [0x0003e] in /Users/admin/workspace/Xamarin.Forms/Xamarin.Forms/src/Xamarin.Forms.Platform.iOS/VisualElementPackager.cs:115
at Xamarin.Forms.Platform.iOS.VisualElementPackager.OnChildAdded (System.Object sender, Xamarin.Forms.ElementEventArgs e) [0x0000f] in /Users/admin/workspace/Xamarin.Forms/Xamarin.Forms/src/Xamarin.Forms.Platform.iOS/VisualElementPackager.cs:171
at Xamarin.Forms.Element.OnChildAdded (Xamarin.Forms.Element child) [0x0000f] in /Users/admin/workspace/Xamarin.Forms/Xamarin.Forms/src/Xamarin.Forms.Core/Element.cs:318
at Xamarin.Forms.VisualElement.OnChildAdded (Xamarin.Forms.Element child) [0x00000] in /Users/admin/workspace/Xamarin.Forms/Xamarin.Forms/src/Xamarin.Forms.Core/VisualElement.cs:774
at Xamarin.Forms.Layout`1[T].OnChildAdded (Xamarin.Forms.Element child) [0x00000] in <363bc782c0c446ce85b9858aaa9fe112>:0
at Xamarin.Forms.Layout.OnInternalAdded (Xamarin.Forms.View view) [0x0001d] in /Users/admin/workspace/Xamarin.Forms/Xamarin.Forms/src/Xamarin.Forms.Core/Layout.cs:432
at Xamarin.Forms.Layout.InternalChildrenOnCollectionChanged (System.Object sender, System.Collections.Specialized.NotifyCollectionChangedEventArgs e) [0x00080] in /Users/admin/workspace/Xamarin.Forms/Xamarin.Forms/src/Xamarin.Forms.Core/Layout.cs:422
at at (wrapper delegate-invoke) <Module>.invoke_void_object_NotifyCollectionChangedEventArgs(object,System.Collections.Specialized.NotifyCollectionChangedEventArgs)
at System.Collections.ObjectModel.ObservableCollection`1[T].OnCollectionChanged (System.Collections.Specialized.NotifyCollectionChangedEventArgs e) [0x00018] in <89680362e8f5413398b8929f86f087a0>:0
at System.Collections.ObjectModel.ObservableCollection`1[T].OnCollectionChanged (System.Collections.Specialized.NotifyCollectionChangedAction action, System.Object item, System.Int32 index) [0x00009] in <89680362e8f5413398b8929f86f087a0>:0
at System.Collections.ObjectModel.ObservableCollection`1[T].InsertItem (System.Int32 index, T item) [0x0001a] in <89680362e8f5413398b8929f86f087a0>:0
at System.Collections.ObjectModel.Collection`1[T].Add (T item) [0x00020] in <da8885cdf78b449d96de00cdb9d47225>:0
at Xamarin.Forms.ObservableWrapper`2[TTrack,TRestrict].Add (TRestrict item) [0x0004b] in <363bc782c0c446ce85b9858aaa9fe112>:0
at VuSitu.LiveReadingsGraphingPage.FullScreenGraph (VuSitu.LiveReadingsGraphingPage+ParameterAdapter+ParameterData parameter) [0x007a2] in /Users/kbyers/mobile-apps/JohnnyFive/VuSitu/LiveReadings/LiveReadingsGraphingPage.cs:1111
at VuSitu.LiveReadingsGraphingPage+ParameterGraph+<>c__DisplayClass0_0.<.ctor>b__2 () [0x00000] in /Users/kbyers/mobile-apps/JohnnyFive/VuSitu/LiveReadings/LiveReadingsGraphingPage.cs:1580
at Xamarin.Forms.Command+<>c__DisplayClass4_0.<.ctor>b__0 (System.Object o) [0x00000] in /Users/admin/workspace/Xamarin.Forms/Xamarin.Forms/src/Xamarin.Forms.Core/Command.cs:74
at Xamarin.Forms.Command.Execute (System.Object parameter) [0x00000] in /Users/admin/workspace/Xamarin.Forms/Xamarin.Forms/src/Xamarin.Forms.Core/Command.cs:112
at Xamarin.Forms.TapGestureRecognizer.SendTapped (Xamarin.Forms.View sender) [0x00018] in /Users/admin/workspace/Xamarin.Forms/Xamarin.Forms/src/Xamarin.Forms.Core/TapGestureRecognizer.cs:44
at Xamarin.Forms.Platform.iOS.EventTracker+<>c__DisplayClass15_0.<CreateRecognizerHandler>b__0 (UIKit.UITapGestureRecognizer sender) [0x0008f] in /Users/admin/workspace/Xamarin.Forms/Xamarin.Forms/src/Xamarin.Forms.Platform.iOS/EventTracker.cs:208
at UIKit.UITapGestureRecognizer+Callback.Activated (UIKit.UITapGestureRecognizer sender) [0x00000] in /Users/builder/azdo/_work/1/s/xamarin-macios/src/UIKit/UIGestureRecognizer.cs:220
at 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 /Users/builder/azdo/_work/1/s/xamarin-macios/src/UIKit/UIApplication.cs:86
at UIKit.UIApplication.Main (System.String[] args, System.String principalClassName, System.String delegateClassName) [0x0000e] in /Users/builder/azdo/_work/1/s/xamarin-macios/src/UIKit/UIApplication.cs:65
at VuSitu.iOS.Application.Main (System.String[] args) [0x0005e] in /Users/kbyers/mobile-apps/JohnnyFive/VuSitu.iOS/Main.cs:27