public override void ViewDidLoad()
        {
            base.ViewDidLoad();

            //any additional setup after loading the view, typically from a nib.
            r1 = new System.Drawing.RectangleF(0, 0, (float)this.View.Bounds.Width / 2, (float)this.View.Bounds.Height / 2);
            r2 = new System.Drawing.RectangleF((float)this.View.Bounds.Width / 2, 0, (float)this.View.Bounds.Width / 2, (float)this.View.Bounds.Height / 2);
            r3 = new System.Drawing.RectangleF(0, (float)this.View.Bounds.Height / 2, (float)this.View.Bounds.Width, (float)this.View.Bounds.Height / 2);

            chart1.Frame = r1;
            chart2.Frame = r2;
            chart3.Frame = r3;

            chart1.Header.Visible = false;
            chart1.Legend.Visible = false;
            chart2.Header.Visible = false;
            chart3.Header.Visible = false;

            this.View.AddSubview(chart1);
            this.View.AddSubview(chart2);
            this.View.AddSubview(chart3);

            Steema.TeeChart.Themes.BlackIsBackTheme theme1 = new Steema.TeeChart.Themes.BlackIsBackTheme(chart1.Chart);
            Steema.TeeChart.Themes.BlackIsBackTheme theme2 = new Steema.TeeChart.Themes.BlackIsBackTheme(chart2.Chart);
            Steema.TeeChart.Themes.BlackIsBackTheme theme3 = new Steema.TeeChart.Themes.BlackIsBackTheme(chart3.Chart);


            Steema.TeeChart.Themes.ColorPalettes.ApplyPalette(chart1.Chart, Steema.TeeChart.Themes.Theme.OnBlackPalette);
            Steema.TeeChart.Themes.ColorPalettes.ApplyPalette(chart2.Chart, Steema.TeeChart.Themes.Theme.OnBlackPalette);
            Steema.TeeChart.Themes.ColorPalettes.ApplyPalette(chart3.Chart, Steema.TeeChart.Themes.Theme.OnBlackPalette);

            // Chart 1
            chart1.Panel.Gradient.Visible = false;
            chart1.Panel.Color            = Color.Black;
            Steema.TeeChart.Styles.Donut series1 = new Steema.TeeChart.Styles.Donut();
            chart1.Aspect.View3D = false;
            series1.FillSampleValues(4);
            series1.Circled           = true;
            series1.Pen.Width         = 5;
            series1.ExplodeBiggest    = 20;
            series1.Marks.Transparent = true;
            series1.Marks.Font.Color  = Color.FromArgb(144, 255, 255, 255);
            series1.Marks.Font.Size   = 20;
            chart1.Series.Add(series1);

            // Chart 2

            chart2.Aspect.View3D = false;
            chart2.Chart.Aspect.ZoomScrollStyle = Steema.TeeChart.Drawing.Aspect.ZoomScrollStyles.Manual;
            chart2.Panel.Gradient.Visible       = false;
            chart2.Panel.Color = Color.Black;
            chart2.Walls.Back.Gradient.Visible    = true;
            chart2.Walls.Back.Gradient.StartColor = Color.FromArgb(255, 0, 0, 0);
            chart2.Walls.Back.Gradient.EndColor   = Color.DarkGray;
            chart2.Axes.Bottom.Grid.Visible       = false;
            chart2.Axes.Left.Increment            = 15;
            chart2.Axes.Bottom.Labels.Font.Size   = 15;
            chart2.Legend.Alignment   = LegendAlignments.Bottom;
            chart2.Legend.Transparent = true;
            Steema.TeeChart.Styles.Line series2 = new Steema.TeeChart.Styles.Line();
            series2.Add(15);
            series2.Add(25);
            series2.Add(16);
            series2.Add(30);
            series2.Add(40);
            series2.Add(35);
            series2.Add(25);
            series2.Add(50);
            series2.Pointer.Visible     = true;
            series2.Pointer.Style       = Steema.TeeChart.Styles.PointerStyles.Circle;
            series2.LinePen.Width       = 3;
            series2.Pointer.Pen.Visible = false;
            Steema.TeeChart.Styles.Area series3 = new Steema.TeeChart.Styles.Area();
            series3.Add(10);
            series3.Add(15);
            series3.Add(6);
            series3.Add(15);
            series3.Add(10);
            series3.Add(25);
            series3.Add(20);
            series3.Add(24);
            series3.AreaLinesPen.Visible        = true;
            series3.AreaLinesPen.Width          = 3;
            series3.AreaLinesPen.Color          = series3.Color;
            series3.LinePen.Visible             = true;
            series3.LinePen.Width               = 5;
            series3.AreaLines.Visible           = false;
            series3.AreaBrush.Gradient.Visible  = true;
            series3.AreaBrush.Gradient.EndColor = Color.DarkGray;
            chart2.Series.Add(series2);
            chart2.Series.Add(series3);

            // Chart 3

            chart3.Aspect.View3D  = false;
            chart3.Legend.Visible = false;
            chart3.Chart.Aspect.ZoomScrollStyle = Steema.TeeChart.Drawing.Aspect.ZoomScrollStyles.Manual;
            chart3.Panel.Gradient.Visible       = false;
            chart3.Panel.Color = Color.Black;
            chart3.Walls.Back.Gradient.Visible    = true;
            chart3.Walls.Back.Gradient.StartColor = Color.Black;
            chart3.Walls.Back.Gradient.EndColor   = Color.FromArgb(255, 79, 79, 79);
            chart3.Axes.Left.Labels.Separation    = 100;
            chart3.Axes.Left.Grid.Visible         = true;
            chart3.Axes.Left.Grid.Color           = Color.FromArgb(255, 79, 79, 79);
            chart3.Axes.Bottom.Grid.Color         = Color.FromArgb(255, 79, 79, 79);
            chart3.Axes.Left.AxisPen.Visible      = false;

            Steema.TeeChart.Styles.Candle candle = new Steema.TeeChart.Styles.Candle();
            Steema.TeeChart.Styles.Volume volume = new Steema.TeeChart.Styles.Volume();

            chart3.Series.Add(candle);
            chart3.Series.Add(volume);

            candle.FillSampleValues(70);
            candle.Pen.Visible = false;

            volume.FillSampleValues(70);
            volume.Color = Color.Yellow;

            Steema.TeeChart.Axis axis = chart3.Axes.Left;

            axis.StartPosition    = 0;
            axis.EndPosition      = 72;
            axis.Labels.Font.Size = 12;

            Steema.TeeChart.Axis customAxis = new Steema.TeeChart.Axis(chart3.Chart);
            customAxis.OtherSide = true;
            chart3.Axes.Custom.Add(customAxis);

            customAxis.StartPosition     = 74;
            customAxis.EndPosition       = 100;
            customAxis.Labels.Font.Color = Color.FromArgb(255, 255, 255, 240);
            customAxis.Labels.Font.Size  = 12;
            customAxis.Grid.Visible      = false;
            customAxis.AxisPen.Visible   = false;

            volume.CustomVertAxis = customAxis;

            chart3.Legend.Alignment   = LegendAlignments.Bottom;
            chart3.Legend.Transparent = true;
            chart3.Legend.Font.Size   = 12;
            chart3.Legend.TopLeftPos  = 0;

            chart3.Axes.Bottom.Labels.Font.Size = 12;


            /* Chart 4
             *
             * chart4.Aspect.View3D = false;
             * chart4.Chart.Aspect.ZoomScrollStyle = Steema.TeeChart.Drawing.Aspect.ZoomScrollStyles.Manual;
             * chart4.Panel.Gradient.Visible = false;
             * chart4.Panel.Color = UIColor.Black.CGColor;
             * chart4.Walls.Back.Transparent=true;
             * Steema.TeeChart.Styles.HorizBar series5 = new Steema.TeeChart.Styles.HorizBar();
             * series5.Add(10);
             * series5.Add(50);
             * series5.Add(30);
             * series5.Add(70);
             * //series5.BarHeightPercent=100;
             * //series5.CustomBarWidth= 80;
             * series5.ColorEach = true;
             * //series5.Pen.Width = 3;
             * //series5.Gradient.Visible = true;
             * chart4.Series.Add(series5);
             * chart4.Axes.Bottom.Visible = false;
             */
        }
 /// <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();
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Function_OBV));
     this.candle1      = new Steema.TeeChart.Styles.Candle();
     this.axis1        = new Steema.TeeChart.Axis(this.components);
     this.volume1      = new Steema.TeeChart.Styles.Volume();
     this.axis2        = new Steema.TeeChart.Axis(this.components);
     this.obvFunction1 = new Steema.TeeChart.Functions.OBVFunction();
     this.line1        = new Steema.TeeChart.Styles.Line();
     this.axis3        = new Steema.TeeChart.Axis(this.components);
     this.chartContainer.SuspendLayout();
     this.SuspendLayout();
     //
     // textBox1
     //
     this.textBox1.Text = resources.GetString("textBox1.Text");
     //
     // tChart1
     //
     //
     //
     //
     this.tChart1.Aspect.View3D  = false;
     this.tChart1.Aspect.ZOffset = 0;
     //
     //
     //
     //
     //
     //
     this.tChart1.Axes.Bottom.MaximumOffset = 5;
     this.tChart1.Axes.Bottom.MinimumOffset = 5;
     this.tChart1.Axes.Custom.Add(this.axis1);
     this.tChart1.Axes.Custom.Add(this.axis2);
     this.tChart1.Axes.Custom.Add(this.axis3);
     this.tChart1.Cursor = System.Windows.Forms.Cursors.Default;
     //
     //
     //
     this.tChart1.Header.Lines = new string[0];
     //
     //
     //
     //
     //
     //
     this.tChart1.Panel.Brush.Color = System.Drawing.Color.FromArgb(((int)(((byte)(254)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
     //
     //
     //
     this.tChart1.Panel.Brush.Gradient.Direction   = System.Drawing.Drawing2D.LinearGradientMode.ForwardDiagonal;
     this.tChart1.Panel.Brush.Gradient.EndColor    = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
     this.tChart1.Panel.Brush.Gradient.MiddleColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(192)))));
     this.tChart1.Panel.Brush.Gradient.StartColor  = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
     this.tChart1.Panel.MarginLeft = 8;
     this.tChart1.Series.Add(this.candle1);
     this.tChart1.Series.Add(this.volume1);
     this.tChart1.Series.Add(this.line1);
     this.tChart1.Size = new System.Drawing.Size(440, 205);
     //
     // candle1
     //
     //
     //
     //
     this.candle1.Brush.Color    = System.Drawing.Color.White;
     this.candle1.CloseValues    = this.candle1.YValues;
     this.candle1.Color          = System.Drawing.Color.FromArgb(((int)(((byte)(68)))), ((int)(((byte)(102)))), ((int)(((byte)(163)))));
     this.candle1.ColorEach      = false;
     this.candle1.CustomVertAxis = this.axis1;
     this.candle1.DateValues     = this.candle1.XValues;
     //
     //
     //
     this.candle1.LinePen.Color = System.Drawing.Color.FromArgb(((int)(((byte)(41)))), ((int)(((byte)(61)))), ((int)(((byte)(98)))));
     //
     //
     //
     //
     //
     //
     this.candle1.Marks.Callout.ArrowHead     = Steema.TeeChart.Styles.ArrowHeadStyles.None;
     this.candle1.Marks.Callout.ArrowHeadSize = 8;
     //
     //
     //
     this.candle1.Marks.Callout.Brush.Color = System.Drawing.Color.Black;
     this.candle1.Marks.Callout.Distance    = 0;
     this.candle1.Marks.Callout.Draw3D      = false;
     this.candle1.Marks.Callout.Length      = 10;
     this.candle1.Marks.Callout.Style       = Steema.TeeChart.Styles.PointerStyles.Rectangle;
     this.candle1.Marks.Callout.Visible     = false;
     //
     //
     //
     //
     //
     //
     this.candle1.Pointer.Brush.Color = System.Drawing.Color.Red;
     this.candle1.Pointer.Draw3D      = false;
     this.candle1.Pointer.Style       = Steema.TeeChart.Styles.PointerStyles.Rectangle;
     this.candle1.Title    = "Candle";
     this.candle1.VertAxis = Steema.TeeChart.Styles.VerticalAxis.Custom;
     //
     //
     //
     this.candle1.XValues.DataMember = "Date";
     this.candle1.XValues.DateTime   = true;
     this.candle1.XValues.Order      = Steema.TeeChart.Styles.ValueListOrder.Ascending;
     //
     //
     //
     this.candle1.YValues.DataMember = "Close";
     //
     // axis1
     //
     this.axis1.EndPosition   = 37;
     this.axis1.Horizontal    = false;
     this.axis1.MaximumOffset = 5;
     this.axis1.MinimumOffset = 5;
     this.axis1.OtherSide     = false;
     //
     // volume1
     //
     //
     //
     //
     //this.volume1.Brush.Color = System.Drawing.Color.FromArgb(((int)(((byte)(243)))), ((int)(((byte)(156)))), ((int)(((byte)(53)))));
     this.volume1.ClickableLine  = false;
     this.volume1.Color          = System.Drawing.Color.FromArgb(((int)(((byte)(243)))), ((int)(((byte)(156)))), ((int)(((byte)(53)))));
     this.volume1.ColorEach      = false;
     this.volume1.CustomVertAxis = this.axis2;
     //
     //
     //
     this.volume1.LinePen.Color = System.Drawing.Color.FromArgb(((int)(((byte)(243)))), ((int)(((byte)(156)))), ((int)(((byte)(53)))));
     //
     //
     //
     //
     //
     //
     this.volume1.Marks.Callout.ArrowHead     = Steema.TeeChart.Styles.ArrowHeadStyles.None;
     this.volume1.Marks.Callout.ArrowHeadSize = 8;
     //
     //
     //
     this.volume1.Marks.Callout.Brush.Color = System.Drawing.Color.Black;
     this.volume1.Marks.Callout.Distance    = 0;
     this.volume1.Marks.Callout.Draw3D      = false;
     this.volume1.Marks.Callout.Length      = 10;
     this.volume1.Marks.Callout.Style       = Steema.TeeChart.Styles.PointerStyles.Rectangle;
     this.volume1.Marks.Callout.Visible     = false;
     //
     //
     //
     //
     //
     //
     this.volume1.Pointer.Brush.Color = System.Drawing.Color.Green;
     this.volume1.Pointer.Style       = Steema.TeeChart.Styles.PointerStyles.Rectangle;
     this.volume1.Title    = "Volume";
     this.volume1.VertAxis = Steema.TeeChart.Styles.VerticalAxis.Custom;
     //
     //
     //
     this.volume1.XValues.DataMember = "X";
     this.volume1.XValues.Order      = Steema.TeeChart.Styles.ValueListOrder.Ascending;
     //
     //
     //
     this.volume1.YValues.DataMember = "Y";
     //
     // axis2
     //
     this.axis2.EndPosition   = 66;
     this.axis2.Horizontal    = false;
     this.axis2.OtherSide     = false;
     this.axis2.StartPosition = 40;
     //
     // obvFunction1
     //
     this.obvFunction1.Period = 1;
     this.obvFunction1.Volume = this.volume1;
     //
     // line1
     //
     //
     //
     //
     this.line1.Brush.Color = System.Drawing.Color.FromArgb(((int)(((byte)(241)))), ((int)(((byte)(76)))), ((int)(((byte)(20)))));
     //this.line1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(241)))), ((int)(((byte)(76)))), ((int)(((byte)(20)))));
     this.line1.ColorEach      = false;
     this.line1.CustomVertAxis = this.axis3;
     this.line1.DataSource     = this.candle1;
     this.line1.Function       = this.obvFunction1;
     //
     //
     //
     this.line1.LinePen.Color = System.Drawing.Color.FromArgb(((int)(((byte)(145)))), ((int)(((byte)(46)))), ((int)(((byte)(12)))));
     //
     //
     //
     //
     //
     //
     this.line1.Marks.Callout.ArrowHead     = Steema.TeeChart.Styles.ArrowHeadStyles.None;
     this.line1.Marks.Callout.ArrowHeadSize = 8;
     //
     //
     //
     this.line1.Marks.Callout.Brush.Color = System.Drawing.Color.Black;
     this.line1.Marks.Callout.Distance    = 0;
     this.line1.Marks.Callout.Draw3D      = false;
     this.line1.Marks.Callout.Length      = 10;
     this.line1.Marks.Callout.Style       = Steema.TeeChart.Styles.PointerStyles.Rectangle;
     this.line1.Marks.Callout.Visible     = false;
     //
     //
     //
     //
     //
     //
     this.line1.Pointer.Brush.Color = System.Drawing.Color.Yellow;
     this.line1.Pointer.Style       = Steema.TeeChart.Styles.PointerStyles.Rectangle;
     this.line1.Title    = "OBV Function";
     this.line1.VertAxis = Steema.TeeChart.Styles.VerticalAxis.Custom;
     //
     //
     //
     this.line1.XValues.DateTime = true;
     this.line1.XValues.Order    = Steema.TeeChart.Styles.ValueListOrder.Ascending;
     //
     // axis3
     //
     this.axis3.Horizontal    = false;
     this.axis3.OtherSide     = false;
     this.axis3.StartPosition = 68;
     //
     // Function_OBV
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize        = new System.Drawing.Size(440, 317);
     this.Name = "Function_OBV";
     this.chartContainer.ResumeLayout(false);
     this.ResumeLayout(false);
     this.PerformLayout();
 }
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Function_PVO));
     this.volume1      = new Steema.TeeChart.Styles.Volume();
     this.button1      = new System.Windows.Forms.Button();
     this.fastLine1    = new Steema.TeeChart.Styles.FastLine();
     this.pvoFunction1 = new Steema.TeeChart.Functions.PVOFunction();
     this.panel1.SuspendLayout();
     this.chartContainer.SuspendLayout();
     this.SuspendLayout();
     //
     // textBox1
     //
     this.textBox1.Text = "PVO function (Percentage Volume Oscillator) is a financial indicator. Requires on" +
                          "e source series (of any type) and 2 period values.";
     //
     // panel1
     //
     this.panel1.Controls.Add(this.button1);
     //
     // tChart1
     //
     //
     //
     //
     this.tChart1.Aspect.View3D  = false;
     this.tChart1.Aspect.ZOffset = 0;
     //
     //
     //
     //
     //
     //
     //
     //
     //
     this.tChart1.Axes.Bottom.AxisPen.Color = System.Drawing.Color.FromArgb(((int)(((byte)(130)))), ((int)(((byte)(130)))), ((int)(((byte)(130)))));
     //
     //
     //
     this.tChart1.Axes.Bottom.Grid.Color = System.Drawing.Color.FromArgb(((int)(((byte)(130)))), ((int)(((byte)(130)))), ((int)(((byte)(130)))));
     this.tChart1.Axes.Bottom.Grid.Style = System.Drawing.Drawing2D.DashStyle.Solid;
     //
     //
     //
     //
     //
     //
     //
     //
     //
     this.tChart1.Axes.Bottom.MaximumOffset = 5;
     this.tChart1.Axes.Bottom.MinimumOffset = 5;
     //
     //
     //
     this.tChart1.Axes.Bottom.MinorTicks.Visible = false;
     //
     //
     //
     this.tChart1.Axes.Bottom.Ticks.Color = System.Drawing.Color.FromArgb(((int)(((byte)(130)))), ((int)(((byte)(130)))), ((int)(((byte)(130)))));
     //
     //
     //
     this.tChart1.Axes.Bottom.TicksInner.Visible = true;
     //
     //
     //
     //
     //
     //
     this.tChart1.Axes.Depth.AxisPen.Color = System.Drawing.Color.FromArgb(((int)(((byte)(130)))), ((int)(((byte)(130)))), ((int)(((byte)(130)))));
     //
     //
     //
     this.tChart1.Axes.Depth.Grid.Color = System.Drawing.Color.FromArgb(((int)(((byte)(130)))), ((int)(((byte)(130)))), ((int)(((byte)(130)))));
     this.tChart1.Axes.Depth.Grid.Style = System.Drawing.Drawing2D.DashStyle.Solid;
     //
     //
     //
     //
     //
     //
     //
     //
     //
     //
     //
     this.tChart1.Axes.Depth.MinorTicks.Visible = false;
     //
     //
     //
     this.tChart1.Axes.Depth.Ticks.Color = System.Drawing.Color.FromArgb(((int)(((byte)(130)))), ((int)(((byte)(130)))), ((int)(((byte)(130)))));
     //
     //
     //
     this.tChart1.Axes.Depth.TicksInner.Visible = true;
     //
     //
     //
     //
     //
     //
     this.tChart1.Axes.DepthTop.AxisPen.Color = System.Drawing.Color.FromArgb(((int)(((byte)(130)))), ((int)(((byte)(130)))), ((int)(((byte)(130)))));
     //
     //
     //
     this.tChart1.Axes.DepthTop.Grid.Color = System.Drawing.Color.FromArgb(((int)(((byte)(130)))), ((int)(((byte)(130)))), ((int)(((byte)(130)))));
     this.tChart1.Axes.DepthTop.Grid.Style = System.Drawing.Drawing2D.DashStyle.Solid;
     //
     //
     //
     //
     //
     //
     //
     //
     //
     //
     //
     this.tChart1.Axes.DepthTop.MinorTicks.Visible = false;
     //
     //
     //
     this.tChart1.Axes.DepthTop.Ticks.Color = System.Drawing.Color.FromArgb(((int)(((byte)(130)))), ((int)(((byte)(130)))), ((int)(((byte)(130)))));
     //
     //
     //
     this.tChart1.Axes.DepthTop.TicksInner.Visible = true;
     //
     //
     //
     //
     //
     //
     this.tChart1.Axes.Left.AxisPen.Color = System.Drawing.Color.FromArgb(((int)(((byte)(130)))), ((int)(((byte)(130)))), ((int)(((byte)(130)))));
     //
     //
     //
     this.tChart1.Axes.Left.Grid.Color = System.Drawing.Color.FromArgb(((int)(((byte)(130)))), ((int)(((byte)(130)))), ((int)(((byte)(130)))));
     this.tChart1.Axes.Left.Grid.Style = System.Drawing.Drawing2D.DashStyle.Solid;
     //
     //
     //
     //
     //
     //
     //
     //
     //
     //
     //
     this.tChart1.Axes.Left.MinorTicks.Visible = false;
     //
     //
     //
     this.tChart1.Axes.Left.Ticks.Color = System.Drawing.Color.FromArgb(((int)(((byte)(130)))), ((int)(((byte)(130)))), ((int)(((byte)(130)))));
     //
     //
     //
     this.tChart1.Axes.Left.TicksInner.Visible = true;
     //
     //
     //
     //
     //
     //
     this.tChart1.Axes.Right.AxisPen.Color = System.Drawing.Color.FromArgb(((int)(((byte)(130)))), ((int)(((byte)(130)))), ((int)(((byte)(130)))));
     //
     //
     //
     this.tChart1.Axes.Right.Grid.Color = System.Drawing.Color.FromArgb(((int)(((byte)(130)))), ((int)(((byte)(130)))), ((int)(((byte)(130)))));
     this.tChart1.Axes.Right.Grid.Style = System.Drawing.Drawing2D.DashStyle.Solid;
     //
     //
     //
     //
     //
     //
     //
     //
     //
     //
     //
     this.tChart1.Axes.Right.MinorTicks.Visible = false;
     //
     //
     //
     this.tChart1.Axes.Right.Ticks.Color = System.Drawing.Color.FromArgb(((int)(((byte)(130)))), ((int)(((byte)(130)))), ((int)(((byte)(130)))));
     //
     //
     //
     this.tChart1.Axes.Right.TicksInner.Visible = true;
     //
     //
     //
     //
     //
     //
     this.tChart1.Axes.Top.AxisPen.Color = System.Drawing.Color.FromArgb(((int)(((byte)(130)))), ((int)(((byte)(130)))), ((int)(((byte)(130)))));
     //
     //
     //
     this.tChart1.Axes.Top.Grid.Color = System.Drawing.Color.FromArgb(((int)(((byte)(130)))), ((int)(((byte)(130)))), ((int)(((byte)(130)))));
     this.tChart1.Axes.Top.Grid.Style = System.Drawing.Drawing2D.DashStyle.Solid;
     //
     //
     //
     //
     //
     //
     //
     //
     //
     //
     //
     this.tChart1.Axes.Top.MinorTicks.Visible = false;
     //
     //
     //
     this.tChart1.Axes.Top.Ticks.Color = System.Drawing.Color.FromArgb(((int)(((byte)(130)))), ((int)(((byte)(130)))), ((int)(((byte)(130)))));
     //
     //
     //
     this.tChart1.Axes.Top.TicksInner.Visible = true;
     //
     //
     //
     //
     //
     //
     //
     //
     //
     this.tChart1.Header.Brush.Gradient.EndColor    = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(0)))));
     this.tChart1.Header.Brush.Gradient.MiddleColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))));
     this.tChart1.Header.Brush.Gradient.SigmaFocus  = 0F;
     this.tChart1.Header.Brush.Gradient.SigmaScale  = 0F;
     this.tChart1.Header.Brush.Gradient.StartColor  = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
     //
     //
     //
     //
     //
     //
     this.tChart1.Header.Font.Brush.Color = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
     this.tChart1.Header.Lines            = new string[] {
         "Percentage Volume Oscillator function"
     };
     //
     //
     //
     //
     //
     //
     //
     //
     //
     this.tChart1.Legend.Brush.Gradient.EndColor    = System.Drawing.Color.FromArgb(((int)(((byte)(120)))), ((int)(((byte)(120)))), ((int)(((byte)(120)))));
     this.tChart1.Legend.Brush.Gradient.MiddleColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))));
     this.tChart1.Legend.Brush.Gradient.SigmaFocus  = 0F;
     this.tChart1.Legend.Brush.Gradient.SigmaScale  = 0F;
     this.tChart1.Legend.Brush.Gradient.StartColor  = System.Drawing.Color.FromArgb(((int)(((byte)(70)))), ((int)(((byte)(70)))), ((int)(((byte)(70)))));
     this.tChart1.Legend.Brush.Gradient.Visible     = true;
     //
     //
     //
     //
     //
     //
     this.tChart1.Legend.Font.Brush.Color = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
     //
     //
     //
     this.tChart1.Legend.Pen.Visible = false;
     this.tChart1.Legend.Visible     = false;
     //
     //
     //
     //
     //
     //
     this.tChart1.Panel.Brush.Color = System.Drawing.Color.FromArgb(((int)(((byte)(240)))), ((int)(((byte)(240)))), ((int)(((byte)(240)))));
     //
     //
     //
     this.tChart1.Panel.Brush.Gradient.EndColor    = System.Drawing.Color.FromArgb(((int)(((byte)(70)))), ((int)(((byte)(70)))), ((int)(((byte)(70)))));
     this.tChart1.Panel.Brush.Gradient.MiddleColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))));
     this.tChart1.Panel.Brush.Gradient.SigmaFocus  = 0F;
     this.tChart1.Panel.Brush.Gradient.SigmaScale  = 0F;
     this.tChart1.Panel.Brush.Gradient.StartColor  = System.Drawing.Color.FromArgb(((int)(((byte)(70)))), ((int)(((byte)(70)))), ((int)(((byte)(70)))));
     this.tChart1.Panel.Brush.Gradient.UseMiddle   = false;
     this.tChart1.Series.Add(this.volume1);
     this.tChart1.Series.Add(this.fastLine1);
     this.tChart1.Size = new System.Drawing.Size(440, 205);
     //
     //
     //
     //
     //
     //
     //
     //
     //
     //
     //
     //
     this.tChart1.Walls.Back.Brush.Gradient.EndColor    = System.Drawing.Color.FromArgb(((int)(((byte)(120)))), ((int)(((byte)(120)))), ((int)(((byte)(120)))));
     this.tChart1.Walls.Back.Brush.Gradient.MiddleColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))));
     this.tChart1.Walls.Back.Brush.Gradient.StartColor  = System.Drawing.Color.FromArgb(((int)(((byte)(70)))), ((int)(((byte)(70)))), ((int)(((byte)(70)))));
     //
     //
     //
     this.tChart1.Walls.Back.Pen.Visible = false;
     //
     //
     //
     //
     //
     //
     //
     //
     //
     this.tChart1.Walls.Bottom.Brush.Gradient.EndColor    = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(0)))));
     this.tChart1.Walls.Bottom.Brush.Gradient.MiddleColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))));
     this.tChart1.Walls.Bottom.Brush.Gradient.SigmaFocus  = 0F;
     this.tChart1.Walls.Bottom.Brush.Gradient.SigmaScale  = 0F;
     this.tChart1.Walls.Bottom.Brush.Gradient.StartColor  = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
     //
     //
     //
     this.tChart1.Walls.Bottom.Pen.Visible = false;
     //
     //
     //
     //
     //
     //
     //
     //
     //
     this.tChart1.Walls.Left.Brush.Gradient.EndColor    = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(0)))));
     this.tChart1.Walls.Left.Brush.Gradient.MiddleColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))));
     this.tChart1.Walls.Left.Brush.Gradient.SigmaFocus  = 0F;
     this.tChart1.Walls.Left.Brush.Gradient.SigmaScale  = 0F;
     this.tChart1.Walls.Left.Brush.Gradient.StartColor  = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
     //
     //
     //
     this.tChart1.Walls.Left.Pen.Visible = false;
     //
     //
     //
     //
     //
     //
     this.tChart1.Walls.Right.Brush.Color = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(192)))));
     //
     //
     //
     this.tChart1.Walls.Right.Brush.Gradient.EndColor    = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(0)))));
     this.tChart1.Walls.Right.Brush.Gradient.MiddleColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))));
     this.tChart1.Walls.Right.Brush.Gradient.SigmaFocus  = 0F;
     this.tChart1.Walls.Right.Brush.Gradient.SigmaScale  = 0F;
     this.tChart1.Walls.Right.Brush.Gradient.StartColor  = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
     //
     //
     //
     this.tChart1.Walls.Right.Pen.Visible = false;
     //
     // volume1
     //
     //
     //
     //
     this.volume1.Brush.Color   = System.Drawing.Color.FromArgb(((int)(((byte)(200)))), ((int)(((byte)(230)))), ((int)(((byte)(90)))));
     this.volume1.ClickableLine = false;
     this.volume1.Color         = System.Drawing.Color.FromArgb(((int)(((byte)(200)))), ((int)(((byte)(230)))), ((int)(((byte)(90)))));
     this.volume1.ColorEach     = false;
     //
     //
     //
     this.volume1.LinePen.Color = System.Drawing.Color.FromArgb(((int)(((byte)(200)))), ((int)(((byte)(230)))), ((int)(((byte)(90)))));
     //
     //
     //
     //
     //
     //
     //
     //
     //
     this.volume1.Marks.Brush.Gradient.EndColor    = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(0)))));
     this.volume1.Marks.Brush.Gradient.MiddleColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))));
     this.volume1.Marks.Brush.Gradient.SigmaFocus  = 0F;
     this.volume1.Marks.Brush.Gradient.SigmaScale  = 0F;
     this.volume1.Marks.Brush.Gradient.StartColor  = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
     //
     //
     //
     this.volume1.Marks.Callout.ArrowHead     = Steema.TeeChart.Styles.ArrowHeadStyles.None;
     this.volume1.Marks.Callout.ArrowHeadSize = 8;
     //
     //
     //
     this.volume1.Marks.Callout.Brush.Color = System.Drawing.Color.Black;
     this.volume1.Marks.Callout.Distance    = 0;
     this.volume1.Marks.Callout.Draw3D      = false;
     this.volume1.Marks.Callout.Length      = 10;
     this.volume1.Marks.Callout.Style       = Steema.TeeChart.Styles.PointerStyles.Rectangle;
     this.volume1.Marks.Callout.Visible     = false;
     //
     //
     //
     //
     //
     //
     this.volume1.Marks.Font.Brush.Color = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
     this.volume1.Marks.Transparent      = true;
     //
     //
     //
     //
     //
     //
     this.volume1.Pointer.Brush.Color = System.Drawing.Color.Red;
     this.volume1.Pointer.Style       = Steema.TeeChart.Styles.PointerStyles.Rectangle;
     this.volume1.Title = "volume1";
     //
     //
     //
     this.volume1.XValues.DataMember = "X";
     this.volume1.XValues.Order      = Steema.TeeChart.Styles.ValueListOrder.Ascending;
     //
     //
     //
     this.volume1.YValues.DataMember = "Y";
     //
     // button1
     //
     this.button1.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
     this.button1.Location  = new System.Drawing.Point(32, 8);
     this.button1.Name      = "button1";
     this.button1.Size      = new System.Drawing.Size(75, 23);
     this.button1.TabIndex  = 0;
     this.button1.Text      = "Edit...";
     this.button1.Click    += new System.EventHandler(this.button1_Click);
     //
     // fastLine1
     //
     this.fastLine1.Color      = System.Drawing.Color.FromArgb(((int)(((byte)(90)))), ((int)(((byte)(150)))), ((int)(((byte)(220)))));
     this.fastLine1.ColorEach  = false;
     this.fastLine1.DataSource = this.volume1;
     this.fastLine1.Function   = this.pvoFunction1;
     //
     //
     //
     this.fastLine1.LinePen.Color = System.Drawing.Color.FromArgb(((int)(((byte)(90)))), ((int)(((byte)(150)))), ((int)(((byte)(220)))));
     //
     //
     //
     //
     //
     //
     //
     //
     //
     this.fastLine1.Marks.Brush.Gradient.EndColor    = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(0)))));
     this.fastLine1.Marks.Brush.Gradient.MiddleColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))));
     this.fastLine1.Marks.Brush.Gradient.SigmaFocus  = 0F;
     this.fastLine1.Marks.Brush.Gradient.SigmaScale  = 0F;
     this.fastLine1.Marks.Brush.Gradient.StartColor  = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
     //
     //
     //
     this.fastLine1.Marks.Callout.ArrowHead     = Steema.TeeChart.Styles.ArrowHeadStyles.None;
     this.fastLine1.Marks.Callout.ArrowHeadSize = 8;
     //
     //
     //
     this.fastLine1.Marks.Callout.Brush.Color = System.Drawing.Color.Black;
     this.fastLine1.Marks.Callout.Distance    = 0;
     this.fastLine1.Marks.Callout.Draw3D      = false;
     this.fastLine1.Marks.Callout.Length      = 10;
     this.fastLine1.Marks.Callout.Style       = Steema.TeeChart.Styles.PointerStyles.Rectangle;
     this.fastLine1.Marks.Callout.Visible     = false;
     //
     //
     //
     //
     //
     //
     this.fastLine1.Marks.Font.Brush.Color = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
     this.fastLine1.Marks.Transparent      = true;
     this.fastLine1.Title      = "fastLine1";
     this.fastLine1.TreatNulls = Steema.TeeChart.Styles.TreatNullsStyle.Ignore;
     //
     //
     //
     this.fastLine1.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending;
     //
     // pvoFunction1
     //
     this.pvoFunction1.Period = 12;
     //
     // Function_PVO
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize        = new System.Drawing.Size(440, 317);
     this.Name = "Function_PVO";
     this.panel1.ResumeLayout(false);
     this.chartContainer.ResumeLayout(false);
     this.ResumeLayout(false);
     this.PerformLayout();
 }
		public override void ViewDidLoad ()
		{
			base.ViewDidLoad ();
			
			//any additional setup after loading the view, typically from a nib.
			r1 = new System.Drawing.RectangleF(0,0,this.View.Bounds.Width/2,this.View.Bounds.Height/2);						
			r2 = new System.Drawing.RectangleF(this.View.Bounds.Width/2,0,this.View.Bounds.Width/2,this.View.Bounds.Height/2);						
			r3 = new System.Drawing.RectangleF(0,this.View.Bounds.Height/2,this.View.Bounds.Width,this.View.Bounds.Height/2);						
			//r3 = new System.Drawing.RectangleF(0,this.View.Bounds.Height/2,this.View.Bounds.Width/2,this.View.Bounds.Height/2);						
			// r4 = new System.Drawing.RectangleF(this.View.Bounds.Width/2,this.View.Bounds.Height/2,this.View.Bounds.Width/2,this.View.Bounds.Height/2);	
					
			chart1.Frame = r1;
			chart2.Frame = r2;
			chart3.Frame = r3;
			//chart4.Frame = r4;
			
			chart1.Header.Visible = false;
			chart1.Legend.Visible = false;
			chart2.Header.Visible = false;
			chart3.Header.Visible = false;
			//chart4.Header.Visible = false;
			
			this.View.AddSubview(chart1);
			this.View.AddSubview(chart2);
			this.View.AddSubview(chart3);
			//this.View.AddSubview(chart4);
			
			Steema.TeeChart.Themes.BlackIsBackTheme theme1 = new Steema.TeeChart.Themes.BlackIsBackTheme(chart1.Chart);
			Steema.TeeChart.Themes.BlackIsBackTheme theme2 = new Steema.TeeChart.Themes.BlackIsBackTheme(chart2.Chart);
			Steema.TeeChart.Themes.BlackIsBackTheme theme3 = new Steema.TeeChart.Themes.BlackIsBackTheme(chart3.Chart);
			//Steema.TeeChart.Themes.BlackIsBackTheme theme4 = new Steema.TeeChart.Themes.BlackIsBackTheme(chart4.Chart);
			
			theme1.Apply();
			theme2.Apply();
			theme3.Apply();
			//theme4.Apply();
			
			Steema.TeeChart.Themes.ColorPalettes.ApplyPalette(chart1.Chart,Steema.TeeChart.Themes.Theme.OnBlackPalette);	
			Steema.TeeChart.Themes.ColorPalettes.ApplyPalette(chart2.Chart,Steema.TeeChart.Themes.Theme.OnBlackPalette);	
			Steema.TeeChart.Themes.ColorPalettes.ApplyPalette(chart3.Chart,Steema.TeeChart.Themes.Theme.OnBlackPalette);	
			//Steema.TeeChart.Themes.ColorPalettes.ApplyPalette(chart4.Chart,Steema.TeeChart.Themes.Theme.OnBlackPalette);				
			
			// Chart 1
			chart1.Panel.Gradient.Visible = false;
			chart1.Panel.Color = UIColor.Black.CGColor;
			Steema.TeeChart.Styles.Donut series1 = new Steema.TeeChart.Styles.Donut();
			chart1.Aspect.View3D = false;
			series1.FillSampleValues(4);
			series1.Circled = true;
			series1.Pen.Width = 5;
			series1.ExplodeBiggest=20;
			series1.Marks.Transparent = true;
			series1.Marks.Font.Color = UIColor.FromRGB(255,255,255).CGColor;
			series1.Marks.Font.Size = 20;
			chart1.Series.Add(series1);
			  
			// Chart 2
			
			chart2.Aspect.View3D = false;
			chart2.Chart.Aspect.ZoomScrollStyle = Steema.TeeChart.Drawing.Aspect.ZoomScrollStyles.Manual;									
			chart2.Panel.Gradient.Visible = false;
			chart2.Panel.Color = UIColor.Black.CGColor;
			chart2.Walls.Back.Gradient.Visible = true;
			chart2.Walls.Back.Gradient.StartColor = UIColor.FromRGB(0,0,0).CGColor;
			chart2.Walls.Back.Gradient.EndColor = UIColor.DarkGray.CGColor;
			chart2.Axes.Bottom.Grid.Visible = false;
			chart2.Axes.Left.Increment = 15;
			chart2.Axes.Bottom.Labels.Font.Size = 15;
			chart2.Legend.Alignment = LegendAlignments.Bottom;
			chart2.Legend.Transparent = true;
			Steema.TeeChart.Styles.Line series2 = new Steema.TeeChart.Styles.Line();
			series2.Add(15);
			series2.Add(25);
			series2.Add(16);
			series2.Add(30);
			series2.Add(40);
			series2.Add(35);
			series2.Add(25);
			series2.Add(50);
			series2.Pointer.Visible = true;
			series2.Pointer.Style = Steema.TeeChart.Styles.PointerStyles.Circle;
			series2.LinePen.Width = 3;
			series2.Pointer.Pen.Visible = false;
			Steema.TeeChart.Styles.Area series3 = new Steema.TeeChart.Styles.Area();
			series3.Add(10);
			series3.Add(15);
			series3.Add(6);
			series3.Add(15);
			series3.Add(10);
			series3.Add(25);
			series3.Add(20);
			series3.Add(24);
			series3.AreaLinesPen.Visible = true;
			series3.AreaLinesPen.Width=3;
			series3.AreaLinesPen.Color = series3.Color;		
			series3.LinePen.Visible = true;
			series3.LinePen.Width = 5;
			series3.AreaLines.Visible = false;
			series3.AreaBrush.Gradient.Visible = true;
			series3.AreaBrush.Gradient.EndColor = UIColor.DarkGray.CGColor;
			chart2.Series.Add(series2);
			chart2.Series.Add(series3);

			// Chart 3
			
			chart3.Aspect.View3D = false;
			chart3.Legend.Visible = false;
			chart3.Chart.Aspect.ZoomScrollStyle = Steema.TeeChart.Drawing.Aspect.ZoomScrollStyles.Manual;									
			chart3.Panel.Gradient.Visible = false;
			chart3.Panel.Color = UIColor.Black.CGColor;
			chart3.Walls.Back.Gradient.Visible = true;
			chart3.Walls.Back.Gradient.StartColor = UIColor.Black.CGColor;
			chart3.Walls.Back.Gradient.EndColor = UIColor.FromRGB(79,79,79).CGColor;
			chart3.Axes.Left.Labels.Separation = 100;
			chart3.Axes.Left.Grid.Visible = true;
			chart3.Axes.Left.Grid.Color = UIColor.FromRGB(79,79,79).CGColor;
			chart3.Axes.Bottom.Grid.Color = UIColor.FromRGB(79,79,79).CGColor;
			chart3.Axes.Left.AxisPen.Visible = false;
			
			Steema.TeeChart.Styles.Candle candle = new Steema.TeeChart.Styles.Candle();
			Steema.TeeChart.Styles.Volume volume = new Steema.TeeChart.Styles.Volume();
			
			chart3.Series.Add(candle);
			chart3.Series.Add(volume);
			
			candle.FillSampleValues(70);
			candle.Pen.Visible = false;
			
			volume.FillSampleValues(70);
			volume.Color = UIColor.Yellow.CGColor;
			
			Steema.TeeChart.Axis axis = chart3.Axes.Left;
			//axis.AxisPen.Color = UIColor.Red.CGColor;
			axis.StartPosition = 0;
			axis.EndPosition = 72;
			axis.Labels.Font.Size = 12;
			
			Steema.TeeChart.Axis customAxis = new Steema.TeeChart.Axis(chart3.Chart);
			customAxis.OtherSide = true;
			chart3.Axes.Custom.Add(customAxis);
			//customAxis.AxisPen.Color = UIColor.Blue.CGColor;
			customAxis.StartPosition = 74;
			customAxis.EndPosition = 100;
			customAxis.Labels.Font.Color = UIColor.FromRGB(255,255,240).CGColor;
			customAxis.Labels.Font.Size = 12;
			customAxis.Grid.Visible = false;
			customAxis.AxisPen.Visible = false;
			
			volume.CustomVertAxis = customAxis;
			
			chart3.Legend.Alignment = LegendAlignments.Bottom;
			chart3.Legend.Transparent = true;
			chart3.Legend.Font.Size = 12;
			chart3.Legend.TopLeftPos = 0;
			
			chart3.Axes.Bottom.Labels.Font.Size = 12;

			
			/* Chart 4

			chart4.Aspect.View3D = false;
			chart4.Chart.Aspect.ZoomScrollStyle = Steema.TeeChart.Drawing.Aspect.ZoomScrollStyles.Manual;									
			chart4.Panel.Gradient.Visible = false;
			chart4.Panel.Color = UIColor.Black.CGColor;
			chart4.Walls.Back.Transparent=true;
			Steema.TeeChart.Styles.HorizBar series5 = new Steema.TeeChart.Styles.HorizBar();
			series5.Add(10);
			series5.Add(50);
			series5.Add(30);
			series5.Add(70);
			//series5.BarHeightPercent=100;
			//series5.CustomBarWidth= 80;
			series5.ColorEach = true;
			//series5.Pen.Width = 3;
			//series5.Gradient.Visible = true;
			chart4.Series.Add(series5);
			chart4.Axes.Bottom.Visible = false;
			*/
		}
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.volumeSeries1 = new Steema.TeeChart.Styles.Volume();
     this.button1       = new System.Windows.Forms.Button();
     this.gridBand1     = new Steema.TeeChart.Tools.GridBand();
     this.panel1.SuspendLayout();
     this.SuspendLayout();
     //
     // textBox1
     //
     this.textBox1.Name = "textBox1";
     this.textBox1.Size = new System.Drawing.Size(466, 63);
     this.textBox1.Text = "Volume series can be used in financial charts to display stock exchange informati" +
                          "on on traded volume.";
     //
     // panel1
     //
     this.panel1.Controls.Add(this.button1);
     this.panel1.Location = new System.Drawing.Point(0, 63);
     this.panel1.Name     = "panel1";
     this.panel1.Size     = new System.Drawing.Size(466, 34);
     //
     // tChart1
     //
     //
     // tChart1.Aspect
     //
     this.tChart1.Aspect.SmoothingMode     = System.Drawing.Drawing2D.SmoothingMode.HighQuality;
     this.tChart1.Aspect.TextRenderingHint = System.Drawing.Text.TextRenderingHint.ClearTypeGridFit;
     this.tChart1.Aspect.View3D            = false;
     //
     // tChart1.Header
     //
     this.tChart1.Header.Lines = new string[] {
         "Volume"
     };
     //
     // tChart1.Legend
     //
     this.tChart1.Legend.Visible = false;
     this.tChart1.Location       = new System.Drawing.Point(0, 97);
     this.tChart1.Name           = "tChart1";
     //
     // tChart1.Panel
     //
     //
     // tChart1.Panel.Brush
     //
     this.tChart1.Panel.Brush.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(255)));
     this.tChart1.Series.Add(this.volumeSeries1);
     this.tChart1.Size = new System.Drawing.Size(466, 189);
     this.tChart1.Tools.Add(this.gridBand1);
     //
     // volumeSeries1
     //
     //
     // volumeSeries1.Brush
     //
     this.volumeSeries1.Brush.Color   = System.Drawing.Color.Red;
     this.volumeSeries1.ClickableLine = false;
     //
     // volumeSeries1.LinePen
     //
     this.volumeSeries1.LinePen.Color = System.Drawing.Color.Red;
     //
     // volumeSeries1.Marks
     //
     //
     // volumeSeries1.Marks.Symbol
     //
     //
     // volumeSeries1.Marks.Symbol.Shadow
     //
     this.volumeSeries1.Marks.Symbol.Shadow.Height  = 1;
     this.volumeSeries1.Marks.Symbol.Shadow.Visible = true;
     this.volumeSeries1.Marks.Symbol.Shadow.Width   = 1;
     //
     // volumeSeries1.Pointer
     //
     this.volumeSeries1.Pointer.Style = Steema.TeeChart.Styles.PointerStyles.Rectangle;
     this.volumeSeries1.Title         = "volume1";
     //
     // volumeSeries1.XValues
     //
     this.volumeSeries1.XValues.DataMember = "X";
     this.volumeSeries1.XValues.Order      = Steema.TeeChart.Styles.ValueListOrder.Ascending;
     //
     // volumeSeries1.YValues
     //
     this.volumeSeries1.YValues.DataMember = "Y";
     //
     // button1
     //
     this.button1.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
     this.button1.Location  = new System.Drawing.Point(16, 8);
     this.button1.Name      = "button1";
     this.button1.TabIndex  = 0;
     this.button1.Text      = "&Edit...";
     this.button1.Click    += new System.EventHandler(this.button1_Click);
     //
     // gridBand1
     //
     this.gridBand1.Axis = this.tChart1.Axes.Left;
     //
     // gridBand1.Band1
     //
     this.gridBand1.Band1.Color = System.Drawing.Color.FromArgb(((System.Byte)(127)), ((System.Byte)(192)), ((System.Byte)(192)), ((System.Byte)(192)));
     //
     // gridBand1.Band2
     //
     this.gridBand1.Band2.Color = System.Drawing.Color.FromArgb(((System.Byte)(127)), ((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(255)));
     //
     // SeriesType_Volume
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize        = new System.Drawing.Size(466, 286);
     this.Name = "SeriesType_Volume";
     this.panel1.ResumeLayout(false);
     this.ResumeLayout(false);
 }
        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            this.checkBox1      = new System.Windows.Forms.CheckBox();
            this.volumeSeries1  = new Steema.TeeChart.Styles.Volume();
            this.numericUpDown1 = new System.Windows.Forms.NumericUpDown();
            this.gridBand1      = new Steema.TeeChart.Tools.GridBand();
            this.panel1.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.numericUpDown1)).BeginInit();
            this.SuspendLayout();
            //
            // textBox1
            //
            this.textBox1.Name = "textBox1";
            this.textBox1.Size = new System.Drawing.Size(466, 63);
            this.textBox1.Text = @"Volume Series introduces two properties: bool UseOrigin double Origin.
