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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Pie chart crashes when all values are zero

Thread ID:





121732 Jan 20,2016 10:15 AM UTC Jan 20,2016 11:48 AM UTC Xamarin.Forms 1
Tags: SfChart
Giorgos Papadakis
Asked On January 20, 2016 10:15 AM UTC

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

Magesh Kumar Krishnan [Syncfusion]
Replied On 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


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon