How can i repaint sfchart when view orientation change??

Hi, excuse my poor english.
How can i repaint a sfchart, when a view orientation change? The controller is a UIViewController.
Thank's in advanced

3 Replies

LR Lakshmi Radha Krishnan Syncfusion Team January 8, 2018 10:31 AM UTC

Hi Julio, 
  
Thanks for using Syncfusion products. 
  
You need to set frame for each sub views in ViewDidLayoutSubviews override method, because this method called when the position and size of the sub views have changed. Please refer the below code snippet. 
  
Code Snippet: 
  
  
 public override void ViewDidLayoutSubviews()
 {
           base.ViewDidLayoutSubviews();
           chart.Frame = this.View.Frame;
 }  
  
  
We have prepared a sample for your reference. Please download from the following location. 
  
  
Please let us know, if you need further assistance on this. 
  
Regards, 
Lakshmi R. 



JC Julio Cesar Jerez Camps January 8, 2018 04:04 PM UTC

Thanks, i will try this, right now :)


DV Divya Venkatesan Syncfusion Team January 10, 2018 03:43 AM UTC

Hi Julio,

Thanks for the response and please get back to us if you need further assistance.

Regards,
Divya Venkatesan

Loader.
Up arrow icon