When UseOrigin is true, lines are displayed starting at Origin value. When false, lines start at minimum value.

volumeSeries1.Origin = 33 ;                
volumeSeries1.UseOrigin = true ;";
            //
            // panel1
            //
            this.panel1.Controls.Add(this.numericUpDown1);
            this.panel1.Controls.Add(this.checkBox1);
            this.panel1.Location = new System.Drawing.Point(0, 63);
            this.panel1.Name     = "panel1";
            this.panel1.Size     = new System.Drawing.Size(466, 34);
            //
            // tChart1
            //
            //
            // tChart1.Aspect
            //
            this.tChart1.Aspect.SmoothingMode     = System.Drawing.Drawing2D.SmoothingMode.HighQuality;
            this.tChart1.Aspect.TextRenderingHint = System.Drawing.Text.TextRenderingHint.ClearTypeGridFit;
            this.tChart1.Aspect.View3D            = false;
            //
            // tChart1.Header
            //
            this.tChart1.Header.Lines = new string[] {
                "Volume Series - using a Y Origin value"
            };
            this.tChart1.Header.Visible = false;
            //
            // tChart1.Legend
            //
            this.tChart1.Legend.Alignment = Steema.TeeChart.LegendAlignments.Top;
            this.tChart1.Legend.Visible   = false;
            this.tChart1.Location         = new System.Drawing.Point(0, 97);
            this.tChart1.Name             = "tChart1";
            //
            // tChart1.Panel
            //
            //
            // tChart1.Panel.Brush
            //
            this.tChart1.Panel.Brush.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(255)));
            this.tChart1.Series.Add(this.volumeSeries1);
            this.tChart1.Size = new System.Drawing.Size(466, 189);
            this.tChart1.Tools.Add(this.gridBand1);
            //
            // checkBox1
            //
            this.checkBox1.Checked         = true;
            this.checkBox1.CheckState      = System.Windows.Forms.CheckState.Checked;
            this.checkBox1.FlatStyle       = System.Windows.Forms.FlatStyle.Flat;
            this.checkBox1.Location        = new System.Drawing.Point(13, 7);
            this.checkBox1.Name            = "checkBox1";
            this.checkBox1.Size            = new System.Drawing.Size(107, 21);
            this.checkBox1.TabIndex        = 0;
            this.checkBox1.Text            = "&Y Origin:";
            this.checkBox1.CheckedChanged += new System.EventHandler(this.checkBox1_CheckedChanged);
            //
            // volumeSeries1
            //
            //
            // volumeSeries1.Brush
            //
            this.volumeSeries1.Brush.Color   = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(0)), ((System.Byte)(128)), ((System.Byte)(0)));
            this.volumeSeries1.ClickableLine = false;
            //
            // volumeSeries1.LinePen
            //
            this.volumeSeries1.LinePen.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(0)), ((System.Byte)(128)), ((System.Byte)(0)));
            //
            // volumeSeries1.Marks
            //
            //
            // volumeSeries1.Marks.Symbol
            //
            //
            // volumeSeries1.Marks.Symbol.Shadow
            //
            this.volumeSeries1.Marks.Symbol.Shadow.Height  = 1;
            this.volumeSeries1.Marks.Symbol.Shadow.Visible = true;
            this.volumeSeries1.Marks.Symbol.Shadow.Width   = 1;
            //
            // volumeSeries1.Pointer
            //
            this.volumeSeries1.Pointer.Style = Steema.TeeChart.Styles.PointerStyles.Rectangle;
            this.volumeSeries1.Title         = "volume1";
            this.volumeSeries1.UseOrigin     = true;
            //
            // volumeSeries1.XValues
            //
            this.volumeSeries1.XValues.DataMember = "X";
            this.volumeSeries1.XValues.Order      = Steema.TeeChart.Styles.ValueListOrder.Ascending;
            //
            // volumeSeries1.YValues
            //
            this.volumeSeries1.YValues.DataMember = "Y";
            //
            // numericUpDown1
            //
            this.numericUpDown1.Location = new System.Drawing.Point(128, 7);
            this.numericUpDown1.Maximum  = new System.Decimal(new int[] {
                20000,
                0,
                0,
                0
            });
            this.numericUpDown1.Minimum = new System.Decimal(new int[] {
                20000,
                0,
                0,
                -2147483648
            });
            this.numericUpDown1.Name      = "numericUpDown1";
            this.numericUpDown1.Size      = new System.Drawing.Size(52, 20);
            this.numericUpDown1.TabIndex  = 1;
            this.numericUpDown1.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
            this.numericUpDown1.Value     = new System.Decimal(new int[] {
                33,
                0,
                0,
                0
            });
            this.numericUpDown1.TextChanged  += new System.EventHandler(this.numericUpDown1_ValueChanged);
            this.numericUpDown1.ValueChanged += new System.EventHandler(this.numericUpDown1_ValueChanged);
            //
            // gridBand1
            //
            this.gridBand1.Axis = this.tChart1.Axes.Left;
            //
            // gridBand1.Band1
            //
            this.gridBand1.Band1.Color = System.Drawing.Color.FromArgb(((System.Byte)(127)), ((System.Byte)(224)), ((System.Byte)(224)), ((System.Byte)(224)));
            //
            // gridBand1.Band2
            //
            this.gridBand1.Band2.Color = System.Drawing.Color.FromArgb(((System.Byte)(127)), ((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(255)));
            //
            // Volume_Origin
            //
            this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
            this.ClientSize        = new System.Drawing.Size(466, 286);
            this.Name = "Volume_Origin";
            this.panel1.ResumeLayout(false);
            ((System.ComponentModel.ISupportInitialize)(this.numericUpDown1)).EndInit();
            this.ResumeLayout(false);
        }
