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

Charts don't retain their state after rotation

Thread ID:

Created:

Updated:

Platform:

Replies:

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

Hi,

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?

Thanks

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

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  

Regards,
Parthiban S
 


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

Thanks, this works nicely for me.  

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

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


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.

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

;