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

Charts don't retain their state after rotation


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?


3 Replies

PS Parthiban Sundaram Syncfusion Team 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  

Parthiban S

UN Unknown Syncfusion Team November 14, 2016 09:01 PM UTC

Thanks, this works nicely for me.  

PN Preethi Nesakkan Gnanadurai Syncfusion Team November 15, 2016 11:40 AM UTC

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

Live Chat Icon For mobile
Up arrow icon