private void DoDashGeographic(Chart tChart1, Chart tChart2, Color drawPenColor1)
        {
            World world1;

            tChart1.Series.Add(world1 = new World());

            Steema.TeeChart.Styles.CustomBar wbar;

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

            tChart2.Axes.Bottom.Labels.Angle      = 90;
            tChart2.Axes.Bottom.Labels.Separation = 1;
            tChart1.Footer.TextAlign  = TextAlignment.Start; //map
            tChart2.Header.Text       = AppResources.MarketCost;
            tChart2.Header.Font.Color = drawPenColor1;
            tChart2.Header.TextAlign  = TextAlignment.Start;
            tChart2.Header.Font.Size  = 14;
            tChart2.Header.Visible    = true;
            //}

            wbar.Marks.Visible = false;

            Steema.TeeChart.Themes.ColorPalettes.ApplyPalette(tChart2, Theme.OperaPalette);

            world1.Map                = Steema.TeeChart.Styles.WorldMapType.Europe15;
            tChart1.Walls.Visible     = false;
            tChart1.Panel.Transparent = false;

            //tChart1.GetLegendRect += new GetLegendRectEventHandler(tChart1_GetLegendRect);

            tChart1.Legend.Visible         = true;
            tChart1.Legend.Font.Size       = 12;
            tChart1.Legend.Symbol.Position = LegendSymbolPosition.Right;
            world1.ValueFormat             = "0.0";

            tChart1.Axes.Visible = false;

            tChart1.Footer.Font.Color = drawPenColor1;
            tChart1.Footer.Text       = AppResources.EUIndex + Utils.NewLine + AppResources.OrganicFood;
            tChart1.Footer.Font.Size  = 13;
            tChart1.Footer.Visible    = true;

            //world1.StartColor = Color.FromArgb(255,255,128,64);
            world1.StartColor = Utils.FromArgb(255, 215, 70, 0);
            world1.EndColor   = Utils.FromArgb(255, 255, 233, 0);
            wbar.Color        = Utils.FromArgb(255, 255, 128, 64); // world1.StartColor;
            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.White;
            world1.Pen.Width   = 1;
            world1.Pen.Visible = true;

            wbar.Pen.Color = wbar.Color; // Color.White;
        }
