private void CheckPositions()
 {
     // Refresh Chart rotating the device
     chart.RemoveFromSuperview();
     View.AddSubview(chart);
     chart.DoInvalidate();
 }
 public override void DidRotate(UIInterfaceOrientation fromInterfaceOrientation)
 {
     // Refresh Chart rotating the device
     chart.RemoveFromSuperview();
     chart.Frame = View.Frame;
     View.AddSubview(chart);
     chart.DoInvalidate();
 }