public AvgStdFunctionsChart(ChartView BaseChart) { avgFunction = new Steema.TeeChart.Functions.Average(); bar1 = new Bar(); theAvgLine = new Line(); var = new Variables.Variables(); for (int i = 0; i < var.GetValorStdAvg1.Length; i++) { bar1.Add(i, var.GetValorStdAvg1[i]); } BaseChart.Chart.Series.Add(bar1); BaseChart.Chart.Series.Add(theAvgLine); theAvgLine.Function = avgFunction; theAvgLine.DataSource = new object[] { bar1 }; bar1.SeriesColor = var.GetPaletteBasic[0]; theAvgLine.SeriesColor = var.GetPaletteBasic[2]; bar1.Title = "Data"; bar1.MarksOnBar = true; bar1.MarksLocation = MarksLocation.Start; theAvgLine.Title = "Average"; theAvgLine.LinePen.Width = 6; theAvgLine.Pointer.Style = PointerStyles.Sphere; theAvgLine.Pointer.InflateMargins = true; theAvgLine.Pointer.HorizSize = 5; theAvgLine.Pointer.VertSize = 5; theAvgLine.Pointer.Visible = true; theAvgLine.Marks.Visible = true; theAvgLine.Marks.DrawEvery = 2; BaseChart.Chart.Axes.Left.SetMinMax(BaseChart.Chart.Axes.Left.MinYValue + 1.6, BaseChart.Chart.Axes.Left.MaxYValue + 2); BaseChart.Chart.Axes.Bottom.SetMinMax(BaseChart.Chart.Axes.Bottom.MinXValue, BaseChart.Chart.Axes.Bottom.MaxXValue); BaseChart.Chart.Axes.Left.Increment = 20; BaseChart.Chart.Axes.Bottom.Labels.Visible = false; BaseChart.Chart.Axes.Left.Grid.Visible = false; BaseChart.Chart.Axes.Left.AxisPen.Visible = true; BaseChart.Chart.Header.Visible = false; theAvgLine.Marks.AutoSize = true; theAvgLine.Marks.FollowSeriesColor = true; theAvgLine.Marks.Pen.Width = 1; theAvgLine.Marks.Pen.Color = theAvgLine.Color.AddLuminosity(-0.3); theAvgLine.Marks.Font.Size = 13; bar1.Marks.Font.Size = 14; bar1.Marks.Pen.Visible = false; bar1.Marks.TailStyle = MarksTail.None; bar1.Marks.TextAlign = TextAlignment.Center; bar1.Marks.AutoSize = true; bar1.Marks.BackColor = Color.Transparent; bar1.Marks.Font.Color = Color.White; bar1.Marks.TailStyle = MarksTail.None; BaseChart.Chart.Panel.MarginLeft = 5; }
public ProductShipments() { this.Title = "Product Shipments"; this.tChart1 = new ChartView(); tChart1.WidthRequest = 400; tChart1.HeightRequest = 300; this.points1 = new Steema.TeeChart.Styles.Points(); this.points2 = new Steema.TeeChart.Styles.Points(); this.line1 = new Steema.TeeChart.Styles.Line(); this.average1 = new Steema.TeeChart.Functions.Average(); this.smoothing1 = new Steema.TeeChart.Functions.Smoothing(); this.line2 = new Steema.TeeChart.Styles.Line(); // tChart1 this.tChart1.Chart.Aspect.Elevation = 350; this.tChart1.Chart.Aspect.Perspective = 55; this.tChart1.Chart.Aspect.View3D = false; this.tChart1.Chart.Axes.Bottom.AxisPen.Visible = false; this.tChart1.Chart.Axes.Bottom.AxisPen.Width = 0; this.tChart1.Chart.Axes.Bottom.Grid.Visible = false; this.tChart1.Chart.Axes.Bottom.Labels.Font.Brush.Color = Color.Gray; this.tChart1.Chart.Axes.Bottom.Labels.Font.Size = 24; this.tChart1.Chart.Axes.Bottom.MinorTicks.Visible = false; this.tChart1.Chart.Axes.Bottom.Ticks.Color = Color.FromRgb(((int)(((byte)(128)))), ((int)(((byte)(128)))), ((int)(((byte)(128))))); this.tChart1.Chart.Axes.Depth.Title.Font.Size = 13; this.tChart1.Chart.Axes.DepthTop.Title.Font.Size = 13; this.tChart1.Chart.Axes.Left.AxisPen.Visible = false; this.tChart1.Chart.Axes.Left.AxisPen.Width = 0; this.tChart1.Chart.Axes.Left.Labels.Font.Brush.Color = Color.Gray; this.tChart1.Chart.Axes.Left.Labels.Font.Size = 24; this.tChart1.Chart.Axes.Left.MinimumOffset = 10; this.tChart1.Chart.Axes.Left.MinorTicks.Visible = false; this.tChart1.Chart.Axes.Left.Ticks.Color = Color.FromRgb(((int)(((byte)(128)))), ((int)(((byte)(128)))), ((int)(((byte)(128))))); this.tChart1.Chart.Axes.Left.Ticks.Length = 7; this.tChart1.Chart.Axes.Right.AxisPen.Width = 0; this.tChart1.Chart.Axes.Right.Grid.Visible = false; this.tChart1.Chart.Axes.Right.Labels.Font.Brush.Color = Color.Gray; this.tChart1.Chart.Axes.Right.Labels.Font.Size = 31; this.tChart1.Chart.Axes.Right.MinorTicks.Visible = false; this.tChart1.Chart.Axes.Right.Ticks.Visible = false; this.tChart1.Chart.Footer.Font.Brush.Color = Color.Blue; this.tChart1.Chart.Header.Alignment = TextAlignment.Start; this.tChart1.Chart.Header.Font.Brush.Color = Color.Gray; this.tChart1.Chart.Header.Font.Shadow.Brush.Color = Color.Gray; this.tChart1.Chart.Header.Font.Shadow.SmoothBlur = 2; this.tChart1.Chart.Header.Font.Size = 33; this.tChart1.Chart.Header.Lines = new string[] { "Product shipments" }; this.tChart1.Chart.Legend.Font.Size = 19; this.tChart1.Chart.Legend.Pen.Visible = false; this.tChart1.Chart.Legend.Shadow.Visible = false; this.tChart1.Chart.Panel.Bevel.Outer = Steema.TeeChart.Drawing.BevelStyles.None; this.tChart1.Chart.Panel.Bevel.Width = 2; this.tChart1.Chart.Panel.BevelWidth = 2; this.tChart1.Chart.Panel.Brush.Color = Color.White; this.tChart1.Chart.Panel.Brush.Gradient.EndColor = Color.White; this.tChart1.Chart.Panel.Brush.Gradient.Visible = false; this.tChart1.Chart.Series.Add(this.points1); this.tChart1.Chart.Series.Add(this.points2); this.tChart1.Chart.Series.Add(this.line1); this.tChart1.Chart.Series.Add(this.line2); this.tChart1.Chart.Walls.Back.Brush.Gradient.EndColor = Color.White; this.tChart1.Chart.Walls.Back.Pen.Visible = false; this.tChart1.Chart.Walls.Bottom.Brush.Gradient.EndColor = Color.Silver; this.tChart1.Chart.Walls.Bottom.Brush.Gradient.StartColor = Color.Gray; this.tChart1.Chart.Walls.Bottom.Brush.Gradient.Visible = true; this.tChart1.Chart.Walls.Bottom.Pen.Color = Color.Gray; this.tChart1.Chart.Walls.Bottom.Transparent = true; this.tChart1.Chart.Walls.Left.Brush.Gradient.EndColor = Color.Silver; this.tChart1.Chart.Walls.Left.Brush.Gradient.StartColor = Color.Gray; this.tChart1.Chart.Walls.Left.Brush.Gradient.Visible = true; this.tChart1.Chart.Walls.Left.Pen.Color = Color.Gray; this.tChart1.Chart.Walls.Left.Transparent = true; this.tChart1.Chart.Walls.Right.Transparent = true; this.tChart1.Chart.Walls.Visible = false; // points1 this.points1.Color = Color.FromRgb(((int)(((byte)(68)))), ((int)(((byte)(102)))), ((int)(((byte)(163))))); this.points1.ColorEach = false; this.points1.LinePen.Color = Color.FromRgb(((int)(((byte)(41)))), ((int)(((byte)(61)))), ((int)(((byte)(98))))); this.points1.Pointer.Brush.Color = Color.FromRgb(((int)(((byte)(68)))), ((int)(((byte)(102)))), ((int)(((byte)(163))))); this.points1.Pointer.Brush.Gradient.StartColor = Color.FromRgb(((int)(((byte)(68)))), ((int)(((byte)(102)))), ((int)(((byte)(163))))); this.points1.Pointer.SizeDouble = 0D; this.points1.Pointer.SizeUnits = Steema.TeeChart.Styles.PointerSizeUnits.Pixels; this.points1.Title = "points1"; this.points1.XValues.DataMember = "X"; this.points1.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; this.points1.YValues.DataMember = "Y"; // points2 this.points2.Color = Color.FromRgb(((int)(((byte)(243)))), ((int)(((byte)(156)))), ((int)(((byte)(53))))); this.points2.ColorEach = false; this.points2.LinePen.Color = Color.FromRgb(((int)(((byte)(146)))), ((int)(((byte)(94)))), ((int)(((byte)(32))))); this.points2.Pointer.Brush.Color = Color.FromRgb(((int)(((byte)(243)))), ((int)(((byte)(156)))), ((int)(((byte)(53))))); this.points2.Pointer.Brush.Gradient.StartColor = Color.FromRgb(((int)(((byte)(243)))), ((int)(((byte)(156)))), ((int)(((byte)(53))))); this.points2.Pointer.SizeDouble = 0D; this.points2.Pointer.SizeUnits = Steema.TeeChart.Styles.PointerSizeUnits.Pixels; this.points2.Title = "points2"; this.points2.XValues.DataMember = "X"; this.points2.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; this.points2.YValues.DataMember = "Y"; // line1 this.line1.Brush.Color = Color.FromRgb(((int)(((byte)(241)))), ((int)(((byte)(76)))), ((int)(((byte)(20))))); this.line1.Color = Color.FromRgb(((int)(((byte)(241)))), ((int)(((byte)(76)))), ((int)(((byte)(20))))); this.line1.ColorEach = false; this.line1.DataSource = new object[] { ((object)(this.points1)), ((object)(this.points2)) }; this.line1.Function = this.average1; this.line1.LinePen.Color = Color.FromRgb(((int)(((byte)(145)))), ((int)(((byte)(46)))), ((int)(((byte)(12))))); this.line1.Pointer.SizeDouble = 0D; this.line1.Pointer.SizeUnits = Steema.TeeChart.Styles.PointerSizeUnits.Pixels; this.line1.Title = "line1"; this.line1.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; // average1 this.average1.Period = 2D; // smoothing1 this.smoothing1.Factor = 8; this.smoothing1.Period = 1D; // line2 this.line2.Brush.Color = Color.FromRgb(((int)(((byte)(78)))), ((int)(((byte)(151)))), ((int)(((byte)(168))))); this.line2.Color = Color.FromRgb(((int)(((byte)(78)))), ((int)(((byte)(151)))), ((int)(((byte)(168))))); this.line2.ColorEach = false; this.line2.LinePen.Color = Color.FromRgb(((int)(((byte)(47)))), ((int)(((byte)(91)))), ((int)(((byte)(101))))); this.line2.LinePen.Width = 2; this.line2.Pointer.SizeDouble = 0D; this.line2.Pointer.SizeUnits = Steema.TeeChart.Styles.PointerSizeUnits.Pixels; this.line2.Title = "line2"; this.line2.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; int[] Yarr1 = new int[] { 5, 3, 2, 7, 1, 6, 4, 5, 1, 0, 10, 7, 11, 15, 12, 21, 17, 15, 19, 24, 21, 11, 15, 21, 19, 17, 20, 23 }; int[] Yarr2 = new int[] { 7, 1, 5, 1, 0, 10, 6, 3, 2, 7, 11, 4, 5, 3, 4, 5, 1, 5, 11, 15, 16, 14, 14, 13, 12, 15, 17, 19 }; DateTime[] Xarr = new DateTime[] { new DateTime(2012, 9, 1), new DateTime(2012, 9, 15), new DateTime(2012, 10, 1), new DateTime(2012, 10, 15), new DateTime(2012, 11, 1) , new DateTime(2012, 11, 15), new DateTime(2012, 12, 1), new DateTime(2012, 12, 15), new DateTime(2013, 1, 1), new DateTime(2013, 1, 15) , new DateTime(2013, 2, 1), new DateTime(2013, 2, 15), new DateTime(2013, 3, 1), new DateTime(2013, 3, 15) , new DateTime(2013, 4, 1), new DateTime(2013, 4, 15), new DateTime(2013, 5, 1), new DateTime(2013, 5, 15), new DateTime(2013, 6, 1) , new DateTime(2013, 6, 15), new DateTime(2013, 7, 1), new DateTime(2013, 7, 15), new DateTime(2013, 8, 1), new DateTime(2013, 8, 15) , new DateTime(2013, 9, 1), new DateTime(2013, 9, 15), new DateTime(2013, 10, 1), new DateTime(2013, 10, 15) }; tChart1.Chart.Panel.Gradient.Visible = false; tChart1.Chart.Walls.Back.Visible = false; tChart1.Chart[0].Title = "Apples"; tChart1.Chart[1].Title = "Pears"; tChart1.Chart[2].Title = "Average"; tChart1.Chart[0].Add(Xarr, Yarr1); tChart1.Chart[1].Add(Xarr, Yarr2); tChart1.Chart[0].XValues.DateTime = true; tChart1.Chart[1].XValues.DateTime = true; points1.Pointer.Style = Steema.TeeChart.Styles.PointerStyles.Circle; points2.Pointer.Style = Steema.TeeChart.Styles.PointerStyles.Circle; points1.Pointer.Pen.Visible = false; points2.Pointer.Pen.Visible = false; line1.LinePen.Visible = false; line1.Legend.Visible = false; line1.CheckDataSource(); line2.DataSource = line1; line2.Smoothed = true; line2.CheckDataSource(); tChart1.Chart.Header.Font.Size = 16; tChart1.Chart.SubHeader.Font.Size = 10; tChart1.Chart.SubHeader.Alignment = TextAlignment.Start; tChart1.Chart.Axes.Left.StartPosition = 8; this.tChart1.Chart.Aspect.ZoomText = true; Content = new StackLayout { VerticalOptions = LayoutOptions.CenterAndExpand, HorizontalOptions = LayoutOptions.CenterAndExpand, Children = { 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(Tool_SeriesStat)); 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.line1 = new Steema.TeeChart.Styles.Line(); this.line2 = new Steema.TeeChart.Styles.Line(); this.average1 = new Steema.TeeChart.Functions.Average(); this.button1 = new System.Windows.Forms.Button(); this.seriesStats1 = new Steema.TeeChart.Tools.SeriesStats(); this.trendFunction1 = new Steema.TeeChart.Functions.TrendFunction(); this.line3 = new Steema.TeeChart.Styles.Line(); this.low1 = new Steema.TeeChart.Functions.Low(); this.line4 = new Steema.TeeChart.Styles.Line(); this.high1 = new Steema.TeeChart.Functions.High(); this.line5 = new Steema.TeeChart.Styles.Line(); this.line6 = new Steema.TeeChart.Styles.Line(); this.medianFunction1 = new Steema.TeeChart.Functions.MedianFunction(); this.correlationFunction1 = new Steema.TeeChart.Functions.CorrelationFunction(); this.line7 = new Steema.TeeChart.Styles.Line(); this.panel1.SuspendLayout(); this.chartContainer.SuspendLayout(); this.SuspendLayout(); // // textBox1 // this.textBox1.Text = "Use the SeriesStats tool to return and show typical data of interest about a data" + " Series."; // // panel1 // this.panel1.Controls.Add(this.button1); 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.Size = new System.Drawing.Size(440, 71); // // tChart1 // // // // this.tChart1.Aspect.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.AntiAlias; this.tChart1.Aspect.TextRenderingHint = System.Drawing.Text.TextRenderingHint.AntiAlias; this.tChart1.Aspect.View3D = false; this.tChart1.Aspect.ZOffset = 0; // // // // // // this.tChart1.Axes.Left.MaximumOffset = 5; this.tChart1.Axes.Left.MinimumOffset = 5; this.tChart1.Cursor = System.Windows.Forms.Cursors.Default; // // // // // // this.tChart1.Legend.Brush.Color = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(128)))), ((int)(((byte)(64)))), ((int)(((byte)(0))))); // // // // // // this.tChart1.Panel.Brush.Color = System.Drawing.Color.FromArgb(((int)(((byte)(236)))), ((int)(((byte)(233)))), ((int)(((byte)(216))))); // // // this.tChart1.Panel.Brush.Gradient.EndColor = System.Drawing.Color.FromArgb(((int)(((byte)(127)))), ((int)(((byte)(128)))), ((int)(((byte)(64)))), ((int)(((byte)(0))))); this.tChart1.Panel.Brush.Gradient.MiddleColor = System.Drawing.Color.FromArgb(((int)(((byte)(254)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); this.tChart1.Panel.Brush.Gradient.Sigma = true; this.tChart1.Panel.Brush.Gradient.SigmaFocus = 1F; this.tChart1.Panel.Brush.Gradient.SigmaScale = 0.8F; this.tChart1.Panel.Brush.Gradient.StartColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(128)))), ((int)(((byte)(64)))), ((int)(((byte)(0))))); this.tChart1.Series.Add(this.line1); this.tChart1.Series.Add(this.line2); this.tChart1.Series.Add(this.line3); this.tChart1.Series.Add(this.line4); this.tChart1.Series.Add(this.line5); this.tChart1.Series.Add(this.line6); this.tChart1.Series.Add(this.line7); this.tChart1.Size = new System.Drawing.Size(440, 173); this.tChart1.Tools.Add(this.seriesStats1); // // // // // // // // // this.tChart1.Walls.Back.Brush.Color = System.Drawing.Color.FromArgb(((int)(((byte)(127)))), ((int)(((byte)(128)))), ((int)(((byte)(64)))), ((int)(((byte)(0))))); // // // this.tChart1.Walls.Back.Brush.Gradient.StartColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(64))))); this.tChart1.Walls.Back.Brush.Gradient.Visible = false; // // chartContainer // this.chartContainer.Location = new System.Drawing.Point(0, 144); this.chartContainer.Size = new System.Drawing.Size(440, 173); // // 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(12, 19); this.checkBox1.Name = "checkBox1"; this.checkBox1.Size = new System.Drawing.Size(63, 17); this.checkBox1.TabIndex = 0; this.checkBox1.Text = "Average"; #if VS2005 this.checkBox1.AutoSize = true; this.checkBox1.UseVisualStyleBackColor = true; #endif this.checkBox1.CheckedChanged += new System.EventHandler(this.checkBox1_CheckedChanged); // // checkBox2 // this.checkBox2.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.checkBox2.Location = new System.Drawing.Point(12, 42); this.checkBox2.Name = "checkBox2"; this.checkBox2.Size = new System.Drawing.Size(51, 17); this.checkBox2.TabIndex = 1; this.checkBox2.Text = "Trend"; #if VS2005 this.checkBox2.AutoSize = true; this.checkBox2.UseVisualStyleBackColor = true; #endif 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(81, 19); this.checkBox3.Name = "checkBox3"; this.checkBox3.Size = new System.Drawing.Size(43, 17); this.checkBox3.TabIndex = 2; this.checkBox3.Text = "Low"; #if VS2005 this.checkBox3.AutoSize = true; this.checkBox3.UseVisualStyleBackColor = true; #endif 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(81, 42); this.checkBox4.Name = "checkBox4"; this.checkBox4.Size = new System.Drawing.Size(45, 17); this.checkBox4.TabIndex = 3; this.checkBox4.Text = "High"; #if VS2005 this.checkBox4.AutoSize = true; this.checkBox4.UseVisualStyleBackColor = true; #endif this.checkBox4.CheckedChanged += new System.EventHandler(this.checkBox4_CheckedChanged); // // checkBox5 // this.checkBox5.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.checkBox5.Location = new System.Drawing.Point(130, 19); this.checkBox5.Name = "checkBox5"; this.checkBox5.Size = new System.Drawing.Size(58, 17); this.checkBox5.TabIndex = 4; this.checkBox5.Text = "Median"; #if VS2005 this.checkBox5.AutoSize = true; this.checkBox5.UseVisualStyleBackColor = true; #endif 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(130, 42); this.checkBox6.Name = "checkBox6"; this.checkBox6.Size = new System.Drawing.Size(73, 17); this.checkBox6.TabIndex = 5; this.checkBox6.Text = "Correlation"; #if VS2005 this.checkBox6.AutoSize = true; this.checkBox6.UseVisualStyleBackColor = true; #endif this.checkBox6.CheckedChanged += new System.EventHandler(this.checkBox6_CheckedChanged); // // line1 // // // // this.line1.Brush.Color = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); this.line1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); this.line1.ColorEach = false; // // // this.line1.LinePen.Color = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); // // // // // // 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.Style = Steema.TeeChart.Styles.PointerStyles.Rectangle; this.line1.Title = "Source"; // // // this.line1.XValues.DataMember = "X"; this.line1.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; // // // this.line1.YValues.DataMember = "Y"; // // line2 // // // // this.line2.Brush.Color = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(0))))); this.line2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(0))))); this.line2.ColorEach = false; this.line2.DataSource = this.line1; this.line2.Function = this.average1; // // // this.line2.LinePen.Color = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(153)))), ((int)(((byte)(0))))); // // // // // // this.line2.Marks.Callout.ArrowHead = Steema.TeeChart.Styles.ArrowHeadStyles.None; this.line2.Marks.Callout.ArrowHeadSize = 8; // // // this.line2.Marks.Callout.Brush.Color = System.Drawing.Color.Black; this.line2.Marks.Callout.Distance = 0; this.line2.Marks.Callout.Draw3D = false; this.line2.Marks.Callout.Length = 10; this.line2.Marks.Callout.Style = Steema.TeeChart.Styles.PointerStyles.Rectangle; this.line2.Marks.Callout.Visible = false; // // // this.line2.Pointer.Style = Steema.TeeChart.Styles.PointerStyles.Rectangle; this.line2.Title = "Average"; // // // this.line2.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; // // button1 // this.button1.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.button1.Location = new System.Drawing.Point(267, 19); this.button1.Name = "button1"; this.button1.Size = new System.Drawing.Size(75, 23); this.button1.TabIndex = 6; this.button1.Text = "Edit tool"; #if VS2005 this.button1.UseVisualStyleBackColor = true; #endif this.button1.Click += new System.EventHandler(this.button1_Click); // // seriesStats1 // this.seriesStats1.Series = this.line1; // // line3 // // // // this.line3.Brush.Color = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(255))))); this.line3.Color = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(255))))); this.line3.ColorEach = false; this.line3.DataSource = this.line1; this.line3.Function = this.trendFunction1; // // // this.line3.LinePen.Color = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(153))))); // // // // // // this.line3.Marks.Callout.ArrowHead = Steema.TeeChart.Styles.ArrowHeadStyles.None; this.line3.Marks.Callout.ArrowHeadSize = 8; // // // this.line3.Marks.Callout.Brush.Color = System.Drawing.Color.Black; this.line3.Marks.Callout.Distance = 0; this.line3.Marks.Callout.Draw3D = false; this.line3.Marks.Callout.Length = 10; this.line3.Marks.Callout.Style = Steema.TeeChart.Styles.PointerStyles.Rectangle; this.line3.Marks.Callout.Visible = false; // // // this.line3.Pointer.Style = Steema.TeeChart.Styles.PointerStyles.Rectangle; this.line3.Title = "Trend"; this.line3.Visible = false; // // // this.line3.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; // // line4 // // // // this.line4.Brush.Color = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); this.line4.Color = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); this.line4.ColorEach = false; this.line4.DataSource = this.line1; this.line4.Function = this.low1; // // // this.line4.LinePen.Color = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(153)))), ((int)(((byte)(153))))); // // // // // // this.line4.Marks.Callout.ArrowHead = Steema.TeeChart.Styles.ArrowHeadStyles.None; this.line4.Marks.Callout.ArrowHeadSize = 8; // // // this.line4.Marks.Callout.Brush.Color = System.Drawing.Color.Black; this.line4.Marks.Callout.Distance = 0; this.line4.Marks.Callout.Draw3D = false; this.line4.Marks.Callout.Length = 10; this.line4.Marks.Callout.Style = Steema.TeeChart.Styles.PointerStyles.Rectangle; this.line4.Marks.Callout.Visible = false; // // // this.line4.Pointer.Style = Steema.TeeChart.Styles.PointerStyles.Rectangle; this.line4.Title = "Low"; // // // this.line4.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; // // line5 // // // // this.line5.Brush.Color = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.line5.Color = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.line5.ColorEach = false; this.line5.DataSource = this.line1; this.line5.Function = this.high1; // // // this.line5.LinePen.Color = System.Drawing.Color.FromArgb(((int)(((byte)(77)))), ((int)(((byte)(77)))), ((int)(((byte)(77))))); // // // // // // this.line5.Marks.Callout.ArrowHead = Steema.TeeChart.Styles.ArrowHeadStyles.None; this.line5.Marks.Callout.ArrowHeadSize = 8; // // // this.line5.Marks.Callout.Brush.Color = System.Drawing.Color.Black; this.line5.Marks.Callout.Distance = 0; this.line5.Marks.Callout.Draw3D = false; this.line5.Marks.Callout.Length = 10; this.line5.Marks.Callout.Style = Steema.TeeChart.Styles.PointerStyles.Rectangle; this.line5.Marks.Callout.Visible = false; // // // this.line5.Pointer.Style = Steema.TeeChart.Styles.PointerStyles.Rectangle; this.line5.Title = "High"; this.line5.Visible = false; // // // this.line5.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; // // line6 // // // // this.line6.Brush.Color = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(0)))), ((int)(((byte)(255))))); this.line6.Color = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(0)))), ((int)(((byte)(255))))); this.line6.ColorEach = false; this.line6.DataSource = this.line1; this.line6.Function = this.medianFunction1; // // // this.line6.LinePen.Color = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(0)))), ((int)(((byte)(153))))); // // // // // // this.line6.Marks.Callout.ArrowHead = Steema.TeeChart.Styles.ArrowHeadStyles.None; this.line6.Marks.Callout.ArrowHeadSize = 8; // // // this.line6.Marks.Callout.Brush.Color = System.Drawing.Color.Black; this.line6.Marks.Callout.Distance = 0; this.line6.Marks.Callout.Draw3D = false; this.line6.Marks.Callout.Length = 10; this.line6.Marks.Callout.Style = Steema.TeeChart.Styles.PointerStyles.Rectangle; this.line6.Marks.Callout.Visible = false; // // // this.line6.Pointer.Style = Steema.TeeChart.Styles.PointerStyles.Rectangle; this.line6.Title = "Median"; this.line6.Visible = false; // // // this.line6.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; // // line7 // // // // this.line7.Brush.Color = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(192)))), ((int)(((byte)(192))))); this.line7.Color = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(192)))), ((int)(((byte)(192))))); this.line7.ColorEach = false; this.line7.DataSource = this.line1; this.line7.Function = this.correlationFunction1; // // // this.line7.LinePen.Color = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(77)))), ((int)(((byte)(77))))); // // // // // // this.line7.Marks.Callout.ArrowHead = Steema.TeeChart.Styles.ArrowHeadStyles.None; this.line7.Marks.Callout.ArrowHeadSize = 8; // // // this.line7.Marks.Callout.Brush.Color = System.Drawing.Color.Black; this.line7.Marks.Callout.Distance = 0; this.line7.Marks.Callout.Draw3D = false; this.line7.Marks.Callout.Length = 10; this.line7.Marks.Callout.Style = Steema.TeeChart.Styles.PointerStyles.Rectangle; this.line7.Marks.Callout.Visible = false; // // // this.line7.Pointer.Style = Steema.TeeChart.Styles.PointerStyles.Rectangle; this.line7.Title = "Correlation"; this.line7.Visible = false; // // // this.line7.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; // // Tool_SeriesStat // this.ClientSize = new System.Drawing.Size(440, 317); this.Name = "Tool_SeriesStat"; this.panel1.ResumeLayout(false); this.panel1.PerformLayout(); 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() { this.barSeries1 = new Steema.TeeChart.Styles.Bar(); this.average1 = new Steema.TeeChart.Functions.Average(); this.lineSeries1 = new Steema.TeeChart.Styles.Line(); this.checkBox1 = new System.Windows.Forms.CheckBox(); this.high1 = new Steema.TeeChart.Functions.High(); this.lineSeries2 = new Steema.TeeChart.Styles.Line(); this.low1 = new Steema.TeeChart.Functions.Low(); this.lineSeries3 = new Steema.TeeChart.Styles.Line(); this.panel1.SuspendLayout(); this.SuspendLayout(); // // textBox1 // this.textBox1.Name = "textBox1"; this.textBox1.Size = new System.Drawing.Size(466, 104); this.textBox1.Text = @"+ The Average function calculates the sum of all points in the data source and divides the result by number of points. It can also be used to calculate averages by every ""n"" number of points. + The High function calculates the greatest of all points in the data source. It can also be used to calculate the highest value by every ""n"" number of points. + The Low function calculates the smallest of all points in the data source. It can also be used to calculate the lowest value by every ""n"" number of points."; // // panel1 // this.panel1.Controls.Add(this.checkBox1); this.panel1.Location = new System.Drawing.Point(0, 104); 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[] { "Average function" }; this.tChart1.Location = new System.Drawing.Point(0, 138); 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.barSeries1); this.tChart1.Series.Add(this.lineSeries1); this.tChart1.Series.Add(this.lineSeries2); this.tChart1.Series.Add(this.lineSeries3); this.tChart1.Size = new System.Drawing.Size(466, 148); // // barSeries1 // // // barSeries1.Brush // this.barSeries1.Brush.Color = System.Drawing.Color.Red; // // barSeries1.Marks // // // barSeries1.Marks.Symbol // // // barSeries1.Marks.Symbol.Shadow // this.barSeries1.Marks.Symbol.Shadow.Height = 1; this.barSeries1.Marks.Symbol.Shadow.Visible = true; this.barSeries1.Marks.Symbol.Shadow.Width = 1; this.barSeries1.Title = "Data"; // // barSeries1.XValues // this.barSeries1.XValues.DataMember = "X"; this.barSeries1.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; // // barSeries1.YValues // this.barSeries1.YValues.DataMember = "Bar"; // // lineSeries1 // // // lineSeries1.Brush // this.lineSeries1.Brush.Color = System.Drawing.Color.Green; this.lineSeries1.DataSource = this.barSeries1; this.lineSeries1.Function = this.average1; // // lineSeries1.Marks // // // lineSeries1.Marks.Brush // this.lineSeries1.Marks.Brush.Color = System.Drawing.Color.FromArgb(((System.Byte)(0)), ((System.Byte)(128)), ((System.Byte)(0))); // // lineSeries1.Marks.Font // // // lineSeries1.Marks.Font.Brush // this.lineSeries1.Marks.Font.Brush.Color = System.Drawing.Color.White; this.lineSeries1.Marks.Font.Size = 7; // // 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; this.lineSeries1.Marks.Visible = true; // // lineSeries1.Pointer // this.lineSeries1.Pointer.Style = Steema.TeeChart.Styles.PointerStyles.Rectangle; this.lineSeries1.Title = "Average"; // // lineSeries1.XValues // this.lineSeries1.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; // // checkBox1 // this.checkBox1.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.checkBox1.Location = new System.Drawing.Point(16, 8); this.checkBox1.Name = "checkBox1"; this.checkBox1.Size = new System.Drawing.Size(127, 21); this.checkBox1.TabIndex = 1; this.checkBox1.Text = "&By every 2 points"; this.checkBox1.CheckedChanged += new System.EventHandler(this.checkBox1_CheckedChanged); // // lineSeries2 // // // lineSeries2.Brush // this.lineSeries2.Brush.Color = System.Drawing.Color.Yellow; this.lineSeries2.DataSource = this.barSeries1; this.lineSeries2.Function = this.high1; // // 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 = "High"; // // lineSeries2.XValues // this.lineSeries2.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; // // lineSeries3 // // // lineSeries3.Brush // this.lineSeries3.Brush.Color = System.Drawing.Color.Blue; this.lineSeries3.DataSource = this.barSeries1; this.lineSeries3.Function = this.low1; // // lineSeries3.Marks // // // lineSeries3.Marks.Symbol // // // lineSeries3.Marks.Symbol.Shadow // this.lineSeries3.Marks.Symbol.Shadow.Height = 1; this.lineSeries3.Marks.Symbol.Shadow.Visible = true; this.lineSeries3.Marks.Symbol.Shadow.Width = 1; // // lineSeries3.Pointer // this.lineSeries3.Pointer.Style = Steema.TeeChart.Styles.PointerStyles.Rectangle; this.lineSeries3.Title = "Low"; // // lineSeries3.XValues // this.lineSeries3.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; // // Function_Average // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(466, 286); this.Name = "Function_Average"; this.panel1.ResumeLayout(false); this.ResumeLayout(false); }