예제 #2
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.components    = new System.ComponentModel.Container();
     this.splitter1     = new System.Windows.Forms.Splitter();
     this.chartListBox1 = new Steema.TeeChart.ChartListBox(this.components);
     this.tChart1       = new Steema.TeeChart.TChart();
     this.area1         = new Steema.TeeChart.Styles.Area();
     this.bar1          = new Steema.TeeChart.Styles.Bar();
     this.line1         = new Steema.TeeChart.Styles.Line();
     this.points1       = new Steema.TeeChart.Styles.Points();
     this.groupBox1     = new System.Windows.Forms.GroupBox();
     this.radioButton2  = new System.Windows.Forms.RadioButton();
     this.radioButton1  = new System.Windows.Forms.RadioButton();
     this.panel1.SuspendLayout();
     this.panel2.SuspendLayout();
     this.groupBox1.SuspendLayout();
     this.SuspendLayout();
     //
     // textBox1
     //
     this.textBox1.Name = "textBox1";
     this.textBox1.Text = "Chart ListBox control supports displaying check-boxes and radio-buttons.\r\nThe mai" +
                          "n purpose of radio-buttons is to show only one series at a time.\r\n\r\nChartListBox" +
                          "1.CheckStyle = CheckBoxStyle.Radio; ";
     //
     // panel1
     //
     this.panel1.Controls.Add(this.groupBox1);
     this.panel1.Name = "panel1";
     //
     // panel2
     //
     this.panel2.Controls.Add(this.tChart1);
     this.panel2.Controls.Add(this.chartListBox1);
     this.panel2.Controls.Add(this.splitter1);
     this.panel2.Name = "panel2";
     //
     // splitter1
     //
     this.splitter1.Location = new System.Drawing.Point(0, 0);
     this.splitter1.Name     = "splitter1";
     this.splitter1.Size     = new System.Drawing.Size(120, 154);
     this.splitter1.TabIndex = 0;
     this.splitter1.TabStop  = false;
     //
     // chartListBox1
     //
     this.chartListBox1.AllowDrop = true;
     this.chartListBox1.Anchor    = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                                                           | System.Windows.Forms.AnchorStyles.Left)
                                                                          | System.Windows.Forms.AnchorStyles.Right)));
     this.chartListBox1.Chart      = this.tChart1;
     this.chartListBox1.Location   = new System.Drawing.Point(0, 0);
     this.chartListBox1.Name       = "chartListBox1";
     this.chartListBox1.OtherItems = null;
     this.chartListBox1.Size       = new System.Drawing.Size(120, 172);
     this.chartListBox1.TabIndex   = 1;
     //
     // tChart1
     //
     //
     // tChart1.Aspect
     //
     this.tChart1.Aspect.SmoothingMode     = System.Drawing.Drawing2D.SmoothingMode.HighQuality;
     this.tChart1.Aspect.TextRenderingHint = System.Drawing.Text.TextRenderingHint.ClearTypeGridFit;
     this.tChart1.Aspect.ThemeIndex        = 2;
     //
     // tChart1.Axes
     //
     //
     // tChart1.Axes.Bottom
     //
     //
     // tChart1.Axes.Bottom.AxisPen
     //
     this.tChart1.Axes.Bottom.AxisPen.Width = 1;
     //
     // tChart1.Axes.Bottom.Grid
     //
     this.tChart1.Axes.Bottom.Grid.Centered = true;
     this.tChart1.Axes.Bottom.Grid.Color    = System.Drawing.Color.Black;
     this.tChart1.Axes.Bottom.Grid.Style    = System.Drawing.Drawing2D.DashStyle.Solid;
     //
     // tChart1.Axes.Bottom.Labels
     //
     //
     // tChart1.Axes.Bottom.Labels.Font
     //
     this.tChart1.Axes.Bottom.Labels.Font.Bold = true;
     this.tChart1.Axes.Bottom.Labels.Font.Name = "Times New Roman";
     this.tChart1.Axes.Bottom.Labels.Font.Size = 10;
     //
     // tChart1.Axes.Bottom.MinorGrid
     //
     this.tChart1.Axes.Bottom.MinorGrid.Color = System.Drawing.Color.FromArgb(((System.Byte)(229)), ((System.Byte)(229)), ((System.Byte)(229)));
     //
     // tChart1.Axes.Bottom.MinorTicks
     //
     this.tChart1.Axes.Bottom.MinorTicks.Color   = System.Drawing.Color.Black;
     this.tChart1.Axes.Bottom.MinorTicks.Visible = false;
     //
     // tChart1.Axes.Bottom.Ticks
     //
     this.tChart1.Axes.Bottom.Ticks.Color  = System.Drawing.Color.Black;
     this.tChart1.Axes.Bottom.Ticks.Length = 2;
     //
     // tChart1.Axes.Bottom.TicksInner
     //
     this.tChart1.Axes.Bottom.TicksInner.Color   = System.Drawing.Color.Black;
     this.tChart1.Axes.Bottom.TicksInner.Visible = false;
     //
     // tChart1.Axes.Bottom.Title
     //
     //
     // tChart1.Axes.Bottom.Title.Font
     //
     this.tChart1.Axes.Bottom.Title.Font.Name = "Times New Roman";
     //
     // tChart1.Axes.Depth
     //
     //
     // tChart1.Axes.Depth.AxisPen
     //
     this.tChart1.Axes.Depth.AxisPen.Width = 1;
     //
     // tChart1.Axes.Depth.Grid
     //
     this.tChart1.Axes.Depth.Grid.Color = System.Drawing.Color.Black;
     this.tChart1.Axes.Depth.Grid.Style = System.Drawing.Drawing2D.DashStyle.Solid;
     //
     // tChart1.Axes.Depth.Labels
     //
     //
     // tChart1.Axes.Depth.Labels.Font
     //
     this.tChart1.Axes.Depth.Labels.Font.Name = "Times New Roman";
     this.tChart1.Axes.Depth.Labels.Font.Size = 10;
     //
     // tChart1.Axes.Depth.MinorTicks
     //
     this.tChart1.Axes.Depth.MinorTicks.Color   = System.Drawing.Color.Black;
     this.tChart1.Axes.Depth.MinorTicks.Visible = false;
     //
     // tChart1.Axes.Depth.Ticks
     //
     this.tChart1.Axes.Depth.Ticks.Color  = System.Drawing.Color.Black;
     this.tChart1.Axes.Depth.Ticks.Length = 2;
     //
     // tChart1.Axes.Depth.TicksInner
     //
     this.tChart1.Axes.Depth.TicksInner.Color   = System.Drawing.Color.Black;
     this.tChart1.Axes.Depth.TicksInner.Visible = false;
     //
     // tChart1.Axes.Depth.Title
     //
     //
     // tChart1.Axes.Depth.Title.Font
     //
     this.tChart1.Axes.Depth.Title.Font.Name = "Times New Roman";
     //
     // tChart1.Axes.Left
     //
     //
     // tChart1.Axes.Left.AxisPen
     //
     this.tChart1.Axes.Left.AxisPen.Width = 1;
     //
     // tChart1.Axes.Left.Grid
     //
     this.tChart1.Axes.Left.Grid.Color = System.Drawing.Color.Black;
     this.tChart1.Axes.Left.Grid.Style = System.Drawing.Drawing2D.DashStyle.Solid;
     //
     // tChart1.Axes.Left.Labels
     //
     //
     // tChart1.Axes.Left.Labels.Font
     //
     this.tChart1.Axes.Left.Labels.Font.Bold = true;
     this.tChart1.Axes.Left.Labels.Font.Name = "Times New Roman";
     this.tChart1.Axes.Left.Labels.Font.Size = 10;
     //
     // tChart1.Axes.Left.MinorTicks
     //
     this.tChart1.Axes.Left.MinorTicks.Color   = System.Drawing.Color.Black;
     this.tChart1.Axes.Left.MinorTicks.Visible = false;
     //
     // tChart1.Axes.Left.Ticks
     //
     this.tChart1.Axes.Left.Ticks.Color  = System.Drawing.Color.Black;
     this.tChart1.Axes.Left.Ticks.Length = 2;
     //
     // tChart1.Axes.Left.TicksInner
     //
     this.tChart1.Axes.Left.TicksInner.Color   = System.Drawing.Color.Black;
     this.tChart1.Axes.Left.TicksInner.Visible = false;
     //
     // tChart1.Axes.Left.Title
     //
     //
     // tChart1.Axes.Left.Title.Font
     //
     this.tChart1.Axes.Left.Title.Font.Name = "Times New Roman";
     //
     // tChart1.Axes.Right
     //
     //
     // tChart1.Axes.Right.AxisPen
     //
     this.tChart1.Axes.Right.AxisPen.Width = 1;
     //
     // tChart1.Axes.Right.Grid
     //
     this.tChart1.Axes.Right.Grid.Color = System.Drawing.Color.Black;
     this.tChart1.Axes.Right.Grid.Style = System.Drawing.Drawing2D.DashStyle.Solid;
     //
     // tChart1.Axes.Right.Labels
     //
     //
     // tChart1.Axes.Right.Labels.Font
     //
     this.tChart1.Axes.Right.Labels.Font.Name = "Times New Roman";
     this.tChart1.Axes.Right.Labels.Font.Size = 10;
     //
     // tChart1.Axes.Right.MinorTicks
     //
     this.tChart1.Axes.Right.MinorTicks.Color   = System.Drawing.Color.Black;
     this.tChart1.Axes.Right.MinorTicks.Visible = false;
     //
     // tChart1.Axes.Right.Ticks
     //
     this.tChart1.Axes.Right.Ticks.Color  = System.Drawing.Color.Black;
     this.tChart1.Axes.Right.Ticks.Length = 2;
     //
     // tChart1.Axes.Right.TicksInner
     //
     this.tChart1.Axes.Right.TicksInner.Color   = System.Drawing.Color.Black;
     this.tChart1.Axes.Right.TicksInner.Visible = false;
     //
     // tChart1.Axes.Right.Title
     //
     //
     // tChart1.Axes.Right.Title.Font
     //
     this.tChart1.Axes.Right.Title.Font.Name = "Times New Roman";
     //
     // tChart1.Axes.Top
     //
     //
     // tChart1.Axes.Top.AxisPen
     //
     this.tChart1.Axes.Top.AxisPen.Width = 1;
     //
     // tChart1.Axes.Top.Grid
     //
     this.tChart1.Axes.Top.Grid.Color = System.Drawing.Color.Black;
     this.tChart1.Axes.Top.Grid.Style = System.Drawing.Drawing2D.DashStyle.Solid;
     //
     // tChart1.Axes.Top.Labels
     //
     //
     // tChart1.Axes.Top.Labels.Font
     //
     this.tChart1.Axes.Top.Labels.Font.Name = "Times New Roman";
     this.tChart1.Axes.Top.Labels.Font.Size = 10;
     //
     // tChart1.Axes.Top.MinorTicks
     //
     this.tChart1.Axes.Top.MinorTicks.Color   = System.Drawing.Color.Black;
     this.tChart1.Axes.Top.MinorTicks.Visible = false;
     //
     // tChart1.Axes.Top.Ticks
     //
     this.tChart1.Axes.Top.Ticks.Color  = System.Drawing.Color.Black;
     this.tChart1.Axes.Top.Ticks.Length = 2;
     //
     // tChart1.Axes.Top.TicksInner
     //
     this.tChart1.Axes.Top.TicksInner.Color   = System.Drawing.Color.Black;
     this.tChart1.Axes.Top.TicksInner.Visible = false;
     //
     // tChart1.Axes.Top.Title
     //
     //
     // tChart1.Axes.Top.Title.Font
     //
     this.tChart1.Axes.Top.Title.Font.Name = "Times New Roman";
     this.tChart1.Dock = System.Windows.Forms.DockStyle.Fill;
     //
     // tChart1.Header
     //
     //
     // tChart1.Header.Brush
     //
     this.tChart1.Header.Brush.Color = System.Drawing.Color.White;
     //
     // tChart1.Header.Gradient
     //
     this.tChart1.Header.Brush.Gradient.EndColor    = System.Drawing.Color.Gray;
     this.tChart1.Header.Brush.Gradient.MiddleColor = System.Drawing.Color.Empty;
     this.tChart1.Header.Brush.Gradient.StartColor  = System.Drawing.Color.White;
     this.tChart1.Header.Brush.Gradient.Visible     = true;
     //
     // tChart1.Header.Font
     //
     //
     // tChart1.Header.Font.Brush
     //
     this.tChart1.Header.Font.Brush.Color = System.Drawing.Color.Black;
     this.tChart1.Header.Font.Name        = "Times New Roman";
     this.tChart1.Header.Font.Size        = 12;
     //
     // tChart1.Header.Gradient
     //
     this.tChart1.Header.Gradient.EndColor    = System.Drawing.Color.Gray;
     this.tChart1.Header.Gradient.MiddleColor = System.Drawing.Color.Empty;
     this.tChart1.Header.Gradient.StartColor  = System.Drawing.Color.White;
     this.tChart1.Header.Gradient.Visible     = true;
     this.tChart1.Header.Lines = new string[] {
         "TeeChart"
     };
     //
     // tChart1.Header.Pen
     //
     this.tChart1.Header.Pen.Width = 2;
     //
     // tChart1.Header.Shadow
     //
     //
     // tChart1.Header.Shadow.Brush
     //
     this.tChart1.Header.Shadow.Brush.Color = System.Drawing.Color.FromArgb(((System.Byte)(76)), ((System.Byte)(169)), ((System.Byte)(169)), ((System.Byte)(169)));
     this.tChart1.Header.Shadow.Height      = 4;
     this.tChart1.Header.Shadow.Width       = 4;
     this.tChart1.Header.Visible            = false;
     //
     // tChart1.Legend
     //
     //
     // tChart1.Legend.Brush
     //
     //
     // tChart1.Legend.Gradient
     //
     this.tChart1.Legend.Brush.Gradient.EndColor    = System.Drawing.Color.Yellow;
     this.tChart1.Legend.Brush.Gradient.MiddleColor = System.Drawing.Color.Empty;
     this.tChart1.Legend.Brush.Gradient.StartColor  = System.Drawing.Color.White;
     //
     // tChart1.Legend.DividingLines
     //
     this.tChart1.Legend.DividingLines.Color = System.Drawing.Color.Silver;
     //
     // tChart1.Legend.Font
     //
     //
     // tChart1.Legend.Font.Brush
     //
     this.tChart1.Legend.Font.Brush.Color = System.Drawing.Color.FromArgb(((System.Byte)(100)), ((System.Byte)(0)), ((System.Byte)(0)));
     this.tChart1.Legend.Font.Name        = "Times New Roman";
     this.tChart1.Legend.Font.Size        = 10;
     //
     // tChart1.Legend.Gradient
     //
     this.tChart1.Legend.Gradient.EndColor    = System.Drawing.Color.Yellow;
     this.tChart1.Legend.Gradient.MiddleColor = System.Drawing.Color.Empty;
     this.tChart1.Legend.Gradient.StartColor  = System.Drawing.Color.White;
     //
     // tChart1.Legend.Pen
     //
     this.tChart1.Legend.Pen.Visible = false;
     //
     // tChart1.Legend.Shadow
     //
     //
     // tChart1.Legend.Shadow.Brush
     //
     this.tChart1.Legend.Shadow.Brush.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(169)), ((System.Byte)(169)), ((System.Byte)(169)));
     this.tChart1.Legend.Shadow.Height      = 0;
     this.tChart1.Legend.Shadow.Width       = 0;
     //
     // tChart1.Legend.Symbol
     //
     this.tChart1.Legend.Symbol.DefaultPen = false;
     //
     // tChart1.Legend.Symbol.Pen
     //
     this.tChart1.Legend.Symbol.Pen.Visible = false;
     this.tChart1.Legend.Symbol.Squared     = true;
     this.tChart1.Legend.Transparent        = true;
     this.tChart1.Location = new System.Drawing.Point(120, 0);
     this.tChart1.Name     = "tChart1";
     //
     // tChart1.Panel
     //
     //
     // tChart1.Panel.Bevel
     //
     this.tChart1.Panel.Bevel.Outer = Steema.TeeChart.Drawing.BevelStyles.None;
     //
     // tChart1.Panel.Brush
     //
     this.tChart1.Panel.Brush.Color = System.Drawing.Color.White;
     //
     // tChart1.Panel.Gradient
     //
     this.tChart1.Panel.Brush.Gradient.EndColor    = System.Drawing.Color.Yellow;
     this.tChart1.Panel.Brush.Gradient.MiddleColor = System.Drawing.Color.Empty;
     this.tChart1.Panel.Brush.Gradient.StartColor  = System.Drawing.Color.White;
     //
     // tChart1.Panel.Gradient
     //
     this.tChart1.Panel.Gradient.EndColor    = System.Drawing.Color.Yellow;
     this.tChart1.Panel.Gradient.MiddleColor = System.Drawing.Color.Empty;
     this.tChart1.Panel.Gradient.StartColor  = System.Drawing.Color.White;
     //
     // tChart1.Panel.Pen
     //
     this.tChart1.Panel.Pen.Visible = true;
     //
     // tChart1.Panel.Shadow
     //
     //
     // tChart1.Panel.Shadow.Brush
     //
     this.tChart1.Panel.Shadow.Brush.Color = System.Drawing.Color.Black;
     this.tChart1.Panel.Shadow.Height      = 0;
     this.tChart1.Panel.Shadow.Visible     = true;
     this.tChart1.Panel.Shadow.Width       = 0;
     this.tChart1.Series.Add(this.area1);
     this.tChart1.Series.Add(this.bar1);
     this.tChart1.Series.Add(this.line1);
     this.tChart1.Series.Add(this.points1);
     this.tChart1.Size     = new System.Drawing.Size(306, 154);
     this.tChart1.TabIndex = 2;
     //
     // tChart1.Walls
     //
     //
     // tChart1.Walls.Back
     //
     this.tChart1.Walls.Back.ApplyDark = false;
     //
     // tChart1.Walls.Back.Brush
     //
     this.tChart1.Walls.Back.Brush.Color = System.Drawing.Color.White;
     //
     // tChart1.Walls.Back.Gradient
     //
     this.tChart1.Walls.Back.Brush.Gradient.EndColor    = System.Drawing.Color.FromArgb(((System.Byte)(223)), ((System.Byte)(122)), ((System.Byte)(41)));
     this.tChart1.Walls.Back.Brush.Gradient.MiddleColor = System.Drawing.Color.Empty;
     this.tChart1.Walls.Back.Brush.Gradient.StartColor  = System.Drawing.Color.White;
     //
     // tChart1.Walls.Back.Gradient
     //
     this.tChart1.Walls.Back.Gradient.EndColor    = System.Drawing.Color.FromArgb(((System.Byte)(223)), ((System.Byte)(122)), ((System.Byte)(41)));
     this.tChart1.Walls.Back.Gradient.MiddleColor = System.Drawing.Color.Empty;
     this.tChart1.Walls.Back.Gradient.StartColor  = System.Drawing.Color.White;
     this.tChart1.Walls.Back.Size        = 8;
     this.tChart1.Walls.Back.Transparent = false;
     //
     // tChart1.Walls.Bottom
     //
     this.tChart1.Walls.Bottom.ApplyDark = false;
     //
     // tChart1.Walls.Bottom.Brush
     //
     //
     // tChart1.Walls.Bottom.Gradient
     //
     this.tChart1.Walls.Bottom.Brush.Gradient.EndColor   = System.Drawing.Color.FromArgb(((System.Byte)(252)), ((System.Byte)(254)), ((System.Byte)(253)));
     this.tChart1.Walls.Bottom.Brush.Gradient.StartColor = System.Drawing.Color.FromArgb(((System.Byte)(47)), ((System.Byte)(133)), ((System.Byte)(253)));
     //
     // tChart1.Walls.Bottom.Gradient
     //
     this.tChart1.Walls.Bottom.Gradient.EndColor   = System.Drawing.Color.FromArgb(((System.Byte)(252)), ((System.Byte)(254)), ((System.Byte)(253)));
     this.tChart1.Walls.Bottom.Gradient.StartColor = System.Drawing.Color.FromArgb(((System.Byte)(47)), ((System.Byte)(133)), ((System.Byte)(253)));
     this.tChart1.Walls.Bottom.Size = 8;
     //
     // tChart1.Walls.Left
     //
     this.tChart1.Walls.Left.ApplyDark = false;
     //
     // tChart1.Walls.Left.Brush
     //
     this.tChart1.Walls.Left.Brush.Color = System.Drawing.Color.White;
     //
     // tChart1.Walls.Left.Gradient
     //
     this.tChart1.Walls.Left.Brush.Gradient.EndColor   = System.Drawing.Color.FromArgb(((System.Byte)(36)), ((System.Byte)(209)), ((System.Byte)(252)));
     this.tChart1.Walls.Left.Brush.Gradient.StartColor = System.Drawing.Color.FromArgb(((System.Byte)(13)), ((System.Byte)(188)), ((System.Byte)(124)));
     //
     // tChart1.Walls.Left.Gradient
     //
     this.tChart1.Walls.Left.Gradient.EndColor   = System.Drawing.Color.FromArgb(((System.Byte)(36)), ((System.Byte)(209)), ((System.Byte)(252)));
     this.tChart1.Walls.Left.Gradient.StartColor = System.Drawing.Color.FromArgb(((System.Byte)(13)), ((System.Byte)(188)), ((System.Byte)(124)));
     this.tChart1.Walls.Left.Size = 8;
     //
     // tChart1.Walls.Right
     //
     this.tChart1.Walls.Right.ApplyDark = false;
     //
     // tChart1.Walls.Right.Brush
     //
     this.tChart1.Walls.Right.Brush.Color = System.Drawing.Color.White;
     this.tChart1.Walls.Right.Size        = 8;
     //
     // area1
     //
     //
     // area1.AreaBrush
     //
     this.area1.AreaBrush.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(255)), ((System.Byte)(0)), ((System.Byte)(0)));
     //
     // area1.Brush
     //
     this.area1.Brush.Color = System.Drawing.Color.FromArgb(((System.Byte)(255)), ((System.Byte)(0)), ((System.Byte)(0)));
     //
     // area1.Marks
     //
     //
     // area1.Marks.Arrow
     //
     this.area1.Marks.Arrow.Color = System.Drawing.Color.Black;
     //
     // area1.Marks.Brush
     //
     //
     // area1.Marks.Gradient
     //
     this.area1.Marks.Brush.Gradient.StartColor = System.Drawing.Color.Silver;
     //
     // area1.Marks.Font
     //
     this.area1.Marks.Font.Name = "Times New Roman";
     this.area1.Marks.Font.Size = 10;
     //
     // area1.Marks.Gradient
     //
     this.area1.Marks.Gradient.StartColor = System.Drawing.Color.Silver;
     //
     // area1.Marks.Symbol
     //
     //
     // area1.Marks.Symbol.Shadow
     //
     this.area1.Marks.Symbol.Shadow.Height  = 1;
     this.area1.Marks.Symbol.Shadow.Visible = true;
     this.area1.Marks.Symbol.Shadow.Width   = 1;
     this.area1.Marks.Transparent           = true;
     //
     // area1.Pointer
     //
     this.area1.Pointer.Style = Steema.TeeChart.Styles.PointerStyles.Rectangle;
     this.area1.Title         = "area1";
     //
     // area1.XValues
     //
     this.area1.XValues.DataMember = "X";
     this.area1.XValues.Order      = Steema.TeeChart.Styles.ValueListOrder.Ascending;
     //
     // area1.YValues
     //
     this.area1.YValues.DataMember = "Y";
     //
     // bar1
     //
     //
     // bar1.Brush
     //
     this.bar1.Brush.Color = System.Drawing.Color.FromArgb(((System.Byte)(0)), ((System.Byte)(255)), ((System.Byte)(0)));
     //
     // bar1.Marks
     //
     //
     // bar1.Marks.Arrow
     //
     this.bar1.Marks.Arrow.Color = System.Drawing.Color.Black;
     //
     // bar1.Marks.Brush
     //
     //
     // bar1.Marks.Gradient
     //
     this.bar1.Marks.Brush.Gradient.StartColor = System.Drawing.Color.Silver;
     //
     // bar1.Marks.Font
     //
     this.bar1.Marks.Font.Name = "Times New Roman";
     this.bar1.Marks.Font.Size = 10;
     //
     // bar1.Marks.Gradient
     //
     this.bar1.Marks.Gradient.StartColor = System.Drawing.Color.Silver;
     //
     // bar1.Marks.Symbol
     //
     //
     // bar1.Marks.Symbol.Shadow
     //
     this.bar1.Marks.Symbol.Shadow.Height  = 1;
     this.bar1.Marks.Symbol.Shadow.Visible = true;
     this.bar1.Marks.Symbol.Shadow.Width   = 1;
     this.bar1.Marks.Transparent           = true;
     this.bar1.Marks.Visible = false;
     this.bar1.Title         = "bar1";
     //
     // bar1.XValues
     //
     this.bar1.XValues.DataMember = "X";
     this.bar1.XValues.Order      = Steema.TeeChart.Styles.ValueListOrder.Ascending;
     //
     // bar1.YValues
     //
     this.bar1.YValues.DataMember = "Bar";
     //
     // line1
     //
     //
     // line1.Brush
     //
     this.line1.Brush.Color = System.Drawing.Color.FromArgb(((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(0)));
     //
     // line1.Marks
     //
     //
     // line1.Marks.Arrow
     //
     this.line1.Marks.Arrow.Color = System.Drawing.Color.Black;
     //
     // line1.Marks.Brush
     //
     //
     // line1.Marks.Gradient
     //
     this.line1.Marks.Brush.Gradient.StartColor = System.Drawing.Color.Silver;
     //
     // line1.Marks.Font
     //
     this.line1.Marks.Font.Name = "Times New Roman";
     this.line1.Marks.Font.Size = 10;
     //
     // line1.Marks.Gradient
     //
     this.line1.Marks.Gradient.StartColor = System.Drawing.Color.Silver;
     //
     // line1.Marks.Symbol
     //
     //
     // line1.Marks.Symbol.Shadow
     //
     this.line1.Marks.Symbol.Shadow.Height  = 1;
     this.line1.Marks.Symbol.Shadow.Visible = true;
     this.line1.Marks.Symbol.Shadow.Width   = 1;
     this.line1.Marks.Transparent           = true;
     //
     // line1.Pointer
     //
     this.line1.Pointer.Style = Steema.TeeChart.Styles.PointerStyles.Rectangle;
     this.line1.Title         = "line1";
     //
     // line1.XValues
     //
     this.line1.XValues.DataMember = "X";
     this.line1.XValues.Order      = Steema.TeeChart.Styles.ValueListOrder.Ascending;
     //
     // line1.YValues
     //
     this.line1.YValues.DataMember = "Y";
     //
     // points1
     //
     //
     // points1.Marks
     //
     //
     // points1.Marks.Arrow
     //
     this.points1.Marks.Arrow.Color = System.Drawing.Color.Black;
     //
     // points1.Marks.Brush
     //
     //
     // points1.Marks.Gradient
     //
     this.points1.Marks.Brush.Gradient.StartColor = System.Drawing.Color.Silver;
     //
     // points1.Marks.Font
     //
     this.points1.Marks.Font.Name = "Times New Roman";
     this.points1.Marks.Font.Size = 10;
     //
     // points1.Marks.Gradient
     //
     this.points1.Marks.Gradient.StartColor = System.Drawing.Color.Silver;
     //
     // points1.Marks.Symbol
     //
     //
     // points1.Marks.Symbol.Shadow
     //
     this.points1.Marks.Symbol.Shadow.Height  = 1;
     this.points1.Marks.Symbol.Shadow.Visible = true;
     this.points1.Marks.Symbol.Shadow.Width   = 1;
     this.points1.Marks.Transparent           = true;
     //
     // points1.Pointer
     //
     //
     // points1.Pointer.Brush
     //
     this.points1.Pointer.Brush.Color = System.Drawing.Color.FromArgb(((System.Byte)(0)), ((System.Byte)(0)), ((System.Byte)(255)));
     this.points1.Pointer.Style       = Steema.TeeChart.Styles.PointerStyles.Rectangle;
     this.points1.Title = "points1";
     //
     // points1.XValues
     //
     this.points1.XValues.DataMember = "X";
     this.points1.XValues.Order      = Steema.TeeChart.Styles.ValueListOrder.Ascending;
     //
     // points1.YValues
     //
     this.points1.YValues.DataMember = "Y";
     //
     // groupBox1
     //
     this.groupBox1.Controls.Add(this.radioButton2);
     this.groupBox1.Controls.Add(this.radioButton1);
     this.groupBox1.Location = new System.Drawing.Point(16, 0);
     this.groupBox1.Name     = "groupBox1";
     this.groupBox1.Size     = new System.Drawing.Size(144, 40);
     this.groupBox1.TabIndex = 0;
     this.groupBox1.TabStop  = false;
     this.groupBox1.Text     = "Check Style";
     //
     // radioButton2
     //
     this.radioButton2.Location = new System.Drawing.Point(80, 18);
     this.radioButton2.Name     = "radioButton2";
     this.radioButton2.Size     = new System.Drawing.Size(56, 14);
     this.radioButton2.TabIndex = 1;
     this.radioButton2.Text     = "Radio";
     this.radioButton2.Click   += new System.EventHandler(this.RadioButtons_Click);
     //
     // radioButton1
     //
     this.radioButton1.Checked  = true;
     this.radioButton1.Location = new System.Drawing.Point(11, 18);
     this.radioButton1.Name     = "radioButton1";
     this.radioButton1.Size     = new System.Drawing.Size(56, 14);
     this.radioButton1.TabIndex = 0;
     this.radioButton1.TabStop  = true;
     this.radioButton1.Text     = "Check";
     this.radioButton1.Click   += new System.EventHandler(this.RadioButtons_Click);
     //
     // ChartListBoxRadio
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize        = new System.Drawing.Size(426, 258);
     this.Name = "ChartListBoxRadio";
     this.panel1.ResumeLayout(false);
     this.panel2.ResumeLayout(false);
     this.groupBox1.ResumeLayout(false);
     this.ResumeLayout(false);
 }
        private void DoDashDigital(Chart tChart1, Chart tChart2, Chart tChart3, Color drawPenColor1)
        {
            tChart1.Aspect.View3D = false;
            tChart2.Aspect.View3D = false;
            tChart3.Aspect.View3D = false;

            tChart1.Series.Clear();
            tChart2.Series.Clear();
            tChart3.Series.Clear();

            //NumericGauge Chart
            Steema.TeeChart.Styles.NumericGauge nGauge = new Steema.TeeChart.Styles.NumericGauge();
            Random rand = (new Random());

            nGauge.Value                      = 30 + rand.Next(150);
            tChart1.Panel.MarginTop           = 0;
            tChart1.Panel.MarginBottom        = 0;
            nGauge.Markers[0].Shape.Font.Size = 20;
            nGauge.Markers[1].Shape.Font.Size = 8;
            nGauge.Markers[2].Shape.Font.Size = 8;

            tChart1.Series.Add(nGauge);

            tChart1.Footer.Font.Color = drawPenColor1;
            tChart1.Footer.Text       = AppResources.SigFrequency + Utils.NewLine + AppResources.BelowSignal;
            tChart1.Footer.Font.Size  = 12;
            tChart1.Footer.Visible    = true;

            //BarChart
            Steema.TeeChart.Themes.ColorPalettes.ApplyPalette(tChart2.Chart, Theme.SeawashPalette);

            Steema.TeeChart.Styles.Bar    bar   = new Steema.TeeChart.Styles.Bar(tChart2.Chart);
            Steema.TeeChart.Styles.Points point = new Steema.TeeChart.Styles.Points(tChart2.Chart);

            bar.Marks.Visible       = false;
            point.Marks.Visible     = false;
            point.Color             = bar.Color;
            point.Pointer.VertSize  = 4;
            point.Pointer.HorizSize = 8;
            bar.Gradient.Visible    = true;
            bar.Gradient.EndColor   = Utils.FromArgb(0, 255, 255, 255);
            bar.Gradient.StartColor = bar.Color;
            //bar.Brush.Transparency = 20;
            bar.CustomBarWidth = 1 + (point.Pointer.HorizSize / bar.BarWidthPercent * 100);

            rand = new Random();
            for (int i = 0; i < 10; i++)
            {
                bar.Add(rand.Next(10));
                point.Add(bar.YValues.Last + rand.Next(5));
            }

            tChart2.Axes.Left.Labels.ValueFormat = "#00.000";
            tChart2.Axes.Left.SetMinMax(0, point.MaxYValue() + 1);

            //LinearGauge Chart
            Steema.TeeChart.Styles.LinearGauge lGauge1 = new Steema.TeeChart.Styles.LinearGauge(tChart3.Chart);
            Steema.TeeChart.Styles.LinearGauge lGauge2 = new Steema.TeeChart.Styles.LinearGauge(tChart3.Chart);

            foreach (LinearGauge lGauge in tChart3.Series)
            {
                lGauge.Frame.Visible = false;
                lGauge.Value         = 20 + rand.Next(70);

                tChart3.Axes.Bottom.Increment        = 20;
                tChart3.Axes.Bottom.Labels.Font.Size = 14;
                lGauge.Hand.VertSize = 50;

                int index = tChart3.Series.IndexOf(lGauge);
                lGauge.CustomBounds                = new Rectangle(0, index * 60 + 10, 350, 70 + (index * 70));
                lGauge.FaceBrush.Transparency      = 100;
                lGauge.Hand.VertSize               = 30;
                lGauge.Hand.Transparency           = 0;
                lGauge.Hand.Gradient.StartColor    = Color.Yellow;
                lGauge.Hand.Gradient.EndColor      = Color.Green;
                lGauge.Hand.Gradient.Visible       = true;
                lGauge.Hand.Brush.Gradient.Visible = true;

                lGauge.GreenLine.VertSize            = 15;
                lGauge.GreenLine.Gradient.StartColor = Color.Green;
                lGauge.GreenLine.Gradient.EndColor   = Color.Gray;
                lGauge.RedLine.VertSize            = 15;
                lGauge.RedLine.Gradient.StartColor = Color.Gray;
                lGauge.RedLine.Gradient.EndColor   = Color.Red;
            }
        }
        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);
            }
        }