public CountStdFunctionsChart(ChartView BaseChart) { countFunction = new Steema.TeeChart.Functions.Count(); bar1 = new Bar(); theCountLine = new Line(); var = new Variables.Variables(); for (int i = 0; i < var.GetValorStdCount1.Length; i++) { bar1.Add(i, var.GetValorStdCount1[i]); } BaseChart.Chart.Series.Add(bar1); BaseChart.Chart.Series.Add(theCountLine); theCountLine.Function = countFunction; theCountLine.DataSource = new object[] { bar1 }; bar1.SeriesColor = var.GetPaletteBasic[0]; theCountLine.SeriesColor = var.GetPaletteBasic[2]; bar1.Title = "Data"; bar1.MarksOnBar = true; bar1.MarksLocation = MarksLocation.Start; theCountLine.Title = "Count"; theCountLine.LinePen.Width = 6; theCountLine.Pointer.Style = PointerStyles.Sphere; theCountLine.Pointer.InflateMargins = true; theCountLine.Pointer.HorizSize = 5; theCountLine.Pointer.VertSize = 5; theCountLine.Pointer.Visible = true; theCountLine.Marks.Visible = true; theCountLine.Marks.DrawEvery = 2; BaseChart.Chart.Axes.Left.SetMinMax(BaseChart.Chart.Axes.Left.MinYValue + 0.07, 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 = 3; 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; Themes.AplicarMarksTheme1(BaseChart); BaseChart.Chart.Series[0].Marks.Font.Size = 14; BaseChart.Chart.Series[1].Marks.Font.Size = 14; bar1.Marks.Pen.Visible = false; bar1.Marks.TailStyle = MarksTail.None; BaseChart.Chart.Series[0].Marks.TextAlign = TextAlignment.Center; BaseChart.Chart.Series[0].Marks.AutoSize = true; BaseChart.Chart.Series[0].Marks.Color = Xamarin.Forms.Color.Transparent; BaseChart.Chart.Series[1].Marks.TailStyle = MarksTail.None; BaseChart.Chart.Panel.MarginLeft = 5; ImplementiOSMarks(BaseChart.Chart); }
/// <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.barSeries1 = new Steema.TeeChart.Styles.Bar(); this.count1 = new Steema.TeeChart.Functions.Count(); this.lineSeries1 = new Steema.TeeChart.Styles.Line(); this.panel1.SuspendLayout(); this.SuspendLayout(); // // textBox1 // this.textBox1.Name = "textBox1"; this.textBox1.Size = new System.Drawing.Size(466, 32); this.textBox1.Text = "The Count function calculates the number of points of the data source series."; // // panel1 // this.panel1.Controls.Add(this.checkBox1); this.panel1.Location = new System.Drawing.Point(0, 32); 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; // // tChart1.Header // this.tChart1.Header.Lines = new string[] { "tChart1" }; this.tChart1.Location = new System.Drawing.Point(0, 66); 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.Size = new System.Drawing.Size(466, 220); // // 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; // // checkBox1 // this.checkBox1.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.checkBox1.Location = new System.Drawing.Point(13, 8); this.checkBox1.Name = "checkBox1"; this.checkBox1.Size = new System.Drawing.Size(127, 21); this.checkBox1.TabIndex = 2; this.checkBox1.Text = "&By every 2 points"; this.checkBox1.CheckedChanged += new System.EventHandler(this.checkBox1_CheckedChanged); // // 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 = "Source"; // // 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.FromArgb(((System.Byte)(254)), ((System.Byte)(0)), ((System.Byte)(0)), ((System.Byte)(255))); this.lineSeries1.DataSource = this.barSeries1; this.lineSeries1.Function = this.count1; // // lineSeries1.LinePen // this.lineSeries1.LinePen.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(0)), ((System.Byte)(0)), ((System.Byte)(153))); // // 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.FromArgb(((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(255))); // // 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 = "Count"; // // lineSeries1.XValues // this.lineSeries1.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; // // Function_Count // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(466, 286); this.Name = "Function_Count"; this.panel1.ResumeLayout(false); this.ResumeLayout(false); }