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.
Unfortunately, activation email could not send to your email. Please try again.

Pie chart crashes when all values are zero

Thread ID:

Created:

Updated:

Platform:

Replies:

121732 Jan 20,2016 05:15 AM Jan 20,2016 06:48 AM Xamarin.Forms 1
loading
Tags: SfChart
Giorgos Papadakis
Asked On January 20, 2016 05:15 AM

Hi,
i had a view with a pie that was crashing with following error
UNHANDLED EXCEPTION:
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
Giorgos

Magesh Kumar Krishnan [Syncfusion]
Replied On January 20, 2016 06:48 AM

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.

https://www.syncfusion.com/account/login?ReturnUrl=/support/directtrac/incidents

Regards,
Magesh Kumar k

CONFIRMATION

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.

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.

;