public override Android.Content.Intent Execute(Android.Content.Context context)
 {
     CategorySeries category = new CategorySeries("Weight indic");
     category.Add("Current", 75);
     category.Add("Minimum", 65);
     category.Add("Maximum", 90);
     DialRenderer renderer = new DialRenderer();
     renderer.ChartTitleTextSize = 20;
     renderer.LabelsTextSize = 15;
     renderer.LegendTextSize = 15;
     renderer.SetMargins(new int[] { 20, 30, 15, 0 });
     SimpleSeriesRenderer r = new SimpleSeriesRenderer();
     r.Color = Color.Blue;
     renderer.AddSeriesRenderer(r);
     r = new SimpleSeriesRenderer();
     r.Color = Color.Rgb(0, 150, 0);
     renderer.AddSeriesRenderer(r);
     r = new SimpleSeriesRenderer();
     r.Color = Color.Green;
     renderer.AddSeriesRenderer(r);
     renderer.LabelsTextSize = 10;
     renderer.LabelsColor = Color.White;
     renderer.ShowLabels = true;
     renderer.SetVisualTypes(new DialRenderer.Type[] { DialRenderer.Type.Arrow, DialRenderer.Type.Needle, DialRenderer.Type.Needle });
     renderer.MinValue = 0;
     renderer.MaxValue = 150;
     return ChartFactory.GetDialChartIntent(context, category, renderer, "Weight indicator");
 }
        protected override void OnCreate(Android.OS.Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);
            SetContentView(Resource.Layout.xy_chart);
            mValue = FindViewById<EditText>(Resource.Id.xValue);
            mRenderer.ZoomButtonsVisible = true;
            mRenderer.StartAngle = 180;
            mRenderer.DisplayValues = true;

            mAdd = FindViewById<Button>(Resource.Id.add);
            mAdd.Enabled = true;
            mValue.Enabled = true;

            mAdd.Click += (e, s) =>
            {
                double value = 0;
                try
                {
                    value = Double.Parse(mValue.Text);
                }
                catch (Java.Lang.NumberFormatException)
                {
                    mValue.RequestFocus();
                    return;
                }
                mValue.Text = "";
                mValue.RequestFocus();
                mSeries.Add("Series " + (mSeries.ItemCount + 1), value);
                SimpleSeriesRenderer renderer = new SimpleSeriesRenderer();
                renderer.Color = COLORS[(mSeries.ItemCount - 1) % COLORS.Length];
                mRenderer.AddSeriesRenderer(renderer);
                mChartView.Repaint();
            };
        }
 protected XYMultipleSeriesRenderer BuildBarRenderer(int[] colors)
 {
     XYMultipleSeriesRenderer renderer = new XYMultipleSeriesRenderer();
     renderer.AxisTitleTextSize = 16;
     renderer.ChartTitleTextSize = 20;
     renderer.LabelsTextSize = 15;
     renderer.LegendTextSize = 15;
     int length = colors.Length;
     for (int i = 0; i < length; i++)
     {
         SimpleSeriesRenderer r = new SimpleSeriesRenderer();
         r.Color = colors[i];
         renderer.AddSeriesRenderer(r);
     }
     return renderer;
 }
 protected DefaultRenderer BuildCategoryRenderer(int[] colors)
 {
     DefaultRenderer renderer = new DefaultRenderer();
     renderer.LabelsTextSize = 15;
     renderer.LegendTextSize = 15;
     renderer.SetMargins(new[] { 20, 30, 15, 0 });
     foreach (int color in colors)
     {
         SimpleSeriesRenderer r = new SimpleSeriesRenderer();
         r.Color = color;
         renderer.AddSeriesRenderer(r);
     }
     return renderer;
 }
 public XYMultipleSeriesRenderer GetBarDemoRenderer()
 {
     XYMultipleSeriesRenderer renderer = new XYMultipleSeriesRenderer();
     renderer.AxisTitleTextSize = 16;
     renderer.ChartTitleTextSize = 20;
     renderer.LabelsTextSize = 15;
     renderer.LegendTextSize = 15;
     renderer.SetMargins(new int[] { 20, 30, 15, 0 });
     SimpleSeriesRenderer r = new SimpleSeriesRenderer();
     r.Color = Color.Blue;
     renderer.AddSeriesRenderer(r);
     r = new SimpleSeriesRenderer();
     r.Color = Color.Green;
     renderer.AddSeriesRenderer(r);
     return renderer;
 }