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.

Charts don't retain their state after rotation

Thread ID:





127353 Nov 9,2016 02:01 PM Nov 15,2016 06:40 AM Xamarin.Android 3
Tags: SfChart
Trystan Binkley-Jones
Asked On November 9, 2016 02:01 PM


I am having problems getting charts to retain their state after a rotation.  For example, if I zoom in on a chart, or turn off some of the legend items, and then rotate the device (forcing the view to be recreated) the chart is no longer zoomed and has all of its legend items on again.  I know that OnSaveInstanceState and OnRestoreInstanceState are being called for the chart, so it is generating a Parcelable, but it doesn't seem that the saved state of the chart includes zooming and legend state.  Is this the expected behavior or a bug?


Parthiban Sundaram [Syncfusion]
Replied On November 14, 2016 12:01 PM

Hi Trystan,

We had prepared a sample based on your requirement. Please download the sample from following location.

Sample: http://www.syncfusion.com/downloads/support/forum/127353/ze/Sample-922008463  

Parthiban S

Trystan Binkley-Jones
Replied On November 14, 2016 04:01 PM

Thanks, this works nicely for me.  

Preethi Nesakkan Gnanadurai [Syncfusion]
Replied On November 15, 2016 06:40 AM

Hi Trystan,  
Most welcome. 
Please let us know if you need further assitance on this. 


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.