public override void ViewDidLoad() { base.ViewDidLoad(); tChart1.Frame = this.View.Frame; tChart1.Series.Add(line1 = new Line()); tChart1.Series.Add(line2 = new Line()); line1.FillSampleValues(); line2.FillSampleValues(); tChart1.Axes.Bottom.Grid.Visible = false; tChart1.Aspect.View3D = false; tChart1.Tools.Add(colorlinetTool = new Steema.TeeChart.Tools.ColorLine()); colorlinetTool.Axis = tChart1.Axes.Bottom; colorlinetTool.Value = 10; colorlinetTool.Pen.Color = Color.Red; colorlinetTool.Pen.Width = 2; colorlinetTool.ColorLineClickTolerance = 10; colorlinetTool.AllowDrag = true; colorlinetTool.DragRepaint = true; tChart1.Panning.Active = true; tChart1.Panning.Allow = ScrollModes.Both; tChart1.Zoom.Active = true; tChart1.Axes.Left.Increment = line1.YValues.Maximum / 5; tChart1.Walls.Visible = false; tChart1.Legend.Alignment = LegendAlignments.Bottom; tChart1.Legend.Transparent = true; tChart1.Chart.Title.Text = "Chart with a ColorLine Tool"; tChart1.Chart.Title.Font.Color = Color.Gray; this.View.AddSubview(tChart1); }
/// <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(Legend_Scroll)); this.lineSeries1 = new Steema.TeeChart.Styles.Line(); this.label1 = new System.Windows.Forms.Label(); this.trackBar1 = new System.Windows.Forms.TrackBar(); this.label2 = new System.Windows.Forms.Label(); this.colorLine1 = new Steema.TeeChart.Tools.ColorLine(); this.gridBand1 = new Steema.TeeChart.Tools.GridBand(); this.panel1.SuspendLayout(); this.chartContainer.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.trackBar1)).BeginInit(); this.SuspendLayout(); // // textBox1 // this.textBox1.Size = new System.Drawing.Size(466, 63); this.textBox1.Text = "The Chart Legend can be scrolled, to show values starting from our desired point." + " This is done using the Legend.FirstValue property:\r\n\r\ntChart1.Legend.FirstValue" + " = 123;"; // // panel1 // this.panel1.Controls.Add(this.label2); this.panel1.Controls.Add(this.trackBar1); this.panel1.Controls.Add(this.label1); this.panel1.Location = new System.Drawing.Point(0, 63); this.panel1.Size = new System.Drawing.Size(466, 41); // // tChart1 // // // // this.tChart1.Aspect.ZOffset = 0; // // // this.tChart1.Header.Lines = new string[] { "tChart1" }; this.tChart1.Header.Visible = false; // // // // // // this.tChart1.Panel.Brush.Color = System.Drawing.Color.FromArgb(((int)(((byte)(254)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); this.tChart1.Series.Add(this.lineSeries1); this.tChart1.Size = new System.Drawing.Size(466, 182); this.tChart1.Tools.Add(this.colorLine1); this.tChart1.Tools.Add(this.gridBand1); // // // // // // // // // this.tChart1.Walls.Bottom.Pen.Visible = false; this.tChart1.Walls.Bottom.Size = 5; // // // // // // this.tChart1.Walls.Left.Pen.Visible = false; this.tChart1.Walls.Left.Size = 5; // // chartContainer // this.chartContainer.Location = new System.Drawing.Point(0, 104); this.chartContainer.Size = new System.Drawing.Size(466, 182); // // lineSeries1 // // // // this.lineSeries1.Brush.Color = System.Drawing.Color.FromArgb(((int)(((byte)(68)))), ((int)(((byte)(102)))), ((int)(((byte)(163))))); this.lineSeries1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(68)))), ((int)(((byte)(102)))), ((int)(((byte)(163))))); this.lineSeries1.ColorEach = false; // // // this.lineSeries1.LinePen.Color = System.Drawing.Color.FromArgb(((int)(((byte)(41)))), ((int)(((byte)(61)))), ((int)(((byte)(98))))); // // // // // // this.lineSeries1.Marks.Callout.ArrowHead = Steema.TeeChart.Styles.ArrowHeadStyles.None; this.lineSeries1.Marks.Callout.ArrowHeadSize = 8; // // // this.lineSeries1.Marks.Callout.Brush.Color = System.Drawing.Color.Black; this.lineSeries1.Marks.Callout.Distance = 0; this.lineSeries1.Marks.Callout.Draw3D = false; this.lineSeries1.Marks.Callout.Length = 10; this.lineSeries1.Marks.Callout.Style = Steema.TeeChart.Styles.PointerStyles.Rectangle; this.lineSeries1.Marks.Callout.Visible = false; // // // this.lineSeries1.Pointer.Style = Steema.TeeChart.Styles.PointerStyles.Rectangle; this.lineSeries1.Title = "lineSeries1"; // // // this.lineSeries1.XValues.DataMember = "X"; this.lineSeries1.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; // // // this.lineSeries1.YValues.DataMember = "Y"; // // label1 // this.label1.AutoSize = true; this.label1.Location = new System.Drawing.Point(20, 11); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(64, 13); this.label1.TabIndex = 0; this.label1.Text = "&First value : "; this.label1.TextAlign = System.Drawing.ContentAlignment.TopRight; // // trackBar1 // this.trackBar1.AutoSize = false; this.trackBar1.Location = new System.Drawing.Point(87, 10); this.trackBar1.Maximum = 99; this.trackBar1.Name = "trackBar1"; this.trackBar1.Size = new System.Drawing.Size(133, 19); this.trackBar1.TabIndex = 1; this.trackBar1.TickFrequency = 5; this.trackBar1.ValueChanged += new System.EventHandler(this.trackBar1_ValueChanged); // // label2 // this.label2.AutoSize = true; this.label2.Location = new System.Drawing.Point(227, 11); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(13, 13); this.label2.TabIndex = 2; this.label2.Text = "0"; this.label2.UseMnemonic = false; // // colorLine1 // this.colorLine1.Axis = this.tChart1.Axes.Bottom; this.colorLine1.EndDragLine += new Steema.TeeChart.Tools.ColorLineToolOnDragEventHandler(this.colorLine1_EndDragLine); this.colorLine1.DragLine += new System.EventHandler(this.colorLine1_DragLine); // // gridBand1 // this.gridBand1.Axis = this.tChart1.Axes.Left; // // // this.gridBand1.Band1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(127)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); // // // this.gridBand1.Band2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(127)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); // // Legend_Scroll // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(466, 286); this.Name = "Legend_Scroll"; this.panel1.ResumeLayout(false); this.panel1.PerformLayout(); this.chartContainer.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.trackBar1)).EndInit(); 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() { this.lineSeries1 = new Steema.TeeChart.Styles.Line(); this.lineSeries2 = new Steema.TeeChart.Styles.Line(); this.colorLine1 = new Steema.TeeChart.Tools.ColorLine(); this.colorLine2 = new Steema.TeeChart.Tools.ColorLine(); this.label1 = new System.Windows.Forms.Label(); this.label2 = new System.Windows.Forms.Label(); this.textBox2 = new System.Windows.Forms.TextBox(); this.textBox3 = new System.Windows.Forms.TextBox(); this.panel1.SuspendLayout(); this.SuspendLayout(); // // textBox1 // this.textBox1.Name = "textBox1"; this.textBox1.Size = new System.Drawing.Size(425, 104); this.textBox1.Text = @"Calculating and charting the Upper and Lower limits of an SPC Quality Control series. This example includes formulae to calculate the SPC upper and lower limits. The Chart displays 2 series, one with the number of ""good"" parts and another with the percent of ""bad"" parts. With these two Series, the example calculates two values: the upper and lower limits. These limits are displayed using another two series. Correctness of calculation depends very much on your particular country rules."; // // panel1 // this.panel1.Controls.Add(this.textBox3); this.panel1.Controls.Add(this.textBox2); this.panel1.Controls.Add(this.label2); this.panel1.Controls.Add(this.label1); this.panel1.Location = new System.Drawing.Point(0, 104); this.panel1.Name = "panel1"; this.panel1.Size = new System.Drawing.Size(425, 37); // // tChart1 // // // tChart1.Aspect // this.tChart1.Aspect.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.HighQuality; this.tChart1.Aspect.TextRenderingHint = System.Drawing.Text.TextRenderingHint.ClearTypeGridFit; // // tChart1.Axes // // // tChart1.Axes.Left // this.tChart1.Axes.Left.Automatic = false; this.tChart1.Axes.Left.AutomaticMaximum = false; this.tChart1.Axes.Left.AutomaticMinimum = false; this.tChart1.Axes.Left.Maximum = 1200; this.tChart1.Axes.Left.Minimum = 0; // // tChart1.Axes.Left.Title // this.tChart1.Axes.Left.Title.Caption = "Production (number of pieces)"; this.tChart1.Axes.Left.Title.Lines = new string[] { "Production (number of pieces)" }; // // tChart1.Axes.Right // this.tChart1.Axes.Right.Automatic = false; this.tChart1.Axes.Right.AutomaticMaximum = false; this.tChart1.Axes.Right.AutomaticMinimum = false; this.tChart1.Axes.Right.Maximum = 10; this.tChart1.Axes.Right.Minimum = 0; // // tChart1.Axes.Right.Title // this.tChart1.Axes.Right.Title.Caption = "SPC (%)"; this.tChart1.Axes.Right.Title.Lines = new string[] { "SPC (%)" }; // // tChart1.Header // this.tChart1.Header.Lines = new string[] { "Quality Control Chart" }; this.tChart1.Location = new System.Drawing.Point(0, 141); 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.lineSeries1); this.tChart1.Series.Add(this.lineSeries2); this.tChart1.Size = new System.Drawing.Size(425, 129); this.tChart1.Tools.Add(this.colorLine1); this.tChart1.Tools.Add(this.colorLine2); // // tChart1.Walls // // // tChart1.Walls.Bottom // // // tChart1.Walls.Bottom.Pen // this.tChart1.Walls.Bottom.Pen.Visible = false; this.tChart1.Walls.Bottom.Size = 5; // // tChart1.Walls.Left // // // tChart1.Walls.Left.Pen // this.tChart1.Walls.Left.Pen.Visible = false; this.tChart1.Walls.Left.Size = 5; this.tChart1.Click += new System.EventHandler(this.tChart1_Click); // // lineSeries1 // // // lineSeries1.Brush // this.lineSeries1.Brush.Color = System.Drawing.Color.Red; // // lineSeries1.Marks // // // lineSeries1.Marks.Symbol // // // lineSeries1.Marks.Symbol.Shadow // this.lineSeries1.Marks.Symbol.Shadow.Height = 1; this.lineSeries1.Marks.Symbol.Shadow.Visible = true; this.lineSeries1.Marks.Symbol.Shadow.Width = 1; // // lineSeries1.Pointer // this.lineSeries1.Pointer.Style = Steema.TeeChart.Styles.PointerStyles.Rectangle; this.lineSeries1.Title = "Good"; // // lineSeries1.XValues // this.lineSeries1.XValues.DataMember = "X"; this.lineSeries1.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; // // lineSeries1.YValues // this.lineSeries1.YValues.DataMember = "Y"; // // lineSeries2 // // // lineSeries2.Brush // this.lineSeries2.Brush.Color = System.Drawing.Color.Green; // // lineSeries2.Marks // // // lineSeries2.Marks.Symbol // // // lineSeries2.Marks.Symbol.Shadow // this.lineSeries2.Marks.Symbol.Shadow.Height = 1; this.lineSeries2.Marks.Symbol.Shadow.Visible = true; this.lineSeries2.Marks.Symbol.Shadow.Width = 1; // // lineSeries2.Pointer // this.lineSeries2.Pointer.Style = Steema.TeeChart.Styles.PointerStyles.Rectangle; this.lineSeries2.Title = "Bad"; this.lineSeries2.VertAxis = Steema.TeeChart.Styles.VerticalAxis.Right; // // lineSeries2.XValues // this.lineSeries2.XValues.DataMember = "X"; this.lineSeries2.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; // // lineSeries2.YValues // this.lineSeries2.YValues.DataMember = "Y"; // // colorLine1 // this.colorLine1.Axis = this.tChart1.Axes.Right; this.colorLine1.DragLine += new System.EventHandler(this.colorLine1_DragLine); // // colorLine2 // this.colorLine2.Axis = this.tChart1.Axes.Right; this.colorLine2.DragLine += new System.EventHandler(this.colorLine2_DragLine); // // label1 // this.label1.AutoSize = true; this.label1.Location = new System.Drawing.Point(12, 13); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(58, 16); this.label1.TabIndex = 0; this.label1.Text = "Upper limit"; this.label1.UseMnemonic = false; // // label2 // this.label2.AutoSize = true; this.label2.Location = new System.Drawing.Point(160, 13); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(58, 16); this.label2.TabIndex = 1; this.label2.Text = "Lower limit"; this.label2.UseMnemonic = false; // // textBox2 // this.textBox2.Location = new System.Drawing.Point(87, 11); this.textBox2.Name = "textBox2"; this.textBox2.ReadOnly = true; this.textBox2.Size = new System.Drawing.Size(48, 20); this.textBox2.TabIndex = 2; this.textBox2.Text = "0"; this.textBox2.TextAlign = System.Windows.Forms.HorizontalAlignment.Right; // // textBox3 // this.textBox3.Location = new System.Drawing.Point(232, 11); this.textBox3.Name = "textBox3"; this.textBox3.ReadOnly = true; this.textBox3.Size = new System.Drawing.Size(48, 20); this.textBox3.TabIndex = 3; this.textBox3.Text = "0"; this.textBox3.TextAlign = System.Windows.Forms.HorizontalAlignment.Right; // // Function_SPC // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(425, 270); this.Name = "Function_SPC"; 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.components = new System.ComponentModel.Container(); this.lineSeries1 = new Steema.TeeChart.Styles.Line(); this.momentumDivision1 = new Steema.TeeChart.Functions.MomentumDivision(); this.lineSeries2 = new Steema.TeeChart.Styles.Line(); this.axis1 = new Steema.TeeChart.Axis(this.tChart1.Chart); this.label1 = new System.Windows.Forms.Label(); this.numericUpDown1 = new System.Windows.Forms.NumericUpDown(); this.checkBox1 = new System.Windows.Forms.CheckBox(); this.colorLine1 = new Steema.TeeChart.Tools.ColorLine(); this.panel1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.numericUpDown1)).BeginInit(); this.SuspendLayout(); // // textBox1 // this.textBox1.Name = "textBox1"; this.textBox1.Size = new System.Drawing.Size(425, 64); this.textBox1.Text = "The Momentum Division function calculates the ratio of a point value compared to " + "the previous N point value.\r\n\r\nThe formula is : Momentum = 100 * Value / Previ" + "ousValue"; // // panel1 // this.panel1.Controls.Add(this.checkBox1); this.panel1.Controls.Add(this.numericUpDown1); this.panel1.Controls.Add(this.label1); this.panel1.Location = new System.Drawing.Point(0, 64); this.panel1.Name = "panel1"; this.panel1.Size = new System.Drawing.Size(425, 37); // // tChart1 // // // tChart1.Aspect // this.tChart1.Aspect.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.HighQuality; this.tChart1.Aspect.TextRenderingHint = System.Drawing.Text.TextRenderingHint.ClearTypeGridFit; // // tChart1.Axes // this.tChart1.Axes.Custom.Add(this.axis1); // // tChart1.Axes.Left // this.tChart1.Axes.Left.EndPosition = 80; this.tChart1.Axes.Left.LogarithmicBase = 2; // // tChart1.Header // this.tChart1.Header.Lines = new string[] { "Momentum Div. function" }; this.tChart1.Location = new System.Drawing.Point(0, 101); 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.lineSeries1); this.tChart1.Series.Add(this.lineSeries2); this.tChart1.Size = new System.Drawing.Size(425, 169); this.tChart1.Tools.Add(this.colorLine1); // // tChart1.Walls // // // tChart1.Walls.Bottom // // // tChart1.Walls.Bottom.Pen // this.tChart1.Walls.Bottom.Pen.Visible = false; this.tChart1.Walls.Bottom.Size = 5; // // tChart1.Walls.Left // // // tChart1.Walls.Left.Pen // this.tChart1.Walls.Left.Pen.Visible = false; this.tChart1.Walls.Left.Size = 5; // // lineSeries1 // // // lineSeries1.Brush // //this.lineSeries1.Brush.Color = System.Drawing.Color.Red; // // lineSeries1.Marks // // // lineSeries1.Marks.Symbol // // // lineSeries1.Marks.Symbol.Shadow // this.lineSeries1.Marks.Symbol.Shadow.Height = 1; this.lineSeries1.Marks.Symbol.Shadow.Visible = true; this.lineSeries1.Marks.Symbol.Shadow.Width = 1; // // lineSeries1.Pointer // this.lineSeries1.Pointer.Style = Steema.TeeChart.Styles.PointerStyles.Rectangle; this.lineSeries1.Title = "Source"; // // lineSeries1.XValues // this.lineSeries1.XValues.DataMember = "X"; this.lineSeries1.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; // // lineSeries1.YValues // this.lineSeries1.YValues.DataMember = "Y"; // // momentumDivision1 // this.momentumDivision1.Period = 1; // // lineSeries2 // // // lineSeries2.Brush // //this.lineSeries2.Brush.Color = System.Drawing.Color.Green; this.lineSeries2.CustomVertAxis = this.axis1; this.lineSeries2.DataSource = this.lineSeries1; this.lineSeries2.Function = this.momentumDivision1; // // lineSeries2.Marks // // // lineSeries2.Marks.Symbol // // // lineSeries2.Marks.Symbol.Shadow // this.lineSeries2.Marks.Symbol.Shadow.Height = 1; this.lineSeries2.Marks.Symbol.Shadow.Visible = true; this.lineSeries2.Marks.Symbol.Shadow.Width = 1; // // lineSeries2.Pointer // this.lineSeries2.Pointer.Style = Steema.TeeChart.Styles.PointerStyles.Rectangle; this.lineSeries2.Title = "lineSeries2"; this.lineSeries2.VertAxis = Steema.TeeChart.Styles.VerticalAxis.Custom; // // lineSeries2.XValues // this.lineSeries2.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; // // axis1 // this.axis1.Horizontal = false; this.axis1.LogarithmicBase = 2; this.axis1.OtherSide = false; this.axis1.StartPosition = 90; this.axis1.TickOnLabelsOnly = false; // // axis1.Title // this.axis1.Title.Angle = 90; this.axis1.Title.Caption = "Mom. div."; this.axis1.Title.Lines = new string[] { "Mom. div." }; // // label1 // this.label1.AutoSize = true; this.label1.Location = new System.Drawing.Point(18, 10); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(40, 16); this.label1.TabIndex = 0; this.label1.Text = "&Period:"; this.label1.TextAlign = System.Drawing.ContentAlignment.TopRight; // // numericUpDown1 // this.numericUpDown1.Location = new System.Drawing.Point(64, 8); this.numericUpDown1.Name = "numericUpDown1"; this.numericUpDown1.Size = new System.Drawing.Size(48, 20); this.numericUpDown1.TabIndex = 1; this.numericUpDown1.TextAlign = System.Windows.Forms.HorizontalAlignment.Right; this.numericUpDown1.Value = new System.Decimal(new int[] { 10, 0, 0, 0 }); this.numericUpDown1.TextChanged += new System.EventHandler(this.numericUpDown1_TextChanged); this.numericUpDown1.ValueChanged += new System.EventHandler(this.numericUpDown1_ValueChanged); // // 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(160, 8); this.checkBox1.Name = "checkBox1"; this.checkBox1.Size = new System.Drawing.Size(117, 20); this.checkBox1.TabIndex = 2; this.checkBox1.Text = "&Show momentum"; this.checkBox1.CheckedChanged += new System.EventHandler(this.checkBox1_CheckedChanged); // // colorLine1 // this.colorLine1.Axis = this.tChart1.Axes.Left; // // Function_MomentumDiv // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(425, 270); this.Name = "Function_MomentumDiv"; this.panel1.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.numericUpDown1)).EndInit(); this.ResumeLayout(false); }
public MainPage() { InitializeComponent(); AreaLineChart = new ChartView(); area1 = new Steema.TeeChart.Styles.Area(); AreaLineChart.Chart.Series.Add(area1); colorLine1 = new Steema.TeeChart.Tools.ColorLine(); annotation1 = new Steema.TeeChart.Tools.Annotation(); AreaLineChart.Chart.Panning.Allow = ScrollModes.None; AreaLineChart.Chart.Panel.Gradient.Visible = false; AreaLineChart.Chart.Panel.Color = Color.White; AreaLineChart.Chart.Walls.Back.Visible = false; AreaLineChart.Chart.Header.Visible = false; AreaLineChart.Chart.Legend.Visible = false; AreaLineChart.Chart.Aspect.View3D = false; area1.AreaBrush.Color = Color.FromRgb(192, 192, 255); AreaLineChart.Chart.Axes.Bottom.Labels.Font.Brush.Color = Color.FromRgb(128, 128, 128); AreaLineChart.Chart.Axes.Bottom.Labels.Font.Size = 18; AreaLineChart.Chart.Axes.Left.Labels.Font.Brush.Color = Color.FromRgb(128, 128, 128); AreaLineChart.Chart.Axes.Left.Labels.Font.Size = 18; AreaLineChart.Chart.Axes.Left.AxisPen.Visible = false; AreaLineChart.Chart.Axes.Left.MaximumOffset = 5; AreaLineChart.Chart.Axes.Left.MinimumOffset = 5; area1.AreaBrush.Color = Color.FromRgb(192, 192, 255); area1.AreaBrush.Solid = true; area1.AreaBrush.Visible = true; area1.AreaLines.Visible = false; area1.Brush.Color = Color.FromRgb(192, 192, 255); area1.Brush.Solid = true; area1.Color = Color.FromRgb(192, 192, 255); area1.LinePen.Width = 6; area1.LinePen.Color = Color.Navy; AreaLineChart.Chart.Axes.Left.Ticks.Length = 10; AreaLineChart.Chart.Axes.Bottom.Ticks.Length = 10; AreaLineChart.Chart.Axes.Left.Increment = 100; // // colorLine1 // AreaLineChart.Chart.Tools.Add(colorLine1); colorLine1.Axis = AreaLineChart.Chart.Axes.Bottom; colorLine1.Pen.Color = Color.Navy; colorLine1.Pen.Width = 6; colorLine1.Pen.Style = Steema.TeeChart.Drawing.DashStyle.Dot; colorLine1.Value = 10D; colorLine1.DragLine += ColorLine1_DragLine; colorLine1.DrawBehind = false; colorLine1.ColorLineClickTolerance = 15; annotation1.Shape.Color = Color.Navy; annotation1.Shape.Font.Color = Color.White; annotation1.Shape.Font.Size = 25; annotation1.Shape.Pen.Visible = false; annotation1.Shape.BorderRound = 15; annotation1.Shape.BevelInner = Steema.TeeChart.Drawing.BevelStyles.None; annotation1.Shape.BevelOuter = Steema.TeeChart.Drawing.BevelStyles.None; annotation1.Shape.Shadow.Visible = false; annotation1.TextAlign = TextAlignment.Center; annotation1.Shape.TextAlign = TextAlignment.Center; AreaLineChart.WidthRequest = 650; AreaLineChart.HeightRequest = 350; AreaLineChart.Chart.AfterDraw += Chart_AfterDraw; AreaLineChart.Chart.Panel.Brush.Solid = true; area1.Marks.Visible = false; AreaLineChart.Chart.Tools.Add(annotation1); annotation1.Active = false; area1.FillSampleValues(100); Content = new StackLayout { Children = { AreaLineChart }, VerticalOptions = LayoutOptions.CenterAndExpand, HorizontalOptions = LayoutOptions.CenterAndExpand, }; }
/// <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(Tools_ColorLine)); this.checkBox1 = new System.Windows.Forms.CheckBox(); this.checkBox2 = new System.Windows.Forms.CheckBox(); this.checkBox3 = new System.Windows.Forms.CheckBox(); this.checkBox4 = new System.Windows.Forms.CheckBox(); this.checkBox5 = new System.Windows.Forms.CheckBox(); this.checkBox6 = new System.Windows.Forms.CheckBox(); this.checkBox7 = new System.Windows.Forms.CheckBox(); this.lineSeries1 = new Steema.TeeChart.Styles.Line(); this.colorLine1 = new Steema.TeeChart.Tools.ColorLine(); this.colorLine2 = new Steema.TeeChart.Tools.ColorLine(); this.buttonPen1 = new Steema.TeeChart.ButtonPen(); this.buttonPen2 = new Steema.TeeChart.ButtonPen(); this.pointSeries1 = new Steema.TeeChart.Styles.Points(); this.panel1.SuspendLayout(); this.chartContainer.SuspendLayout(); this.SuspendLayout(); // // textBox1 // this.textBox1.Size = new System.Drawing.Size(485, 63); this.textBox1.Text = resources.GetString("textBox1.Text"); // // panel1 // this.panel1.Controls.Add(this.buttonPen2); this.panel1.Controls.Add(this.buttonPen1); this.panel1.Controls.Add(this.checkBox7); this.panel1.Controls.Add(this.checkBox6); this.panel1.Controls.Add(this.checkBox5); this.panel1.Controls.Add(this.checkBox4); this.panel1.Controls.Add(this.checkBox3); this.panel1.Controls.Add(this.checkBox2); this.panel1.Controls.Add(this.checkBox1); this.panel1.Location = new System.Drawing.Point(0, 63); this.panel1.Size = new System.Drawing.Size(485, 57); // // tChart1 // // // // this.tChart1.Aspect.ZOffset = 0; // // // // // // this.tChart1.Axes.Bottom.MaximumOffset = 5; this.tChart1.Axes.Bottom.MinimumOffset = 5; // // // this.tChart1.Axes.Left.MaximumOffset = 5; this.tChart1.Axes.Left.MinimumOffset = 5; // // // this.tChart1.Header.Lines = new string[] { "tChart1" }; this.tChart1.Header.Visible = false; // // // // // // this.tChart1.Panel.Brush.Color = System.Drawing.Color.FromArgb(((int)(((byte)(254)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); this.tChart1.Series.Add(this.pointSeries1); this.tChart1.Series.Add(this.lineSeries1); this.tChart1.Size = new System.Drawing.Size(485, 166); this.tChart1.Tools.Add(this.colorLine1); this.tChart1.Tools.Add(this.colorLine2); // // // // // // // // // this.tChart1.Walls.Bottom.Pen.Visible = false; this.tChart1.Walls.Bottom.Size = 3; // // // // // // this.tChart1.Walls.Left.Pen.Visible = false; this.tChart1.Walls.Left.Size = 3; // // chartContainer // this.chartContainer.Location = new System.Drawing.Point(0, 120); this.chartContainer.Size = new System.Drawing.Size(485, 166); // // 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(83, 20); this.checkBox1.TabIndex = 0; this.checkBox1.Text = "&Show lines"; this.checkBox1.CheckedChanged += new System.EventHandler(this.checkBox1_CheckedChanged); // // 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(13, 33); this.checkBox2.Name = "checkBox2"; this.checkBox2.Size = new System.Drawing.Size(83, 20); this.checkBox2.TabIndex = 1; this.checkBox2.Text = "&Allow drag"; this.checkBox2.CheckedChanged += new System.EventHandler(this.checkBox2_CheckedChanged); // // 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(100, 7); this.checkBox3.Name = "checkBox3"; this.checkBox3.Size = new System.Drawing.Size(44, 20); this.checkBox3.TabIndex = 2; this.checkBox3.Text = "&3D"; this.checkBox3.CheckedChanged += new System.EventHandler(this.checkBox3_CheckedChanged); // // checkBox4 // this.checkBox4.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.checkBox4.Location = new System.Drawing.Point(100, 33); this.checkBox4.Name = "checkBox4"; this.checkBox4.Size = new System.Drawing.Size(100, 20); this.checkBox4.TabIndex = 3; this.checkBox4.Text = "Drag &repaint"; this.checkBox4.CheckedChanged += new System.EventHandler(this.checkBox4_CheckedChanged); // // checkBox5 // this.checkBox5.Checked = true; this.checkBox5.CheckState = System.Windows.Forms.CheckState.Checked; this.checkBox5.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.checkBox5.Location = new System.Drawing.Point(140, 7); this.checkBox5.Name = "checkBox5"; this.checkBox5.Size = new System.Drawing.Size(73, 20); this.checkBox5.TabIndex = 4; this.checkBox5.Text = "3D &lines"; this.checkBox5.CheckedChanged += new System.EventHandler(this.checkBox5_CheckedChanged); // // checkBox6 // this.checkBox6.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.checkBox6.Location = new System.Drawing.Point(213, 7); this.checkBox6.Name = "checkBox6"; this.checkBox6.Size = new System.Drawing.Size(123, 20); this.checkBox6.TabIndex = 5; this.checkBox6.Text = "&Draw behind"; this.checkBox6.CheckedChanged += new System.EventHandler(this.checkBox6_CheckedChanged); // // checkBox7 // this.checkBox7.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.checkBox7.Location = new System.Drawing.Point(213, 33); this.checkBox7.Name = "checkBox7"; this.checkBox7.Size = new System.Drawing.Size(107, 20); this.checkBox7.TabIndex = 6; this.checkBox7.Text = "&No limit drag"; this.checkBox7.CheckedChanged += new System.EventHandler(this.checkBox7_CheckedChanged); // // lineSeries1 // // // // this.lineSeries1.Brush.Color = System.Drawing.Color.FromArgb(((int)(((byte)(68)))), ((int)(((byte)(102)))), ((int)(((byte)(163))))); this.lineSeries1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(68)))), ((int)(((byte)(102)))), ((int)(((byte)(163))))); this.lineSeries1.ColorEach = false; // // // this.lineSeries1.LinePen.Color = System.Drawing.Color.FromArgb(((int)(((byte)(41)))), ((int)(((byte)(61)))), ((int)(((byte)(98))))); // // // // // // this.lineSeries1.Marks.Callout.ArrowHead = Steema.TeeChart.Styles.ArrowHeadStyles.None; this.lineSeries1.Marks.Callout.ArrowHeadSize = 8; // // // this.lineSeries1.Marks.Callout.Brush.Color = System.Drawing.Color.Black; this.lineSeries1.Marks.Callout.Distance = 0; this.lineSeries1.Marks.Callout.Draw3D = false; this.lineSeries1.Marks.Callout.Length = 10; this.lineSeries1.Marks.Callout.Style = Steema.TeeChart.Styles.PointerStyles.Rectangle; this.lineSeries1.Marks.Callout.Visible = false; // // // this.lineSeries1.Pointer.Style = Steema.TeeChart.Styles.PointerStyles.Rectangle; this.lineSeries1.Title = "lineSeries1"; // // // this.lineSeries1.XValues.DataMember = "X"; this.lineSeries1.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; // // // this.lineSeries1.YValues.DataMember = "Y"; // // colorLine1 // this.colorLine1.Axis = this.tChart1.Axes.Left; // // // this.colorLine1.Pen.Color = System.Drawing.Color.FromArgb(((int)(((byte)(254)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(255))))); this.colorLine1.Value = 680.46846846846847; // // colorLine2 // this.colorLine2.Axis = this.tChart1.Axes.Bottom; // // // this.colorLine2.Pen.Color = System.Drawing.Color.FromArgb(((int)(((byte)(254)))), ((int)(((byte)(128)))), ((int)(((byte)(255)))), ((int)(((byte)(128))))); this.colorLine2.Pen.Width = 2; this.colorLine2.Value = 10; // // buttonPen1 // this.buttonPen1.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.buttonPen1.Location = new System.Drawing.Point(326, 16); this.buttonPen1.Name = "buttonPen1"; this.buttonPen1.Size = new System.Drawing.Size(61, 23); this.buttonPen1.TabIndex = 7; this.buttonPen1.Text = "Border"; this.buttonPen1.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // buttonPen2 // this.buttonPen2.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.buttonPen2.Location = new System.Drawing.Point(393, 16); this.buttonPen2.Name = "buttonPen2"; this.buttonPen2.Size = new System.Drawing.Size(61, 23); this.buttonPen2.TabIndex = 8; this.buttonPen2.Text = "Border"; this.buttonPen2.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // points1 // this.pointSeries1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(243)))), ((int)(((byte)(156)))), ((int)(((byte)(53))))); this.pointSeries1.ColorEach = false; // // // this.pointSeries1.LinePen.Color = System.Drawing.Color.FromArgb(((int)(((byte)(146)))), ((int)(((byte)(94)))), ((int)(((byte)(32))))); // // // // // // this.pointSeries1.Marks.Callout.ArrowHead = Steema.TeeChart.Styles.ArrowHeadStyles.None; this.pointSeries1.Marks.Callout.ArrowHeadSize = 8; // // // this.pointSeries1.Marks.Callout.Brush.Color = System.Drawing.Color.Black; this.pointSeries1.Marks.Callout.Distance = 0; this.pointSeries1.Marks.Callout.Draw3D = false; this.pointSeries1.Marks.Callout.Length = 0; this.pointSeries1.Marks.Callout.Style = Steema.TeeChart.Styles.PointerStyles.Rectangle; this.pointSeries1.Marks.Callout.Visible = false; // // // // // // this.pointSeries1.Pointer.Brush.Color = System.Drawing.Color.FromArgb(((int)(((byte)(243)))), ((int)(((byte)(156)))), ((int)(((byte)(53))))); // // // this.pointSeries1.Pointer.Brush.Gradient.StartColor = System.Drawing.Color.FromArgb(((int)(((byte)(243)))), ((int)(((byte)(156)))), ((int)(((byte)(53))))); // // // this.pointSeries1.Pointer.Pen.Color = System.Drawing.Color.FromArgb(((int)(((byte)(146)))), ((int)(((byte)(94)))), ((int)(((byte)(32))))); this.pointSeries1.Pointer.Style = Steema.TeeChart.Styles.PointerStyles.Rectangle; this.pointSeries1.Title = "pointSeries1"; // // // this.pointSeries1.XValues.DataMember = "X"; this.pointSeries1.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; // // // this.pointSeries1.YValues.DataMember = "Y"; // // Tools_ColorLine // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(485, 286); this.Name = "Tools_ColorLine"; this.panel1.ResumeLayout(false); this.chartContainer.ResumeLayout(false); this.ResumeLayout(false); this.PerformLayout(); }