예제 #1
0
    public void teeChartBind()
    {
        Gantt gantt = (Gantt)this.gantChart.Chart.Series[0];

        gantt.Clear();
        gantt.Marks.Visible      = true;
        gantt.Marks.Transparency = 45;
        SeriesHotspot seriesHotspot = new SeriesHotspot(this.gantChart.Chart);

        seriesHotspot.MapAction               = MapAction.Mark;
        gantt.Active                          = true;
        gantt.Chart.Aspect.View3D             = false;
        gantt.ColorEach                       = true;
        gantt.Chart.Zoom.Zoomed               = true;
        gantt.Chart.Axes.Bottom.Labels.Angle  = 90;
        gantt.Chart.Legend.Visible            = false;
        gantt.Chart.Legend.Inverted           = true;
        this.gantChart.Chart.Series.AllActive = true;
        gantt.Chart.Series.AllActive          = true;
        gantt.Pointer.VertSize                = 6;
        string    selectedValue = this.ddlPrjname.SelectedValue;
        DataTable dataTable     = this.bta.getallsubProject(selectedValue);
        int       count         = dataTable.Rows.Count;

        if (dataTable != null || count != 0)
        {
            for (int i = 0; i < count - 1; i++)
            {
                System.DateTime start   = System.DateTime.Parse(dataTable.Rows[i]["strdata"].ToString());
                System.DateTime endDate = System.DateTime.Parse(dataTable.Rows[i]["enddata"].ToString());
                string          text    = dataTable.Rows[i]["TaskName"].ToString();
                gantt.Add(start, endDate, double.Parse(i.ToString()), text);
            }
        }
    }
        private void InitializeChart()
        {
            tChart1.Aspect.View3D  = false;
            tChart1.Header.Text    = "Gantt MultipleNextTasks";
            tChart1.Legend.Visible = false;

            gantt = new Gantt(tChart1.Chart);

            DateTime date = DateTime.Today;

            gantt.Add(date, date.AddDays(3), 1, "Plan");
            gantt.Add(date.AddDays(6), date.AddDays(8), 2, "Proof of concept");
            gantt.Add(date.AddDays(5), date.AddDays(7), 3, "Documentation");

            gantt.AddMultipleNextTasks(0, 1);
            gantt.AddMultipleNextTasks(0, 2);

            gantt.ConnectingPen.Color = Color.Red;
        }
    private void InitializeChart()
    {
      this.tChart1.Aspect.GestureOptions = Steema.TeeChart.Store.Drawing.Aspect.Gestures.None;
      this.tChart1.Series.Add(gantt1);
      this.tChart1.Aspect.View3D = false;
      this.tChart1.Axes.Bottom.Increment = 30D;
      this.tChart1.Axes.Bottom.Labels.Font.Brush.Color = Colors.Gray;
      this.tChart1.Axes.Bottom.Labels.Font.Size = 16;
      this.tChart1.Axes.Bottom.Title.Caption = "Time";
      this.tChart1.Axes.Bottom.Title.Font.Brush.Color = Colors.Gray;
      this.tChart1.Axes.Bottom.Title.Font.Name = "Segoe UI";
      this.tChart1.Axes.Bottom.Title.Lines = new string[] {
        "Time"};
      this.tChart1.Axes.Left.AxisPen.Visible = false;
      this.tChart1.Axes.Left.Labels.Font.Brush.Color = Colors.Gray;
      this.tChart1.Axes.Left.Labels.Font.Size = 13;
      this.tChart1.Axes.Left.MinorTicks.Visible = false;
      this.tChart1.Axes.Left.Title.Caption = "Task";
      this.tChart1.Axes.Left.Title.Font.Brush.Color = Colors.Gray;
      this.tChart1.Axes.Left.Title.Font.Name = "Segoe UI";
      this.tChart1.Axes.Left.Title.Lines = new string[] {
        "Task"};
      this.tChart1.Footer.Font.Brush.Color = Colors.Blue;
      this.tChart1.Header.Font.Brush.Color = Colors.Gray;
      this.tChart1.Header.Font.Size = 21;
      this.tChart1.Header.Lines = new string[] {
        "Project Planner"};
      this.tChart1.Legend.Visible = false;
      this.tChart1.Name = "tChart1";
      this.tChart1.Panel.Brush.Color = Colors.White;
      this.tChart1.Panel.Brush.Gradient.EndColor = Colors.White;
      this.tChart1.Series.Add(this.gantt1);
      this.tChart1.TabIndex = 0;
      this.tChart1.Walls.Back.Brush.Gradient.EndColor = Colors.White;
      this.tChart1.Walls.Back.Visible = false;
      this.gantt1.Color = Color.FromArgb(255, ((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
      this.gantt1.ColorEach = true;
      this.gantt1.EndValues.DataMember = "End";
      this.gantt1.EndValues.DateTime = true;
      this.gantt1.LabelMember = "Labels";
      this.gantt1.LinePen.Color = Color.FromArgb(255, ((int)(((byte)(41)))), ((int)(((byte)(61)))), ((int)(((byte)(98)))));
      this.gantt1.Marks.Brush.Visible = false;
      this.gantt1.Marks.Transparent = true;
      this.gantt1.Marks.Visible = true;
      this.gantt1.OriginalCursor = null;
      this.gantt1.Pointer.Brush.ForegroundColor = Utils.EmptyColor;
      this.gantt1.Pointer.Brush.Gradient.StartColor = Color.FromArgb(255, ((int)(((byte)(68)))), ((int)(((byte)(102)))), ((int)(((byte)(163)))));
      this.gantt1.Pointer.Pen.Visible = false;
      this.gantt1.Pointer.SizeDouble = 0D;
      this.gantt1.Pointer.SizeUnits = PointerSizeUnits.Pixels;
      this.gantt1.StartValues.DataMember = "Start";
      this.gantt1.StartValues.DateTime = true;
      this.gantt1.StartValues.Order = ValueListOrder.Ascending;
      this.gantt1.Title = "gantt1";
      this.gantt1.YValues.DataMember = "Y";

      tChart1.Panel.Gradient.Visible = false;

      gantt1.Add(new DateTime(2014, 6, 7), new DateTime(2014, 9, 23), 0, "Production");
      gantt1.Add(new DateTime(2014, 9, 3), new DateTime(2014, 11, 10), 1, "Marketing");
      gantt1.Add(new DateTime(2014, 3, 13), new DateTime(2014, 3, 31), 2, "Approve");
      gantt1.Add(new DateTime(2014, 5, 7), new DateTime(2014, 6, 5), 3, "Prototype");
      gantt1.Add(new DateTime(2014, 10, 11), new DateTime(2014, 11, 5), 4, "Evaluation");
      gantt1.Add(new DateTime(2014, 4, 2), new DateTime(2014, 4, 29), 5, "Design");

      gantt1.AddMultipleNextTasks(2, 4);
      gantt1.AddMultipleNextTasks(2, 3);

      gantt1.ConnectingPen.Color = Color.FromArgb(255, 49, 44, 59);
      gantt1.ConnectingPen.Width = 2;

      gantt1.Pointer.Style = PointerStyles.Rectangle;
      gantt1.Pointer.VertSize = 25;
      gantt1.GetSeriesMark += Gantt1_GetSeriesMark;

      ColorPalettes.ApplyPalette(tChart1.Chart, 21);
    }
예제 #4
0
        // Constructor del "LineChart"
        public GanttChart(ChartView BaseChart)
        {
            // Variables
            gantt1         = new Gantt();
            var            = new Variables.Variables();
            this.BaseChart = BaseChart;

            // Modificación del "Chart" base
            BaseChart.Chart.ClickSeries   += null;
            BaseChart.Chart.Legend.Visible = true;
            BaseChart.Chart.Header.Text    = "The development of the product";
            BaseChart.Chart.Series.Add(gantt1);

            //gantt1.FillSampleValues(10);

            for (int i = 0; i < var.GetValorGantt1.Length; i++)
            {
                gantt1.Add(var.GetValorTimeSGantt[i], var.GetValorTimeEGantt[i], i + 1, var.GetValorGantt1[i]);
            }

            // Propiedades de la "line1"

            gantt1.LinePen.Width = 6;
            gantt1.LinePen.Color = var.GetPaletteBasic[0];

            gantt1.Pointer.Color          = var.GetPaletteBasic[0];
            gantt1.Pointer.InflateMargins = true;
            gantt1.Pointer.Visible        = true;
            gantt1.Pointer.HorizSize      = 11;
            gantt1.Pointer.VertSize       = 11;
            gantt1.Pointer.Pen.EndCap     = PenLineCap.Round;
            gantt1.Pointer.Pen.Color      = Color.White;
            gantt1.Pointer.Pen.Width      = 1;
            gantt1.Pointer.Style          = PointerStyles.Rectangle;

            gantt1.SeriesColor         = var.GetPaletteBasic[0];
            gantt1.Chart.Zoom.Allow    = false;
            gantt1.Chart.Panning.Allow = ScrollModes.None;
            gantt1.RecalcOptions       = RecalcOptions.OnModify;
            gantt1.Title                 = "Product 1";
            gantt1.DefaultNullValue      = 0;
            gantt1.ConnectingPen.Visible = true;
            gantt1.ConnectingPen.Color   = Color.Black;
            gantt1.ConnectingPen.Width   = 2;
            gantt1.NextTasks[0]          = 1;
            gantt1.NextTasks[1]          = 2;
            gantt1.NextTasks[2]          = 5;
            gantt1.NextTasks[3]          = 4;
            gantt1.NextTasks[4]          = 6;

            gantt1.VertAxis  = VerticalAxis.Both;
            gantt1.HorizAxis = HorizontalAxis.Both;


            // Características de los ejes del "Chart" base
            BaseChart.Chart.Axes.Left.SetMinMax(BaseChart.Chart.Axes.Left.MinYValue, BaseChart.Chart.Axes.Left.MaxYValue + 1);
            BaseChart.Chart.Axes.Bottom.SetMinMax(BaseChart.Chart.Axes.Bottom.MinXValue, BaseChart.Chart.Axes.Bottom.MaxXValue);
            BaseChart.Chart.Axes.Left.Labels.ValueFormat      = "0";
            BaseChart.Chart.Axes.Bottom.Labels.DateTimeFormat = "dd/MM/yy";
            BaseChart.Chart.Axes.Bottom.Increment             = 15;
            BaseChart.Chart.Axes.Left.Increment       = 1;
            BaseChart.Chart.Axes.Left.Visible         = true;
            BaseChart.Chart.Axes.Left.Title           = null;
            BaseChart.Chart.Axes.Bottom.Title         = null;
            BaseChart.Chart.Axes.Left.AxisPen.Visible = true;
            BaseChart.Chart.Axes.Left.Ticks.Visible   = false;
            BaseChart.Chart.Axes.Left.Grid.Visible    = true;
            BaseChart.Chart.Legend.Visible            = false;
            BaseChart.Chart.Axes.Bottom.Grid.Visible  = false;
            BaseChart.Chart.Panel.MarginLeft          = 13;
            BaseChart.Chart.Panel.MarginRight         = 6;
            BaseChart.Chart.Axes.Left.LabelsOnAxis    = true;
            BaseChart.Chart.Axes.Left.Ticks           = new TicksPen {
                Width = 2, Visible = true, Color = Color.White, EndCap = PenLineCap.Flat, Style = DashStyle.Solid, Length = 10,
            };

            // Themes Marks
            Themes.AplicarMarksTheme1(BaseChart);
        }
        public override void RowSelected(UITableView tableView, NSIndexPath indexPath)
        {
            // Clear Views if World demo has been clicked
            if (_controller.chartController.View.Subviews.Length > 1)
            {
                //if (_controller.View.Subviews.Length>1)
                //  _controller.chartController.View.Subviews[1].RemoveFromSuperview();
                _controller.chart.Frame = new CoreGraphics.CGRect(0, 0, _controller.chartController.View.Frame.Width, _controller.chartController.View.Frame.Height - 44);
            }
            // Do something with the row
            var row = indexPath.Row;

            Settings.SelectedIndex = row;

            // Changes Series typea
            _controller.chart.Series.Clear();

            // Set some chart options to improve speed
            _controller.chart.Clear();

            // Apply theme is desired
            Steema.TeeChart.Themes.AndrosTheme theme = new Steema.TeeChart.Themes.AndrosTheme(_controller.chart.Chart);
            theme.Apply();
            Steema.TeeChart.Themes.ColorPalettes.ApplyPalette(_controller.chart.Chart, Steema.TeeChart.Themes.Theme.OnBlackPalette);

            _controller.chart.Axes.Bottom.Grid.Visible       = false;
            _controller.chart.Axes.Left.Grid.DrawEvery       = 3;
            _controller.chart.Axes.Left.MinorTicks.Visible   = false;
            _controller.chart.Axes.Bottom.MinorTicks.Visible = false;
            _controller.chart.Header.Visible            = false;
            _controller.chart.Legend.Visible            = false;
            _controller.chart.Aspect.View3D             = true;
            _controller.chart.Panning.Active            = true;
            _controller.chart.Panning.Allow             = ScrollModes.Both;
            _controller.chart.Zoom.Active               = true;
            _controller.chart.Axes.Left.AxisPen.Width   = 1;
            _controller.chart.Axes.Bottom.AxisPen.Width = 1;

            // Using the ClickBackground event
            //_controller.chart.ClickBackground += new UITouchEventArgs(chart_clickBackGround);

            string ss = tableView.CellAt(indexPath).TextLabel.Text;

            Console.WriteLine(tableView.CellAt(indexPath).TextLabel.Text);

            _controller.chart.Series.Add(Utils.getSeriesStyle(row));
            _controller.chart.Series [0].Marks.Font.Color = Color.Black;
            _controller.chart.Series [0].Clear();

            if (_controller.newChart)
            {
                tableView.DeselectRow(indexPath, false);
                _controller.NavigationController.PushViewController(_controller.chartController, true);
            }
            else
            {
                switch (row)
                {
                case 0:                  // Line
                    _controller.chart.Aspect.View3D = false;
                    Random Rnd = new Random();
                    for (int t = 0; t <= 5; ++t)
                    {
                        (_controller.chart [0] as Line).Add(t, ((Rnd.Next(100)) + 1) - ((Rnd.Next(70)) + 1));
                    }

                    _controller.chart.Axes.Left.AxisPen.Color   = Color.White;
                    _controller.chart.Axes.Bottom.AxisPen.Color = Color.White;

                    _controller.chart.Panel.Gradient.Visible = false;
                    //_controller.chart.Panel.Gradient.EndColor = Color.DimGray;

                    (_controller.chart[0] as Line).LinePen.Width = 3;
                    (_controller.chart[0] as Line).Color         = Color.DarkBlue;
                    // Using the OnBeforeDrawValues event
                    //line1.BeforeDrawValues += new Steema.TeeChart.Styles.Series.PaintChartEventHandler(line1_BeforeDrawValues);
                    break;

                case 1:                  // Points
                    _controller.chart.Series [0].FillSampleValues(100);
                    break;

                case 2:                 // Area
                    _controller.chart.Aspect.View3D = false;
                    _controller.chart.Series [0].FillSampleValues(5);
                    for (int i = 1; i < 3; i++)
                    {
                        _controller.chart.Series.Add(new Steema.TeeChart.Styles.Area());
                        _controller.chart.Series [i].FillSampleValues(5);
                        (_controller.chart.Series [i] as Steema.TeeChart.Styles.Area).Transparency = 40;
                    }
                    break;

                case 3:                 // FastLine
                    _controller.chart.Aspect.View3D = false;
                    _controller.chart.Series [0].FillSampleValues(400);
                    break;

                case 4:                 // HorizLine
                    _controller.chart.Series[0].FillSampleValues(8);
                    for (int i = 1; i < 3; i++)
                    {
                        _controller.chart.Series.Add(new Steema.TeeChart.Styles.HorizLine());
                        _controller.chart.Series [i].FillSampleValues(8);
                    }
                    break;

                case 5:                 // Bar
                    _controller.chart.Series [0].Add(3, "Pears");
                    _controller.chart.Series [0].Add(4, "Apples");
                    _controller.chart.Series [0].Add(2, "Oranges");
                    _controller.chart.Series [0].Add(7, "Banana");

                    (_controller.chart.Series [0] as Steema.TeeChart.Styles.Bar).Pen.Visible          = false;
                    (_controller.chart.Series [0] as Steema.TeeChart.Styles.Bar).ColorEach            = true;
                    (_controller.chart.Series [0] as Steema.TeeChart.Styles.Bar).Marks.Shadow.Visible = false;
                    _controller.chart.AfterDraw += new Steema.TeeChart.PaintChartEventHandler(chart_AfterDraw);

                    _controller.chart.Header.Font.Name         = "Arial";
                    _controller.chart.Header.Font.Size         = 20;
                    _controller.chart.Axes.Bottom.Labels.Angle = 45;

                    // Here using the Chart events
                    //_controller.chart.GetAxisLabel += new Steema.TeeChart.GetAxisLabelEventHandler(_controller_GetAxisLabel);
                    //_controller.chart.ClickSeries += new Steema.TeeChart.TChart.SeriesEventHandler (series_clicked);
                    break;

                case 6:                 // HorizBar
                    _controller.chart.Series [0].FillSampleValues(10);
                    _controller.chart.Aspect.View3D = false;
                    Steema.TeeChart.Styles.HorizBar hbar1 = _controller.chart.Series [0] as Steema.TeeChart.Styles.HorizBar;
                    hbar1.MarksOnBar        = true;
                    hbar1.Marks.Transparent = true;
                    hbar1.Color             = Color.LightGray;
                    hbar1.CustomBarWidth    = 20;
                    _controller.chart.Axes.Left.MinimumOffset = 20;
                    _controller.chart.Axes.Left.MaximumOffset = 20;
                    break;

                case 7:                  // Pie
                    _controller.chart.Series [0].Add(30);
                    _controller.chart.Series [0].Add(30);
                    _controller.chart.Series [0].Add(40);
                    _controller.chart.Series [0].Add(70);

                    (_controller.chart.Series [0] as Steema.TeeChart.Styles.Pie).Circled         = true;
                    (_controller.chart.Series [0] as Steema.TeeChart.Styles.Pie).EdgeStyle       = Steema.TeeChart.Drawing.EdgeStyles.Flat;
                    (_controller.chart.Series [0] as Steema.TeeChart.Styles.Pie).BevelPercent    = 15;
                    (_controller.chart.Series [0] as Steema.TeeChart.Styles.Pie).Marks.Font.Size = 10;
                    (_controller.chart.Series [0] as Steema.TeeChart.Styles.Pie).ExplodeBiggest  = 20;
                    (_controller.chart.Series [0] as Steema.TeeChart.Styles.Pie).RotationAngle   = 25;
                    _controller.chart.Series [0].Marks.Visible     = true;
                    _controller.chart.Series [0].Marks.Transparent = true;
                    _controller.chart.Legend.Visible     = true;
                    _controller.chart.Legend.Alignment   = Steema.TeeChart.LegendAlignments.Bottom;
                    _controller.chart.Legend.Transparent = true;
                    _controller.chart.Legend.Font.Size   = 10;

                    _controller.chart.Aspect.Chart3DPercent = 40;
                    break;

                case 8:                 // Shape
                    (_controller.chart.Series[0] as Steema.TeeChart.Styles.Shape).Gradient.Visible  = true;
                    (_controller.chart.Series[0] as Steema.TeeChart.Styles.Shape).Style             = Steema.TeeChart.Styles.ShapeStyles.Circle;
                    (_controller.chart.Series[0] as Steema.TeeChart.Styles.Shape).Gradient.Visible  = true;
                    (_controller.chart.Series[0] as Steema.TeeChart.Styles.Shape).Gradient.EndColor = Color.FromArgb(255, 0, 0);
                    break;

                case 9:                 // Arrow
                    (_controller.chart.Series [0] as Steema.TeeChart.Styles.Arrow).ColorEachPoint = true;
                    break;

                case 10:                 // Bubble
                    (_controller.chart.Series [0] as Steema.TeeChart.Styles.Bubble).Pointer.Gradient.Visible   = true;
                    (_controller.chart.Series[0] as Steema.TeeChart.Styles.Bubble).Pointer.Gradient.StartColor = Color.FromArgb(255, 0, 0);
                    (_controller.chart.Series[0] as Steema.TeeChart.Styles.Bubble).Pointer.Gradient.EndColor   = Color.FromArgb(255, 255, 255);
                    break;

                case 11:                 // Gantt
                    Gantt progressSeries = _controller.chart.Series[0] as Steema.TeeChart.Styles.Gantt;
                    progressSeries.Add(DateTime.Today, DateTime.Today.AddDays(10.0), 1, "");

                    progressSeries.Pointer.VertSize = 10;
                    _controller.chart.Series.Add(progressSeries);
                    _controller.chart.Aspect.View3D                = false;
                    _controller.chart.Header.Visible               = false;
                    _controller.chart.Legend.Visible               = false;
                    _controller.chart.Panel.Gradient.Visible       = false;
                    _controller.chart.Panel.Color                  = Color.FromArgb(247, 247, 247);
                    _controller.chart.Axes.Left.Increment          = 10;
                    _controller.chart.Axes.Left.Ticks.Visible      = false;
                    _controller.chart.Axes.Left.MinorTicks.Visible = false;
                    _controller.chart.Axes.Left.Visible            = false;
                    break;

                case 12:                 // Candle
                    break;

                case 13:                 // Donut
                    (_controller.chart.Series [0] as Steema.TeeChart.Styles.Donut).Circled        = true;
                    (_controller.chart.Series [0] as Steema.TeeChart.Styles.Donut).Pen.Visible    = true;
                    (_controller.chart.Series [0] as Steema.TeeChart.Styles.Donut).Pen.Width      = 8;
                    (_controller.chart.Series [0] as Steema.TeeChart.Styles.Donut).ExplodeBiggest = 15;
                    _controller.chart.Series [0].Marks.Visible  = false;
                    _controller.chart.Legend.Visible            = true;
                    _controller.chart.Legend.VertSpacing        = 10;
                    _controller.chart.Legend.Title.Text         = "Donut Chart";
                    _controller.chart.Legend.Transparent        = true;
                    _controller.chart.Legend.Alignment          = Steema.TeeChart.LegendAlignments.Right;
                    _controller.chart.Legend.Symbol.Pen.Visible = false;
                    _controller.chart.Legend.Font.Size          = 12;
                    _controller.chart.Series [0].FillSampleValues(4);
                    _controller.chart.Aspect.View3D          = false;
                    _controller.chart.Panel.Color            = Color.White;
                    _controller.chart.Panel.Gradient.Visible = false;
                    _controller.chart.Legend.Font.Color      = Color.Black;
                    _controller.chart.Panel.MarginTop        = 10;
                    _controller.chart.Panel.MarginBottom     = 10;
                    break;

                case 14:                 // Volume
                    (_controller.chart.Series [0] as Steema.TeeChart.Styles.Volume).LinePen.Width = 2;
                    break;

                case 15:                 // Bar3D
                    break;

                case 16:                 // Points3D
                    break;

                case 17:                 // Polar
                    (_controller.chart.Series [0] as Steema.TeeChart.Styles.Polar).Circled = true;
                    _controller.chart.Aspect.View3D = false;
                    break;

                case 18:                 // PolarBar
                    _controller.chart.Aspect.View3D = false;
                    break;

                case 19:                 // Radar
                    _controller.chart.Aspect.View3D = false;
                    break;

                case 20:                 // Clock
                    (_controller.chart.Series [0] as Steema.TeeChart.Styles.Clock).Circled = true;
                    break;

                case 21:                 // WindRose
                    _controller.chart.Aspect.View3D = false;
                    break;

                case 22:                 // Pyramid
                    _controller.chart.Series [0].FillSampleValues(4);
                    break;

                case 23:                 // Surface
                    break;

                case 24:                 // LinePoint
                    _controller.chart.Aspect.View3D = false;
                    break;

                case 25:                 // BarJoin
                    _controller.chart.Aspect.View3D = false;
                    break;

                case 26:                 // ColorGrid
                    break;

                case 27:                 // WaterFall
                    break;

                case 28:                 // Histogram
                    _controller.chart.Aspect.View3D = false;
                    (_controller.chart.Series [0] as Steema.TeeChart.Styles.Histogram).LinesPen.Visible = false;
                    break;

                case 29:                 // Error
                    (_controller.chart.Series [0] as Steema.TeeChart.Styles.Error).ColorEachPoint = true;
                    (_controller.chart.Series [0] as Steema.TeeChart.Styles.Error).ErrorPen.Width = 5;
                    break;

                case 30:                 // ErrorBar
                    (_controller.chart.Series [0] as Steema.TeeChart.Styles.ErrorBar).ColorEachPoint = true;
                    break;

                case 31:                 // Contour
                    _controller.chart.Aspect.View3D = false;
                    break;

                case 32:                 // Smith
                    _controller.chart.Aspect.View3D = false;
                    (_controller.chart.Series [0] as Steema.TeeChart.Styles.Smith).Circled = true;
                    break;

                case 33:                 // Bezier
                    _controller.chart.Aspect.View3D = false;
                    (_controller.chart.Series [0] as Steema.TeeChart.Styles.Bezier).Pointer.Style       = Steema.TeeChart.Styles.PointerStyles.Circle;
                    (_controller.chart.Series [0] as Steema.TeeChart.Styles.Bezier).Pointer.Pen.Visible = false;
                    (_controller.chart.Series [0] as Steema.TeeChart.Styles.Bezier).LinePen.Width       = 2;
                    (_controller.chart.Series [0] as Steema.TeeChart.Styles.Bezier).LinePen.Color       = Color.Red;
                    _controller.chart.Series [0].FillSampleValues(4);
                    break;

                case 34:                 // Calendar
                    break;

                case 35:                 // HighLow
                    _controller.chart.Aspect.View3D = false;
                    break;

                case 36:                 // TriSurface
                    break;

                case 37:                 // Funnel
                    _controller.chart.Aspect.View3D = false;
                    _controller.chart.Series [0].FillSampleValues(20);
                    break;

                case 38:                 // Box
                    break;

                case 39:                 // HorizBox
                    break;

                case 40:                 // HorizArea
                    break;

                case 41:                 // Tower
                    _controller.chart.Series [0].FillSampleValues(5);
                    _controller.chart.Walls.Visible                  = false;
                    _controller.chart.Axes.Bottom.Ticks.Visible      = false;
                    _controller.chart.Axes.Bottom.MinorTicks.Visible = false;
                    _controller.chart.Axes.Left.Ticks.Visible        = false;
                    _controller.chart.Axes.Left.MinorTicks.Visible   = false;
                    (_controller.chart.Series [0] as Steema.TeeChart.Styles.Tower).Pen.Visible = false;
                    _controller.chart.Tools.Add(new Steema.TeeChart.Tools.Rotate());
                    _controller.chart.Aspect.Orthogonal     = false;
                    _controller.chart.Aspect.Rotation       = -25;
                    _controller.chart.Aspect.Zoom           = 70;
                    _controller.chart.Aspect.Chart3DPercent = 75;
                    _controller.chart.Header.Text           = "Drag to Rotate the Chart";
                    _controller.chart.Header.Visible        = true;
                    break;

                case 42:                 // PointFigure
                    break;

                case 43:                 // Gauges
                    (_controller.chart.Series [0] as Steema.TeeChart.Styles.Gauges).GetVertAxis.Ticks.Length  = 15;
                    (_controller.chart.Series [0] as Steema.TeeChart.Styles.Gauges).GetVertAxis.AxisPen.Color = Color.LightGray;
                    break;

                case 44:                 // Vector3D
                    break;

                case 45:                 // HorizHistogram
                    _controller.chart.Aspect.View3D = false;
                    (_controller.chart.Series [0] as Steema.TeeChart.Styles.HorizHistogram).LinesPen.Visible = false;
                    break;

                case 46:                 // Map
                    _controller.chart.Aspect.View3D = false;
                    break;

                case 47:                 // ImageBar
                    UIImage img = UIImage.FromFile("images/TeeChartNETForIPhone111x80.png");
                    (_controller.chart.Series [0] as Steema.TeeChart.Styles.ImageBar).Image = img.CGImage;
                    break;

                case 48:                 // Kagi
                    break;

                case 49:                 // Renko
                    break;

                case 50:                 // IsoSurface
                    break;

                case 51:                 // Darvas
                    break;

                case 52:                 // VolumePipe
                    _controller.chart.Aspect.View3D             = false;
                    _controller.chart.Legend.Visible            = true;
                    _controller.chart.Legend.Transparent        = true;
                    _controller.chart.Legend.Alignment          = Steema.TeeChart.LegendAlignments.Bottom;
                    _controller.chart.Legend.Symbol.Pen.Visible = false;
                    _controller.chart.Legend.Font.Size          = 14;
                    _controller.chart.Series [0].FillSampleValues(4);
                    break;

                case 53:                 // ImagePoint
                    _controller.chart.Series [0].FillSampleValues(5);
                    _controller.chart.Aspect.View3D = false;
                    UIImage img2 = UIImage.FromFile("images/TeeChartNETForIPhone111x80.png");
                    (_controller.chart.Series [0] as Steema.TeeChart.Styles.ImagePoint).Pointer.HorizSize = 30;
                    (_controller.chart.Series [0] as Steema.TeeChart.Styles.ImagePoint).Pointer.VertSize  = 30;
                    (_controller.chart.Series [0] as Steema.TeeChart.Styles.ImagePoint).PointImage        = img2.CGImage;
                    break;

                case 54:                 // CircularGauge
                    (_controller.chart.Series [0] as Steema.TeeChart.Styles.CircularGauge).Value = 65;
                    break;

                case 55:                 // LinearGauge
                    break;

                case 56:                 // VerticalLinearGauge
                    (_controller.chart.Series [0] as Steema.TeeChart.Styles.VerticalLinearGauge).Axis.Ticks.Visible      = true;
                    (_controller.chart.Series [0] as Steema.TeeChart.Styles.VerticalLinearGauge).Axis.MinorTicks.Visible = true;
                    break;

                case 57:                 //NumericGauge
                    (_controller.chart.Series [0] as Steema.TeeChart.Styles.NumericGauge).Value = 123;
                    break;

                case 58:                 // OrgSeries
                    break;

                case 59:                 // TagCloud
                    _controller.chart.Series [0].FillSampleValues(50);
                    break;

                case 60:                 // PolarGrid
                    _controller.chart.Aspect.View3D = false;
                    break;

                case 61:                 // Ternary
                    break;

                case 62:                 // KnobGauge
                    (_controller.chart.Series [0] as Steema.TeeChart.Styles.KnobGauge).ActiveCenter = true;
                    (_controller.chart.Series [0] as Steema.TeeChart.Styles.KnobGauge).Value        = 50;
                    break;

                case 63:                 // Worldaa
                    _controller.chart.Aspect.ZoomScrollStyle = Steema.TeeChart.Drawing.Aspect.ZoomScrollStyles.Manual;

                    World world1 = _controller.chart[0] as World;
                    Steema.TeeChart.Styles.CustomBar wbar;
                    TChart tChart2 = new TChart(this);
                    tChart2.Aspect.View3D  = false;
                    tChart2.Legend.Visible = false;
                    tChart2.Walls.Visible  = false;

                    if ((UIDevice.CurrentDevice.Orientation == UIDeviceOrientation.LandscapeLeft) ||
                        (UIDevice.CurrentDevice.Orientation == UIDeviceOrientation.LandscapeRight))
                    {
                        CoreGraphics.CGRect midFrame  = new CoreGraphics.CGRect(0, 0, UIScreen.MainScreen.ApplicationFrame.Height / 2, UIScreen.MainScreen.ApplicationFrame.Width - 20);
                        CoreGraphics.CGRect midFrame2 = new CoreGraphics.CGRect(UIScreen.MainScreen.ApplicationFrame.Height / 2, 0, UIScreen.MainScreen.ApplicationFrame.Height / 2, UIScreen.MainScreen.ApplicationFrame.Width - 20);
                        tChart2.Frame           = midFrame2;
                        _controller.chart.Frame = midFrame;

                        wbar = new Steema.TeeChart.Styles.HorizBar(tChart2.Chart);

                        tChart2.Axes.Left.Labels.Separation = 1;
                        _controller.chart.Footer.TextAlign  = CoreText.CTTextAlignment.Right;                        //map
                        tChart2.Footer.Text       = "to market cost index";
                        tChart2.Footer.Font.Color = Color.FromArgb(255, 255, 255);
                        tChart2.Footer.TextAlign  = CoreText.CTTextAlignment.Left;
                        tChart2.Footer.Font.Size  = 8;
                        tChart2.Footer.Visible    = true;
                        tChart2.Header.Visible    = false;
                    }
                    else
                    {
                        CoreGraphics.CGRect midFrame  = new CoreGraphics.CGRect(0, 0, UIScreen.MainScreen.ApplicationFrame.Width, _controller.chartController.chart.Bounds.Height / 2);
                        CoreGraphics.CGRect midFrame2 = new CoreGraphics.CGRect(0, _controller.chartController.chart.Bounds.Height / 2, UIScreen.MainScreen.ApplicationFrame.Width, _controller.chartController.chart.Bounds.Height / 2);

                        _controller.chart.Frame = midFrame;
                        tChart2.Frame           = midFrame2;

                        wbar = new Steema.TeeChart.Styles.Bar(tChart2.Chart);

                        tChart2.Axes.Bottom.Labels.Angle      = 90;
                        tChart2.Axes.Bottom.Labels.Separation = 1;
                        _controller.chart.Footer.TextAlign    = CoreText.CTTextAlignment.Left;                       //map
                        tChart2.Header.Text                 = "to market cost index";
                        tChart2.Header.Font.Color           = Color.FromArgb(255, 255, 255);
                        tChart2.Header.TextAlign            = CoreText.CTTextAlignment.Left;
                        tChart2.Header.Font.Size            = 8;
                        tChart2.Header.Visible              = true;
                        _controller.chart.Panel.MarginLeft  = 15;
                        _controller.chart.Panel.MarginRight = 15;
                    }

                    wbar.Marks.Visible = false;

                    Steema.TeeChart.Themes.BlackIsBackTheme theme2 = new Steema.TeeChart.Themes.BlackIsBackTheme(tChart2.Chart);
                    theme2.Apply();
                    Steema.TeeChart.Themes.ColorPalettes.ApplyPalette(tChart2.Chart, Steema.TeeChart.Themes.OperaTheme.OperaPalette);
                    tChart2.Aspect.ZoomScrollStyle = Steema.TeeChart.Drawing.Aspect.ZoomScrollStyles.Manual;

                    tChart2.Panel.Gradient.Visible   = false;
                    tChart2.Panel.Color              = Color.FromArgb(0, 0, 0);
                    tChart2.Axes.Bottom.Grid.Visible = false;

                    world1.Map = Steema.TeeChart.Styles.WorldMapType.Europe15;

                    _controller.chart.Walls.Visible          = false;
                    _controller.chart.Panel.Gradient.Visible = false;
                    _controller.chart.Panel.Color            = Color.FromArgb(0, 0, 0);

                    _controller.chart.Legend.Visible   = true;
                    _controller.chart.Legend.Font.Size = 8;

                    _controller.chart.Legend.Symbol.Position = LegendSymbolPosition.Right;
                    world1.ValueFormat = "0.0";

                    _controller.chart.Axes.Visible      = false;
                    _controller.chart.Footer.Font.Color = Color.FromArgb(255, 255, 255);
                    _controller.chart.Footer.Text       = "index of eu15" + Steema.TeeChart.Utils.NewLine + "organic food consumption 2009";
                    _controller.chart.Footer.Font.Size  = 8;
                    _controller.chart.Footer.Visible    = true;

                    wbar.Color          = Color.FromArgb(69, 69, 255);
                    wbar.CustomBarWidth = 10;
                    int[] territories = new int[] { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 };
                    for (int i = 0; i < world1.Shapes.Count; i++)
                    {
                        if (((String)(world1.Labels [i])) == "Austria")
                        {
                            world1.ZValues [i] = 89;
                            if (territories [0] == 0)
                            {
                                wbar.Add(4.5, (String)(world1.Labels [i]));
                                territories [0] = 1;
                            }
                        }
                        else if (((String)(world1.Labels [i])) == "Denmark")
                        {
                            world1.ZValues [i] = 107;
                            if (territories [1] == 0)
                            {
                                wbar.Add(4, (String)(world1.Labels [i]));
                                territories [1] = 1;
                            }
                        }
                        else if (((String)(world1.Labels [i])) == ("Finland"))
                        {
                            world1.ZValues [i] = 78;
                            if (territories [2] == 0)
                            {
                                wbar.Add(7.5, (String)(world1.Labels [i]));
                                territories [2] = 1;
                            }
                        }
                        else if (((String)(world1.Labels [i])) == ("Luxembourg"))
                        {
                            world1.ZValues [i] = 86;
                            if (territories [3] == 0)
                            {
                                wbar.Add(4.2, (String)(world1.Labels [i]));
                                territories [3] = 1;
                            }
                        }
                        else if (((String)(world1.Labels [i])) == ("Belgium"))
                        {
                            world1.ZValues [i] = 71;
                            if (territories [4] == 0)
                            {
                                wbar.Add(9.1, (String)(world1.Labels [i]));
                                territories [4] = 1;
                            }
                        }
                        else if (((String)(world1.Labels [i])) == ("Netherlands"))
                        {
                            world1.ZValues [i] = 78;
                            if (territories [5] == 0)
                            {
                                wbar.Add(3.9, (String)(world1.Labels [i]));
                                territories [5] = 1;
                            }
                        }
                        else if (((String)(world1.Labels [i])) == ("Germany"))
                        {
                            world1.ZValues [i] = 64;
                            if (territories [6] == 0)
                            {
                                wbar.Add(1.2, (String)(world1.Labels [i]));
                                territories [6] = 1;
                            }
                        }
                        else if (((String)(world1.Labels [i])) == ("Sweden"))
                        {
                            world1.ZValues [i] = 53;
                            if (territories [7] == 0)
                            {
                                wbar.Add(6.0, (String)(world1.Labels [i]));
                                territories [7] = 1;
                            }
                        }
                        else if (((String)(world1.Labels [i])) == ("UK"))
                        {
                            world1.ZValues [i] = 42;
                            if (territories [8] == 0)
                            {
                                wbar.Add(4.7, (String)(world1.Labels [i]));
                                territories [8] = 1;
                            }
                        }
                        else if (((String)(world1.Labels [i])) == ("Ireland"))
                        {
                            world1.ZValues [i] = 24;
                            if (territories [9] == 0)
                            {
                                wbar.Add(-0.2, (String)(world1.Labels [i]));
                                territories [9] = 1;
                            }
                        }
                        else if (((String)(world1.Labels [i])) == ("Italy"))
                        {
                            world1.ZValues [i] = 32;
                            if (territories [10] == 0)
                            {
                                wbar.Add(6.1, (String)(world1.Labels [i]));
                                territories [10] = 1;
                            }
                        }
                        else if (((String)(world1.Labels [i])) == ("France"))
                        {
                            world1.ZValues [i] = 30;
                            if (territories [11] == 0)
                            {
                                wbar.Add(7.9, (String)(world1.Labels [i]));
                                territories [11] = 1;
                            }
                        }
                        else if (((String)(world1.Labels [i])) == ("Spain"))
                        {
                            world1.ZValues [i] = 13;
                            if (territories [12] == 0)
                            {
                                wbar.Add(3.9, (String)(world1.Labels [i]));
                                territories [12] = 1;
                            }
                        }
                        else if (((String)(world1.Labels [i])) == ("Greece"))
                        {
                            world1.ZValues [i] = 7;
                            if (territories [13] == 0)
                            {
                                wbar.Add(2.1, (String)(world1.Labels [i]));
                                territories [13] = 1;
                            }
                        }
                        else if (((String)(world1.Labels [i])) == ("Portugal"))
                        {
                            world1.ZValues [i] = 11;
                            if (territories [14] == 0)
                            {
                                wbar.Add(0.5, (String)(world1.Labels [i]));
                                territories [14] = 1;
                            }
                        }
                        else if (((String)(world1.Labels [i])) == ("Poland"))
                        {
                            world1.ZValues [i] = 1;
                            if (territories [15] == 0)
                            {
                                wbar.Add(1.9, (String)(world1.Labels [i]));
                                territories [15] = 1;
                            }
                        }
                    }

                    world1.Pen.Color   = Color.Black;
                    world1.Pen.Width   = 1;
                    world1.Pen.Visible = true;

                    _controller.chartController.View.AddSubview(tChart2);
                    break;

                default:
                    break;
                }

                if (_controller.chart.Series [0].Count == 0)
                {
                    _controller.chart.Series [0].FillSampleValues();
                }

                // This is what the Settings does under Settings>Mail>Show on an iPhone
                tableView.DeselectRow(indexPath, false);
                _controller.NavigationController.PushViewController(_controller.chartController, true);
            }
        }