private void DoDashTrend(Chart tChart1, Chart tChart2) { tChart1.Panel.MarginLeft = 10; tChart2.Panel.MarginLeft = 10; tChart1.Axes.Left.Title.Text = AppResources.Participation; tChart1.Axes.Left.Labels.Size.Width = 5; tChart2.Axes.Left.Labels.Size.Width = 5; tChart2.Axes.Left.Title.Text = AppResources.DollarValue; tChart1.Series.Clear(); tChart2.Series.Clear(); Steema.TeeChart.Styles.Line line1 = new Steema.TeeChart.Styles.Line(); Steema.TeeChart.Styles.Line line2 = new Steema.TeeChart.Styles.Line(); tChart1.Series.Clear(); tChart1.Series.Add(line1); tChart1.Series.Add(line2); line1.LinePen.Width = 4; line2.LinePen.Width = 4; line1.FillSampleValues(20); line2.FillSampleValues(20); line1.Smoothed = true; line2.Smoothed = true; Steema.TeeChart.Styles.Area area1 = new Steema.TeeChart.Styles.Area(); Steema.TeeChart.Styles.Area area2 = new Steema.TeeChart.Styles.Area(); Steema.TeeChart.Styles.Line movAvg = new Steema.TeeChart.Styles.Line(); Steema.TeeChart.Functions.MovingAverage movAvgFunc = new Steema.TeeChart.Functions.MovingAverage(tChart2.Chart); movAvgFunc.PeriodStyle = Steema.TeeChart.Functions.PeriodStyles.NumPoints; movAvgFunc.Period = 4; movAvg.Function = movAvgFunc; movAvg.DataSource = area2; movAvg.LinePen.Width = 4; movAvg.Smoothed = true; tChart2.Series.Add(area1); tChart2.Series.Add(area2); tChart2.Series.Add(movAvg); //tChart2.AfterDraw+=new PaintChartEventHandler(tChart2_AfterDraw); movAvg.AfterDrawValues += new PaintChartEventHandler(movAvg_AfterDrawValues); area1.Transparency = 35; area2.Transparency = 35; area1.FillSampleValues(20); area2.FillSampleValues(20); tChart2.Legend.Visible = true; tChart2.Legend.Font.Size = 12; tChart2.Legend.LegendStyle = LegendStyles.Values; tChart2.Legend.MaxNumRows = 2; tChart2.Legend.Alignment = LegendAlignments.Bottom; //} }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.components = new System.ComponentModel.Container(); this.splitter1 = new System.Windows.Forms.Splitter(); this.chartListBox1 = new Steema.TeeChart.ChartListBox(this.components); this.tChart1 = new Steema.TeeChart.TChart(); this.area1 = new Steema.TeeChart.Styles.Area(); this.bar1 = new Steema.TeeChart.Styles.Bar(); this.line1 = new Steema.TeeChart.Styles.Line(); this.points1 = new Steema.TeeChart.Styles.Points(); this.groupBox1 = new System.Windows.Forms.GroupBox(); this.radioButton2 = new System.Windows.Forms.RadioButton(); this.radioButton1 = new System.Windows.Forms.RadioButton(); this.panel1.SuspendLayout(); this.panel2.SuspendLayout(); this.groupBox1.SuspendLayout(); this.SuspendLayout(); // // textBox1 // this.textBox1.Name = "textBox1"; this.textBox1.Text = "Chart ListBox control supports displaying check-boxes and radio-buttons.\r\nThe mai" + "n purpose of radio-buttons is to show only one series at a time.\r\n\r\nChartListBox" + "1.CheckStyle = CheckBoxStyle.Radio; "; // // panel1 // this.panel1.Controls.Add(this.groupBox1); this.panel1.Name = "panel1"; // // panel2 // this.panel2.Controls.Add(this.tChart1); this.panel2.Controls.Add(this.chartListBox1); this.panel2.Controls.Add(this.splitter1); this.panel2.Name = "panel2"; // // splitter1 // this.splitter1.Location = new System.Drawing.Point(0, 0); this.splitter1.Name = "splitter1"; this.splitter1.Size = new System.Drawing.Size(120, 154); this.splitter1.TabIndex = 0; this.splitter1.TabStop = false; // // chartListBox1 // this.chartListBox1.AllowDrop = true; this.chartListBox1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.chartListBox1.Chart = this.tChart1; this.chartListBox1.Location = new System.Drawing.Point(0, 0); this.chartListBox1.Name = "chartListBox1"; this.chartListBox1.OtherItems = null; this.chartListBox1.Size = new System.Drawing.Size(120, 172); this.chartListBox1.TabIndex = 1; // // tChart1 // // // tChart1.Aspect // this.tChart1.Aspect.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.HighQuality; this.tChart1.Aspect.TextRenderingHint = System.Drawing.Text.TextRenderingHint.ClearTypeGridFit; this.tChart1.Aspect.ThemeIndex = 2; // // tChart1.Axes // // // tChart1.Axes.Bottom // // // tChart1.Axes.Bottom.AxisPen // this.tChart1.Axes.Bottom.AxisPen.Width = 1; // // tChart1.Axes.Bottom.Grid // this.tChart1.Axes.Bottom.Grid.Centered = true; this.tChart1.Axes.Bottom.Grid.Color = System.Drawing.Color.Black; this.tChart1.Axes.Bottom.Grid.Style = System.Drawing.Drawing2D.DashStyle.Solid; // // tChart1.Axes.Bottom.Labels // // // tChart1.Axes.Bottom.Labels.Font // this.tChart1.Axes.Bottom.Labels.Font.Bold = true; this.tChart1.Axes.Bottom.Labels.Font.Name = "Times New Roman"; this.tChart1.Axes.Bottom.Labels.Font.Size = 10; // // tChart1.Axes.Bottom.MinorGrid // this.tChart1.Axes.Bottom.MinorGrid.Color = System.Drawing.Color.FromArgb(((System.Byte)(229)), ((System.Byte)(229)), ((System.Byte)(229))); // // tChart1.Axes.Bottom.MinorTicks // this.tChart1.Axes.Bottom.MinorTicks.Color = System.Drawing.Color.Black; this.tChart1.Axes.Bottom.MinorTicks.Visible = false; // // tChart1.Axes.Bottom.Ticks // this.tChart1.Axes.Bottom.Ticks.Color = System.Drawing.Color.Black; this.tChart1.Axes.Bottom.Ticks.Length = 2; // // tChart1.Axes.Bottom.TicksInner // this.tChart1.Axes.Bottom.TicksInner.Color = System.Drawing.Color.Black; this.tChart1.Axes.Bottom.TicksInner.Visible = false; // // tChart1.Axes.Bottom.Title // // // tChart1.Axes.Bottom.Title.Font // this.tChart1.Axes.Bottom.Title.Font.Name = "Times New Roman"; // // tChart1.Axes.Depth // // // tChart1.Axes.Depth.AxisPen // this.tChart1.Axes.Depth.AxisPen.Width = 1; // // tChart1.Axes.Depth.Grid // this.tChart1.Axes.Depth.Grid.Color = System.Drawing.Color.Black; this.tChart1.Axes.Depth.Grid.Style = System.Drawing.Drawing2D.DashStyle.Solid; // // tChart1.Axes.Depth.Labels // // // tChart1.Axes.Depth.Labels.Font // this.tChart1.Axes.Depth.Labels.Font.Name = "Times New Roman"; this.tChart1.Axes.Depth.Labels.Font.Size = 10; // // tChart1.Axes.Depth.MinorTicks // this.tChart1.Axes.Depth.MinorTicks.Color = System.Drawing.Color.Black; this.tChart1.Axes.Depth.MinorTicks.Visible = false; // // tChart1.Axes.Depth.Ticks // this.tChart1.Axes.Depth.Ticks.Color = System.Drawing.Color.Black; this.tChart1.Axes.Depth.Ticks.Length = 2; // // tChart1.Axes.Depth.TicksInner // this.tChart1.Axes.Depth.TicksInner.Color = System.Drawing.Color.Black; this.tChart1.Axes.Depth.TicksInner.Visible = false; // // tChart1.Axes.Depth.Title // // // tChart1.Axes.Depth.Title.Font // this.tChart1.Axes.Depth.Title.Font.Name = "Times New Roman"; // // tChart1.Axes.Left // // // tChart1.Axes.Left.AxisPen // this.tChart1.Axes.Left.AxisPen.Width = 1; // // tChart1.Axes.Left.Grid // this.tChart1.Axes.Left.Grid.Color = System.Drawing.Color.Black; this.tChart1.Axes.Left.Grid.Style = System.Drawing.Drawing2D.DashStyle.Solid; // // tChart1.Axes.Left.Labels // // // tChart1.Axes.Left.Labels.Font // this.tChart1.Axes.Left.Labels.Font.Bold = true; this.tChart1.Axes.Left.Labels.Font.Name = "Times New Roman"; this.tChart1.Axes.Left.Labels.Font.Size = 10; // // tChart1.Axes.Left.MinorTicks // this.tChart1.Axes.Left.MinorTicks.Color = System.Drawing.Color.Black; this.tChart1.Axes.Left.MinorTicks.Visible = false; // // tChart1.Axes.Left.Ticks // this.tChart1.Axes.Left.Ticks.Color = System.Drawing.Color.Black; this.tChart1.Axes.Left.Ticks.Length = 2; // // tChart1.Axes.Left.TicksInner // this.tChart1.Axes.Left.TicksInner.Color = System.Drawing.Color.Black; this.tChart1.Axes.Left.TicksInner.Visible = false; // // tChart1.Axes.Left.Title // // // tChart1.Axes.Left.Title.Font // this.tChart1.Axes.Left.Title.Font.Name = "Times New Roman"; // // tChart1.Axes.Right // // // tChart1.Axes.Right.AxisPen // this.tChart1.Axes.Right.AxisPen.Width = 1; // // tChart1.Axes.Right.Grid // this.tChart1.Axes.Right.Grid.Color = System.Drawing.Color.Black; this.tChart1.Axes.Right.Grid.Style = System.Drawing.Drawing2D.DashStyle.Solid; // // tChart1.Axes.Right.Labels // // // tChart1.Axes.Right.Labels.Font // this.tChart1.Axes.Right.Labels.Font.Name = "Times New Roman"; this.tChart1.Axes.Right.Labels.Font.Size = 10; // // tChart1.Axes.Right.MinorTicks // this.tChart1.Axes.Right.MinorTicks.Color = System.Drawing.Color.Black; this.tChart1.Axes.Right.MinorTicks.Visible = false; // // tChart1.Axes.Right.Ticks // this.tChart1.Axes.Right.Ticks.Color = System.Drawing.Color.Black; this.tChart1.Axes.Right.Ticks.Length = 2; // // tChart1.Axes.Right.TicksInner // this.tChart1.Axes.Right.TicksInner.Color = System.Drawing.Color.Black; this.tChart1.Axes.Right.TicksInner.Visible = false; // // tChart1.Axes.Right.Title // // // tChart1.Axes.Right.Title.Font // this.tChart1.Axes.Right.Title.Font.Name = "Times New Roman"; // // tChart1.Axes.Top // // // tChart1.Axes.Top.AxisPen // this.tChart1.Axes.Top.AxisPen.Width = 1; // // tChart1.Axes.Top.Grid // this.tChart1.Axes.Top.Grid.Color = System.Drawing.Color.Black; this.tChart1.Axes.Top.Grid.Style = System.Drawing.Drawing2D.DashStyle.Solid; // // tChart1.Axes.Top.Labels // // // tChart1.Axes.Top.Labels.Font // this.tChart1.Axes.Top.Labels.Font.Name = "Times New Roman"; this.tChart1.Axes.Top.Labels.Font.Size = 10; // // tChart1.Axes.Top.MinorTicks // this.tChart1.Axes.Top.MinorTicks.Color = System.Drawing.Color.Black; this.tChart1.Axes.Top.MinorTicks.Visible = false; // // tChart1.Axes.Top.Ticks // this.tChart1.Axes.Top.Ticks.Color = System.Drawing.Color.Black; this.tChart1.Axes.Top.Ticks.Length = 2; // // tChart1.Axes.Top.TicksInner // this.tChart1.Axes.Top.TicksInner.Color = System.Drawing.Color.Black; this.tChart1.Axes.Top.TicksInner.Visible = false; // // tChart1.Axes.Top.Title // // // tChart1.Axes.Top.Title.Font // this.tChart1.Axes.Top.Title.Font.Name = "Times New Roman"; this.tChart1.Dock = System.Windows.Forms.DockStyle.Fill; // // tChart1.Header // // // tChart1.Header.Brush // this.tChart1.Header.Brush.Color = System.Drawing.Color.White; // // tChart1.Header.Gradient // this.tChart1.Header.Brush.Gradient.EndColor = System.Drawing.Color.Gray; this.tChart1.Header.Brush.Gradient.MiddleColor = System.Drawing.Color.Empty; this.tChart1.Header.Brush.Gradient.StartColor = System.Drawing.Color.White; this.tChart1.Header.Brush.Gradient.Visible = true; // // tChart1.Header.Font // // // tChart1.Header.Font.Brush // this.tChart1.Header.Font.Brush.Color = System.Drawing.Color.Black; this.tChart1.Header.Font.Name = "Times New Roman"; this.tChart1.Header.Font.Size = 12; // // tChart1.Header.Gradient // this.tChart1.Header.Gradient.EndColor = System.Drawing.Color.Gray; this.tChart1.Header.Gradient.MiddleColor = System.Drawing.Color.Empty; this.tChart1.Header.Gradient.StartColor = System.Drawing.Color.White; this.tChart1.Header.Gradient.Visible = true; this.tChart1.Header.Lines = new string[] { "TeeChart" }; // // tChart1.Header.Pen // this.tChart1.Header.Pen.Width = 2; // // tChart1.Header.Shadow // // // tChart1.Header.Shadow.Brush // this.tChart1.Header.Shadow.Brush.Color = System.Drawing.Color.FromArgb(((System.Byte)(76)), ((System.Byte)(169)), ((System.Byte)(169)), ((System.Byte)(169))); this.tChart1.Header.Shadow.Height = 4; this.tChart1.Header.Shadow.Width = 4; this.tChart1.Header.Visible = false; // // tChart1.Legend // // // tChart1.Legend.Brush // // // tChart1.Legend.Gradient // this.tChart1.Legend.Brush.Gradient.EndColor = System.Drawing.Color.Yellow; this.tChart1.Legend.Brush.Gradient.MiddleColor = System.Drawing.Color.Empty; this.tChart1.Legend.Brush.Gradient.StartColor = System.Drawing.Color.White; // // tChart1.Legend.DividingLines // this.tChart1.Legend.DividingLines.Color = System.Drawing.Color.Silver; // // tChart1.Legend.Font // // // tChart1.Legend.Font.Brush // this.tChart1.Legend.Font.Brush.Color = System.Drawing.Color.FromArgb(((System.Byte)(100)), ((System.Byte)(0)), ((System.Byte)(0))); this.tChart1.Legend.Font.Name = "Times New Roman"; this.tChart1.Legend.Font.Size = 10; // // tChart1.Legend.Gradient // this.tChart1.Legend.Gradient.EndColor = System.Drawing.Color.Yellow; this.tChart1.Legend.Gradient.MiddleColor = System.Drawing.Color.Empty; this.tChart1.Legend.Gradient.StartColor = System.Drawing.Color.White; // // tChart1.Legend.Pen // this.tChart1.Legend.Pen.Visible = false; // // tChart1.Legend.Shadow // // // tChart1.Legend.Shadow.Brush // this.tChart1.Legend.Shadow.Brush.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(169)), ((System.Byte)(169)), ((System.Byte)(169))); this.tChart1.Legend.Shadow.Height = 0; this.tChart1.Legend.Shadow.Width = 0; // // tChart1.Legend.Symbol // this.tChart1.Legend.Symbol.DefaultPen = false; // // tChart1.Legend.Symbol.Pen // this.tChart1.Legend.Symbol.Pen.Visible = false; this.tChart1.Legend.Symbol.Squared = true; this.tChart1.Legend.Transparent = true; this.tChart1.Location = new System.Drawing.Point(120, 0); this.tChart1.Name = "tChart1"; // // tChart1.Panel // // // tChart1.Panel.Bevel // this.tChart1.Panel.Bevel.Outer = Steema.TeeChart.Drawing.BevelStyles.None; // // tChart1.Panel.Brush // this.tChart1.Panel.Brush.Color = System.Drawing.Color.White; // // tChart1.Panel.Gradient // this.tChart1.Panel.Brush.Gradient.EndColor = System.Drawing.Color.Yellow; this.tChart1.Panel.Brush.Gradient.MiddleColor = System.Drawing.Color.Empty; this.tChart1.Panel.Brush.Gradient.StartColor = System.Drawing.Color.White; // // tChart1.Panel.Gradient // this.tChart1.Panel.Gradient.EndColor = System.Drawing.Color.Yellow; this.tChart1.Panel.Gradient.MiddleColor = System.Drawing.Color.Empty; this.tChart1.Panel.Gradient.StartColor = System.Drawing.Color.White; // // tChart1.Panel.Pen // this.tChart1.Panel.Pen.Visible = true; // // tChart1.Panel.Shadow // // // tChart1.Panel.Shadow.Brush // this.tChart1.Panel.Shadow.Brush.Color = System.Drawing.Color.Black; this.tChart1.Panel.Shadow.Height = 0; this.tChart1.Panel.Shadow.Visible = true; this.tChart1.Panel.Shadow.Width = 0; this.tChart1.Series.Add(this.area1); this.tChart1.Series.Add(this.bar1); this.tChart1.Series.Add(this.line1); this.tChart1.Series.Add(this.points1); this.tChart1.Size = new System.Drawing.Size(306, 154); this.tChart1.TabIndex = 2; // // tChart1.Walls // // // tChart1.Walls.Back // this.tChart1.Walls.Back.ApplyDark = false; // // tChart1.Walls.Back.Brush // this.tChart1.Walls.Back.Brush.Color = System.Drawing.Color.White; // // tChart1.Walls.Back.Gradient // this.tChart1.Walls.Back.Brush.Gradient.EndColor = System.Drawing.Color.FromArgb(((System.Byte)(223)), ((System.Byte)(122)), ((System.Byte)(41))); this.tChart1.Walls.Back.Brush.Gradient.MiddleColor = System.Drawing.Color.Empty; this.tChart1.Walls.Back.Brush.Gradient.StartColor = System.Drawing.Color.White; // // tChart1.Walls.Back.Gradient // this.tChart1.Walls.Back.Gradient.EndColor = System.Drawing.Color.FromArgb(((System.Byte)(223)), ((System.Byte)(122)), ((System.Byte)(41))); this.tChart1.Walls.Back.Gradient.MiddleColor = System.Drawing.Color.Empty; this.tChart1.Walls.Back.Gradient.StartColor = System.Drawing.Color.White; this.tChart1.Walls.Back.Size = 8; this.tChart1.Walls.Back.Transparent = false; // // tChart1.Walls.Bottom // this.tChart1.Walls.Bottom.ApplyDark = false; // // tChart1.Walls.Bottom.Brush // // // tChart1.Walls.Bottom.Gradient // this.tChart1.Walls.Bottom.Brush.Gradient.EndColor = System.Drawing.Color.FromArgb(((System.Byte)(252)), ((System.Byte)(254)), ((System.Byte)(253))); this.tChart1.Walls.Bottom.Brush.Gradient.StartColor = System.Drawing.Color.FromArgb(((System.Byte)(47)), ((System.Byte)(133)), ((System.Byte)(253))); // // tChart1.Walls.Bottom.Gradient // this.tChart1.Walls.Bottom.Gradient.EndColor = System.Drawing.Color.FromArgb(((System.Byte)(252)), ((System.Byte)(254)), ((System.Byte)(253))); this.tChart1.Walls.Bottom.Gradient.StartColor = System.Drawing.Color.FromArgb(((System.Byte)(47)), ((System.Byte)(133)), ((System.Byte)(253))); this.tChart1.Walls.Bottom.Size = 8; // // tChart1.Walls.Left // this.tChart1.Walls.Left.ApplyDark = false; // // tChart1.Walls.Left.Brush // this.tChart1.Walls.Left.Brush.Color = System.Drawing.Color.White; // // tChart1.Walls.Left.Gradient // this.tChart1.Walls.Left.Brush.Gradient.EndColor = System.Drawing.Color.FromArgb(((System.Byte)(36)), ((System.Byte)(209)), ((System.Byte)(252))); this.tChart1.Walls.Left.Brush.Gradient.StartColor = System.Drawing.Color.FromArgb(((System.Byte)(13)), ((System.Byte)(188)), ((System.Byte)(124))); // // tChart1.Walls.Left.Gradient // this.tChart1.Walls.Left.Gradient.EndColor = System.Drawing.Color.FromArgb(((System.Byte)(36)), ((System.Byte)(209)), ((System.Byte)(252))); this.tChart1.Walls.Left.Gradient.StartColor = System.Drawing.Color.FromArgb(((System.Byte)(13)), ((System.Byte)(188)), ((System.Byte)(124))); this.tChart1.Walls.Left.Size = 8; // // tChart1.Walls.Right // this.tChart1.Walls.Right.ApplyDark = false; // // tChart1.Walls.Right.Brush // this.tChart1.Walls.Right.Brush.Color = System.Drawing.Color.White; this.tChart1.Walls.Right.Size = 8; // // area1 // // // area1.AreaBrush // this.area1.AreaBrush.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(255)), ((System.Byte)(0)), ((System.Byte)(0))); // // area1.Brush // this.area1.Brush.Color = System.Drawing.Color.FromArgb(((System.Byte)(255)), ((System.Byte)(0)), ((System.Byte)(0))); // // area1.Marks // // // area1.Marks.Arrow // this.area1.Marks.Arrow.Color = System.Drawing.Color.Black; // // area1.Marks.Brush // // // area1.Marks.Gradient // this.area1.Marks.Brush.Gradient.StartColor = System.Drawing.Color.Silver; // // area1.Marks.Font // this.area1.Marks.Font.Name = "Times New Roman"; this.area1.Marks.Font.Size = 10; // // area1.Marks.Gradient // this.area1.Marks.Gradient.StartColor = System.Drawing.Color.Silver; // // area1.Marks.Symbol // // // area1.Marks.Symbol.Shadow // this.area1.Marks.Symbol.Shadow.Height = 1; this.area1.Marks.Symbol.Shadow.Visible = true; this.area1.Marks.Symbol.Shadow.Width = 1; this.area1.Marks.Transparent = true; // // area1.Pointer // this.area1.Pointer.Style = Steema.TeeChart.Styles.PointerStyles.Rectangle; this.area1.Title = "area1"; // // area1.XValues // this.area1.XValues.DataMember = "X"; this.area1.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; // // area1.YValues // this.area1.YValues.DataMember = "Y"; // // bar1 // // // bar1.Brush // this.bar1.Brush.Color = System.Drawing.Color.FromArgb(((System.Byte)(0)), ((System.Byte)(255)), ((System.Byte)(0))); // // bar1.Marks // // // bar1.Marks.Arrow // this.bar1.Marks.Arrow.Color = System.Drawing.Color.Black; // // bar1.Marks.Brush // // // bar1.Marks.Gradient // this.bar1.Marks.Brush.Gradient.StartColor = System.Drawing.Color.Silver; // // bar1.Marks.Font // this.bar1.Marks.Font.Name = "Times New Roman"; this.bar1.Marks.Font.Size = 10; // // bar1.Marks.Gradient // this.bar1.Marks.Gradient.StartColor = System.Drawing.Color.Silver; // // bar1.Marks.Symbol // // // bar1.Marks.Symbol.Shadow // this.bar1.Marks.Symbol.Shadow.Height = 1; this.bar1.Marks.Symbol.Shadow.Visible = true; this.bar1.Marks.Symbol.Shadow.Width = 1; this.bar1.Marks.Transparent = true; this.bar1.Marks.Visible = false; this.bar1.Title = "bar1"; // // bar1.XValues // this.bar1.XValues.DataMember = "X"; this.bar1.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; // // bar1.YValues // this.bar1.YValues.DataMember = "Bar"; // // line1 // // // line1.Brush // this.line1.Brush.Color = System.Drawing.Color.FromArgb(((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(0))); // // line1.Marks // // // line1.Marks.Arrow // this.line1.Marks.Arrow.Color = System.Drawing.Color.Black; // // line1.Marks.Brush // // // line1.Marks.Gradient // this.line1.Marks.Brush.Gradient.StartColor = System.Drawing.Color.Silver; // // line1.Marks.Font // this.line1.Marks.Font.Name = "Times New Roman"; this.line1.Marks.Font.Size = 10; // // line1.Marks.Gradient // this.line1.Marks.Gradient.StartColor = System.Drawing.Color.Silver; // // line1.Marks.Symbol // // // line1.Marks.Symbol.Shadow // this.line1.Marks.Symbol.Shadow.Height = 1; this.line1.Marks.Symbol.Shadow.Visible = true; this.line1.Marks.Symbol.Shadow.Width = 1; this.line1.Marks.Transparent = true; // // line1.Pointer // this.line1.Pointer.Style = Steema.TeeChart.Styles.PointerStyles.Rectangle; this.line1.Title = "line1"; // // line1.XValues // this.line1.XValues.DataMember = "X"; this.line1.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; // // line1.YValues // this.line1.YValues.DataMember = "Y"; // // points1 // // // points1.Marks // // // points1.Marks.Arrow // this.points1.Marks.Arrow.Color = System.Drawing.Color.Black; // // points1.Marks.Brush // // // points1.Marks.Gradient // this.points1.Marks.Brush.Gradient.StartColor = System.Drawing.Color.Silver; // // points1.Marks.Font // this.points1.Marks.Font.Name = "Times New Roman"; this.points1.Marks.Font.Size = 10; // // points1.Marks.Gradient // this.points1.Marks.Gradient.StartColor = System.Drawing.Color.Silver; // // points1.Marks.Symbol // // // points1.Marks.Symbol.Shadow // this.points1.Marks.Symbol.Shadow.Height = 1; this.points1.Marks.Symbol.Shadow.Visible = true; this.points1.Marks.Symbol.Shadow.Width = 1; this.points1.Marks.Transparent = true; // // points1.Pointer // // // points1.Pointer.Brush // this.points1.Pointer.Brush.Color = System.Drawing.Color.FromArgb(((System.Byte)(0)), ((System.Byte)(0)), ((System.Byte)(255))); this.points1.Pointer.Style = Steema.TeeChart.Styles.PointerStyles.Rectangle; this.points1.Title = "points1"; // // points1.XValues // this.points1.XValues.DataMember = "X"; this.points1.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; // // points1.YValues // this.points1.YValues.DataMember = "Y"; // // groupBox1 // this.groupBox1.Controls.Add(this.radioButton2); this.groupBox1.Controls.Add(this.radioButton1); this.groupBox1.Location = new System.Drawing.Point(16, 0); this.groupBox1.Name = "groupBox1"; this.groupBox1.Size = new System.Drawing.Size(144, 40); this.groupBox1.TabIndex = 0; this.groupBox1.TabStop = false; this.groupBox1.Text = "Check Style"; // // radioButton2 // this.radioButton2.Location = new System.Drawing.Point(80, 18); this.radioButton2.Name = "radioButton2"; this.radioButton2.Size = new System.Drawing.Size(56, 14); this.radioButton2.TabIndex = 1; this.radioButton2.Text = "Radio"; this.radioButton2.Click += new System.EventHandler(this.RadioButtons_Click); // // radioButton1 // this.radioButton1.Checked = true; this.radioButton1.Location = new System.Drawing.Point(11, 18); this.radioButton1.Name = "radioButton1"; this.radioButton1.Size = new System.Drawing.Size(56, 14); this.radioButton1.TabIndex = 0; this.radioButton1.TabStop = true; this.radioButton1.Text = "Check"; this.radioButton1.Click += new System.EventHandler(this.RadioButtons_Click); // // ChartListBoxRadio // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(426, 258); this.Name = "ChartListBoxRadio"; this.panel1.ResumeLayout(false); this.panel2.ResumeLayout(false); this.groupBox1.ResumeLayout(false); this.ResumeLayout(false); }
/// <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(Area_StackGroup)); this.area1 = new Steema.TeeChart.Styles.Area(); this.area2 = new Steema.TeeChart.Styles.Area(); this.area3 = new Steema.TeeChart.Styles.Area(); this.area4 = new Steema.TeeChart.Styles.Area(); this.checkBox1 = new System.Windows.Forms.CheckBox(); this.label1 = new System.Windows.Forms.Label(); this.comboBox1 = new System.Windows.Forms.ComboBox(); this.label2 = new System.Windows.Forms.Label(); this.numericUpDown1 = new System.Windows.Forms.NumericUpDown(); this.panel1.SuspendLayout(); this.chartContainer.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.numericUpDown1)).BeginInit(); this.SuspendLayout(); // // textBox1 // this.textBox1.Text = "Area series can now be grouped. The StackGroup propertydefines the \"group\". \r\nTh" + "ere is no limit on how many groups exist.\r\n\r\nExample: area1.StackGroup = 0 ; ar" + "ea2.StackGroup = 1 ; "; // // panel1 // this.panel1.Controls.Add(this.numericUpDown1); this.panel1.Controls.Add(this.label2); this.panel1.Controls.Add(this.comboBox1); this.panel1.Controls.Add(this.label1); this.panel1.Controls.Add(this.checkBox1); // // tChart1 // // // // // // // this.tChart1.Legend.Alignment = Steema.TeeChart.LegendAlignments.Bottom; // // // // // // // // // this.tChart1.Panel.Brush.Gradient.EndColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); this.tChart1.Panel.Brush.Gradient.ExtendedColorPalette = null; this.tChart1.Panel.Brush.Gradient.MiddleColor = System.Drawing.Color.FromArgb(((int)(((byte)(234)))), ((int)(((byte)(234)))), ((int)(((byte)(234))))); this.tChart1.Panel.Brush.Gradient.StartColor = System.Drawing.Color.FromArgb(((int)(((byte)(234)))), ((int)(((byte)(234)))), ((int)(((byte)(234))))); this.tChart1.Panel.Brush.Gradient.UseMiddle = true; this.tChart1.Panel.Brush.Gradient.Visible = true; this.tChart1.Series.Add(this.area1); this.tChart1.Series.Add(this.area2); this.tChart1.Series.Add(this.area3); this.tChart1.Series.Add(this.area4); this.tChart1.Size = new System.Drawing.Size(440, 205); // // // // // // // // // // // // this.tChart1.Walls.Back.Brush.Gradient.EndColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); this.tChart1.Walls.Back.Brush.Gradient.ExtendedColorPalette = null; this.tChart1.Walls.Back.Brush.Gradient.MiddleColor = System.Drawing.Color.Empty; this.tChart1.Walls.Back.Brush.Gradient.StartColor = System.Drawing.Color.FromArgb(((int)(((byte)(234)))), ((int)(((byte)(234)))), ((int)(((byte)(234))))); this.tChart1.Walls.Back.Brush.Gradient.Visible = true; this.tChart1.Walls.Back.Brush.Visible = true; this.tChart1.Walls.Back.Transparent = false; // // area1 // // // // this.area1.AreaBrush.Color = System.Drawing.Color.FromArgb(((int)(((byte)(178)))), ((int)(((byte)(224)))), ((int)(((byte)(77)))), ((int)(((byte)(44))))); // // // this.area1.AreaLines.Color = System.Drawing.Color.FromArgb(((int)(((byte)(134)))), ((int)(((byte)(46)))), ((int)(((byte)(26))))); // // // this.area1.Brush.Color = System.Drawing.Color.FromArgb(((int)(((byte)(178)))), ((int)(((byte)(224)))), ((int)(((byte)(77)))), ((int)(((byte)(44))))); this.area1.ColorEach = false; this.area1.DefaultNullValue = 0; // // // this.area1.Gradient.ExtendedColorPalette = null; this.area1.Gradient.StartColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(77)))), ((int)(((byte)(44))))); this.area1.Gradient.Transparency = 30; // // // this.area1.LinePen.Color = System.Drawing.Color.FromArgb(((int)(((byte)(134)))), ((int)(((byte)(46)))), ((int)(((byte)(26))))); // // // // // // this.area1.Marks.Callout.ArrowHead = Steema.TeeChart.Styles.ArrowHeadStyles.None; this.area1.Marks.Callout.ArrowHeadSize = 8; // // // this.area1.Marks.Callout.Brush.Color = System.Drawing.Color.Black; this.area1.Marks.Callout.Distance = 0; this.area1.Marks.Callout.Draw3D = false; this.area1.Marks.Callout.Length = 10; this.area1.Marks.Callout.Style = Steema.TeeChart.Styles.PointerStyles.Rectangle; this.area1.MultiArea = Steema.TeeChart.Styles.MultiAreas.Stacked; // // // this.area1.Pointer.Style = Steema.TeeChart.Styles.PointerStyles.Rectangle; this.area1.Stacked = Steema.TeeChart.Styles.CustomStack.Stack; this.area1.Title = "area1"; // // // this.area1.TopGradient.Direction = System.Drawing.Drawing2D.LinearGradientMode.Horizontal; this.area1.TopGradient.EndColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(77)))), ((int)(((byte)(44))))); this.area1.TopGradient.ExtendedColorPalette = null; this.area1.TopGradient.MiddleColor = System.Drawing.Color.FromArgb(((int)(((byte)(249)))), ((int)(((byte)(220)))), ((int)(((byte)(212))))); this.area1.TopGradient.StartColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(77)))), ((int)(((byte)(44))))); this.area1.TopGradient.Transparency = 30; this.area1.TopGradient.UseMiddle = true; // // // this.area1.XValues.DataMember = "X"; this.area1.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; // // // this.area1.YValues.DataMember = "Y"; // // area2 // // // // this.area2.AreaBrush.Color = System.Drawing.Color.FromArgb(((int)(((byte)(178)))), ((int)(((byte)(244)))), ((int)(((byte)(158)))), ((int)(((byte)(54))))); // // // this.area2.AreaLines.Color = System.Drawing.Color.FromArgb(((int)(((byte)(146)))), ((int)(((byte)(95)))), ((int)(((byte)(32))))); // // // this.area2.Brush.Color = System.Drawing.Color.FromArgb(((int)(((byte)(178)))), ((int)(((byte)(244)))), ((int)(((byte)(158)))), ((int)(((byte)(54))))); this.area2.ColorEach = false; this.area2.DefaultNullValue = 0; // // // this.area2.Gradient.ExtendedColorPalette = null; this.area2.Gradient.StartColor = System.Drawing.Color.FromArgb(((int)(((byte)(244)))), ((int)(((byte)(158)))), ((int)(((byte)(54))))); this.area2.Gradient.Transparency = 30; // // // this.area2.LinePen.Color = System.Drawing.Color.FromArgb(((int)(((byte)(146)))), ((int)(((byte)(95)))), ((int)(((byte)(32))))); // // // // // // this.area2.Marks.Callout.ArrowHead = Steema.TeeChart.Styles.ArrowHeadStyles.None; this.area2.Marks.Callout.ArrowHeadSize = 8; // // // this.area2.Marks.Callout.Brush.Color = System.Drawing.Color.Black; this.area2.Marks.Callout.Distance = 0; this.area2.Marks.Callout.Draw3D = false; this.area2.Marks.Callout.Length = 10; this.area2.Marks.Callout.Style = Steema.TeeChart.Styles.PointerStyles.Rectangle; this.area2.MultiArea = Steema.TeeChart.Styles.MultiAreas.Stacked; // // // this.area2.Pointer.Style = Steema.TeeChart.Styles.PointerStyles.Rectangle; this.area2.Stacked = Steema.TeeChart.Styles.CustomStack.Stack; this.area2.StackGroup = 1; this.area2.Title = "area2"; // // // this.area2.TopGradient.Direction = System.Drawing.Drawing2D.LinearGradientMode.Horizontal; this.area2.TopGradient.EndColor = System.Drawing.Color.FromArgb(((int)(((byte)(244)))), ((int)(((byte)(158)))), ((int)(((byte)(54))))); this.area2.TopGradient.ExtendedColorPalette = null; this.area2.TopGradient.MiddleColor = System.Drawing.Color.FromArgb(((int)(((byte)(253)))), ((int)(((byte)(236)))), ((int)(((byte)(215))))); this.area2.TopGradient.StartColor = System.Drawing.Color.FromArgb(((int)(((byte)(244)))), ((int)(((byte)(158)))), ((int)(((byte)(54))))); this.area2.TopGradient.Transparency = 30; this.area2.TopGradient.UseMiddle = true; // // // this.area2.XValues.DataMember = "X"; this.area2.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; // // // this.area2.YValues.DataMember = "Y"; // // area3 // // // // this.area3.AreaBrush.Color = System.Drawing.Color.FromArgb(((int)(((byte)(178)))), ((int)(((byte)(251)))), ((int)(((byte)(197)))), ((int)(((byte)(65))))); // // // this.area3.AreaLines.Color = System.Drawing.Color.FromArgb(((int)(((byte)(151)))), ((int)(((byte)(118)))), ((int)(((byte)(39))))); // // // this.area3.Brush.Color = System.Drawing.Color.FromArgb(((int)(((byte)(178)))), ((int)(((byte)(251)))), ((int)(((byte)(197)))), ((int)(((byte)(65))))); this.area3.ColorEach = false; this.area3.DefaultNullValue = 0; // // // this.area3.Gradient.ExtendedColorPalette = null; this.area3.Gradient.StartColor = System.Drawing.Color.FromArgb(((int)(((byte)(251)))), ((int)(((byte)(197)))), ((int)(((byte)(65))))); this.area3.Gradient.Transparency = 30; // // // this.area3.LinePen.Color = System.Drawing.Color.FromArgb(((int)(((byte)(151)))), ((int)(((byte)(118)))), ((int)(((byte)(39))))); // // // // // // this.area3.Marks.Callout.ArrowHead = Steema.TeeChart.Styles.ArrowHeadStyles.None; this.area3.Marks.Callout.ArrowHeadSize = 8; // // // this.area3.Marks.Callout.Brush.Color = System.Drawing.Color.Black; this.area3.Marks.Callout.Distance = 0; this.area3.Marks.Callout.Draw3D = false; this.area3.Marks.Callout.Length = 10; this.area3.Marks.Callout.Style = Steema.TeeChart.Styles.PointerStyles.Rectangle; this.area3.MultiArea = Steema.TeeChart.Styles.MultiAreas.Stacked; // // // this.area3.Pointer.Style = Steema.TeeChart.Styles.PointerStyles.Rectangle; this.area3.Stacked = Steema.TeeChart.Styles.CustomStack.Stack; this.area3.Title = "area3"; // // // this.area3.TopGradient.Direction = System.Drawing.Drawing2D.LinearGradientMode.Horizontal; this.area3.TopGradient.EndColor = System.Drawing.Color.FromArgb(((int)(((byte)(251)))), ((int)(((byte)(197)))), ((int)(((byte)(65))))); this.area3.TopGradient.ExtendedColorPalette = null; this.area3.TopGradient.MiddleColor = System.Drawing.Color.FromArgb(((int)(((byte)(254)))), ((int)(((byte)(243)))), ((int)(((byte)(217))))); this.area3.TopGradient.StartColor = System.Drawing.Color.FromArgb(((int)(((byte)(251)))), ((int)(((byte)(197)))), ((int)(((byte)(65))))); this.area3.TopGradient.Transparency = 30; this.area3.TopGradient.UseMiddle = true; // // // this.area3.XValues.DataMember = "X"; this.area3.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; // // // this.area3.YValues.DataMember = "Y"; // // area4 // // // // this.area4.AreaBrush.Color = System.Drawing.Color.FromArgb(((int)(((byte)(178)))), ((int)(((byte)(254)))), ((int)(((byte)(236)))), ((int)(((byte)(58))))); // // // this.area4.AreaLines.Color = System.Drawing.Color.FromArgb(((int)(((byte)(152)))), ((int)(((byte)(142)))), ((int)(((byte)(35))))); // // // this.area4.Brush.Color = System.Drawing.Color.FromArgb(((int)(((byte)(178)))), ((int)(((byte)(254)))), ((int)(((byte)(236)))), ((int)(((byte)(58))))); this.area4.ColorEach = false; this.area4.DefaultNullValue = 0; // // // this.area4.Gradient.ExtendedColorPalette = null; this.area4.Gradient.StartColor = System.Drawing.Color.FromArgb(((int)(((byte)(254)))), ((int)(((byte)(236)))), ((int)(((byte)(58))))); this.area4.Gradient.Transparency = 30; // // // this.area4.LinePen.Color = System.Drawing.Color.FromArgb(((int)(((byte)(152)))), ((int)(((byte)(142)))), ((int)(((byte)(35))))); // // // // // // this.area4.Marks.Callout.ArrowHead = Steema.TeeChart.Styles.ArrowHeadStyles.None; this.area4.Marks.Callout.ArrowHeadSize = 8; // // // this.area4.Marks.Callout.Brush.Color = System.Drawing.Color.Black; this.area4.Marks.Callout.Distance = 0; this.area4.Marks.Callout.Draw3D = false; this.area4.Marks.Callout.Length = 10; this.area4.Marks.Callout.Style = Steema.TeeChart.Styles.PointerStyles.Rectangle; this.area4.MultiArea = Steema.TeeChart.Styles.MultiAreas.Stacked; // // // this.area4.Pointer.Style = Steema.TeeChart.Styles.PointerStyles.Rectangle; this.area4.Stacked = Steema.TeeChart.Styles.CustomStack.Stack; this.area4.StackGroup = 1; this.area4.Title = "area4"; // // // this.area4.TopGradient.Direction = System.Drawing.Drawing2D.LinearGradientMode.Horizontal; this.area4.TopGradient.EndColor = System.Drawing.Color.FromArgb(((int)(((byte)(254)))), ((int)(((byte)(236)))), ((int)(((byte)(58))))); this.area4.TopGradient.ExtendedColorPalette = null; this.area4.TopGradient.MiddleColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(251)))), ((int)(((byte)(216))))); this.area4.TopGradient.StartColor = System.Drawing.Color.FromArgb(((int)(((byte)(254)))), ((int)(((byte)(236)))), ((int)(((byte)(58))))); this.area4.TopGradient.Transparency = 30; this.area4.TopGradient.UseMiddle = true; // // // this.area4.XValues.DataMember = "X"; this.area4.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; // // // this.area4.YValues.DataMember = "Y"; // // checkBox1 // #if VS2005 this.checkBox1.AutoSize = true; #endif 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, 16); this.checkBox1.Name = "checkBox1"; this.checkBox1.Size = new System.Drawing.Size(63, 17); this.checkBox1.TabIndex = 0; this.checkBox1.Text = "Stacked"; #if VS2005 this.checkBox1.UseVisualStyleBackColor = true; #endif this.checkBox1.CheckedChanged += new System.EventHandler(this.checkBox1_CheckedChanged); // // label1 // this.label1.AutoSize = true; this.label1.Location = new System.Drawing.Point(129, 18); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(36, 13); this.label1.TabIndex = 1; this.label1.Text = "Series"; // // comboBox1 // #if VS2005 this.comboBox1.FormattingEnabled = true; #endif this.comboBox1.Location = new System.Drawing.Point(171, 15); this.comboBox1.Name = "comboBox1"; this.comboBox1.Size = new System.Drawing.Size(90, 21); this.comboBox1.TabIndex = 2; this.comboBox1.SelectedIndexChanged += new System.EventHandler(this.comboBox1_SelectedIndexChanged); // // label2 // this.label2.AutoSize = true; this.label2.Location = new System.Drawing.Point(277, 18); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(36, 13); this.label2.TabIndex = 3; this.label2.Text = "Group"; // // numericUpDown1 // this.numericUpDown1.Location = new System.Drawing.Point(319, 16); this.numericUpDown1.Maximum = new decimal(new int[] { 3, 0, 0, 0 }); this.numericUpDown1.Name = "numericUpDown1"; this.numericUpDown1.Size = new System.Drawing.Size(45, 20); this.numericUpDown1.TabIndex = 4; this.numericUpDown1.ValueChanged += new System.EventHandler(this.numericUpDown1_ValueChanged); // // Area_StackGroup // this.ClientSize = new System.Drawing.Size(440, 317); this.Name = "Area_StackGroup"; this.panel1.ResumeLayout(false); this.panel1.PerformLayout(); this.chartContainer.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.numericUpDown1)).EndInit(); this.ResumeLayout(false); this.PerformLayout(); }