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 XYMultipleSeriesDataset BuildBarDataset(String[] title, IList<double[]> values)
 {
     XYMultipleSeriesDataset dataset = new XYMultipleSeriesDataset();
     int length = title.Length;
     for (int i = 0; i < length; i++)
     {
         CategorySeries series = new CategorySeries(title[i]);
         double[] v = values[i];
         int seriesLength = v.Length;
         for (int k = 0; k < seriesLength; k++)
         {
             series.Add(v[k]);
         }
         dataset.AddSeries(series.ToXYSeries());
     }
     return dataset;
 }
 protected CategorySeries BuildCategoryDataset(String title, double[] values)
 {
     CategorySeries series = new CategorySeries(title);
     int k = 0;
     foreach (double item in values)
     {
         series.Add("Project " + ++k, item);
     }
     return series;
 }
 private XYMultipleSeriesDataset GetBarDemoDataset()
 {
     XYMultipleSeriesDataset dataset = new XYMultipleSeriesDataset();
     const int nr = 10;
     Random r = new Random();
     for (int i = 0; i < SERIES_NR; i++)
     {
         CategorySeries series = new CategorySeries("Demo series " + (i + 1));
         for (int k = 0; k < nr; k++)
         {
             series.Add(100 + r.Next() % 100);
         }
         dataset.AddSeries(series.ToXYSeries());
     }
     return dataset;
 }