public override void ViewDidLoad() { base.ViewDidLoad(); // Perform any additional setup after loading the view, typically from a nib. pieChart.Binding = "Value"; pieChart.BindingName = "Name"; pieChart.ItemsSource = PieChartData.DemoData(); this.Add(pieChart); }
public override void ViewDidLoad() { base.ViewDidLoad(); // Perform any additional setup after loading the view, typically from a nib. pickerView.Model = new ThemeModel(this); pickerView.ShowSelectionIndicator = true; //pickerView.Hidden = false; pieChart = new FlexPie(); pieChart.Binding = "Value"; pieChart.BindingName = "Name"; pieChart.ItemsSource = PieChartData.DemoData(); pieChart.LegendPosition = ChartPositionType.Bottom; this.Add(pieChart); }
public override void ViewDidLoad() { base.ViewDidLoad(); // Perform any additional setup after loading the view, typically from a nib. positionSelector.SelectedSegment = 3; pieChart = new FlexPie(); pieChart.Binding = "Value"; pieChart.BindingName = "Name"; pieChart.ItemsSource = PieChartData.DemoData(); pieChart.LegendPosition = ChartPositionType.Bottom; pieChart.SelectionMode = C1.iOS.Chart.ChartSelectionModeType.Point; pieChart.SelectedItemOffset = stepper.Value; pieChart.SelectedItemPosition = ChartPositionType.Bottom; this.Add(pieChart); }
public override void ViewDidLoad() { base.ViewDidLoad(); // Perform any additional setup after loading the view, typically from a nib. legendModeSelector.SelectedSegment = 4; pieChart = new FlexPie(); pieChart.Binding = "Value"; pieChart.BindingName = "Name"; pieChart.ItemsSource = PieChartData.DemoData(); pieChart.LegendPosition = ChartPositionType.Auto; pieChart.Header = headerField.Text; pieChart.HeaderStyle = new ChartStyle { Stroke = new UIColor(0.502f, 0.016f, 0.302f, 1), FontFamily = UIFont.SystemFontOfSize(24, UIFontWeight.Bold) }; pieChart.Footer = footerField.Text; pieChart.FooterStyle = new ChartStyle { Stroke = new UIColor(0.502f, 0.016f, 0.302f, 1), FontFamily = UIFont.SystemFontOfSize(16, UIFontWeight.Bold) }; this.Add(pieChart); }
public override void ViewDidLoad() { base.ViewDidLoad(); // Perform any additional setup after loading the view, typically from a nib. modeSelector.SelectedSegment = 1; pieChart = new FlexPie(); pieChart.Binding = "Value"; pieChart.BindingName = "Name"; pieChart.ItemsSource = PieChartData.DemoData(); pieChart.LegendPosition = ChartPositionType.Bottom; this.Add(pieChart); pieChart.DataLabel.Position = PieLabelPosition.Inside; pieChart.DataLabel.Content = "{y}"; pieChart.DataLabel.Border = true; pieChart.DataLabel.BorderStyle = new ChartStyle { Stroke = UIColor.Red, StrokeThickness = 2 }; pieChart.DataLabel.Style = new ChartStyle { FontFamily = UIFont.SystemFontOfSize(20, UIFontWeight.Black) }; }