We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Pie chart crashes when all values are zero

i had a view with a pie that was crashing with following error
01-20 12:12:27.962 I/MonoDroid(14667): Java.Lang.IndexOutOfBoundsException: Invalid index 0, size is 0
01-20 12:12:27.962 I/MonoDroid(14667): at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in /Users/builder/data/lanes/2512/d3008455/source/mono/external/referencesource/mscorlib/system/runtime/exceptionservices/exceptionservicescommon.cs:143
01-20 12:12:27.962 I/MonoDroid(14667): at Android.Runtime.JNIEnv.CallNonvirtualVoidMethod (IntPtr jobject, IntPtr jclass, IntPtr jmethod, Android.Runtime.JValue* parms) [0x00084] in /Users/builder/data/lanes/2512/d3008455/source/monodroid/src/Mono.Android/src/Runtime/JNIEnv.g.cs:1029
01-20 12:12:27.962 I/MonoDroid(14667): at Android.Views.View.Draw (Android.Graphics.Canvas canvas) [0x00070] in /Users/builder/data/lanes/2512/d3008455/source/monodroid/src/Mono.Android/platforms/android-23/src/generated/Android.Views.View.cs:14355
01-20 12:12:27.962 I/MonoDroid(14667): at Xamarin.Forms.Platform.Android.ScrollViewRenderer.Draw (Android.Graphics.Canvas canvas) [0x0000d] in :0
01-20 12:12:27.962 I/MonoDroid(14667): at Android.Views.View.n_Draw_Landroid_graphics_Canvas_ (IntPtr jnienv, IntPtr native__this, IntPtr native_canvas) [0x00011] in /Users/builder/data/lanes/2512/d3008455/source/monodroid/src/Mono.Android/platforms/android-23/src/generated/Android.Views.View.cs:14337
01-20 12:12:27.962 I/MonoDroid(14667): at (wrapper dynamic-method) System.Object:d7b2837d-f186-4512-94a5-e3d2cb0735b3 (intptr,intptr,intptr)
After some tests and debugging i figured out that when i had a chartpoint collection with all Y values 0 the pie crashed and not rendered.
Is this a bug?
Sample data
Cash Checks Cr.Cards
0 0 0

1 Reply

MK Magesh Kumar Krishnan Syncfusion Team January 20, 2016 11:48 AM UTC

Hi Giorgos,

Thank you for contacting Syncfusion support.

We considered this as an issue and a support incident has been created under your account to track the status of this requirement. Please log on to our support website to check for further updates.


Magesh Kumar k

Live Chat Icon For mobile
Up arrow icon