Example #7
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.fastLineSeries1 = new Steema.TeeChart.Styles.FastLine();
     this.fastLineSeries2 = new Steema.TeeChart.Styles.FastLine();
     this.volumeSeries1   = new Steema.TeeChart.Styles.Volume();
     this.candleSeries1   = new Steema.TeeChart.Styles.Candle();
     this.label1          = new System.Windows.Forms.Label();
     this.checkBox1       = new System.Windows.Forms.CheckBox();
     this.checkBox2       = new System.Windows.Forms.CheckBox();
     this.checkBox3       = new System.Windows.Forms.CheckBox();
     this.gridBand1       = new Steema.TeeChart.Tools.GridBand();
     this.gridBand2       = new Steema.TeeChart.Tools.GridBand();
     this.panel1.SuspendLayout();
     this.SuspendLayout();
     //
     // textBox1
     //
     this.textBox1.BackColor = System.Drawing.Color.AliceBlue;
     this.textBox1.Name      = "textBox1";
     this.textBox1.Size      = new System.Drawing.Size(592, 73);
     this.textBox1.Text      = "This chart contains 3 custom axes and several series associated to all axes.  The" +
                               " example shows how to restrict scroll to some axes only. Most of the code can be" +
                               " done visually at design-time.\r\n\r\nTry to scroll vertically using the right mouse" +
                               " button.";
     //
     // panel1
     //
     this.panel1.BackColor = System.Drawing.SystemColors.Control;
     this.panel1.Controls.Add(this.checkBox3);
     this.panel1.Controls.Add(this.checkBox2);
     this.panel1.Controls.Add(this.checkBox1);
     this.panel1.Controls.Add(this.label1);
     this.panel1.Name = "panel1";
     this.panel1.Size = new System.Drawing.Size(592, 31);
     //
     // tChart1
     //
     //
     // tChart1.Aspect
     //
     this.tChart1.Aspect.SmoothingMode     = System.Drawing.Drawing2D.SmoothingMode.HighQuality;
     this.tChart1.Aspect.TextRenderingHint = System.Drawing.Text.TextRenderingHint.ClearTypeGridFit;
     this.tChart1.Aspect.View3D            = false;
     //
     // tChart1.Header
     //
     this.tChart1.Header.Lines = new string[] {
         "tChart1"
     };
     this.tChart1.Header.Visible = false;
     //
     // tChart1.Legend
     //
     this.tChart1.Legend.Visible = false;
     this.tChart1.Location       = new System.Drawing.Point(0, 104);
     this.tChart1.Name           = "tChart1";
     //
     // tChart1.Panel
     //
     //
     // tChart1.Panel.Brush
     //
     this.tChart1.Panel.Brush.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(255)));
     //
     // tChart1.Panel.Gradient
     //
     this.tChart1.Panel.Brush.Gradient.MiddleColor = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(192)), ((System.Byte)(192)), ((System.Byte)(255)));
     this.tChart1.Panel.Brush.Gradient.StartColor  = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(192)), ((System.Byte)(192)), ((System.Byte)(255)));
     this.tChart1.Panel.Brush.Gradient.UseMiddle   = true;
     this.tChart1.Panel.Brush.Gradient.Visible     = true;
     //
     // tChart1.Panel.Gradient
     //
     this.tChart1.Panel.Gradient.MiddleColor = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(192)), ((System.Byte)(192)), ((System.Byte)(255)));
     this.tChart1.Panel.Gradient.StartColor  = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(192)), ((System.Byte)(192)), ((System.Byte)(255)));
     this.tChart1.Panel.Gradient.UseMiddle   = true;
     this.tChart1.Panel.Gradient.Visible     = true;
     this.tChart1.Size = new System.Drawing.Size(592, 264);
     //
     // tChart1.Walls
     //
     //
     // tChart1.Walls.Back
     //
     //
     // tChart1.Walls.Back.Pen
     //
     this.tChart1.Walls.Back.Pen.Visible = false;
     this.tChart1.Scroll += new System.EventHandler(this.tChart1_Scroll);
     //
     // fastLineSeries1
     //
     this.fastLineSeries1.Cursor = System.Windows.Forms.Cursors.Cross;
     //
     // fastLineSeries1.LinePen
     //
     this.fastLineSeries1.LinePen.Color = System.Drawing.Color.Red;
     this.fastLineSeries1.Title         = "fastLineSeries1";
     //
     // fastLineSeries1.XValues
     //
     this.fastLineSeries1.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending;
     //
     // fastLineSeries2
     //
     this.fastLineSeries2.Cursor = System.Windows.Forms.Cursors.Cross;
     //
     // fastLineSeries2.LinePen
     //
     this.fastLineSeries2.LinePen.Color = System.Drawing.Color.Green;
     this.fastLineSeries2.Title         = "fastLineSeries2";
     //
     // fastLineSeries2.XValues
     //
     this.fastLineSeries2.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending;
     //
     // volumeSeries1
     //
     //
     // volumeSeries1.Brush
     //
     this.volumeSeries1.Brush.Color   = System.Drawing.Color.Blue;
     this.volumeSeries1.ClickableLine = false;
     this.volumeSeries1.Cursor        = System.Windows.Forms.Cursors.Cross;
     //
     // volumeSeries1.LinePen
     //
     this.volumeSeries1.LinePen.Color = System.Drawing.Color.Blue;
     //
     // volumeSeries1.Pointer
     //
     this.volumeSeries1.Pointer.Style = Steema.TeeChart.Styles.PointerStyles.Rectangle;
     this.volumeSeries1.Title         = "volumeSeries1";
     //
     // volumeSeries1.XValues
     //
     this.volumeSeries1.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending;
     //
     // candleSeries1
     //
     //
     // candleSeries1.Brush
     //
     this.candleSeries1.Brush.Color = System.Drawing.Color.Yellow;
     this.candleSeries1.CloseValues = this.candleSeries1.YValues;
     this.candleSeries1.Cursor      = System.Windows.Forms.Cursors.Cross;
     this.candleSeries1.DateValues  = this.candleSeries1.XValues;
     //
     // candleSeries1.Pointer
     //
     this.candleSeries1.Pointer.Draw3D = false;
     this.candleSeries1.Pointer.Style  = Steema.TeeChart.Styles.PointerStyles.Rectangle;
     this.candleSeries1.Title          = "candleSeries1";
     //
     // candleSeries1.XValues
     //
     this.candleSeries1.XValues.DateTime = true;
     this.candleSeries1.XValues.Order    = Steema.TeeChart.Styles.ValueListOrder.Ascending;
     //
     // label1
     //
     this.label1.AutoSize    = true;
     this.label1.Location    = new System.Drawing.Point(8, 8);
     this.label1.Name        = "label1";
     this.label1.Size        = new System.Drawing.Size(153, 16);
     this.label1.TabIndex    = 0;
     this.label1.Text        = "Enable vertical scroll on axis :";
     this.label1.UseMnemonic = false;
     //
     // checkBox1
     //
     this.checkBox1.Checked    = true;
     this.checkBox1.CheckState = System.Windows.Forms.CheckState.Checked;
     this.checkBox1.FlatStyle  = System.Windows.Forms.FlatStyle.Flat;
     this.checkBox1.Location   = new System.Drawing.Point(200, 2);
     this.checkBox1.Name       = "checkBox1";
     this.checkBox1.Size       = new System.Drawing.Size(56, 24);
     this.checkBox1.TabIndex   = 1;
     this.checkBox1.Text       = "&Red";
     //
     // checkBox2
     //
     this.checkBox2.Checked    = true;
     this.checkBox2.CheckState = System.Windows.Forms.CheckState.Checked;
     this.checkBox2.FlatStyle  = System.Windows.Forms.FlatStyle.Flat;
     this.checkBox2.Location   = new System.Drawing.Point(256, 2);
     this.checkBox2.Name       = "checkBox2";
     this.checkBox2.Size       = new System.Drawing.Size(56, 24);
     this.checkBox2.TabIndex   = 2;
     this.checkBox2.Text       = "&Blue";
     //
     // checkBox3
     //
     this.checkBox3.Checked    = true;
     this.checkBox3.CheckState = System.Windows.Forms.CheckState.Checked;
     this.checkBox3.FlatStyle  = System.Windows.Forms.FlatStyle.Flat;
     this.checkBox3.Location   = new System.Drawing.Point(320, 2);
     this.checkBox3.Name       = "checkBox3";
     this.checkBox3.Size       = new System.Drawing.Size(64, 24);
     this.checkBox3.TabIndex   = 3;
     this.checkBox3.Text       = "&Green";
     //
     // gridBand1
     //
     //
     // gridBand1.Band1
     //
     this.gridBand1.Band1.Color           = System.Drawing.Color.FromArgb(((System.Byte)(0)), ((System.Byte)(211)), ((System.Byte)(211)), ((System.Byte)(211)));
     this.gridBand1.Band1.ForegroundColor = System.Drawing.Color.White;
     //
     // gridBand1.Band2
     //
     this.gridBand1.Band2.Color = System.Drawing.Color.FromArgb(((System.Byte)(25)), ((System.Byte)(0)), ((System.Byte)(0)), ((System.Byte)(0)));
     //
     // gridBand2
     //
     //
     // gridBand2.Band1
     //
     this.gridBand2.Band1.Color           = System.Drawing.Color.FromArgb(((System.Byte)(0)), ((System.Byte)(211)), ((System.Byte)(211)), ((System.Byte)(211)));
     this.gridBand2.Band1.ForegroundColor = System.Drawing.Color.White;
     //
     // gridBand2.Band2
     //
     this.gridBand2.Band2.Color = System.Drawing.Color.FromArgb(((System.Byte)(25)), ((System.Byte)(0)), ((System.Byte)(0)), ((System.Byte)(0)));
     //
     // Axis_MultiScroll
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize        = new System.Drawing.Size(592, 368);
     this.Name = "Axis_MultiScroll";
     this.panel1.ResumeLayout(false);
     this.ResumeLayout(false);
 }