예제 #1
0
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();
            // Perform any additional setup after loading the view, typically from a nib.

            try
            {
                var lineStripeChart = new LineStripeChart_iOS(ChartView.Frame);
                //lineStripeChart.SetChartType(ChartType.bmi.ToString());
                lineStripeChart.SetChartType(ChartType.body_fat.ToString());
                lineStripeChart.InitializeGraphValue();
                ChartView.Add(lineStripeChart);
            }
            catch (Exception e)
            {
                ChartView.Hidden = true;
                lblError.Text    = string.Format("Inadequate Chart Data: {0}", e.Message);
            }
            finally
            {
            }
        }