private void button1_Click(object sender, EventArgs e) { if (string.IsNullOrEmpty(comboBox1.Text) == true || string.IsNullOrEmpty(comboBox2.Text) == true) { MessageBox.Show("������Դ�����ݲ�������Ϊ��"); } else { tChart1.Series.Clear(); tChart1.Header.Text = "���ݲ�ѯ"; tChart1.Aspect.View3D = false; tChart1.Axes.Bottom.Labels.DateTimeFormat = "yyyy/MM/dd HH:mm"; tChart1.Axes.Bottom.Labels.MultiLine = true; Steema.TeeChart.Styles.Line line0 = new Steema.TeeChart.Styles.Line(); line0.Title = " "; line0.Color = Color.White; line0.XValues.DateTime = true; tChart1.Series.Add(line0); chk(); Steema.TeeChart.Styles.Line line1 = new Steema.TeeChart.Styles.Line(); paintline(line1, cmpdat, datsours, Color.Red, comboBox1.Text.ToString().Trim() + cmpdat); } }
private void Emt_Load(object sender, EventArgs e) { tChart1.Header.Text = "�����ʾ�A"; Steema.TeeChart.Styles.Line line1 = new Steema.TeeChart.Styles.Line(); line1.Add(data); tChart1.Series.Add(line1); }
public override void ViewDidLoad() { base.ViewDidLoad (); chart1.Frame = VDTUIView.Frame; this.View.AddSubview(chart1); // Bar series Steema.TeeChart.Styles.Line line1 = new Steema.TeeChart.Styles.Line(); chart1.Series.Add(line1); chart1.Aspect.View3D = true; // Header chart1.Header.Visible = true; chart1.Header.Text = "Volume Distribution"; chart1.Header.Alignment = MonoTouch.CoreText.CTTextAlignment.Left; chart1.Header.Shadow.Visible = true; chart1.Header.Font.Size=20; // Formating Legend chart1.Legend.Visible = true; chart1.Legend.Shadow.Visible=false; chart1.Legend.Gradient.Visible=false; chart1.Legend.Transparency = 50; chart1.Legend.Alignment = Steema.TeeChart.LegendAlignments.Bottom; chart1.Legend.Font.Color = UIColor.Black.CGColor; // Random serie chart1.Series[0].FillSampleValues(50); chart1.Panel.MarginTop = 10; }
private void button1_Click(object sender, EventArgs e) { if (string.IsNullOrEmpty(comboBox1.Text) == true) { MessageBox.Show("������Դ�����ݲ�������Ϊ��"); } else { tChart1.Series.Clear(); tChart1.Header.Text = "���ݶԱ�"; tChart1.Aspect.View3D = false; tChart1.Axes.Bottom.Labels.DateTimeFormat = "yyyy/MM/dd HH mm"; tChart1.Axes.Bottom.Labels.MultiLine = true; Steema.TeeChart.Styles.Line line0 = new Steema.TeeChart.Styles.Line(); line0.Title = " "; line0.Color = Color.White; line0.XValues.DateTime = true; tChart1.Series.Add(line0); switch (comboBox1.SelectedIndex) { case 0: cmpdat = "PH"; break; case 1: cmpdat = "water_temp"; break; case 2: cmpdat = "NTU"; break; case 3: cmpdat = "O_dis"; break; case 4: cmpdat = "Chol";//gaichengni d Chol break; default: break; } if (checkBox1.Checked) { Steema.TeeChart.Styles.Line line1 = new Steema.TeeChart.Styles.Line(); paintline(line1, cmpdat, "T_station", Color.Red, "�Զ�վ����");//T_station } if (checkBox2.Checked) { Steema.TeeChart.Styles.Line line2 = new Steema.TeeChart.Styles.Line(); paintline(line2, cmpdat, "T_fubiao", Color.Green, "��������"); } if (checkBox3.Checked) { Steema.TeeChart.Styles.Line line3 = new Steema.TeeChart.Styles.Line(); paintline(line3, cmpdat, "T_lmis", Color.DarkBlue, "ʵ��������"); } } //extraaxis(); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.components = new System.ComponentModel.Container(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Function_ExpMovAve)); this.candle1 = new Steema.TeeChart.Styles.Candle(); this.expMovAverage1 = new Steema.TeeChart.Functions.ExpMovAverage(); this.line1 = new Steema.TeeChart.Styles.Line(); this.label1 = new System.Windows.Forms.Label(); this.numericUpDown1 = new System.Windows.Forms.NumericUpDown(); this.label2 = new System.Windows.Forms.Label(); this.comboBox1 = new System.Windows.Forms.ComboBox(); this.checkBox1 = new System.Windows.Forms.CheckBox(); this.timer1 = new System.Windows.Forms.Timer(this.components); this.panel1.SuspendLayout(); this.chartContainer.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.numericUpDown1)).BeginInit(); this.SuspendLayout(); // // textBox1 // this.textBox1.Size = new System.Drawing.Size(560, 40); this.textBox1.Text = "Exponential Moving Average function."; // // panel1 // this.panel1.Controls.Add(this.checkBox1); this.panel1.Controls.Add(this.comboBox1); this.panel1.Controls.Add(this.label2); this.panel1.Controls.Add(this.numericUpDown1); this.panel1.Controls.Add(this.label1); this.panel1.Location = new System.Drawing.Point(0, 40); this.panel1.Size = new System.Drawing.Size(560, 40); // // tChart1 // // // // this.tChart1.Aspect.View3D = false; this.tChart1.Aspect.ZOffset = 0; // // // // // // this.tChart1.Axes.Bottom.MaximumOffset = 5; this.tChart1.Axes.Bottom.MinimumOffset = 5; // // // this.tChart1.Axes.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.Panel.Brush.Gradient.MiddleColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(192))))); this.tChart1.Panel.Brush.Gradient.StartColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(255))))); this.tChart1.Series.Add(this.candle1); this.tChart1.Series.Add(this.line1); this.tChart1.Size = new System.Drawing.Size(560, 285); // // chartContainer // this.chartContainer.Location = new System.Drawing.Point(0, 80); this.chartContainer.Size = new System.Drawing.Size(560, 285); // // candle1 // // // // this.candle1.Brush.Color = System.Drawing.Color.Red; this.candle1.CloseValues = this.candle1.YValues; this.candle1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(68)))), ((int)(((byte)(102)))), ((int)(((byte)(163))))); this.candle1.ColorEach = false; this.candle1.DateValues = this.candle1.XValues; // // // this.candle1.LinePen.Color = System.Drawing.Color.FromArgb(((int)(((byte)(41)))), ((int)(((byte)(61)))), ((int)(((byte)(98))))); // // // // // // this.candle1.Marks.Callout.ArrowHead = Steema.TeeChart.Styles.ArrowHeadStyles.None; this.candle1.Marks.Callout.ArrowHeadSize = 8; // // // this.candle1.Marks.Callout.Brush.Color = System.Drawing.Color.Black; this.candle1.Marks.Callout.Distance = 0; this.candle1.Marks.Callout.Draw3D = false; this.candle1.Marks.Callout.Length = 10; this.candle1.Marks.Callout.Style = Steema.TeeChart.Styles.PointerStyles.Rectangle; this.candle1.Marks.Callout.Visible = false; // // // this.candle1.Pointer.Draw3D = false; this.candle1.Pointer.Style = Steema.TeeChart.Styles.PointerStyles.Rectangle; this.candle1.Title = "candle1"; // // // this.candle1.XValues.DataMember = "Date"; this.candle1.XValues.DateTime = true; this.candle1.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; // // // this.candle1.YValues.DataMember = "Close"; // // expMovAverage1 // this.expMovAverage1.Period = 14; // // line1 // // // // this.line1.Brush.Color = System.Drawing.Color.FromArgb(((int)(((byte)(243)))), ((int)(((byte)(156)))), ((int)(((byte)(53))))); this.line1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(243)))), ((int)(((byte)(156)))), ((int)(((byte)(53))))); this.line1.ColorEach = false; this.line1.Function = this.expMovAverage1; // // // this.line1.LinePen.Color = System.Drawing.Color.FromArgb(((int)(((byte)(146)))), ((int)(((byte)(94)))), ((int)(((byte)(32))))); // // // // // // this.line1.Marks.Callout.ArrowHead = Steema.TeeChart.Styles.ArrowHeadStyles.None; this.line1.Marks.Callout.ArrowHeadSize = 8; // // // this.line1.Marks.Callout.Brush.Color = System.Drawing.Color.Black; this.line1.Marks.Callout.Distance = 0; this.line1.Marks.Callout.Draw3D = false; this.line1.Marks.Callout.Length = 10; this.line1.Marks.Callout.Style = Steema.TeeChart.Styles.PointerStyles.Rectangle; this.line1.Marks.Callout.Visible = false; // // // // // // this.line1.Pointer.Brush.Color = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); this.line1.Pointer.HorizSize = 3; // // // this.line1.Pointer.Pen.Color = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(255))))); this.line1.Pointer.Style = Steema.TeeChart.Styles.PointerStyles.Rectangle; this.line1.Pointer.VertSize = 3; this.line1.Pointer.Visible = true; this.line1.Title = "ExpMovAvg"; // // // this.line1.XValues.DataMember = "X"; this.line1.XValues.DateTime = true; this.line1.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; // // // this.line1.YValues.DataMember = "Y"; // // label1 // this.label1.AutoSize = true; this.label1.Location = new System.Drawing.Point(13, 14); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(40, 13); this.label1.TabIndex = 0; this.label1.Text = "&Period:"; this.label1.TextAlign = System.Drawing.ContentAlignment.TopRight; // // numericUpDown1 // this.numericUpDown1.Location = new System.Drawing.Point(60, 12); this.numericUpDown1.Minimum = new decimal(new int[] { 1, 0, 0, 0 }); this.numericUpDown1.Name = "numericUpDown1"; this.numericUpDown1.Size = new System.Drawing.Size(60, 20); this.numericUpDown1.TabIndex = 1; this.numericUpDown1.TextAlign = System.Windows.Forms.HorizontalAlignment.Right; this.numericUpDown1.Value = new decimal(new int[] { 14, 0, 0, 0 }); this.numericUpDown1.TextChanged += new System.EventHandler(this.numericUpDown1_TextChanged); this.numericUpDown1.ValueChanged += new System.EventHandler(this.numericUpDown1_ValueChanged); // // label2 // this.label2.AutoSize = true; this.label2.Location = new System.Drawing.Point(133, 14); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(29, 13); this.label2.TabIndex = 2; this.label2.Text = "&Use:"; this.label2.TextAlign = System.Drawing.ContentAlignment.TopRight; // // comboBox1 // this.comboBox1.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.comboBox1.Items.AddRange(new object[] { "Open", "High", "Low", "Close" }); this.comboBox1.Location = new System.Drawing.Point(166, 11); this.comboBox1.Name = "comboBox1"; this.comboBox1.Size = new System.Drawing.Size(80, 21); this.comboBox1.TabIndex = 3; this.comboBox1.SelectedIndexChanged += new System.EventHandler(this.comboBox1_SelectedIndexChanged); // // checkBox1 // this.checkBox1.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.checkBox1.Location = new System.Drawing.Point(273, 12); this.checkBox1.Name = "checkBox1"; this.checkBox1.Size = new System.Drawing.Size(87, 21); this.checkBox1.TabIndex = 4; this.checkBox1.Text = "&Animate"; this.checkBox1.CheckedChanged += new System.EventHandler(this.checkBox1_CheckedChanged); // // timer1 // this.timer1.Interval = 20; this.timer1.Tick += new System.EventHandler(this.timer1_Tick); // // Function_ExpMovAve // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(560, 365); this.Name = "Function_ExpMovAve"; this.Load += new System.EventHandler(this.Function_ExpMovAve_Load); this.panel1.ResumeLayout(false); this.panel1.PerformLayout(); this.chartContainer.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.numericUpDown1)).EndInit(); this.ResumeLayout(false); this.PerformLayout(); }
public override void RowSelected(UITableView tableView, NSIndexPath indexPath) { // Uncheck the previous row //if (_previousRow != null) // tableView.CellAt(_previousRow).Accessory = UITableViewCellAccessory.None; // Do something with the row var row = indexPath.Row; Settings.SelectedIndex = row; //tableView.CellAt(indexPath).Accessory = UITableViewCellAccessory.Checkmark; // Changes Series type _controller.chart.Series.Clear(); // Set some chart options to improve speed _controller.chart.Clear(); Steema.TeeChart.Themes.BlackIsBackTheme theme = new Steema.TeeChart.Themes.BlackIsBackTheme(_controller.chart.Chart); theme.Apply(); Steema.TeeChart.Themes.ColorPalettes.ApplyPalette(_controller.chart.Chart,Steema.TeeChart.Themes.Theme.OnBlackPalette); _controller.chart.Axes.Bottom.Grid.Visible = false; _controller.chart.Axes.Left.Grid.DrawEvery = 3; _controller.chart.Axes.Left.MinorTicks.Visible = false; _controller.chart.Axes.Bottom.MinorTicks.Visible = false; _controller.chart.Header.Visible = false; _controller.chart.Legend.Visible = false; _controller.chart.Aspect.View3D = true; switch (row) { case 0: Steema.TeeChart.Styles.Line line1 = new Steema.TeeChart.Styles.Line(); _controller.chart.Series.Add(line1); _controller.chart.Aspect.View3D = false; _controller.chart.Chart.Invalidate(); /*Random Rnd = new Random(); _controller.chart.Aspect.View3D = false; for(int t = 0; t <= 20; ++t) line1.Add(t, ((Rnd.Next(100)) + 1) - ((Rnd.Next(70)) + 1), UIColor.Yellow.CGColor); _controller.chart.Axes.Left.AxisPen.Color = UIColor.White.CGColor; _controller.chart.Axes.Bottom.AxisPen.Color = UIColor.White.CGColor; _controller.chart.Axes.Left.AxisPen.Width = 1; _controller.chart.Axes.Bottom.AxisPen.Width = 1; line1.BeforeDrawValues += new Steema.TeeChart.Styles.Series.PaintChartEventHandler(line1_BeforeDrawValues); */ _controller.chart.Series[0].FillSampleValues(50); /* _controller.chart.Header.Visible = true; _controller.chart.Header.Text = "My Header Text"; _controller.chart.Header.Alignment = MonoTouch.CoreText.CTTextAlignment.Left; _controller.chart.Header.Font.Size=20; _controller.chart.Legend.Visible = true; _controller.chart.Legend.Gradient.Visible=false; _controller.chart.Legend.Transparency = 50;*/ /* _controller.chart.Legend.Alignment = Steema.TeeChart.LegendAlignments.Bottom; _controller.chart.Legend.Font.Color = UIColor.Black.CGColor; _controller.chart.Legend.Shadow.Visible=false; _controller.chart.Panel.MarginTop = 10; _controller.chart.SubHeader.Visible = true; _controller.chart.SubHeader.Alignment = MonoTouch.CoreText.CTTextAlignment.Right; _controller.chart.SubHeader.Text = "SubHeader"; _controller.chart.SubHeader.Font.Color = UIColor.Yellow.CGColor; _controller.chart.SubHeader.Font.Size = 12;*/ break; case 1: _controller.chart.Series.Add(new Steema.TeeChart.Styles.Points()); _controller.chart.Series[0].FillSampleValues(100); break; case 2: _controller.chart.Series.Add(new Steema.TeeChart.Styles.Area()); _controller.chart.Series.Add(new Steema.TeeChart.Styles.Area()); _controller.chart.Series.Add(new Steema.TeeChart.Styles.Area()); _controller.chart.Series[0].FillSampleValues(5); _controller.chart.Series[1].FillSampleValues(5); _controller.chart.Series[2].FillSampleValues(5); _controller.chart.Aspect.View3D = false; Steema.TeeChart.Styles.Area area1 = _controller.chart.Series[0] as Steema.TeeChart.Styles.Area; Steema.TeeChart.Styles.Area area2 = _controller.chart.Series[1] as Steema.TeeChart.Styles.Area; Steema.TeeChart.Styles.Area area3 = _controller.chart.Series[2] as Steema.TeeChart.Styles.Area; area1.Transparency = 40; area2.Transparency = 40; area3.Transparency = 40; break; case 3: _controller.chart.Series.Add(new Steema.TeeChart.Styles.FastLine()); _controller.chart.Aspect.View3D = false; _controller.chart.Series[0].FillSampleValues(400); break; case 4: _controller.chart.Series.Add(new Steema.TeeChart.Styles.HorizLine()); _controller.chart.Series[0].FillSampleValues(25); break; case 5: _controller.chart.Series.Add(new Steema.TeeChart.Styles.Bar()); _controller.chart.Series[0].Add(3,"Pears",UIColor.Red.CGColor); _controller.chart.Series[0].Add(4,"Apples",UIColor.Blue.CGColor); _controller.chart.Series[0].Add(2,"Oranges",UIColor.Green.CGColor); (_controller.chart.Series[0] as Steema.TeeChart.Styles.Bar).Pen.Visible =false; (_controller.chart.Series[0] as Steema.TeeChart.Styles.Bar).Marks.Shadow.Visible=false; _controller.chart.AfterDraw += new Steema.TeeChart.PaintChartEventHandler(chart_AfterDraw); //_controller.chart.GetAxisLabel += new Steema.TeeChart.GetAxisLabelEventHandler(_controller_GetAxisLabel); _controller.chart.Header.Font.Name = "Arial"; _controller.chart.Header.Font.Size = 20; /*_controller.chart.Series[0].FillSampleValues(5); _controller.chart.Series[0].FillSampleValues(5); _controller.chart.Series[0].FillSampleValues(5); _controller.chart.Series[0].FillSampleValues(5); Steema.TeeChart.Styles.Bar bar1 = _controller.chart.Series[0] as Steema.TeeChart.Styles.Bar; bar1.ColorEachPoint = true; bar1.Marks.Visible = true; bar1.Marks.Transparent = true; bar1.Marks.ArrowLength = -15; bar1.Marks.Arrow.Visible = false;*/ break; case 6: _controller.chart.Series.Add(new Steema.TeeChart.Styles.HorizBar()); _controller.chart.Series[0].FillSampleValues(5); _controller.chart.Aspect.View3D=false; Steema.TeeChart.Styles.HorizBar hbar1 = _controller.chart.Series[0] as Steema.TeeChart.Styles.HorizBar; hbar1.MarksOnBar = true; break; case 7: _controller.chart.Series.Add(new Steema.TeeChart.Styles.Pie()); _controller.chart.Series[0].Add(30); _controller.chart.Series[0].Add(30); _controller.chart.Series[0].Add(40); _controller.chart.Series[0].Add(70); (_controller.chart.Series[0] as Steema.TeeChart.Styles.Pie).Circled = true; (_controller.chart.Series[0] as Steema.TeeChart.Styles.Pie).EdgeStyle = Steema.TeeChart.Drawing.EdgeStyles.Flat; (_controller.chart.Series[0] as Steema.TeeChart.Styles.Pie).BevelPercent=15; (_controller.chart.Series[0] as Steema.TeeChart.Styles.Pie).Marks.Font.Color = UIColor.FromRGB(255,255,255).CGColor; (_controller.chart.Series[0] as Steema.TeeChart.Styles.Pie).Marks.Font.Size = 10; _controller.chart.Series[0].Marks.Visible=true; _controller.chart.Series[0].Marks.Transparent=true; _controller.chart.Legend.Visible = true; _controller.chart.Legend.Alignment = Steema.TeeChart.LegendAlignments.Bottom; _controller.chart.Legend.Transparent = true; _controller.chart.Legend.Font.Size = 10; _controller.chart.Aspect.Chart3DPercent=40; break; case 8: _controller.chart.Series.Add(new Steema.TeeChart.Styles.Shape()); (_controller.chart.Series[0] as Steema.TeeChart.Styles.Shape).Gradient.Visible =true; (_controller.chart.Series[0] as Steema.TeeChart.Styles.Shape).Style = Steema.TeeChart.Styles.ShapeStyles.Circle; (_controller.chart.Series[0] as Steema.TeeChart.Styles.Shape).Gradient.Visible = true; (_controller.chart.Series[0] as Steema.TeeChart.Styles.Shape).Gradient.EndColor = UIColor.FromRGB(255,0,0).CGColor; _controller.chart.Series[0].FillSampleValues(); break; case 9: _controller.chart.Series.Add(new Steema.TeeChart.Styles.Arrow()); (_controller.chart.Series[0] as Steema.TeeChart.Styles.Arrow).ColorEachPoint=true; _controller.chart.Series[0].FillSampleValues(); break; case 10: _controller.chart.Series.Add(new Steema.TeeChart.Styles.Bubble()); (_controller.chart.Series[0] as Steema.TeeChart.Styles.Bubble).Pointer.Gradient.Visible = true; (_controller.chart.Series[0] as Steema.TeeChart.Styles.Bubble).Pointer.Gradient.EndColor=UIColor.FromRGB(255,255,255).CGColor; _controller.chart.Series[0].FillSampleValues(); break; case 11: _controller.chart.Series.Add(new Steema.TeeChart.Styles.Gantt()); _controller.chart.Legend.Visible = true; _controller.chart.Legend.Alignment = Steema.TeeChart.LegendAlignments.Bottom; _controller.chart.Legend.Transparent = true; _controller.chart.Series[0].FillSampleValues(); break; case 12: _controller.chart.Series.Add(new Steema.TeeChart.Styles.Candle()); _controller.chart.Series[0].FillSampleValues(); break; case 13: _controller.chart.Series.Add(new Steema.TeeChart.Styles.Donut()); (_controller.chart.Series[0] as Steema.TeeChart.Styles.Donut).Circled = true; (_controller.chart.Series[0] as Steema.TeeChart.Styles.Donut).Pen.Visible = false; _controller.chart.Series[0].Marks.Visible=false; _controller.chart.Legend.Visible = true; _controller.chart.Legend.Transparent = true; _controller.chart.Legend.Alignment = Steema.TeeChart.LegendAlignments.Top; _controller.chart.Legend.Symbol.Pen.Visible = false; _controller.chart.Legend.Font.Size = 12; _controller.chart.Series[0].FillSampleValues(4); _controller.chart.Aspect.View3D=true; break; case 14: _controller.chart.Series.Add(new Steema.TeeChart.Styles.Volume()); (_controller.chart.Series[0] as Steema.TeeChart.Styles.Volume).LinePen.Width = 2; _controller.chart.Series[0].FillSampleValues(); break; case 15: _controller.chart.Series.Add(new Steema.TeeChart.Styles.Bar3D()); _controller.chart.Series[0].FillSampleValues(); break; case 16: _controller.chart.Series.Add(new Steema.TeeChart.Styles.Points3D()); _controller.chart.Series[0].FillSampleValues(); break; case 17: _controller.chart.Series.Add(new Steema.TeeChart.Styles.Polar()); (_controller.chart.Series[0] as Steema.TeeChart.Styles.Polar).Circled = true; _controller.chart.Aspect.View3D = false; _controller.chart.Series[0].FillSampleValues(); break; case 18: _controller.chart.Series.Add(new Steema.TeeChart.Styles.PolarBar()); _controller.chart.Aspect.View3D = false; _controller.chart.Series[0].FillSampleValues(); break; case 19: _controller.chart.Series.Add(new Steema.TeeChart.Styles.Radar()); _controller.chart.Aspect.View3D = false; _controller.chart.Series[0].FillSampleValues(); break; case 20: _controller.chart.Series.Add(new Steema.TeeChart.Styles.Clock()); (_controller.chart.Series[0] as Steema.TeeChart.Styles.Clock).Circled = true; _controller.chart.Series[0].FillSampleValues(); break; case 21: _controller.chart.Series.Add(new Steema.TeeChart.Styles.WindRose()); _controller.chart.Aspect.View3D = false; _controller.chart.Series[0].FillSampleValues(); break; case 22: _controller.chart.Series.Add(new Steema.TeeChart.Styles.Pyramid()); _controller.chart.Series[0].FillSampleValues(4); break; case 23: _controller.chart.Series.Add(new Steema.TeeChart.Styles.Surface()); _controller.chart.Series[0].FillSampleValues(); break; case 24: _controller.chart.Series.Add(new Steema.TeeChart.Styles.LinePoint()); _controller.chart.Aspect.View3D = false; _controller.chart.Series[0].FillSampleValues(); break; case 25: _controller.chart.Series.Add(new Steema.TeeChart.Styles.BarJoin()); _controller.chart.Aspect.View3D = false; _controller.chart.Series[0].FillSampleValues(); break; case 26: _controller.chart.Series.Add(new Steema.TeeChart.Styles.ColorGrid()); _controller.chart.Series[0].FillSampleValues(); break; case 27: _controller.chart.Series.Add(new Steema.TeeChart.Styles.Waterfall()); _controller.chart.Series[0].FillSampleValues(); break; case 28: _controller.chart.Series.Add(new Steema.TeeChart.Styles.Histogram()); _controller.chart.Aspect.View3D = false; (_controller.chart.Series[0] as Steema.TeeChart.Styles.Histogram).LinesPen.Visible=false; _controller.chart.Series[0].FillSampleValues(); break; case 29: _controller.chart.Series.Add(new Steema.TeeChart.Styles.Error()); (_controller.chart.Series[0] as Steema.TeeChart.Styles.Error).ColorEachPoint=true; (_controller.chart.Series[0] as Steema.TeeChart.Styles.Error).ErrorPen.Width = 5; _controller.chart.Series[0].FillSampleValues(); break; case 30: _controller.chart.Series.Add(new Steema.TeeChart.Styles.ErrorBar()); (_controller.chart.Series[0] as Steema.TeeChart.Styles.ErrorBar).ColorEachPoint=true; _controller.chart.Series[0].FillSampleValues(); break; case 31: _controller.chart.Series.Add(new Steema.TeeChart.Styles.Contour()); _controller.chart.Aspect.View3D = false; _controller.chart.Series[0].FillSampleValues(); break; case 32: _controller.chart.Series.Add(new Steema.TeeChart.Styles.Smith()); _controller.chart.Aspect.View3D = false; (_controller.chart.Series[0] as Steema.TeeChart.Styles.Smith).Circled=true; _controller.chart.Series[0].FillSampleValues(); break; case 33: _controller.chart.Series.Add(new Steema.TeeChart.Styles.Bezier()); _controller.chart.Aspect.View3D=false; (_controller.chart.Series[0] as Steema.TeeChart.Styles.Bezier).Pointer.Style = Steema.TeeChart.Styles.PointerStyles.Circle; (_controller.chart.Series[0] as Steema.TeeChart.Styles.Bezier).Pointer.Pen.Visible=false; (_controller.chart.Series[0] as Steema.TeeChart.Styles.Bezier).LinePen.Width = 2; (_controller.chart.Series[0] as Steema.TeeChart.Styles.Bezier).LinePen.Color = UIColor.Red.CGColor; _controller.chart.Series[0].FillSampleValues(4); break; case 34: _controller.chart.Series.Add(new Steema.TeeChart.Styles.Calendar()); _controller.chart.Series[0].FillSampleValues(); break; case 35: _controller.chart.Series.Add(new Steema.TeeChart.Styles.HighLow()); _controller.chart.Aspect.View3D=false; _controller.chart.Series[0].FillSampleValues(); break; case 36: _controller.chart.Series.Add(new Steema.TeeChart.Styles.TriSurface()); _controller.chart.Aspect.View3D=true; _controller.chart.Series[0].FillSampleValues(); break; case 37: _controller.chart.Series.Add(new Steema.TeeChart.Styles.Funnel()); _controller.chart.Aspect.View3D = false; _controller.chart.Series[0].FillSampleValues(20); break; case 38: _controller.chart.Series.Add(new Steema.TeeChart.Styles.Box()); _controller.chart.Series[0].FillSampleValues(); break; case 39: _controller.chart.Series.Add(new Steema.TeeChart.Styles.HorizBox()); _controller.chart.Series[0].FillSampleValues(); break; case 40: _controller.chart.Series.Add(new Steema.TeeChart.Styles.HorizArea()); _controller.chart.Series[0].FillSampleValues(); break; case 41: _controller.chart.Series.Add(new Steema.TeeChart.Styles.Tower()); _controller.chart.Aspect.View3D=true; _controller.chart.Series[0].FillSampleValues(5); _controller.chart.Walls.Visible = false; _controller.chart.Axes.Bottom.Ticks.Visible = false; _controller.chart.Axes.Bottom.MinorTicks.Visible =false; _controller.chart.Axes.Left.Ticks.Visible = false; _controller.chart.Axes.Left.MinorTicks.Visible =false; (_controller.chart.Series[0] as Steema.TeeChart.Styles.Tower).Pen.Visible=false; _controller.chart.Tools.Add(new Steema.TeeChart.Tools.Rotate()); _controller.chart.Aspect.Orthogonal = false; _controller.chart.Aspect.Rotation = -25; _controller.chart.Aspect.Zoom = 70; _controller.chart.Aspect.Chart3DPercent = 75; _controller.chart.Header.Text = "Drag to Rotate the Chart"; _controller.chart.Header.Visible = true; break; case 42: _controller.chart.Series.Add(new Steema.TeeChart.Styles.PointFigure()); _controller.chart.Series[0].FillSampleValues(); break; case 43: _controller.chart.Series.Add(new Steema.TeeChart.Styles.Gauges()); _controller.chart.Series[0].FillSampleValues(); break; case 44: _controller.chart.Series.Add(new Steema.TeeChart.Styles.Vector3D()); _controller.chart.Series[0].FillSampleValues(); break; case 45: _controller.chart.Series.Add(new Steema.TeeChart.Styles.HorizHistogram()); _controller.chart.Aspect.View3D = false; (_controller.chart.Series[0] as Steema.TeeChart.Styles.HorizHistogram).LinesPen.Visible=false; _controller.chart.Series[0].FillSampleValues(); break; case 46: _controller.chart.Series.Add(new Steema.TeeChart.Styles.Map()); _controller.chart.Aspect.View3D = false; _controller.chart.Series[0].FillSampleValues(); break; case 47: _controller.chart.Series.Add(new Steema.TeeChart.Styles.ImageBar()); _controller.chart.Series[0].FillSampleValues(); UIImage img = UIImage.FromFile("bulb_on.png"); (_controller.chart.Series[0] as Steema.TeeChart.Styles.ImageBar).Image = img.CGImage; break; case 48: _controller.chart.Series.Add(new Steema.TeeChart.Styles.Kagi()); _controller.chart.Series[0].FillSampleValues(); break; case 49: _controller.chart.Series.Add(new Steema.TeeChart.Styles.Renko()); _controller.chart.Series[0].FillSampleValues(); break; case 50: _controller.chart.Series.Add(new Steema.TeeChart.Styles.IsoSurface()); _controller.chart.Aspect.View3D=true; _controller.chart.Series[0].FillSampleValues(); break; case 51: _controller.chart.Series.Add(new Steema.TeeChart.Styles.Darvas()); _controller.chart.Series[0].FillSampleValues(); break; case 52: _controller.chart.Series.Add(new Steema.TeeChart.Styles.VolumePipe()); _controller.chart.Aspect.View3D = false; _controller.chart.Legend.Visible = true; _controller.chart.Legend.Transparent = true; _controller.chart.Legend.Alignment = Steema.TeeChart.LegendAlignments.Bottom; _controller.chart.Legend.Symbol.Pen.Visible = false; _controller.chart.Legend.Font.Size = 14; _controller.chart.Series[0].FillSampleValues(4); break; case 53: _controller.chart.Series.Add(new Steema.TeeChart.Styles.ImagePoint()); _controller.chart.Series[0].FillSampleValues(5); _controller.chart.Aspect.View3D = false; UIImage img2 = UIImage.FromFile("bulb_off.png"); (_controller.chart.Series[0] as Steema.TeeChart.Styles.ImagePoint).Pointer.HorizSize = 30; (_controller.chart.Series[0] as Steema.TeeChart.Styles.ImagePoint).Pointer.VertSize = 30; (_controller.chart.Series[0] as Steema.TeeChart.Styles.ImagePoint).PointImage = img2.CGImage; break; case 54: _controller.chart.Series.Add(new Steema.TeeChart.Styles.CircularGauge()); (_controller.chart.Series[0] as Steema.TeeChart.Styles.CircularGauge).Value = 65; break; case 55: _controller.chart.Series.Add(new Steema.TeeChart.Styles.LinearGauge()); _controller.chart.Series[0].FillSampleValues(); break; case 56: _controller.chart.Series.Add(new Steema.TeeChart.Styles.VerticalLinearGauge()); (_controller.chart.Series[0] as Steema.TeeChart.Styles.VerticalLinearGauge).Axis.Ticks.Visible = true; (_controller.chart.Series[0] as Steema.TeeChart.Styles.VerticalLinearGauge).Axis.MinorTicks.Visible = true; _controller.chart.Series[0].FillSampleValues(); break; case 57: _controller.chart.Series.Add(new Steema.TeeChart.Styles.NumericGauge()); (_controller.chart.Series[0] as Steema.TeeChart.Styles.NumericGauge).Value = 123; break; case 58: _controller.chart.Series.Add(new Steema.TeeChart.Styles.OrgSeries()); _controller.chart.Series[0].FillSampleValues(); break; case 59: _controller.chart.Series.Add(new Steema.TeeChart.Styles.TagCloud()); _controller.chart.Series[0].FillSampleValues(50); break; case 60: _controller.chart.Series.Add(new Steema.TeeChart.Styles.PolarGrid()); _controller.chart.Aspect.View3D = false; _controller.chart.Series[0].FillSampleValues(); break; case 61: _controller.chart.Series.Add(new Steema.TeeChart.Styles.Ternary()); _controller.chart.Series[0].FillSampleValues(); break; case 62: _controller.chart.Series.Add(new Steema.TeeChart.Styles.KnobGauge()); (_controller.chart.Series[0] as Steema.TeeChart.Styles.KnobGauge).ActiveCenter=true; (_controller.chart.Series[0] as Steema.TeeChart.Styles.KnobGauge).Value = 50; break; default: break; } /* _controller.chart.Series[0].Add(100); _controller.chart.Series[0].Add(150); _controller.chart.Series[0].Add(75); _controller.chart.Series[0].Add(30); */ //_controller.chart.Series[0].FillSampleValues(150); Console.WriteLine("{0} selected",_controller.Items[row]); //_previousRow = indexPath; // This is what the Settings does under Settings>Mail>Show on an iPhone tableView.DeselectRow(indexPath,false); _controller.NavigationController.PushViewController(_controller.chartController,true); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.tChart1 = new Steema.TeeChart.TChart(); this.pieSeries1 = new Steema.TeeChart.Styles.Pie(); this.lineSeries1 = new Steema.TeeChart.Styles.Line(); this.lineSeries2 = new Steema.TeeChart.Styles.Line(); this.fastLineSeries1 = new Steema.TeeChart.Styles.FastLine(); this.timer1 = new System.Timers.Timer(); ((System.ComponentModel.ISupportInitialize)(this.timer1)).BeginInit(); this.SuspendLayout(); // // tChart1 // // // tChart1.Aspect // this.tChart1.Aspect.Elevation = 315; this.tChart1.Aspect.Orthogonal = false; this.tChart1.Aspect.Perspective = 0; this.tChart1.Aspect.Rotation = 360; this.tChart1.Aspect.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.AntiAlias; this.tChart1.Aspect.TextRenderingHint = System.Drawing.Text.TextRenderingHint.AntiAlias; this.tChart1.BackColor = System.Drawing.Color.White; this.tChart1.Cursor = System.Windows.Forms.Cursors.Default; this.tChart1.Dock = System.Windows.Forms.DockStyle.Fill; // // tChart1.Header // this.tChart1.Header.Lines = new string[] { "tChart1" }; this.tChart1.Header.Visible = false; // // tChart1.Legend // this.tChart1.Legend.Visible = false; this.tChart1.Location = new System.Drawing.Point(0, 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.FromArgb(((System.Byte)(254)), ((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(255))); // // tChart1.Panel.Gradient // //this.tChart1.Panel.Gradient.EndColor = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(21)), ((System.Byte)(60)), ((System.Byte)(89))); //this.tChart1.Panel.Gradient.MiddleColor = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(255))); //this.tChart1.Panel.Gradient.Sigma = true; //this.tChart1.Panel.Gradient.SigmaFocus = 1F; //this.tChart1.Panel.Gradient.SigmaScale = 0.8F; //this.tChart1.Panel.Gradient.StartColor = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(255))); this.tChart1.Panel.Gradient.UseMiddle = true; this.tChart1.Panel.Gradient.Visible = true; this.tChart1.Series.Add(this.pieSeries1); this.tChart1.Series.Add(this.lineSeries1); this.tChart1.Series.Add(this.lineSeries2); this.tChart1.Series.Add(this.fastLineSeries1); this.tChart1.Size = new System.Drawing.Size(393, 279); this.tChart1.TabIndex = 0; this.tChart1.AfterDraw += new Steema.TeeChart.PaintChartEventHandler(this.tChart1_AfterDraw); this.tChart1.BeforeDraw += new Steema.TeeChart.PaintChartEventHandler(this.tChart1_BeforeDraw); // // pieSeries1 // // // pieSeries1.Brush // this.pieSeries1.Brush.Color = System.Drawing.Color.Red; this.pieSeries1.CircleBackColor = System.Drawing.Color.FromArgb(((System.Byte)(0)), ((System.Byte)(0)), ((System.Byte)(0)), ((System.Byte)(0))); this.pieSeries1.ExplodeBiggest = 30; this.pieSeries1.LabelMember = "Labels"; // // pieSeries1.Marks // // // pieSeries1.Marks.Symbol // // // pieSeries1.Marks.Symbol.Shadow // this.pieSeries1.Marks.Symbol.Shadow.Height = 1; this.pieSeries1.Marks.Symbol.Shadow.Visible = true; this.pieSeries1.Marks.Symbol.Shadow.Width = 1; // // pieSeries1.Pen // this.pieSeries1.Pen.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(192)), ((System.Byte)(192)), ((System.Byte)(192))); // // pieSeries1.Shadow // this.pieSeries1.Shadow.Height = 20; this.pieSeries1.Shadow.Width = 20; this.pieSeries1.Title = "pie1"; // // pieSeries1.XValues // this.pieSeries1.XValues.DataMember = "Angle"; this.pieSeries1.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; // // pieSeries1.YValues // this.pieSeries1.YValues.DataMember = "Pie"; // // lineSeries1 // // // lineSeries1.Brush // this.lineSeries1.Brush.Color = System.Drawing.Color.FromArgb(((System.Byte)(198)), ((System.Byte)(255)), ((System.Byte)(199)), ((System.Byte)(26))); // // lineSeries1.Gradient // this.lineSeries1.Brush.Gradient.Transparency = 25; // // lineSeries1.Gradient // this.lineSeries1.Gradient.Transparency = 25; // // lineSeries1.LinePen // this.lineSeries1.LinePen.Visible = false; // // 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 = "line2"; this.lineSeries1.Visible = false; // // 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.FromArgb(((System.Byte)(198)), ((System.Byte)(106)), ((System.Byte)(106)), ((System.Byte)(255))); // // lineSeries2.Gradient // this.lineSeries2.Brush.Gradient.Transparency = 35; // // lineSeries2.Gradient // this.lineSeries2.Gradient.Transparency = 35; // // lineSeries2.LinePen // this.lineSeries2.LinePen.Visible = false; // // 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 = "line3"; this.lineSeries2.Visible = false; // // lineSeries2.XValues // this.lineSeries2.XValues.DataMember = "X"; this.lineSeries2.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; // // lineSeries2.YValues // this.lineSeries2.YValues.DataMember = "Y"; // // fastLineSeries1 // // // fastLineSeries1.LinePen // this.fastLineSeries1.LinePen.Color = System.Drawing.Color.FromArgb(((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(204))); // // fastLineSeries1.Marks // // // fastLineSeries1.Marks.Symbol // // // fastLineSeries1.Marks.Symbol.Shadow // this.fastLineSeries1.Marks.Symbol.Shadow.Height = 1; this.fastLineSeries1.Marks.Symbol.Shadow.Visible = true; this.fastLineSeries1.Marks.Symbol.Shadow.Width = 1; this.fastLineSeries1.Title = "fast Line4"; this.fastLineSeries1.Visible = false; // // fastLineSeries1.XValues // this.fastLineSeries1.XValues.DataMember = "X"; this.fastLineSeries1.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; // // fastLineSeries1.YValues // this.fastLineSeries1.YValues.DataMember = "Y"; // // timer1 // this.timer1.SynchronizingObject = this; this.timer1.Elapsed += new System.Timers.ElapsedEventHandler(this.timer1_Elapsed); // // WelcomeForm // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.BackColor = System.Drawing.Color.White; this.ClientSize = new System.Drawing.Size(393, 279); this.Controls.Add(this.tChart1); this.Name = "WelcomeForm"; this.Text = "WelcomeForm"; this.Load += new System.EventHandler(this.WelcomeForm_Load); ((System.ComponentModel.ISupportInitialize)(this.timer1)).EndInit(); 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(Tool_SeriesRegion)); this.line1 = new Steema.TeeChart.Styles.Line(); this.seriesRegionTool1 = new Steema.TeeChart.Tools.SeriesRegionTool(); this.label1 = new System.Windows.Forms.Label(); this.label2 = new System.Windows.Forms.Label(); this.numericUpDown1 = new System.Windows.Forms.NumericUpDown(); this.numericUpDown2 = new System.Windows.Forms.NumericUpDown(); this.checkBox1 = new System.Windows.Forms.CheckBox(); this.label3 = new System.Windows.Forms.Label(); this.numericUpDown3 = new System.Windows.Forms.NumericUpDown(); this.checkBox2 = new System.Windows.Forms.CheckBox(); this.button1 = new System.Windows.Forms.Button(); this.panel1.SuspendLayout(); this.chartContainer.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.numericUpDown1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.numericUpDown2)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.numericUpDown3)).BeginInit(); this.SuspendLayout(); // // textBox1 // this.textBox1.Text = "The SeriesRegionTool can be used to identify area under specific curve (series). " + "All parts are fully configurable."; // // panel1 // this.panel1.Controls.Add(this.button1); this.panel1.Controls.Add(this.checkBox2); this.panel1.Controls.Add(this.numericUpDown3); this.panel1.Controls.Add(this.label3); this.panel1.Controls.Add(this.checkBox1); this.panel1.Controls.Add(this.numericUpDown2); this.panel1.Controls.Add(this.numericUpDown1); this.panel1.Controls.Add(this.label2); this.panel1.Controls.Add(this.label1); this.panel1.Size = new System.Drawing.Size(440, 76); // // tChart1 // // // // this.tChart1.Aspect.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.AntiAlias; this.tChart1.Aspect.TextRenderingHint = System.Drawing.Text.TextRenderingHint.ClearTypeGridFit; this.tChart1.Legend.Visible = false; // // // // // // // // // this.tChart1.Panel.Brush.Gradient.EndColor = System.Drawing.Color.FromArgb(((int)(((byte)(254)))), ((int)(((byte)(21)))), ((int)(((byte)(60)))), ((int)(((byte)(89))))); this.tChart1.Panel.Brush.Gradient.ExtendedColorPalette = null; 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)(254)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); this.tChart1.Panel.Brush.Gradient.UseMiddle = true; this.tChart1.Panel.Brush.Gradient.Visible = true; this.tChart1.Series.Add(this.line1); this.tChart1.Size = new System.Drawing.Size(440, 168); // // // // // // // // // // // // this.tChart1.Tools.Add(this.seriesRegionTool1); // // chartContainer // this.chartContainer.Location = new System.Drawing.Point(0, 149); this.chartContainer.Size = new System.Drawing.Size(440, 168); // // line1 // // // // this.line1.Brush.Color = System.Drawing.Color.Red; this.line1.ColorEach = false; // // // this.line1.Gradient.ExtendedColorPalette = null; this.line1.Gradient.StartColor = System.Drawing.Color.Red; // // // 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.Pointer.Style = Steema.TeeChart.Styles.PointerStyles.Rectangle; this.line1.Title = "line1"; // // // this.line1.XValues.DataMember = "X"; this.line1.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; // // // this.line1.YValues.DataMember = "Y"; // // seriesRegionTool1 // this.seriesRegionTool1.AutoBound = true; // // // this.seriesRegionTool1.Brush.Color = System.Drawing.Color.FromArgb(((int)(((byte)(127)))), ((int)(((byte)(255)))), ((int)(((byte)(192)))), ((int)(((byte)(203))))); this.seriesRegionTool1.DrawBehindSeries = true; this.seriesRegionTool1.LowerBound = 0; this.seriesRegionTool1.Origin = 0; this.seriesRegionTool1.Series = this.line1; this.seriesRegionTool1.UpperBound = 0; this.seriesRegionTool1.UseOrigin = false; // // label1 // this.label1.AutoSize = true; this.label1.Location = new System.Drawing.Point(12, 18); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(36, 13); this.label1.TabIndex = 0; this.label1.Text = "Lower"; // // label2 // this.label2.AutoSize = true; this.label2.Location = new System.Drawing.Point(12, 45); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(36, 13); this.label2.TabIndex = 1; this.label2.Text = "Upper"; // // numericUpDown1 // this.numericUpDown1.Location = new System.Drawing.Point(54, 16); this.numericUpDown1.Name = "numericUpDown1"; this.numericUpDown1.Size = new System.Drawing.Size(54, 20); this.numericUpDown1.TabIndex = 2; this.numericUpDown1.Value = new decimal(new int[] { 2, 0, 0, 0 }); this.numericUpDown1.ValueChanged += new System.EventHandler(this.numericUpDown1_ValueChanged); // // numericUpDown2 // this.numericUpDown2.Location = new System.Drawing.Point(54, 43); this.numericUpDown2.Name = "numericUpDown2"; this.numericUpDown2.Size = new System.Drawing.Size(54, 20); this.numericUpDown2.TabIndex = 3; this.numericUpDown2.Value = new decimal(new int[] { 15, 0, 0, 0 }); this.numericUpDown2.ValueChanged += new System.EventHandler(this.numericUpDown2_ValueChanged); // // checkBox1 // this.checkBox1.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.checkBox1.Location = new System.Drawing.Point(134, 17); this.checkBox1.Name = "checkBox1"; this.checkBox1.Size = new System.Drawing.Size(70, 17); this.checkBox1.TabIndex = 4; this.checkBox1.Text = "Use origin"; #if VS2005 this.checkBox1.AutoSize = true; this.checkBox1.UseVisualStyleBackColor = true; #endif this.checkBox1.CheckedChanged += new System.EventHandler(this.checkBox1_CheckedChanged); // // label3 // this.label3.AutoSize = true; this.label3.Location = new System.Drawing.Point(213, 18); this.label3.Name = "label3"; this.label3.Size = new System.Drawing.Size(34, 13); this.label3.TabIndex = 5; this.label3.Text = "Origin"; // // numericUpDown3 // this.numericUpDown3.Location = new System.Drawing.Point(253, 16); this.numericUpDown3.Maximum = new decimal(new int[] { 1000, 0, 0, 0 }); this.numericUpDown3.Name = "numericUpDown3"; this.numericUpDown3.Size = new System.Drawing.Size(52, 20); this.numericUpDown3.TabIndex = 6; this.numericUpDown3.Value = new decimal(new int[] { 250, 0, 0, 0 }); this.numericUpDown3.ValueChanged += new System.EventHandler(this.numericUpDown3_ValueChanged); // // 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(134, 46); this.checkBox2.Name = "checkBox2"; this.checkBox2.Size = new System.Drawing.Size(83, 17); this.checkBox2.TabIndex = 7; this.checkBox2.Text = "Draw behind"; #if VS2005 this.checkBox2.AutoSize = true; this.checkBox2.UseVisualStyleBackColor = true; #endif this.checkBox2.CheckedChanged += new System.EventHandler(this.checkBox2_CheckedChanged); // // button1 // this.button1.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.button1.Location = new System.Drawing.Point(342, 13); this.button1.Name = "button1"; this.button1.Size = new System.Drawing.Size(75, 23); this.button1.TabIndex = 8; this.button1.Text = "Edit tool"; #if VS2005 this.button1.UseVisualStyleBackColor = true; #endif this.button1.Click += new System.EventHandler(this.button1_Click); // // Tool_SeriesRegion // this.ClientSize = new System.Drawing.Size(440, 317); this.Name = "Tool_SeriesRegion"; this.Load += new System.EventHandler(this.Tool_SeriesRegion_Load); this.panel1.ResumeLayout(false); this.panel1.PerformLayout(); this.chartContainer.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.numericUpDown1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.numericUpDown2)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.numericUpDown3)).EndInit(); this.ResumeLayout(false); this.PerformLayout(); }
public Steema.TeeChart.Styles.Line CreateTChartSeries(string legendText) { Steema.TeeChart.Styles.Line series1 = new Steema.TeeChart.Styles.Line(); series1.ShowInLegend = true; series1.Pointer.HorizSize = 2; series1.Pointer.VertSize = 2; series1.Title = legendText; series1.Pointer.Visible = false; //series1.Stairs = true; series1.Marks.Visible = false; series1.Color = Properties.Settings.Default.GetSeriesColor(chart1.Series.Count); series1.LinePen.Width = Properties.Settings.Default.GetSeriesWidth(chart1.Series.Count); // Logger.WriteLine("Color = " + series1.Color.ToKnownColor().ToString()); return series1; }
public override void ViewDidLoad () { base.ViewDidLoad (); //any additional setup after loading the view, typically from a nib. r1 = new System.Drawing.RectangleF(0,0,this.View.Bounds.Width/2,this.View.Bounds.Height/2); r2 = new System.Drawing.RectangleF(this.View.Bounds.Width/2,0,this.View.Bounds.Width/2,this.View.Bounds.Height/2); r3 = new System.Drawing.RectangleF(0,this.View.Bounds.Height/2,this.View.Bounds.Width,this.View.Bounds.Height/2); //r3 = new System.Drawing.RectangleF(0,this.View.Bounds.Height/2,this.View.Bounds.Width/2,this.View.Bounds.Height/2); // r4 = new System.Drawing.RectangleF(this.View.Bounds.Width/2,this.View.Bounds.Height/2,this.View.Bounds.Width/2,this.View.Bounds.Height/2); chart1.Frame = r1; chart2.Frame = r2; chart3.Frame = r3; //chart4.Frame = r4; chart1.Header.Visible = false; chart1.Legend.Visible = false; chart2.Header.Visible = false; chart3.Header.Visible = false; //chart4.Header.Visible = false; this.View.AddSubview(chart1); this.View.AddSubview(chart2); this.View.AddSubview(chart3); //this.View.AddSubview(chart4); Steema.TeeChart.Themes.BlackIsBackTheme theme1 = new Steema.TeeChart.Themes.BlackIsBackTheme(chart1.Chart); Steema.TeeChart.Themes.BlackIsBackTheme theme2 = new Steema.TeeChart.Themes.BlackIsBackTheme(chart2.Chart); Steema.TeeChart.Themes.BlackIsBackTheme theme3 = new Steema.TeeChart.Themes.BlackIsBackTheme(chart3.Chart); //Steema.TeeChart.Themes.BlackIsBackTheme theme4 = new Steema.TeeChart.Themes.BlackIsBackTheme(chart4.Chart); theme1.Apply(); theme2.Apply(); theme3.Apply(); //theme4.Apply(); Steema.TeeChart.Themes.ColorPalettes.ApplyPalette(chart1.Chart,Steema.TeeChart.Themes.Theme.OnBlackPalette); Steema.TeeChart.Themes.ColorPalettes.ApplyPalette(chart2.Chart,Steema.TeeChart.Themes.Theme.OnBlackPalette); Steema.TeeChart.Themes.ColorPalettes.ApplyPalette(chart3.Chart,Steema.TeeChart.Themes.Theme.OnBlackPalette); //Steema.TeeChart.Themes.ColorPalettes.ApplyPalette(chart4.Chart,Steema.TeeChart.Themes.Theme.OnBlackPalette); // Chart 1 chart1.Panel.Gradient.Visible = false; chart1.Panel.Color = UIColor.Black.CGColor; Steema.TeeChart.Styles.Donut series1 = new Steema.TeeChart.Styles.Donut(); chart1.Aspect.View3D = false; series1.FillSampleValues(4); series1.Circled = true; series1.Pen.Width = 5; series1.ExplodeBiggest=20; series1.Marks.Transparent = true; series1.Marks.Font.Color = UIColor.FromRGB(255,255,255).CGColor; series1.Marks.Font.Size = 20; chart1.Series.Add(series1); // Chart 2 chart2.Aspect.View3D = false; chart2.Chart.Aspect.ZoomScrollStyle = Steema.TeeChart.Drawing.Aspect.ZoomScrollStyles.Manual; chart2.Panel.Gradient.Visible = false; chart2.Panel.Color = UIColor.Black.CGColor; chart2.Walls.Back.Gradient.Visible = true; chart2.Walls.Back.Gradient.StartColor = UIColor.FromRGB(0,0,0).CGColor; chart2.Walls.Back.Gradient.EndColor = UIColor.DarkGray.CGColor; chart2.Axes.Bottom.Grid.Visible = false; chart2.Axes.Left.Increment = 15; chart2.Axes.Bottom.Labels.Font.Size = 15; chart2.Legend.Alignment = LegendAlignments.Bottom; chart2.Legend.Transparent = true; Steema.TeeChart.Styles.Line series2 = new Steema.TeeChart.Styles.Line(); series2.Add(15); series2.Add(25); series2.Add(16); series2.Add(30); series2.Add(40); series2.Add(35); series2.Add(25); series2.Add(50); series2.Pointer.Visible = true; series2.Pointer.Style = Steema.TeeChart.Styles.PointerStyles.Circle; series2.LinePen.Width = 3; series2.Pointer.Pen.Visible = false; Steema.TeeChart.Styles.Area series3 = new Steema.TeeChart.Styles.Area(); series3.Add(10); series3.Add(15); series3.Add(6); series3.Add(15); series3.Add(10); series3.Add(25); series3.Add(20); series3.Add(24); series3.AreaLinesPen.Visible = true; series3.AreaLinesPen.Width=3; series3.AreaLinesPen.Color = series3.Color; series3.LinePen.Visible = true; series3.LinePen.Width = 5; series3.AreaLines.Visible = false; series3.AreaBrush.Gradient.Visible = true; series3.AreaBrush.Gradient.EndColor = UIColor.DarkGray.CGColor; chart2.Series.Add(series2); chart2.Series.Add(series3); // Chart 3 chart3.Aspect.View3D = false; chart3.Legend.Visible = false; chart3.Chart.Aspect.ZoomScrollStyle = Steema.TeeChart.Drawing.Aspect.ZoomScrollStyles.Manual; chart3.Panel.Gradient.Visible = false; chart3.Panel.Color = UIColor.Black.CGColor; chart3.Walls.Back.Gradient.Visible = true; chart3.Walls.Back.Gradient.StartColor = UIColor.Black.CGColor; chart3.Walls.Back.Gradient.EndColor = UIColor.FromRGB(79,79,79).CGColor; chart3.Axes.Left.Labels.Separation = 100; chart3.Axes.Left.Grid.Visible = true; chart3.Axes.Left.Grid.Color = UIColor.FromRGB(79,79,79).CGColor; chart3.Axes.Bottom.Grid.Color = UIColor.FromRGB(79,79,79).CGColor; chart3.Axes.Left.AxisPen.Visible = false; Steema.TeeChart.Styles.Candle candle = new Steema.TeeChart.Styles.Candle(); Steema.TeeChart.Styles.Volume volume = new Steema.TeeChart.Styles.Volume(); chart3.Series.Add(candle); chart3.Series.Add(volume); candle.FillSampleValues(70); candle.Pen.Visible = false; volume.FillSampleValues(70); volume.Color = UIColor.Yellow.CGColor; Steema.TeeChart.Axis axis = chart3.Axes.Left; //axis.AxisPen.Color = UIColor.Red.CGColor; axis.StartPosition = 0; axis.EndPosition = 72; axis.Labels.Font.Size = 12; Steema.TeeChart.Axis customAxis = new Steema.TeeChart.Axis(chart3.Chart); customAxis.OtherSide = true; chart3.Axes.Custom.Add(customAxis); //customAxis.AxisPen.Color = UIColor.Blue.CGColor; customAxis.StartPosition = 74; customAxis.EndPosition = 100; customAxis.Labels.Font.Color = UIColor.FromRGB(255,255,240).CGColor; customAxis.Labels.Font.Size = 12; customAxis.Grid.Visible = false; customAxis.AxisPen.Visible = false; volume.CustomVertAxis = customAxis; chart3.Legend.Alignment = LegendAlignments.Bottom; chart3.Legend.Transparent = true; chart3.Legend.Font.Size = 12; chart3.Legend.TopLeftPos = 0; chart3.Axes.Bottom.Labels.Font.Size = 12; /* Chart 4 chart4.Aspect.View3D = false; chart4.Chart.Aspect.ZoomScrollStyle = Steema.TeeChart.Drawing.Aspect.ZoomScrollStyles.Manual; chart4.Panel.Gradient.Visible = false; chart4.Panel.Color = UIColor.Black.CGColor; chart4.Walls.Back.Transparent=true; Steema.TeeChart.Styles.HorizBar series5 = new Steema.TeeChart.Styles.HorizBar(); series5.Add(10); series5.Add(50); series5.Add(30); series5.Add(70); //series5.BarHeightPercent=100; //series5.CustomBarWidth= 80; series5.ColorEach = true; //series5.Pen.Width = 3; //series5.Gradient.Visible = true; chart4.Series.Add(series5); chart4.Axes.Bottom.Visible = false; */ }
public override void RowSelected(UITableView tableView, NSIndexPath indexPath) { // Clear Views if World demo has been clicked if (_controller.chartController.View.Subviews.Length > 1) { _controller.chartController.View.Subviews[1].RemoveFromSuperview(); _controller.chart.Frame = _controller.chartController.mainChartFrame; } // Uncheck the previous row //if (_previousRow != null) // tableView.CellAt(_previousRow).Accessory = UITableViewCellAccessory.None; // Do something with the row var row = indexPath.Row; Settings.SelectedIndex = row; //tableView.CellAt(indexPath).Accessory = UITableViewCellAccessory.Checkmark; // Changes Series type _controller.chart.Series.Clear(); // Set some chart options to improve speed _controller.chart.Clear(); Steema.TeeChart.Themes.BlackIsBackTheme theme = new Steema.TeeChart.Themes.BlackIsBackTheme(_controller.chart.Chart); theme.Apply(); Steema.TeeChart.Themes.ColorPalettes.ApplyPalette(_controller.chart.Chart, Steema.TeeChart.Themes.Theme.OnBlackPalette); _controller.chart.Axes.Bottom.Grid.Visible = false; _controller.chart.Axes.Left.Grid.DrawEvery = 3; _controller.chart.Axes.Left.MinorTicks.Visible = false; _controller.chart.Axes.Bottom.MinorTicks.Visible = false; _controller.chart.Header.Visible = false; _controller.chart.Legend.Visible = false; _controller.chart.Aspect.View3D = true; //_controller.chart.ClickBackground += new UITouchEventArgs(chart_clickBackGround); switch (row) { case 0: Steema.TeeChart.Styles.Line line1 = new Steema.TeeChart.Styles.Line(); _controller.chart.Series.Add(line1); _controller.chart.Aspect.View3D = false; _controller.chart.Chart.Invalidate(); Random Rnd = new Random(); _controller.chart.Aspect.View3D = false; for (int t = 0; t <= 20; ++t) { line1.Add(t, ((Rnd.Next(100)) + 1) - ((Rnd.Next(70)) + 1), UIColor.Yellow.CGColor); } _controller.chart.Axes.Left.AxisPen.Color = UIColor.White.CGColor; _controller.chart.Axes.Bottom.AxisPen.Color = UIColor.White.CGColor; _controller.chart.Axes.Left.AxisPen.Width = 1; _controller.chart.Axes.Bottom.AxisPen.Width = 1; //line1.BeforeDrawValues += new Steema.TeeChart.Styles.Series.PaintChartEventHandler(line1_BeforeDrawValues); break; case 1: _controller.chart.Series.Add(new Steema.TeeChart.Styles.Points()); _controller.chart.Series[0].FillSampleValues(100); break; case 2: _controller.chart.Series.Add(new Steema.TeeChart.Styles.Area()); _controller.chart.Series.Add(new Steema.TeeChart.Styles.Area()); _controller.chart.Series.Add(new Steema.TeeChart.Styles.Area()); _controller.chart.Series[0].FillSampleValues(5); _controller.chart.Series[1].FillSampleValues(5); _controller.chart.Series[2].FillSampleValues(5); _controller.chart.Aspect.View3D = false; Steema.TeeChart.Styles.Area area1 = _controller.chart.Series[0] as Steema.TeeChart.Styles.Area; Steema.TeeChart.Styles.Area area2 = _controller.chart.Series[1] as Steema.TeeChart.Styles.Area; Steema.TeeChart.Styles.Area area3 = _controller.chart.Series[2] as Steema.TeeChart.Styles.Area; area1.Transparency = 40; area2.Transparency = 40; area3.Transparency = 40; break; case 3: _controller.chart.Series.Add(new Steema.TeeChart.Styles.FastLine()); _controller.chart.Aspect.View3D = false; _controller.chart.Series[0].FillSampleValues(400); break; case 4: _controller.chart.Series.Add(new Steema.TeeChart.Styles.HorizLine()); _controller.chart.Series[0].FillSampleValues(8); _controller.chart.Series.Add(new Steema.TeeChart.Styles.HorizLine()); _controller.chart.Series[1].FillSampleValues(8); _controller.chart.Series.Add(new Steema.TeeChart.Styles.HorizLine()); _controller.chart.Series[2].FillSampleValues(8); break; case 5: _controller.chart.Series.Add(new Steema.TeeChart.Styles.Bar()); _controller.chart.Series[0].Add(3, "Pears"); _controller.chart.Series[0].Add(4, "Apples"); _controller.chart.Series[0].Add(2, "Oranges"); _controller.chart.Series[0].Add(7, "Banana"); // _controller.chart.Series[0].Add(5,"Pineapple"); (_controller.chart.Series[0] as Steema.TeeChart.Styles.Bar).Pen.Visible = false; (_controller.chart.Series[0] as Steema.TeeChart.Styles.Bar).ColorEach = true; (_controller.chart.Series[0] as Steema.TeeChart.Styles.Bar).Marks.Shadow.Visible = false; _controller.chart.AfterDraw += new Steema.TeeChart.PaintChartEventHandler(chart_AfterDraw); //_controller.chart.GetAxisLabel += new Steema.TeeChart.GetAxisLabelEventHandler(_controller_GetAxisLabel); _controller.chart.Header.Font.Name = "Arial"; _controller.chart.Header.Font.Size = 20; _controller.chart.Axes.Bottom.Labels.Angle = 45; _controller.chart.ClickSeries += new Steema.TeeChart.TChart.SeriesEventHandler(series_clicked); /* * _controller.chart.Series[0].FillSampleValues(5); * _controller.chart.Series[0].FillSampleValues(5); * _controller.chart.Series[0].FillSampleValues(5); * _controller.chart.Series[0].FillSampleValues(5); * Steema.TeeChart.Styles.Bar bar1 = _controller.chart.Series[0] as Steema.TeeChart.Styles.Bar; * bar1.ColorEachPoint = true; * bar1.Marks.Visible = true; * bar1.Marks.Transparent = true; * bar1.Marks.ArrowLength = -15; * bar1.Marks.Arrow.Visible = false; */ //_controller.chart.Panning.Allow = Steema.TeeChart.ScrollModes.None; //_controller.chart.Zoom.Allow = false; break; case 6: _controller.chart.Series.Add(new Steema.TeeChart.Styles.HorizBar()); _controller.chart.Series[0].FillSampleValues(10); _controller.chart.Aspect.View3D = false; Steema.TeeChart.Styles.HorizBar hbar1 = _controller.chart.Series[0] as Steema.TeeChart.Styles.HorizBar; hbar1.MarksOnBar = true; hbar1.Marks.Transparent = true; hbar1.Color = UIColor.LightGray.CGColor; hbar1.Gradient.Visible = true; hbar1.CustomBarWidth = 20; _controller.chart.Axes.Left.MinimumOffset = 20; _controller.chart.Axes.Left.MaximumOffset = 20; _controller.chart.Aspect.ZoomScrollStyle = Steema.TeeChart.Drawing.Aspect.ZoomScrollStyles.Manual; break; case 7: _controller.chart.Series.Add(new Steema.TeeChart.Styles.Pie()); _controller.chart.Series[0].Add(30); _controller.chart.Series[0].Add(30); _controller.chart.Series[0].Add(40); _controller.chart.Series[0].Add(70); (_controller.chart.Series[0] as Steema.TeeChart.Styles.Pie).Circled = true; (_controller.chart.Series[0] as Steema.TeeChart.Styles.Pie).EdgeStyle = Steema.TeeChart.Drawing.EdgeStyles.Flat; (_controller.chart.Series[0] as Steema.TeeChart.Styles.Pie).BevelPercent = 15; (_controller.chart.Series[0] as Steema.TeeChart.Styles.Pie).Marks.Font.Color = UIColor.FromRGB(255, 255, 255).CGColor; (_controller.chart.Series[0] as Steema.TeeChart.Styles.Pie).Marks.Font.Size = 10; (_controller.chart.Series[0] as Steema.TeeChart.Styles.Pie).ExplodeBiggest = 20; (_controller.chart.Series[0] as Steema.TeeChart.Styles.Pie).RotationAngle = 25; _controller.chart.Series[0].Marks.Visible = true; _controller.chart.Series[0].Marks.Transparent = true; _controller.chart.Legend.Visible = true; _controller.chart.Legend.Alignment = Steema.TeeChart.LegendAlignments.Bottom; _controller.chart.Legend.Transparent = true; _controller.chart.Legend.Font.Size = 10; _controller.chart.Aspect.Chart3DPercent = 40; break; case 8: _controller.chart.Series.Add(new Steema.TeeChart.Styles.Shape()); (_controller.chart.Series[0] as Steema.TeeChart.Styles.Shape).Gradient.Visible = true; (_controller.chart.Series[0] as Steema.TeeChart.Styles.Shape).Style = Steema.TeeChart.Styles.ShapeStyles.Circle; (_controller.chart.Series[0] as Steema.TeeChart.Styles.Shape).Gradient.Visible = true; (_controller.chart.Series[0] as Steema.TeeChart.Styles.Shape).Gradient.EndColor = UIColor.FromRGB(255, 0, 0).CGColor; _controller.chart.Series[0].FillSampleValues(); break; case 9: _controller.chart.Series.Add(new Steema.TeeChart.Styles.Arrow()); (_controller.chart.Series[0] as Steema.TeeChart.Styles.Arrow).ColorEachPoint = true; _controller.chart.Series[0].FillSampleValues(); break; case 10: _controller.chart.Series.Add(new Steema.TeeChart.Styles.Bubble()); (_controller.chart.Series[0] as Steema.TeeChart.Styles.Bubble).Pointer.Gradient.Visible = true; (_controller.chart.Series[0] as Steema.TeeChart.Styles.Bubble).Pointer.Gradient.EndColor = UIColor.FromRGB(255, 255, 255).CGColor; _controller.chart.Series[0].FillSampleValues(); break; case 11: _controller.chart.Series.Add(new Steema.TeeChart.Styles.Gantt()); _controller.chart.Legend.Visible = true; _controller.chart.Legend.Alignment = Steema.TeeChart.LegendAlignments.Bottom; _controller.chart.Legend.Transparent = true; _controller.chart.Series[0].FillSampleValues(); break; case 12: _controller.chart.Series.Add(new Steema.TeeChart.Styles.Candle()); _controller.chart.Series[0].FillSampleValues(); break; case 13: _controller.chart.Series.Add(new Steema.TeeChart.Styles.Donut()); (_controller.chart.Series[0] as Steema.TeeChart.Styles.Donut).Circled = true; (_controller.chart.Series[0] as Steema.TeeChart.Styles.Donut).Pen.Visible = true; (_controller.chart.Series[0] as Steema.TeeChart.Styles.Donut).Pen.Width = 8; (_controller.chart.Series[0] as Steema.TeeChart.Styles.Donut).ExplodeBiggest = 15; _controller.chart.Series[0].Marks.Visible = false; _controller.chart.Legend.Visible = true; _controller.chart.Legend.VertSpacing = 10; _controller.chart.Legend.Title.Text = "Donut Chart"; _controller.chart.Legend.Transparent = true; _controller.chart.Legend.Alignment = Steema.TeeChart.LegendAlignments.Right; _controller.chart.Legend.Symbol.Pen.Visible = false; _controller.chart.Legend.Font.Size = 12; _controller.chart.Series[0].FillSampleValues(4); _controller.chart.Aspect.View3D = false; _controller.chart.Panel.Color = UIColor.White.CGColor; _controller.chart.Panel.Gradient.Visible = false; _controller.chart.Legend.Font.Color = UIColor.Black.CGColor; _controller.chart.Panel.MarginTop = 10; _controller.chart.Panel.MarginBottom = 10; break; case 14: _controller.chart.Series.Add(new Steema.TeeChart.Styles.Volume()); (_controller.chart.Series[0] as Steema.TeeChart.Styles.Volume).LinePen.Width = 2; _controller.chart.Series[0].FillSampleValues(); break; case 15: _controller.chart.Series.Add(new Steema.TeeChart.Styles.Bar3D()); _controller.chart.Series[0].FillSampleValues(); break; case 16: _controller.chart.Series.Add(new Steema.TeeChart.Styles.Points3D()); _controller.chart.Series[0].FillSampleValues(); break; case 17: _controller.chart.Series.Add(new Steema.TeeChart.Styles.Polar()); (_controller.chart.Series[0] as Steema.TeeChart.Styles.Polar).Circled = true; //(_controller.chart.Series[0] as Steema.TeeChart.Styles.Polar).Transparency = 10; _controller.chart.Aspect.View3D = false; _controller.chart.Series[0].FillSampleValues(); break; case 18: _controller.chart.Series.Add(new Steema.TeeChart.Styles.PolarBar()); _controller.chart.Aspect.View3D = false; _controller.chart.Series[0].FillSampleValues(); break; case 19: _controller.chart.Series.Add(new Steema.TeeChart.Styles.Radar()); _controller.chart.Aspect.View3D = false; _controller.chart.Series[0].FillSampleValues(); break; case 20: _controller.chart.Series.Add(new Steema.TeeChart.Styles.Clock()); (_controller.chart.Series[0] as Steema.TeeChart.Styles.Clock).Circled = true; _controller.chart.Series[0].FillSampleValues(); break; case 21: _controller.chart.Series.Add(new Steema.TeeChart.Styles.WindRose()); _controller.chart.Aspect.View3D = false; _controller.chart.Series[0].FillSampleValues(); break; case 22: _controller.chart.Series.Add(new Steema.TeeChart.Styles.Pyramid()); _controller.chart.Series[0].FillSampleValues(4); break; case 23: _controller.chart.Series.Add(new Steema.TeeChart.Styles.Surface()); _controller.chart.Series[0].FillSampleValues(); break; case 24: _controller.chart.Series.Add(new Steema.TeeChart.Styles.LinePoint()); _controller.chart.Aspect.View3D = false; _controller.chart.Series[0].FillSampleValues(); break; case 25: _controller.chart.Series.Add(new Steema.TeeChart.Styles.BarJoin()); _controller.chart.Aspect.View3D = false; _controller.chart.Series[0].FillSampleValues(); break; case 26: _controller.chart.Series.Add(new Steema.TeeChart.Styles.ColorGrid()); _controller.chart.Series[0].FillSampleValues(); break; case 27: _controller.chart.Series.Add(new Steema.TeeChart.Styles.Waterfall()); _controller.chart.Series[0].FillSampleValues(); break; case 28: _controller.chart.Series.Add(new Steema.TeeChart.Styles.Histogram()); _controller.chart.Aspect.View3D = false; (_controller.chart.Series[0] as Steema.TeeChart.Styles.Histogram).LinesPen.Visible = false; _controller.chart.Series[0].FillSampleValues(); break; case 29: _controller.chart.Series.Add(new Steema.TeeChart.Styles.Error()); (_controller.chart.Series[0] as Steema.TeeChart.Styles.Error).ColorEachPoint = true; (_controller.chart.Series[0] as Steema.TeeChart.Styles.Error).ErrorPen.Width = 5; _controller.chart.Series[0].FillSampleValues(); break; case 30: _controller.chart.Series.Add(new Steema.TeeChart.Styles.ErrorBar()); (_controller.chart.Series[0] as Steema.TeeChart.Styles.ErrorBar).ColorEachPoint = true; _controller.chart.Series[0].FillSampleValues(); break; case 31: _controller.chart.Series.Add(new Steema.TeeChart.Styles.Contour()); _controller.chart.Aspect.View3D = false; _controller.chart.Series[0].FillSampleValues(); break; case 32: _controller.chart.Series.Add(new Steema.TeeChart.Styles.Smith()); _controller.chart.Aspect.View3D = false; (_controller.chart.Series[0] as Steema.TeeChart.Styles.Smith).Circled = true; _controller.chart.Series[0].FillSampleValues(); break; case 33: _controller.chart.Series.Add(new Steema.TeeChart.Styles.Bezier()); _controller.chart.Aspect.View3D = false; (_controller.chart.Series[0] as Steema.TeeChart.Styles.Bezier).Pointer.Style = Steema.TeeChart.Styles.PointerStyles.Circle; (_controller.chart.Series[0] as Steema.TeeChart.Styles.Bezier).Pointer.Pen.Visible = false; (_controller.chart.Series[0] as Steema.TeeChart.Styles.Bezier).LinePen.Width = 2; (_controller.chart.Series[0] as Steema.TeeChart.Styles.Bezier).LinePen.Color = UIColor.Red.CGColor; _controller.chart.Series[0].FillSampleValues(4); break; case 34: _controller.chart.Series.Add(new Steema.TeeChart.Styles.Calendar()); _controller.chart.Series[0].FillSampleValues(); break; case 35: _controller.chart.Series.Add(new Steema.TeeChart.Styles.HighLow()); _controller.chart.Aspect.View3D = false; _controller.chart.Series[0].FillSampleValues(); break; case 36: _controller.chart.Series.Add(new Steema.TeeChart.Styles.TriSurface()); _controller.chart.Aspect.View3D = true; _controller.chart.Series[0].FillSampleValues(); break; case 37: _controller.chart.Series.Add(new Steema.TeeChart.Styles.Funnel()); _controller.chart.Aspect.View3D = false; _controller.chart.Series[0].FillSampleValues(20); break; case 38: _controller.chart.Series.Add(new Steema.TeeChart.Styles.Box()); _controller.chart.Series[0].FillSampleValues(); break; case 39: _controller.chart.Series.Add(new Steema.TeeChart.Styles.HorizBox()); _controller.chart.Series[0].FillSampleValues(); break; case 40: _controller.chart.Series.Add(new Steema.TeeChart.Styles.HorizArea()); _controller.chart.Series[0].FillSampleValues(); break; case 41: _controller.chart.Series.Add(new Steema.TeeChart.Styles.Tower()); _controller.chart.Aspect.View3D = true; _controller.chart.Series[0].FillSampleValues(5); _controller.chart.Walls.Visible = false; _controller.chart.Axes.Bottom.Ticks.Visible = false; _controller.chart.Axes.Bottom.MinorTicks.Visible = false; _controller.chart.Axes.Left.Ticks.Visible = false; _controller.chart.Axes.Left.MinorTicks.Visible = false; (_controller.chart.Series[0] as Steema.TeeChart.Styles.Tower).Pen.Visible = false; _controller.chart.Tools.Add(new Steema.TeeChart.Tools.Rotate()); _controller.chart.Aspect.Orthogonal = false; _controller.chart.Aspect.Rotation = -25; _controller.chart.Aspect.Zoom = 70; _controller.chart.Aspect.Chart3DPercent = 75; _controller.chart.Header.Text = "Drag to Rotate the Chart"; _controller.chart.Header.Visible = true; break; case 42: _controller.chart.Series.Add(new Steema.TeeChart.Styles.PointFigure()); _controller.chart.Series[0].FillSampleValues(); break; case 43: _controller.chart.Series.Add(new Steema.TeeChart.Styles.Gauges()); (_controller.chart.Series[0] as Steema.TeeChart.Styles.Gauges).GetVertAxis.Ticks.Length = 15; (_controller.chart.Series[0] as Steema.TeeChart.Styles.Gauges).GetVertAxis.AxisPen.Color = UIColor.LightGray.CGColor; _controller.chart.Series[0].FillSampleValues(); break; case 44: _controller.chart.Series.Add(new Steema.TeeChart.Styles.Vector3D()); _controller.chart.Series[0].FillSampleValues(); break; case 45: _controller.chart.Series.Add(new Steema.TeeChart.Styles.HorizHistogram()); _controller.chart.Aspect.View3D = false; (_controller.chart.Series[0] as Steema.TeeChart.Styles.HorizHistogram).LinesPen.Visible = false; _controller.chart.Series[0].FillSampleValues(); break; case 46: _controller.chart.Series.Add(new Steema.TeeChart.Styles.Map()); _controller.chart.Aspect.View3D = false; _controller.chart.Series[0].FillSampleValues(); break; case 47: _controller.chart.Series.Add(new Steema.TeeChart.Styles.ImageBar()); _controller.chart.Series[0].FillSampleValues(); UIImage img = UIImage.FromFile("bulb_on.png"); (_controller.chart.Series[0] as Steema.TeeChart.Styles.ImageBar).Image = img.CGImage; break; case 48: _controller.chart.Series.Add(new Steema.TeeChart.Styles.Kagi()); _controller.chart.Series[0].FillSampleValues(); break; case 49: _controller.chart.Series.Add(new Steema.TeeChart.Styles.Renko()); _controller.chart.Series[0].FillSampleValues(); break; case 50: _controller.chart.Series.Add(new Steema.TeeChart.Styles.IsoSurface()); _controller.chart.Aspect.View3D = true; _controller.chart.Series[0].FillSampleValues(); break; case 51: _controller.chart.Series.Add(new Steema.TeeChart.Styles.Darvas()); _controller.chart.Series[0].FillSampleValues(); break; case 52: _controller.chart.Series.Add(new Steema.TeeChart.Styles.VolumePipe()); _controller.chart.Aspect.View3D = false; _controller.chart.Legend.Visible = true; _controller.chart.Legend.Transparent = true; _controller.chart.Legend.Alignment = Steema.TeeChart.LegendAlignments.Bottom; _controller.chart.Legend.Symbol.Pen.Visible = false; _controller.chart.Legend.Font.Size = 14; _controller.chart.Series[0].FillSampleValues(4); break; case 53: _controller.chart.Series.Add(new Steema.TeeChart.Styles.ImagePoint()); _controller.chart.Series[0].FillSampleValues(5); _controller.chart.Aspect.View3D = false; UIImage img2 = UIImage.FromFile("bulb_off.png"); (_controller.chart.Series[0] as Steema.TeeChart.Styles.ImagePoint).Pointer.HorizSize = 30; (_controller.chart.Series[0] as Steema.TeeChart.Styles.ImagePoint).Pointer.VertSize = 30; (_controller.chart.Series[0] as Steema.TeeChart.Styles.ImagePoint).PointImage = img2.CGImage; break; case 54: _controller.chart.Series.Add(new Steema.TeeChart.Styles.CircularGauge()); (_controller.chart.Series[0] as Steema.TeeChart.Styles.CircularGauge).Value = 65; break; case 55: _controller.chart.Series.Add(new Steema.TeeChart.Styles.LinearGauge()); _controller.chart.Series[0].FillSampleValues(); break; case 56: _controller.chart.Series.Add(new Steema.TeeChart.Styles.VerticalLinearGauge()); (_controller.chart.Series[0] as Steema.TeeChart.Styles.VerticalLinearGauge).Axis.Ticks.Visible = true; (_controller.chart.Series[0] as Steema.TeeChart.Styles.VerticalLinearGauge).Axis.MinorTicks.Visible = true; _controller.chart.Series[0].FillSampleValues(); break; case 57: _controller.chart.Series.Add(new Steema.TeeChart.Styles.NumericGauge()); (_controller.chart.Series[0] as Steema.TeeChart.Styles.NumericGauge).Value = 123; break; case 58: _controller.chart.Series.Add(new Steema.TeeChart.Styles.OrgSeries()); _controller.chart.Series[0].FillSampleValues(); break; case 59: _controller.chart.Series.Add(new Steema.TeeChart.Styles.TagCloud()); _controller.chart.Series[0].FillSampleValues(50); break; case 60: _controller.chart.Series.Add(new Steema.TeeChart.Styles.PolarGrid()); _controller.chart.Aspect.View3D = false; _controller.chart.Series[0].FillSampleValues(); break; case 61: _controller.chart.Series.Add(new Steema.TeeChart.Styles.Ternary()); _controller.chart.Series[0].FillSampleValues(); break; case 62: _controller.chart.Series.Add(new Steema.TeeChart.Styles.KnobGauge()); (_controller.chart.Series[0] as Steema.TeeChart.Styles.KnobGauge).ActiveCenter = true; (_controller.chart.Series[0] as Steema.TeeChart.Styles.KnobGauge).Value = 50; break; case 63: _controller.chart.Aspect.ZoomScrollStyle = Steema.TeeChart.Drawing.Aspect.ZoomScrollStyles.Manual; Steema.TeeChart.Styles.World world1; _controller.chart.Series.Add(world1 = new Steema.TeeChart.Styles.World()); Steema.TeeChart.Styles.CustomBar wbar; TChart tChart2 = new TChart(this); tChart2.Aspect.View3D = false; tChart2.Legend.Visible = false; tChart2.Walls.Visible = false; if ((UIDevice.CurrentDevice.Orientation == UIDeviceOrientation.LandscapeLeft) || (UIDevice.CurrentDevice.Orientation == UIDeviceOrientation.LandscapeRight)) { System.Drawing.RectangleF midFrame = new System.Drawing.RectangleF(0, 0, UIScreen.MainScreen.ApplicationFrame.Height / 2, UIScreen.MainScreen.ApplicationFrame.Width - 20); _controller.chart.Frame = midFrame; System.Drawing.RectangleF midFrame2 = new System.Drawing.RectangleF(UIScreen.MainScreen.ApplicationFrame.Height / 2, 0, UIScreen.MainScreen.ApplicationFrame.Height / 2, UIScreen.MainScreen.ApplicationFrame.Width - 20); tChart2.Frame = midFrame2; wbar = new Steema.TeeChart.Styles.HorizBar(tChart2.Chart); tChart2.Axes.Left.Labels.Separation = 1; _controller.chart.Footer.TextAlign = MonoTouch.CoreText.CTTextAlignment.Right; //map tChart2.Footer.Text = "to market cost index"; tChart2.Footer.Font.Color = UIColor.FromRGB(255, 255, 255).CGColor; tChart2.Footer.TextAlign = MonoTouch.CoreText.CTTextAlignment.Left; tChart2.Footer.Font.Size = 8; tChart2.Footer.Visible = true; tChart2.Header.Visible = false; } else { System.Drawing.RectangleF midFrame = new System.Drawing.RectangleF(0, 0, UIScreen.MainScreen.ApplicationFrame.Width, _controller.chartController.chart.Bounds.Height / 2); _controller.chart.Frame = midFrame; System.Drawing.RectangleF midFrame2 = new System.Drawing.RectangleF(0, _controller.chartController.chart.Bounds.Height, UIScreen.MainScreen.ApplicationFrame.Width, _controller.chartController.chart.Bounds.Height); tChart2.Frame = midFrame2; wbar = new Steema.TeeChart.Styles.Bar(tChart2.Chart); tChart2.Axes.Bottom.Labels.Angle = 90; tChart2.Axes.Bottom.Labels.Separation = 1; _controller.chart.Footer.TextAlign = MonoTouch.CoreText.CTTextAlignment.Left; //map tChart2.Header.Text = "to market cost index"; tChart2.Header.Font.Color = UIColor.FromRGB(255, 255, 255).CGColor; tChart2.Header.TextAlign = MonoTouch.CoreText.CTTextAlignment.Left; tChart2.Header.Font.Size = 8; tChart2.Header.Visible = true; _controller.chart.Panel.MarginLeft = 15; _controller.chart.Panel.MarginRight = 15; } wbar.Marks.Visible = false; Steema.TeeChart.Themes.BlackIsBackTheme theme2 = new Steema.TeeChart.Themes.BlackIsBackTheme(tChart2.Chart); theme2.Apply(); Steema.TeeChart.Themes.ColorPalettes.ApplyPalette(tChart2.Chart, Steema.TeeChart.Themes.OperaTheme.OperaPalette); tChart2.Aspect.ZoomScrollStyle = Steema.TeeChart.Drawing.Aspect.ZoomScrollStyles.Manual; tChart2.Panel.Gradient.Visible = false; tChart2.Panel.Color = UIColor.FromRGB(0, 0, 0).CGColor; tChart2.Axes.Bottom.Grid.Visible = false; world1.Map = Steema.TeeChart.Styles.WorldMapType.Europe15; _controller.chart.Walls.Visible = false; _controller.chart.Panel.Gradient.Visible = false; _controller.chart.Panel.Color = UIColor.FromRGB(0, 0, 0).CGColor; _controller.chart.Legend.Visible = true; _controller.chart.Legend.Font.Size = 8; _controller.chart.Legend.Symbol.Position = LegendSymbolPosition.Right; world1.ValueFormat = "0.0"; _controller.chart.Axes.Visible = false; _controller.chart.Footer.Font.Color = UIColor.FromRGB(255, 255, 255).CGColor; _controller.chart.Footer.Text = "index of eu15" + Utils.NewLine + "organic food consumption 2009"; _controller.chart.Footer.Font.Size = 8; _controller.chart.Footer.Visible = true; wbar.Color = UIColor.FromRGB(69, 69, 255).CGColor; wbar.CustomBarWidth = 10; int[] territories = new int[] { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; for (int i = 0; i < world1.Shapes.Count; i++) { if (((String)(world1.Labels[i])) == "Austria") { world1.ZValues[i] = 89; if (territories[0] == 0) { wbar.Add(4.5, (String)(world1.Labels[i])); territories[0] = 1; } } else if (((String)(world1.Labels[i])) == "Denmark") { world1.ZValues[i] = 107; if (territories[1] == 0) { wbar.Add(4, (String)(world1.Labels[i])); territories[1] = 1; } } else if (((String)(world1.Labels[i])) == ("Finland")) { world1.ZValues[i] = 78; if (territories[2] == 0) { wbar.Add(7.5, (String)(world1.Labels[i])); territories[2] = 1; } } else if (((String)(world1.Labels[i])) == ("Luxembourg")) { world1.ZValues[i] = 86; if (territories[3] == 0) { wbar.Add(4.2, (String)(world1.Labels[i])); territories[3] = 1; } } else if (((String)(world1.Labels[i])) == ("Belgium")) { world1.ZValues[i] = 71; if (territories[4] == 0) { wbar.Add(9.1, (String)(world1.Labels[i])); territories[4] = 1; } } else if (((String)(world1.Labels[i])) == ("Netherlands")) { world1.ZValues[i] = 78; if (territories[5] == 0) { wbar.Add(3.9, (String)(world1.Labels[i])); territories[5] = 1; } } else if (((String)(world1.Labels[i])) == ("Germany")) { world1.ZValues[i] = 64; if (territories[6] == 0) { wbar.Add(1.2, (String)(world1.Labels[i])); territories[6] = 1; } } else if (((String)(world1.Labels[i])) == ("Sweden")) { world1.ZValues[i] = 53; if (territories[7] == 0) { wbar.Add(6.0, (String)(world1.Labels[i])); territories[7] = 1; } } else if (((String)(world1.Labels[i])) == ("UK")) { world1.ZValues[i] = 42; if (territories[8] == 0) { wbar.Add(4.7, (String)(world1.Labels[i])); territories[8] = 1; } } else if (((String)(world1.Labels[i])) == ("Ireland")) { world1.ZValues[i] = 24; if (territories[9] == 0) { wbar.Add(-0.2, (String)(world1.Labels[i])); territories[9] = 1; } } else if (((String)(world1.Labels[i])) == ("Italy")) { world1.ZValues[i] = 32; if (territories[10] == 0) { wbar.Add(6.1, (String)(world1.Labels[i])); territories[10] = 1; } } else if (((String)(world1.Labels[i])) == ("France")) { world1.ZValues[i] = 30; if (territories[11] == 0) { wbar.Add(7.9, (String)(world1.Labels[i])); territories[11] = 1; } } else if (((String)(world1.Labels[i])) == ("Spain")) { world1.ZValues[i] = 13; if (territories[12] == 0) { wbar.Add(3.9, (String)(world1.Labels[i])); territories[12] = 1; } } else if (((String)(world1.Labels[i])) == ("Greece")) { world1.ZValues[i] = 7; if (territories[13] == 0) { wbar.Add(2.1, (String)(world1.Labels[i])); territories[13] = 1; } } else if (((String)(world1.Labels[i])) == ("Portugal")) { world1.ZValues[i] = 11; if (territories[14] == 0) { wbar.Add(0.5, (String)(world1.Labels[i])); territories[14] = 1; } } else if (((String)(world1.Labels[i])) == ("Poland")) { world1.ZValues[i] = 1; if (territories[15] == 0) { wbar.Add(1.9, (String)(world1.Labels[i])); territories[15] = 1; } } } world1.Pen.Color = UIColor.Black.CGColor; world1.Pen.Width = 1; world1.Pen.Visible = true; _controller.chartController.View.AddSubview(tChart2); break; default: break; } /* * _controller.chart.Series[0].Add(100); * _controller.chart.Series[0].Add(150); * _controller.chart.Series[0].Add(75); * _controller.chart.Series[0].Add(30); */ //_controller.chart.Series[0].FillSampleValues(150); // This is what the Settings does under Settings>Mail>Show on an iPhone tableView.DeselectRow(indexPath, false); _controller.NavigationController.PushViewController(_controller.chartController, true); }
/// <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.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.button1 = new System.Windows.Forms.Button(); this.gridBand1 = new Steema.TeeChart.Tools.GridBand(); this.panel1.SuspendLayout(); this.SuspendLayout(); // // textBox1 // this.textBox1.Name = "textBox1"; this.textBox1.Size = new System.Drawing.Size(466, 63); this.textBox1.Text = "Line series displays points drawing one line from each point to the next.\r\nOption" + "s include 2D and 3D, \"stairs\" mode, null points, pointers, border, filling patte" + "rn, height 3D, stacking, overlaping, clicking, dark 3D and marks."; // // panel1 // this.panel1.Controls.Add(this.button1); 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.Name = "panel1"; this.panel1.Size = new System.Drawing.Size(466, 41); // // 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[] { "Line Series example" }; this.tChart1.Location = new System.Drawing.Point(0, 104); this.tChart1.Name = "tChart1"; // // tChart1.Panel // // // tChart1.Panel.Brush // this.tChart1.Panel.Brush.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(255))); this.tChart1.Series.Add(this.lineSeries1); this.tChart1.Series.Add(this.lineSeries2); this.tChart1.Size = new System.Drawing.Size(466, 182); this.tChart1.Tools.Add(this.gridBand1); // // 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 // // // lineSeries1.Pointer.Brush // this.lineSeries1.Pointer.Style = Steema.TeeChart.Styles.PointerStyles.Rectangle; this.lineSeries1.Title = "line2"; // // 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 // // // lineSeries2.Pointer.Brush // this.lineSeries2.Pointer.Style = Steema.TeeChart.Styles.PointerStyles.Rectangle; this.lineSeries2.Title = "line2"; // // lineSeries2.XValues // this.lineSeries2.XValues.DataMember = "X"; this.lineSeries2.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; // // lineSeries2.YValues // this.lineSeries2.YValues.DataMember = "Y"; // // checkBox1 // this.checkBox1.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.checkBox1.Location = new System.Drawing.Point(20, 9); this.checkBox1.Name = "checkBox1"; this.checkBox1.Size = new System.Drawing.Size(60, 21); this.checkBox1.TabIndex = 0; this.checkBox1.Text = "&Stairs"; 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(80, 9); this.checkBox2.Name = "checkBox2"; this.checkBox2.Size = new System.Drawing.Size(67, 21); this.checkBox2.TabIndex = 1; this.checkBox2.Text = "&Pointers"; this.checkBox2.CheckedChanged += new System.EventHandler(this.checkBox2_CheckedChanged); // // checkBox3 // this.checkBox3.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.checkBox3.Location = new System.Drawing.Point(153, 9); this.checkBox3.Name = "checkBox3"; this.checkBox3.Size = new System.Drawing.Size(54, 21); this.checkBox3.TabIndex = 2; this.checkBox3.Text = "&Marks"; 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(213, 9); this.checkBox4.Name = "checkBox4"; this.checkBox4.Size = new System.Drawing.Size(67, 21); this.checkBox4.TabIndex = 3; this.checkBox4.Text = "S&tacked"; 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(280, 9); this.checkBox5.Name = "checkBox5"; this.checkBox5.Size = new System.Drawing.Size(40, 21); this.checkBox5.TabIndex = 4; this.checkBox5.Text = "&3D"; this.checkBox5.CheckedChanged += new System.EventHandler(this.checkBox5_CheckedChanged); // // button1 // this.button1.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.button1.Location = new System.Drawing.Point(367, 9); this.button1.Name = "button1"; this.button1.TabIndex = 5; this.button1.Text = "&Edit..."; this.button1.Click += new System.EventHandler(this.button1_Click); // // gridBand1 // this.gridBand1.Axis = this.tChart1.Axes.Left; // // gridBand1.Band1 // this.gridBand1.Band1.Color = System.Drawing.Color.FromArgb(((System.Byte)(127)), ((System.Byte)(192)), ((System.Byte)(192)), ((System.Byte)(192))); // // gridBand1.Band2 // this.gridBand1.Band2.Color = System.Drawing.Color.FromArgb(((System.Byte)(127)), ((System.Byte)(224)), ((System.Byte)(224)), ((System.Byte)(224))); // // SeriesType_Line // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(466, 286); this.Name = "SeriesType_Line"; this.panel1.ResumeLayout(false); this.ResumeLayout(false); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.checkBox1 = new System.Windows.Forms.CheckBox(); this.button1 = new System.Windows.Forms.Button(); this.button2 = new System.Windows.Forms.Button(); this.line1 = new Steema.TeeChart.Styles.Line(); this.line2 = new Steema.TeeChart.Styles.Line(); this.extraLegend1 = new Steema.TeeChart.Tools.ExtraLegend(); this.gridBand1 = new Steema.TeeChart.Tools.GridBand(); this.panel1.SuspendLayout(); this.SuspendLayout(); // // textBox1 // this.textBox1.Name = "textBox1"; this.textBox1.Text = "ExtraLegend tool displays additional legend objects. \r\nThe tool has a Series prop" + "erty to display legend with series values and / or texts."; // // panel1 // this.panel1.Controls.Add(this.button2); this.panel1.Controls.Add(this.button1); this.panel1.Controls.Add(this.checkBox1); this.panel1.Name = "panel1"; // // 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.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.line1); this.tChart1.Series.Add(this.line2); this.tChart1.Tools.Add(this.extraLegend1); this.tChart1.Tools.Add(this.gridBand1); // // 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.Checked = true; this.checkBox1.CheckState = System.Windows.Forms.CheckState.Checked; this.checkBox1.Location = new System.Drawing.Point(8, 8); this.checkBox1.Name = "checkBox1"; this.checkBox1.Size = new System.Drawing.Size(128, 24); this.checkBox1.TabIndex = 0; this.checkBox1.Text = "Show Extra Legend"; this.checkBox1.Click += new System.EventHandler(this.checkBox1_Click); // // button1 // this.button1.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.button1.Location = new System.Drawing.Point(144, 8); this.button1.Name = "button1"; this.button1.Size = new System.Drawing.Size(112, 23); this.button1.TabIndex = 1; this.button1.Text = "Edit Extra Legend..."; this.button1.Click += new System.EventHandler(this.button1_Click); // // button2 // this.button2.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.button2.Location = new System.Drawing.Point(304, 8); this.button2.Name = "button2"; this.button2.TabIndex = 2; this.button2.Text = "Align"; this.button2.Click += new System.EventHandler(this.button2_Click); // // line1 // // // line1.Brush // this.line1.Brush.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(0)), ((System.Byte)(128)), ((System.Byte)(0))); // // line1.LinePen // this.line1.LinePen.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(0)), ((System.Byte)(77)), ((System.Byte)(0))); // // line1.Marks // // // 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; // // line1.Pointer // // // line1.Pointer.Brush // this.line1.Pointer.Brush.Color = System.Drawing.Color.Red; 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"; // // line2 // // // line2.Brush // this.line2.Brush.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(128)), ((System.Byte)(0)), ((System.Byte)(128))); // // line2.LinePen // this.line2.LinePen.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(77)), ((System.Byte)(0)), ((System.Byte)(77))); // // line2.Marks // // // line2.Marks.Symbol // // // line2.Marks.Symbol.Shadow // this.line2.Marks.Symbol.Shadow.Height = 1; this.line2.Marks.Symbol.Shadow.Visible = true; this.line2.Marks.Symbol.Shadow.Width = 1; // // line2.Pointer // // // line2.Pointer.Brush // this.line2.Pointer.Brush.Color = System.Drawing.Color.Green; this.line2.Pointer.Style = Steema.TeeChart.Styles.PointerStyles.Rectangle; this.line2.Title = "line2"; // // line2.XValues // this.line2.XValues.DataMember = "X"; this.line2.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; // // line2.YValues // this.line2.YValues.DataMember = "Y"; // // extraLegend1 // this.extraLegend1.Series = this.line2; // // gridBand1 // this.gridBand1.Axis = this.tChart1.Axes.Left; // // gridBand1.Band1 // this.gridBand1.Band1.Color = System.Drawing.Color.FromArgb(((System.Byte)(127)), ((System.Byte)(224)), ((System.Byte)(224)), ((System.Byte)(224))); // // gridBand1.Band2 // this.gridBand1.Band2.Color = System.Drawing.Color.FromArgb(((System.Byte)(127)), ((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(255))); // // Tool_ExtraLegend // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(440, 317); this.Name = "Tool_ExtraLegend"; 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() { System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Tool_DragMarks)); this.lineSeries1 = new Steema.TeeChart.Styles.Line(); this.dragMarks1 = new Steema.TeeChart.Tools.DragMarks(); this.checkBox1 = new System.Windows.Forms.CheckBox(); this.button1 = new System.Windows.Forms.Button(); this.button2 = new System.Windows.Forms.Button(); this.pointSeries1 = new Steema.TeeChart.Styles.Points(); this.panel1.SuspendLayout(); this.chartContainer.SuspendLayout(); this.SuspendLayout(); // // textBox1 // this.textBox1.Size = new System.Drawing.Size(432, 40); this.textBox1.Text = "The DragMarks tool is used to allow the user at run-time to move series Marks. \r\n" + "Try moving a point mark using the mouse."; // // panel1 // this.panel1.Controls.Add(this.button2); this.panel1.Controls.Add(this.button1); this.panel1.Controls.Add(this.checkBox1); this.panel1.Location = new System.Drawing.Point(0, 40); this.panel1.Size = new System.Drawing.Size(432, 41); // // tChart1 // // // // this.tChart1.Aspect.ZOffset = 0; // // // // // // this.tChart1.Axes.Bottom.MaximumOffset = 5; this.tChart1.Axes.Bottom.MinimumOffset = 5; // // // this.tChart1.Axes.Left.MaximumOffset = 10; this.tChart1.Axes.Left.MinimumOffset = 5; // // // this.tChart1.Header.Lines = new string[] { "tChart1" }; // // // // // // 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.Series.Add(this.pointSeries1); this.tChart1.Size = new System.Drawing.Size(432, 212); this.tChart1.Tools.Add(this.dragMarks1); // // // // // // // // // 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, 81); this.chartContainer.Size = new System.Drawing.Size(432, 212); // // lineSeries1 // // // // this.lineSeries1.Brush.Color = System.Drawing.Color.FromArgb(((int)(((byte)(68)))), ((int)(((byte)(102)))), ((int)(((byte)(163))))); this.lineSeries1.ClickableLine = false; this.lineSeries1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(68)))), ((int)(((byte)(102)))), ((int)(((byte)(163))))); this.lineSeries1.ColorEach = false; this.lineSeries1.ColorEachLine = 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.Marks.Visible = true; // // // 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"; // // dragMarks1 // this.dragMarks1.Series = this.lineSeries1; // // 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(16, 8); this.checkBox1.Name = "checkBox1"; this.checkBox1.Size = new System.Drawing.Size(60, 18); this.checkBox1.TabIndex = 0; this.checkBox1.Text = "&Active"; this.checkBox1.CheckedChanged += new System.EventHandler(this.checkBox1_CheckedChanged); // // button1 // this.button1.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.button1.Location = new System.Drawing.Point(133, 6); this.button1.Name = "button1"; this.button1.Size = new System.Drawing.Size(75, 23); this.button1.TabIndex = 1; this.button1.Text = "&Reset"; this.button1.Click += new System.EventHandler(this.button1_Click); // // button2 // this.button2.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.button2.Location = new System.Drawing.Point(220, 6); this.button2.Name = "button2"; this.button2.Size = new System.Drawing.Size(75, 23); this.button2.TabIndex = 2; this.button2.Text = "&Edit..."; this.button2.Click += new System.EventHandler(this.button2_Click); // // pointSeries1 // this.pointSeries1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(128)))), ((int)(((byte)(0))))); 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.Marks.Visible = true; // // // // // // this.pointSeries1.Pointer.Brush.Color = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(128)))), ((int)(((byte)(0))))); // // // this.pointSeries1.Pointer.Brush.Gradient.StartColor = System.Drawing.Color.FromArgb(((int)(((byte)(243)))), ((int)(((byte)(156)))), ((int)(((byte)(53))))); 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"; // // Tool_DragMarks // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(432, 293); this.Name = "Tool_DragMarks"; this.panel1.ResumeLayout(false); this.chartContainer.ResumeLayout(false); this.ResumeLayout(false); this.PerformLayout(); }
public override void RowSelected(UITableView tableView, NSIndexPath indexPath) { // Clear Views if World demo has been clicked if (_controller.chartController.View.Subviews.Length>1) { _controller.chartController.View.Subviews[1].RemoveFromSuperview(); _controller.chart.Frame = _controller.chartController.mainChartFrame; } // Uncheck the previous row //if (_previousRow != null) // tableView.CellAt(_previousRow).Accessory = UITableViewCellAccessory.None; // Do something with the row var row = indexPath.Row; Settings.SelectedIndex = row; //tableView.CellAt(indexPath).Accessory = UITableViewCellAccessory.Checkmark; // Changes Series type _controller.chart.Series.Clear(); // Set some chart options to improve speed _controller.chart.Clear(); Steema.TeeChart.Themes.BlackIsBackTheme theme = new Steema.TeeChart.Themes.BlackIsBackTheme(_controller.chart.Chart); theme.Apply(); Steema.TeeChart.Themes.ColorPalettes.ApplyPalette(_controller.chart.Chart,Steema.TeeChart.Themes.Theme.OnBlackPalette); _controller.chart.Axes.Bottom.Grid.Visible = false; _controller.chart.Axes.Left.Grid.DrawEvery = 3; _controller.chart.Axes.Left.MinorTicks.Visible = false; _controller.chart.Axes.Bottom.MinorTicks.Visible = false; _controller.chart.Header.Visible = false; _controller.chart.Legend.Visible = false; _controller.chart.Aspect.View3D = true; //_controller.chart.ClickBackground += new UITouchEventArgs(chart_clickBackGround); switch (row) { case 0: Steema.TeeChart.Styles.Line line1 = new Steema.TeeChart.Styles.Line(); _controller.chart.Series.Add(line1); _controller.chart.Aspect.View3D = false; _controller.chart.Chart.Invalidate(); Random Rnd = new Random(); _controller.chart.Aspect.View3D = false; for(int t = 0; t <= 20; ++t) line1.Add(t, ((Rnd.Next(100)) + 1) - ((Rnd.Next(70)) + 1), UIColor.Yellow.CGColor); _controller.chart.Axes.Left.AxisPen.Color = UIColor.White.CGColor; _controller.chart.Axes.Bottom.AxisPen.Color = UIColor.White.CGColor; _controller.chart.Axes.Left.AxisPen.Width = 1; _controller.chart.Axes.Bottom.AxisPen.Width = 1; //line1.BeforeDrawValues += new Steema.TeeChart.Styles.Series.PaintChartEventHandler(line1_BeforeDrawValues); break; case 1: _controller.chart.Series.Add(new Steema.TeeChart.Styles.Points()); _controller.chart.Series[0].FillSampleValues(100); break; case 2: _controller.chart.Series.Add(new Steema.TeeChart.Styles.Area()); _controller.chart.Series.Add(new Steema.TeeChart.Styles.Area()); _controller.chart.Series.Add(new Steema.TeeChart.Styles.Area()); _controller.chart.Series[0].FillSampleValues(5); _controller.chart.Series[1].FillSampleValues(5); _controller.chart.Series[2].FillSampleValues(5); _controller.chart.Aspect.View3D = false; Steema.TeeChart.Styles.Area area1 = _controller.chart.Series[0] as Steema.TeeChart.Styles.Area; Steema.TeeChart.Styles.Area area2 = _controller.chart.Series[1] as Steema.TeeChart.Styles.Area; Steema.TeeChart.Styles.Area area3 = _controller.chart.Series[2] as Steema.TeeChart.Styles.Area; area1.Transparency = 40; area2.Transparency = 40; area3.Transparency = 40; break; case 3: _controller.chart.Series.Add(new Steema.TeeChart.Styles.FastLine()); _controller.chart.Aspect.View3D = false; _controller.chart.Series[0].FillSampleValues(400); break; case 4: _controller.chart.Series.Add(new Steema.TeeChart.Styles.HorizLine()); _controller.chart.Series[0].FillSampleValues(8); _controller.chart.Series.Add(new Steema.TeeChart.Styles.HorizLine()); _controller.chart.Series[1].FillSampleValues(8); _controller.chart.Series.Add(new Steema.TeeChart.Styles.HorizLine()); _controller.chart.Series[2].FillSampleValues(8); break; case 5: _controller.chart.Series.Add(new Steema.TeeChart.Styles.Bar()); _controller.chart.Series[0].Add(3,"Pears"); _controller.chart.Series[0].Add(4,"Apples"); _controller.chart.Series[0].Add(2,"Oranges"); _controller.chart.Series[0].Add(7,"Banana"); // _controller.chart.Series[0].Add(5,"Pineapple"); (_controller.chart.Series[0] as Steema.TeeChart.Styles.Bar).Pen.Visible =false; (_controller.chart.Series[0] as Steema.TeeChart.Styles.Bar).ColorEach=true; (_controller.chart.Series[0] as Steema.TeeChart.Styles.Bar).Marks.Shadow.Visible=false; _controller.chart.AfterDraw += new Steema.TeeChart.PaintChartEventHandler(chart_AfterDraw); //_controller.chart.GetAxisLabel += new Steema.TeeChart.GetAxisLabelEventHandler(_controller_GetAxisLabel); _controller.chart.Header.Font.Name = "Arial"; _controller.chart.Header.Font.Size = 20; _controller.chart.Axes.Bottom.Labels.Angle = 45; _controller.chart.ClickSeries += new Steema.TeeChart.TChart.SeriesEventHandler(series_clicked); break; case 6: _controller.chart.Series.Add(new Steema.TeeChart.Styles.HorizBar()); _controller.chart.Series[0].FillSampleValues(10); _controller.chart.Aspect.View3D=false; Steema.TeeChart.Styles.HorizBar hbar1 = _controller.chart.Series[0] as Steema.TeeChart.Styles.HorizBar; hbar1.MarksOnBar = true; hbar1.Marks.Transparent=true; hbar1.Color = UIColor.LightGray.CGColor; hbar1.Gradient.Visible = true; hbar1.CustomBarWidth= 20; _controller.chart.Axes.Left.MinimumOffset=20; _controller.chart.Axes.Left.MaximumOffset=20; _controller.chart.Aspect.ZoomScrollStyle=Steema.TeeChart.Drawing.Aspect.ZoomScrollStyles.Manual; break; case 7: _controller.chart.Series.Add(new Steema.TeeChart.Styles.Pie()); _controller.chart.Series[0].Add(30); _controller.chart.Series[0].Add(30); _controller.chart.Series[0].Add(40); _controller.chart.Series[0].Add(70); (_controller.chart.Series[0] as Steema.TeeChart.Styles.Pie).Circled = true; (_controller.chart.Series[0] as Steema.TeeChart.Styles.Pie).EdgeStyle = Steema.TeeChart.Drawing.EdgeStyles.Flat; (_controller.chart.Series[0] as Steema.TeeChart.Styles.Pie).BevelPercent=15; (_controller.chart.Series[0] as Steema.TeeChart.Styles.Pie).Marks.Font.Color = UIColor.FromRGB(255,255,255).CGColor; (_controller.chart.Series[0] as Steema.TeeChart.Styles.Pie).Marks.Font.Size = 10; (_controller.chart.Series[0] as Steema.TeeChart.Styles.Pie).ExplodeBiggest=20; (_controller.chart.Series[0] as Steema.TeeChart.Styles.Pie).RotationAngle=25; _controller.chart.Series[0].Marks.Visible=true; _controller.chart.Series[0].Marks.Transparent=true; _controller.chart.Legend.Visible = true; _controller.chart.Legend.Alignment = Steema.TeeChart.LegendAlignments.Bottom; _controller.chart.Legend.Transparent = true; _controller.chart.Legend.Font.Size = 10; _controller.chart.Aspect.Chart3DPercent=40; break; case 8: _controller.chart.Series.Add(new Steema.TeeChart.Styles.Shape()); (_controller.chart.Series[0] as Steema.TeeChart.Styles.Shape).Gradient.Visible =true; (_controller.chart.Series[0] as Steema.TeeChart.Styles.Shape).Style = Steema.TeeChart.Styles.ShapeStyles.Circle; (_controller.chart.Series[0] as Steema.TeeChart.Styles.Shape).Gradient.Visible = true; (_controller.chart.Series[0] as Steema.TeeChart.Styles.Shape).Gradient.EndColor = UIColor.FromRGB(255,0,0).CGColor; _controller.chart.Series[0].FillSampleValues(); break; case 9: _controller.chart.Series.Add(new Steema.TeeChart.Styles.Arrow()); (_controller.chart.Series[0] as Steema.TeeChart.Styles.Arrow).ColorEachPoint=true; _controller.chart.Series[0].FillSampleValues(); break; case 10: _controller.chart.Series.Add(new Steema.TeeChart.Styles.Bubble()); (_controller.chart.Series[0] as Steema.TeeChart.Styles.Bubble).Pointer.Gradient.Visible = true; (_controller.chart.Series[0] as Steema.TeeChart.Styles.Bubble).Pointer.Gradient.EndColor=UIColor.FromRGB(255,255,255).CGColor; _controller.chart.Series[0].FillSampleValues(); break; case 11: _controller.chart.Series.Add(new Steema.TeeChart.Styles.Gantt()); _controller.chart.Legend.Visible = true; _controller.chart.Legend.Alignment = Steema.TeeChart.LegendAlignments.Bottom; _controller.chart.Legend.Transparent = true; _controller.chart.Series[0].FillSampleValues(); break; case 12: _controller.chart.Series.Add(new Steema.TeeChart.Styles.Candle()); _controller.chart.Series[0].FillSampleValues(); break; case 13: _controller.chart.Series.Add(new Steema.TeeChart.Styles.Donut()); (_controller.chart.Series[0] as Steema.TeeChart.Styles.Donut).Circled = true; (_controller.chart.Series[0] as Steema.TeeChart.Styles.Donut).Pen.Visible = true; (_controller.chart.Series[0] as Steema.TeeChart.Styles.Donut).Pen.Width = 8; (_controller.chart.Series[0] as Steema.TeeChart.Styles.Donut).ExplodeBiggest = 15; _controller.chart.Series[0].Marks.Visible=false; _controller.chart.Legend.Visible = true; _controller.chart.Legend.VertSpacing = 10; _controller.chart.Legend.Title.Text = "Donut Chart"; _controller.chart.Legend.Transparent = true; _controller.chart.Legend.Alignment = Steema.TeeChart.LegendAlignments.Right; _controller.chart.Legend.Symbol.Pen.Visible = false; _controller.chart.Legend.Font.Size = 12; _controller.chart.Series[0].FillSampleValues(4); _controller.chart.Aspect.View3D=false; _controller.chart.Panel.Color = UIColor.White.CGColor; _controller.chart.Panel.Gradient.Visible = false; _controller.chart.Legend.Font.Color = UIColor.Black.CGColor; _controller.chart.Panel.MarginTop = 10; _controller.chart.Panel.MarginBottom = 10; break; case 14: _controller.chart.Series.Add(new Steema.TeeChart.Styles.Volume()); (_controller.chart.Series[0] as Steema.TeeChart.Styles.Volume).LinePen.Width = 2; _controller.chart.Series[0].FillSampleValues(); break; case 15: _controller.chart.Series.Add(new Steema.TeeChart.Styles.Bar3D()); _controller.chart.Series[0].FillSampleValues(); break; case 16: _controller.chart.Series.Add(new Steema.TeeChart.Styles.Points3D()); _controller.chart.Series[0].FillSampleValues(); break; case 17: _controller.chart.Series.Add(new Steema.TeeChart.Styles.Polar()); (_controller.chart.Series[0] as Steema.TeeChart.Styles.Polar).Circled = true; //(_controller.chart.Series[0] as Steema.TeeChart.Styles.Polar).Transparency = 10; _controller.chart.Aspect.View3D = false; _controller.chart.Series[0].FillSampleValues(); break; case 18: _controller.chart.Series.Add(new Steema.TeeChart.Styles.PolarBar()); _controller.chart.Aspect.View3D = false; _controller.chart.Series[0].FillSampleValues(); break; case 19: _controller.chart.Series.Add(new Steema.TeeChart.Styles.Radar()); _controller.chart.Aspect.View3D = false; _controller.chart.Series[0].FillSampleValues(); break; case 20: _controller.chart.Series.Add(new Steema.TeeChart.Styles.Clock()); (_controller.chart.Series[0] as Steema.TeeChart.Styles.Clock).Circled = true; _controller.chart.Series[0].FillSampleValues(); break; case 21: _controller.chart.Series.Add(new Steema.TeeChart.Styles.WindRose()); _controller.chart.Aspect.View3D = false; _controller.chart.Series[0].FillSampleValues(); break; case 22: _controller.chart.Series.Add(new Steema.TeeChart.Styles.Pyramid()); _controller.chart.Series[0].FillSampleValues(4); break; case 23: _controller.chart.Series.Add(new Steema.TeeChart.Styles.Surface()); _controller.chart.Series[0].FillSampleValues(); break; case 24: _controller.chart.Series.Add(new Steema.TeeChart.Styles.LinePoint()); _controller.chart.Aspect.View3D = false; _controller.chart.Series[0].FillSampleValues(); break; case 25: _controller.chart.Series.Add(new Steema.TeeChart.Styles.BarJoin()); _controller.chart.Aspect.View3D = false; _controller.chart.Series[0].FillSampleValues(); break; case 26: _controller.chart.Series.Add(new Steema.TeeChart.Styles.ColorGrid()); _controller.chart.Series[0].FillSampleValues(); break; case 27: _controller.chart.Series.Add(new Steema.TeeChart.Styles.Waterfall()); _controller.chart.Series[0].FillSampleValues(); break; case 28: _controller.chart.Series.Add(new Steema.TeeChart.Styles.Histogram()); _controller.chart.Aspect.View3D = false; (_controller.chart.Series[0] as Steema.TeeChart.Styles.Histogram).LinesPen.Visible=false; _controller.chart.Series[0].FillSampleValues(); break; case 29: _controller.chart.Series.Add(new Steema.TeeChart.Styles.Error()); (_controller.chart.Series[0] as Steema.TeeChart.Styles.Error).ColorEachPoint=true; (_controller.chart.Series[0] as Steema.TeeChart.Styles.Error).ErrorPen.Width = 5; _controller.chart.Series[0].FillSampleValues(); break; case 30: _controller.chart.Series.Add(new Steema.TeeChart.Styles.ErrorBar()); (_controller.chart.Series[0] as Steema.TeeChart.Styles.ErrorBar).ColorEachPoint=true; _controller.chart.Series[0].FillSampleValues(); break; case 31: _controller.chart.Series.Add(new Steema.TeeChart.Styles.Contour()); _controller.chart.Aspect.View3D = false; _controller.chart.Series[0].FillSampleValues(); break; case 32: _controller.chart.Series.Add(new Steema.TeeChart.Styles.Smith()); _controller.chart.Aspect.View3D = false; (_controller.chart.Series[0] as Steema.TeeChart.Styles.Smith).Circled=true; _controller.chart.Series[0].FillSampleValues(); break; case 33: _controller.chart.Series.Add(new Steema.TeeChart.Styles.Bezier()); _controller.chart.Aspect.View3D=false; (_controller.chart.Series[0] as Steema.TeeChart.Styles.Bezier).Pointer.Style = Steema.TeeChart.Styles.PointerStyles.Circle; (_controller.chart.Series[0] as Steema.TeeChart.Styles.Bezier).Pointer.Pen.Visible=false; (_controller.chart.Series[0] as Steema.TeeChart.Styles.Bezier).LinePen.Width = 2; (_controller.chart.Series[0] as Steema.TeeChart.Styles.Bezier).LinePen.Color = UIColor.Red.CGColor; _controller.chart.Series[0].FillSampleValues(4); break; case 34: _controller.chart.Series.Add(new Steema.TeeChart.Styles.Calendar()); _controller.chart.Series[0].FillSampleValues(); break; case 35: _controller.chart.Series.Add(new Steema.TeeChart.Styles.HighLow()); _controller.chart.Aspect.View3D=false; _controller.chart.Series[0].FillSampleValues(); break; case 36: _controller.chart.Series.Add(new Steema.TeeChart.Styles.TriSurface()); _controller.chart.Aspect.View3D=true; _controller.chart.Series[0].FillSampleValues(); break; case 37: _controller.chart.Series.Add(new Steema.TeeChart.Styles.Funnel()); _controller.chart.Aspect.View3D = false; _controller.chart.Series[0].FillSampleValues(20); break; case 38: _controller.chart.Series.Add(new Steema.TeeChart.Styles.Box()); _controller.chart.Series[0].FillSampleValues(); break; case 39: _controller.chart.Series.Add(new Steema.TeeChart.Styles.HorizBox()); _controller.chart.Series[0].FillSampleValues(); break; case 40: _controller.chart.Series.Add(new Steema.TeeChart.Styles.HorizArea()); _controller.chart.Series[0].FillSampleValues(); break; case 41: _controller.chart.Series.Add(new Steema.TeeChart.Styles.Tower()); _controller.chart.Aspect.View3D=true; _controller.chart.Series[0].FillSampleValues(5); _controller.chart.Walls.Visible = false; _controller.chart.Axes.Bottom.Ticks.Visible = false; _controller.chart.Axes.Bottom.MinorTicks.Visible =false; _controller.chart.Axes.Left.Ticks.Visible = false; _controller.chart.Axes.Left.MinorTicks.Visible =false; (_controller.chart.Series[0] as Steema.TeeChart.Styles.Tower).Pen.Visible=false; _controller.chart.Tools.Add(new Steema.TeeChart.Tools.Rotate()); _controller.chart.Aspect.Orthogonal = false; _controller.chart.Aspect.Rotation = -25; _controller.chart.Aspect.Zoom = 70; _controller.chart.Aspect.Chart3DPercent = 75; _controller.chart.Header.Text = "Drag to Rotate the Chart"; _controller.chart.Header.Visible = true; break; case 42: _controller.chart.Series.Add(new Steema.TeeChart.Styles.PointFigure()); _controller.chart.Series[0].FillSampleValues(); break; case 43: _controller.chart.Series.Add(new Steema.TeeChart.Styles.Gauges()); (_controller.chart.Series[0] as Steema.TeeChart.Styles.Gauges).GetVertAxis.Ticks.Length = 15; (_controller.chart.Series[0] as Steema.TeeChart.Styles.Gauges).GetVertAxis.AxisPen.Color = UIColor.LightGray.CGColor; _controller.chart.Series[0].FillSampleValues(); break; case 44: _controller.chart.Series.Add(new Steema.TeeChart.Styles.Vector3D()); _controller.chart.Series[0].FillSampleValues(); break; case 45: _controller.chart.Series.Add(new Steema.TeeChart.Styles.HorizHistogram()); _controller.chart.Aspect.View3D = false; (_controller.chart.Series[0] as Steema.TeeChart.Styles.HorizHistogram).LinesPen.Visible=false; _controller.chart.Series[0].FillSampleValues(); break; case 46: _controller.chart.Series.Add(new Steema.TeeChart.Styles.Map()); _controller.chart.Aspect.View3D = false; _controller.chart.Series[0].FillSampleValues(); break; case 47: _controller.chart.Series.Add(new Steema.TeeChart.Styles.ImageBar()); _controller.chart.Series[0].FillSampleValues(); UIImage img = UIImage.FromFile("bulb_on.png"); (_controller.chart.Series[0] as Steema.TeeChart.Styles.ImageBar).Image = img.CGImage; break; case 48: _controller.chart.Series.Add(new Steema.TeeChart.Styles.Kagi()); _controller.chart.Series[0].FillSampleValues(); break; case 49: _controller.chart.Series.Add(new Steema.TeeChart.Styles.Renko()); _controller.chart.Series[0].FillSampleValues(); break; case 50: _controller.chart.Series.Add(new Steema.TeeChart.Styles.IsoSurface()); _controller.chart.Aspect.View3D=true; _controller.chart.Series[0].FillSampleValues(); break; case 51: _controller.chart.Series.Add(new Steema.TeeChart.Styles.Darvas()); _controller.chart.Series[0].FillSampleValues(); break; case 52: _controller.chart.Series.Add(new Steema.TeeChart.Styles.VolumePipe()); _controller.chart.Aspect.View3D = false; _controller.chart.Legend.Visible = true; _controller.chart.Legend.Transparent = true; _controller.chart.Legend.Alignment = Steema.TeeChart.LegendAlignments.Bottom; _controller.chart.Legend.Symbol.Pen.Visible = false; _controller.chart.Legend.Font.Size = 14; _controller.chart.Series[0].FillSampleValues(4); break; case 53: _controller.chart.Series.Add(new Steema.TeeChart.Styles.ImagePoint()); _controller.chart.Series[0].FillSampleValues(5); _controller.chart.Aspect.View3D = false; UIImage img2 = UIImage.FromFile("bulb_off.png"); (_controller.chart.Series[0] as Steema.TeeChart.Styles.ImagePoint).Pointer.HorizSize = 30; (_controller.chart.Series[0] as Steema.TeeChart.Styles.ImagePoint).Pointer.VertSize = 30; (_controller.chart.Series[0] as Steema.TeeChart.Styles.ImagePoint).PointImage = img2.CGImage; break; case 54: _controller.chart.Series.Add(new Steema.TeeChart.Styles.CircularGauge()); (_controller.chart.Series[0] as Steema.TeeChart.Styles.CircularGauge).Value = 65; break; case 55: _controller.chart.Series.Add(new Steema.TeeChart.Styles.LinearGauge()); _controller.chart.Series[0].FillSampleValues(); break; case 56: _controller.chart.Series.Add(new Steema.TeeChart.Styles.VerticalLinearGauge()); (_controller.chart.Series[0] as Steema.TeeChart.Styles.VerticalLinearGauge).Axis.Ticks.Visible = true; (_controller.chart.Series[0] as Steema.TeeChart.Styles.VerticalLinearGauge).Axis.MinorTicks.Visible = true; _controller.chart.Series[0].FillSampleValues(); break; case 57: _controller.chart.Series.Add(new Steema.TeeChart.Styles.NumericGauge()); (_controller.chart.Series[0] as Steema.TeeChart.Styles.NumericGauge).Value = 123; break; case 58: _controller.chart.Series.Add(new Steema.TeeChart.Styles.OrgSeries()); _controller.chart.Series[0].FillSampleValues(); break; case 59: _controller.chart.Series.Add(new Steema.TeeChart.Styles.TagCloud()); _controller.chart.Series[0].FillSampleValues(50); break; case 60: _controller.chart.Series.Add(new Steema.TeeChart.Styles.PolarGrid()); _controller.chart.Aspect.View3D = false; _controller.chart.Series[0].FillSampleValues(); break; case 61: _controller.chart.Series.Add(new Steema.TeeChart.Styles.Ternary()); _controller.chart.Series[0].FillSampleValues(); break; case 62: _controller.chart.Series.Add(new Steema.TeeChart.Styles.KnobGauge()); (_controller.chart.Series[0] as Steema.TeeChart.Styles.KnobGauge).ActiveCenter=true; (_controller.chart.Series[0] as Steema.TeeChart.Styles.KnobGauge).Value = 50; break; case 63: _controller.chart.Aspect.ZoomScrollStyle=Steema.TeeChart.Drawing.Aspect.ZoomScrollStyles.Manual; Steema.TeeChart.Styles.World world1; _controller.chart.Series.Add(world1 = new Steema.TeeChart.Styles.World()); Steema.TeeChart.Styles.CustomBar wbar; TChart tChart2 = new TChart(this); tChart2.Aspect.View3D = false; tChart2.Legend.Visible = false; tChart2.Walls.Visible = false; if ((UIDevice.CurrentDevice.Orientation == UIDeviceOrientation.LandscapeLeft) || (UIDevice.CurrentDevice.Orientation == UIDeviceOrientation.LandscapeRight)) { System.Drawing.RectangleF midFrame = new System.Drawing.RectangleF(0,0, UIScreen.MainScreen.ApplicationFrame.Height/2, UIScreen.MainScreen.ApplicationFrame.Width-20); _controller.chart.Frame = midFrame; System.Drawing.RectangleF midFrame2 = new System.Drawing.RectangleF( UIScreen.MainScreen.ApplicationFrame.Height/2,0, UIScreen.MainScreen.ApplicationFrame.Height/2, UIScreen.MainScreen.ApplicationFrame.Width-20); tChart2.Frame = midFrame2; wbar = new Steema.TeeChart.Styles.HorizBar(tChart2.Chart); tChart2.Axes.Left.Labels.Separation = 1; _controller.chart.Footer.TextAlign = MonoTouch.CoreText.CTTextAlignment.Right; //map tChart2.Footer.Text = "to market cost index"; tChart2.Footer.Font.Color = UIColor.FromRGB(255,255,255).CGColor; tChart2.Footer.TextAlign = MonoTouch.CoreText.CTTextAlignment.Left; tChart2.Footer.Font.Size = 8; tChart2.Footer.Visible = true; tChart2.Header.Visible = false; } else { System.Drawing.RectangleF midFrame = new System.Drawing.RectangleF(0,0, UIScreen.MainScreen.ApplicationFrame.Width, _controller.chartController.chart.Bounds.Height/2); _controller.chart.Frame = midFrame; System.Drawing.RectangleF midFrame2 = new System.Drawing.RectangleF(0,_controller.chartController.chart.Bounds.Height, UIScreen.MainScreen.ApplicationFrame.Width, _controller.chartController.chart.Bounds.Height); tChart2.Frame = midFrame2; wbar = new Steema.TeeChart.Styles.Bar(tChart2.Chart); tChart2.Axes.Bottom.Labels.Angle = 90; tChart2.Axes.Bottom.Labels.Separation = 1; _controller.chart.Footer.TextAlign = MonoTouch.CoreText.CTTextAlignment.Left; //map tChart2.Header.Text = "to market cost index"; tChart2.Header.Font.Color = UIColor.FromRGB(255,255,255).CGColor; tChart2.Header.TextAlign = MonoTouch.CoreText.CTTextAlignment.Left; tChart2.Header.Font.Size = 8; tChart2.Header.Visible = true; _controller.chart.Panel.MarginLeft = 15; _controller.chart.Panel.MarginRight = 15; } wbar.Marks.Visible = false; Steema.TeeChart.Themes.BlackIsBackTheme theme2 = new Steema.TeeChart.Themes.BlackIsBackTheme(tChart2.Chart); theme2.Apply(); Steema.TeeChart.Themes.ColorPalettes.ApplyPalette(tChart2.Chart, Steema.TeeChart.Themes.OperaTheme.OperaPalette); tChart2.Aspect.ZoomScrollStyle=Steema.TeeChart.Drawing.Aspect.ZoomScrollStyles.Manual; tChart2.Panel.Gradient.Visible = false; tChart2.Panel.Color = UIColor.FromRGB(0,0,0).CGColor; tChart2.Axes.Bottom.Grid.Visible = false; world1.Map = Steema.TeeChart.Styles.WorldMapType.Europe15; _controller.chart.Walls.Visible = false; _controller.chart.Panel.Gradient.Visible = false; _controller.chart.Panel.Color = UIColor.FromRGB(0,0,0).CGColor; _controller.chart.Legend.Visible = true; _controller.chart.Legend.Font.Size = 8; _controller.chart.Legend.Symbol.Position = LegendSymbolPosition.Right; world1.ValueFormat = "0.0"; _controller.chart.Axes.Visible = false; _controller.chart.Footer.Font.Color = UIColor.FromRGB(255,255,255).CGColor; _controller.chart.Footer.Text = "index of eu15" + Utils.NewLine + "organic food consumption 2009"; _controller.chart.Footer.Font.Size = 8; _controller.chart.Footer.Visible = true; wbar.Color = UIColor.FromRGB(69,69,255).CGColor; wbar.CustomBarWidth = 10; int[] territories = new int[] { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; for (int i = 0; i < world1.Shapes.Count; i++) { if (((String)(world1.Labels[i])) == "Austria") { world1.ZValues[i] = 89; if (territories[0] == 0) { wbar.Add(4.5, (String)(world1.Labels[i])); territories[0] = 1; } } else if (((String)(world1.Labels[i]))=="Denmark") { world1.ZValues[i] = 107; if (territories[1] == 0) { wbar.Add(4, (String)(world1.Labels[i])); territories[1] = 1; } } else if (((String)(world1.Labels[i])) == ("Finland")) { world1.ZValues[i] = 78; if (territories[2] == 0) { wbar.Add(7.5, (String)(world1.Labels[i])); territories[2] = 1; } } else if (((String)(world1.Labels[i])) == ("Luxembourg")) { world1.ZValues[i] = 86; if (territories[3] == 0) { wbar.Add(4.2, (String)(world1.Labels[i])); territories[3] = 1; } } else if (((String)(world1.Labels[i])) == ("Belgium")) { world1.ZValues[i] = 71; if (territories[4] == 0) { wbar.Add(9.1, (String)(world1.Labels[i])); territories[4] = 1; } } else if (((String)(world1.Labels[i])) == ("Netherlands")) { world1.ZValues[i] = 78; if (territories[5] == 0) { wbar.Add(3.9, (String)(world1.Labels[i])); territories[5] = 1; } } else if (((String)(world1.Labels[i])) == ("Germany")) { world1.ZValues[i] = 64; if (territories[6] == 0) { wbar.Add(1.2, (String)(world1.Labels[i])); territories[6] = 1; } } else if (((String)(world1.Labels[i])) == ("Sweden")) { world1.ZValues[i] = 53; if (territories[7] == 0) { wbar.Add(6.0, (String)(world1.Labels[i])); territories[7] = 1; } } else if (((String)(world1.Labels[i])) == ("UK")) { world1.ZValues[i] = 42; if (territories[8] == 0) { wbar.Add(4.7, (String)(world1.Labels[i])); territories[8] = 1; } } else if (((String)(world1.Labels[i])) == ("Ireland")) { world1.ZValues[i] = 24; if (territories[9] == 0) { wbar.Add(-0.2, (String)(world1.Labels[i])); territories[9] = 1; } } else if (((String)(world1.Labels[i])) == ("Italy")) { world1.ZValues[i] = 32; if (territories[10] == 0) { wbar.Add(6.1, (String)(world1.Labels[i])); territories[10] = 1; } } else if (((String)(world1.Labels[i])) == ("France")) { world1.ZValues[i] = 30; if (territories[11] == 0) { wbar.Add(7.9, (String)(world1.Labels[i])); territories[11] = 1; } } else if (((String)(world1.Labels[i])) == ("Spain")) { world1.ZValues[i] = 13; if (territories[12] == 0) { wbar.Add(3.9, (String)(world1.Labels[i])); territories[12] = 1; } } else if (((String)(world1.Labels[i])) == ("Greece")) { world1.ZValues[i] = 7; if (territories[13] == 0) { wbar.Add(2.1, (String)(world1.Labels[i])); territories[13] = 1; } } else if (((String)(world1.Labels[i])) == ("Portugal")) { world1.ZValues[i] = 11; if (territories[14] == 0) { wbar.Add(0.5, (String)(world1.Labels[i])); territories[14] = 1; } } else if (((String)(world1.Labels[i])) == ("Poland")) { world1.ZValues[i] = 1; if (territories[15] == 0) { wbar.Add(1.9, (String)(world1.Labels[i])); territories[15] = 1; } } } world1.Pen.Color = UIColor.Black.CGColor; world1.Pen.Width = 1; world1.Pen.Visible = true; _controller.chartController.View.AddSubview(tChart2); break; default: break; } // This is what the Settings does under Settings>Mail>Show on an iPhone tableView.DeselectRow(indexPath,false); _controller.NavigationController.PushViewController(_controller.chartController,true); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Function_Median)); this.fastLine1 = new Steema.TeeChart.Styles.FastLine(); this.line1 = new Steema.TeeChart.Styles.Line(); this.medianFunction1 = new Steema.TeeChart.Functions.MedianFunction(); this.chartContainer.SuspendLayout(); this.SuspendLayout(); // // textBox1 // this.textBox1.Text = resources.GetString("textBox1.Text"); // // tChart1 // // // // this.tChart1.Aspect.ThemeIndex = 3; this.tChart1.Aspect.View3D = false; this.tChart1.Aspect.ZOffset = 0; // // // // // // // // // this.tChart1.Axes.Bottom.AxisPen.Color = System.Drawing.Color.FromArgb(((int)(((byte)(130)))), ((int)(((byte)(130)))), ((int)(((byte)(130))))); // // // this.tChart1.Axes.Bottom.Grid.Color = System.Drawing.Color.FromArgb(((int)(((byte)(130)))), ((int)(((byte)(130)))), ((int)(((byte)(130))))); this.tChart1.Axes.Bottom.Grid.Style = System.Drawing.Drawing2D.DashStyle.Solid; // // // // // // // // // // // this.tChart1.Axes.Bottom.MinorTicks.Visible = false; // // // this.tChart1.Axes.Bottom.Ticks.Color = System.Drawing.Color.FromArgb(((int)(((byte)(130)))), ((int)(((byte)(130)))), ((int)(((byte)(130))))); // // // this.tChart1.Axes.Bottom.TicksInner.Visible = true; // // // // // // this.tChart1.Axes.Depth.AxisPen.Color = System.Drawing.Color.FromArgb(((int)(((byte)(130)))), ((int)(((byte)(130)))), ((int)(((byte)(130))))); // // // this.tChart1.Axes.Depth.Grid.Color = System.Drawing.Color.FromArgb(((int)(((byte)(130)))), ((int)(((byte)(130)))), ((int)(((byte)(130))))); this.tChart1.Axes.Depth.Grid.Style = System.Drawing.Drawing2D.DashStyle.Solid; // // // // // // // // // // // this.tChart1.Axes.Depth.MinorTicks.Visible = false; // // // this.tChart1.Axes.Depth.Ticks.Color = System.Drawing.Color.FromArgb(((int)(((byte)(130)))), ((int)(((byte)(130)))), ((int)(((byte)(130))))); // // // this.tChart1.Axes.Depth.TicksInner.Visible = true; // // // // // // this.tChart1.Axes.DepthTop.AxisPen.Color = System.Drawing.Color.FromArgb(((int)(((byte)(130)))), ((int)(((byte)(130)))), ((int)(((byte)(130))))); // // // this.tChart1.Axes.DepthTop.Grid.Color = System.Drawing.Color.FromArgb(((int)(((byte)(130)))), ((int)(((byte)(130)))), ((int)(((byte)(130))))); this.tChart1.Axes.DepthTop.Grid.Style = System.Drawing.Drawing2D.DashStyle.Solid; // // // // // // // // // // // this.tChart1.Axes.DepthTop.MinorTicks.Visible = false; // // // this.tChart1.Axes.DepthTop.Ticks.Color = System.Drawing.Color.FromArgb(((int)(((byte)(130)))), ((int)(((byte)(130)))), ((int)(((byte)(130))))); // // // this.tChart1.Axes.DepthTop.TicksInner.Visible = true; // // // // // // this.tChart1.Axes.Left.AxisPen.Color = System.Drawing.Color.FromArgb(((int)(((byte)(130)))), ((int)(((byte)(130)))), ((int)(((byte)(130))))); // // // this.tChart1.Axes.Left.Grid.Color = System.Drawing.Color.FromArgb(((int)(((byte)(130)))), ((int)(((byte)(130)))), ((int)(((byte)(130))))); this.tChart1.Axes.Left.Grid.Style = System.Drawing.Drawing2D.DashStyle.Solid; // // // // // // // // // // // this.tChart1.Axes.Left.MinorTicks.Visible = false; // // // this.tChart1.Axes.Left.Ticks.Color = System.Drawing.Color.FromArgb(((int)(((byte)(130)))), ((int)(((byte)(130)))), ((int)(((byte)(130))))); // // // this.tChart1.Axes.Left.TicksInner.Visible = true; // // // // // // this.tChart1.Axes.Right.AxisPen.Color = System.Drawing.Color.FromArgb(((int)(((byte)(130)))), ((int)(((byte)(130)))), ((int)(((byte)(130))))); // // // this.tChart1.Axes.Right.Grid.Color = System.Drawing.Color.FromArgb(((int)(((byte)(130)))), ((int)(((byte)(130)))), ((int)(((byte)(130))))); this.tChart1.Axes.Right.Grid.Style = System.Drawing.Drawing2D.DashStyle.Solid; // // // // // // // // // // // this.tChart1.Axes.Right.MinorTicks.Visible = false; // // // this.tChart1.Axes.Right.Ticks.Color = System.Drawing.Color.FromArgb(((int)(((byte)(130)))), ((int)(((byte)(130)))), ((int)(((byte)(130))))); // // // this.tChart1.Axes.Right.TicksInner.Visible = true; // // // // // // this.tChart1.Axes.Top.AxisPen.Color = System.Drawing.Color.FromArgb(((int)(((byte)(130)))), ((int)(((byte)(130)))), ((int)(((byte)(130))))); // // // this.tChart1.Axes.Top.Grid.Color = System.Drawing.Color.FromArgb(((int)(((byte)(130)))), ((int)(((byte)(130)))), ((int)(((byte)(130))))); this.tChart1.Axes.Top.Grid.Style = System.Drawing.Drawing2D.DashStyle.Solid; // // // // // // // // // // // this.tChart1.Axes.Top.MinorTicks.Visible = false; // // // this.tChart1.Axes.Top.Ticks.Color = System.Drawing.Color.FromArgb(((int)(((byte)(130)))), ((int)(((byte)(130)))), ((int)(((byte)(130))))); // // // this.tChart1.Axes.Top.TicksInner.Visible = true; // // // // // // // // // this.tChart1.Header.Brush.Gradient.EndColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(0))))); this.tChart1.Header.Brush.Gradient.MiddleColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); this.tChart1.Header.Brush.Gradient.SigmaFocus = 0F; this.tChart1.Header.Brush.Gradient.SigmaScale = 0F; this.tChart1.Header.Brush.Gradient.StartColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); // // // // // // this.tChart1.Header.Font.Brush.Color = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); // // // // // // // // // this.tChart1.Legend.Brush.Gradient.EndColor = System.Drawing.Color.FromArgb(((int)(((byte)(120)))), ((int)(((byte)(120)))), ((int)(((byte)(120))))); this.tChart1.Legend.Brush.Gradient.MiddleColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); this.tChart1.Legend.Brush.Gradient.SigmaFocus = 0F; this.tChart1.Legend.Brush.Gradient.SigmaScale = 0F; this.tChart1.Legend.Brush.Gradient.StartColor = System.Drawing.Color.FromArgb(((int)(((byte)(70)))), ((int)(((byte)(70)))), ((int)(((byte)(70))))); this.tChart1.Legend.Brush.Gradient.Visible = true; // // // // // // this.tChart1.Legend.Font.Brush.Color = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); // // // this.tChart1.Legend.Pen.Visible = false; // // // // // // this.tChart1.Panel.Brush.Color = System.Drawing.Color.FromArgb(((int)(((byte)(240)))), ((int)(((byte)(240)))), ((int)(((byte)(240))))); // // // this.tChart1.Panel.Brush.Gradient.EndColor = System.Drawing.Color.FromArgb(((int)(((byte)(70)))), ((int)(((byte)(70)))), ((int)(((byte)(70))))); this.tChart1.Panel.Brush.Gradient.MiddleColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); this.tChart1.Panel.Brush.Gradient.SigmaFocus = 0F; this.tChart1.Panel.Brush.Gradient.SigmaScale = 0F; this.tChart1.Panel.Brush.Gradient.StartColor = System.Drawing.Color.FromArgb(((int)(((byte)(70)))), ((int)(((byte)(70)))), ((int)(((byte)(70))))); this.tChart1.Panel.Brush.Gradient.UseMiddle = false; // // // // // // this.tChart1.Panel.Shadow.Brush.Color = System.Drawing.Color.Black; this.tChart1.Series.Add(this.fastLine1); this.tChart1.Series.Add(this.line1); this.tChart1.Size = new System.Drawing.Size(440, 205); // // // // // // // // // // // // this.tChart1.Walls.Back.Brush.Gradient.EndColor = System.Drawing.Color.FromArgb(((int)(((byte)(120)))), ((int)(((byte)(120)))), ((int)(((byte)(120))))); this.tChart1.Walls.Back.Brush.Gradient.MiddleColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); this.tChart1.Walls.Back.Brush.Gradient.StartColor = System.Drawing.Color.FromArgb(((int)(((byte)(70)))), ((int)(((byte)(70)))), ((int)(((byte)(70))))); // // // this.tChart1.Walls.Back.Pen.Visible = false; // // // // // // // // // this.tChart1.Walls.Bottom.Brush.Gradient.EndColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(0))))); this.tChart1.Walls.Bottom.Brush.Gradient.MiddleColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); this.tChart1.Walls.Bottom.Brush.Gradient.SigmaFocus = 0F; this.tChart1.Walls.Bottom.Brush.Gradient.SigmaScale = 0F; this.tChart1.Walls.Bottom.Brush.Gradient.StartColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); // // // this.tChart1.Walls.Bottom.Pen.Visible = false; // // // // // // // // // this.tChart1.Walls.Left.Brush.Gradient.EndColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(0))))); this.tChart1.Walls.Left.Brush.Gradient.MiddleColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); this.tChart1.Walls.Left.Brush.Gradient.SigmaFocus = 0F; this.tChart1.Walls.Left.Brush.Gradient.SigmaScale = 0F; this.tChart1.Walls.Left.Brush.Gradient.StartColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); // // // this.tChart1.Walls.Left.Pen.Visible = false; // // // // // // this.tChart1.Walls.Right.Brush.Color = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(192))))); // // // this.tChart1.Walls.Right.Brush.Gradient.EndColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(0))))); this.tChart1.Walls.Right.Brush.Gradient.MiddleColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); this.tChart1.Walls.Right.Brush.Gradient.SigmaFocus = 0F; this.tChart1.Walls.Right.Brush.Gradient.SigmaScale = 0F; this.tChart1.Walls.Right.Brush.Gradient.StartColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); // // // this.tChart1.Walls.Right.Pen.Visible = false; // // fastLine1 // this.fastLine1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(200)))), ((int)(((byte)(230)))), ((int)(((byte)(90))))); this.fastLine1.ColorEach = false; // // // this.fastLine1.LinePen.Color = System.Drawing.Color.FromArgb(((int)(((byte)(200)))), ((int)(((byte)(230)))), ((int)(((byte)(90))))); this.fastLine1.LinePen.Width = 2; // // // // // // // // // this.fastLine1.Marks.Brush.Gradient.EndColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(0))))); this.fastLine1.Marks.Brush.Gradient.MiddleColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); this.fastLine1.Marks.Brush.Gradient.SigmaFocus = 0F; this.fastLine1.Marks.Brush.Gradient.SigmaScale = 0F; this.fastLine1.Marks.Brush.Gradient.StartColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); // // // this.fastLine1.Marks.Callout.ArrowHead = Steema.TeeChart.Styles.ArrowHeadStyles.None; this.fastLine1.Marks.Callout.ArrowHeadSize = 8; // // // this.fastLine1.Marks.Callout.Brush.Color = System.Drawing.Color.Black; this.fastLine1.Marks.Callout.Distance = 0; this.fastLine1.Marks.Callout.Draw3D = false; this.fastLine1.Marks.Callout.Length = 10; this.fastLine1.Marks.Callout.Style = Steema.TeeChart.Styles.PointerStyles.Rectangle; this.fastLine1.Marks.Callout.Visible = false; // // // // // // this.fastLine1.Marks.Font.Brush.Color = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); this.fastLine1.Marks.Transparent = true; this.fastLine1.Title = "Source"; this.fastLine1.TreatNulls = Steema.TeeChart.Styles.TreatNullsStyle.Ignore; // // // this.fastLine1.XValues.DataMember = "X"; this.fastLine1.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; // // // this.fastLine1.YValues.DataMember = "Y"; // // line1 // // // // this.line1.Brush.Color = System.Drawing.Color.FromArgb(((int)(((byte)(90)))), ((int)(((byte)(150)))), ((int)(((byte)(220))))); this.line1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(90)))), ((int)(((byte)(150)))), ((int)(((byte)(220))))); this.line1.ColorEach = false; this.line1.DataSource = this.fastLine1; this.line1.Function = this.medianFunction1; // // // this.line1.LinePen.Color = System.Drawing.Color.FromArgb(((int)(((byte)(146)))), ((int)(((byte)(94)))), ((int)(((byte)(32))))); // // // // // // // // // this.line1.Marks.Brush.Gradient.EndColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(0))))); this.line1.Marks.Brush.Gradient.MiddleColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); this.line1.Marks.Brush.Gradient.SigmaFocus = 0F; this.line1.Marks.Brush.Gradient.SigmaScale = 0F; this.line1.Marks.Brush.Gradient.StartColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); // // // 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.Marks.Font.Brush.Color = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); this.line1.Marks.Transparent = true; // // // this.line1.Pointer.Style = Steema.TeeChart.Styles.PointerStyles.Rectangle; this.line1.Title = "Median"; this.line1.VertAxis = Steema.TeeChart.Styles.VerticalAxis.Right; // // // this.line1.XValues.DataMember = "X"; this.line1.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; // // // this.line1.YValues.DataMember = "Y"; // // Median // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(440, 317); this.Name = "Median"; this.chartContainer.ResumeLayout(false); this.ResumeLayout(false); this.PerformLayout(); }
public override void ViewDidLoad() { base.ViewDidLoad(); //any additional setup after loading the view, typically from a nib. r1 = new System.Drawing.RectangleF(0, 0, this.View.Bounds.Width / 2, this.View.Bounds.Height / 2); r2 = new System.Drawing.RectangleF(this.View.Bounds.Width / 2, 0, this.View.Bounds.Width / 2, this.View.Bounds.Height / 2); r3 = new System.Drawing.RectangleF(0, this.View.Bounds.Height / 2, this.View.Bounds.Width, this.View.Bounds.Height / 2); //r3 = new System.Drawing.RectangleF(0,this.View.Bounds.Height/2,this.View.Bounds.Width/2,this.View.Bounds.Height/2); // r4 = new System.Drawing.RectangleF(this.View.Bounds.Width/2,this.View.Bounds.Height/2,this.View.Bounds.Width/2,this.View.Bounds.Height/2); chart1.Frame = r1; chart2.Frame = r2; chart3.Frame = r3; //chart4.Frame = r4; chart1.Header.Visible = false; chart1.Legend.Visible = false; chart2.Header.Visible = false; chart3.Header.Visible = false; //chart4.Header.Visible = false; this.View.AddSubview(chart1); this.View.AddSubview(chart2); this.View.AddSubview(chart3); //this.View.AddSubview(chart4); Steema.TeeChart.Themes.BlackIsBackTheme theme1 = new Steema.TeeChart.Themes.BlackIsBackTheme(chart1.Chart); Steema.TeeChart.Themes.BlackIsBackTheme theme2 = new Steema.TeeChart.Themes.BlackIsBackTheme(chart2.Chart); Steema.TeeChart.Themes.BlackIsBackTheme theme3 = new Steema.TeeChart.Themes.BlackIsBackTheme(chart3.Chart); //Steema.TeeChart.Themes.BlackIsBackTheme theme4 = new Steema.TeeChart.Themes.BlackIsBackTheme(chart4.Chart); theme1.Apply(); theme2.Apply(); theme3.Apply(); //theme4.Apply(); Steema.TeeChart.Themes.ColorPalettes.ApplyPalette(chart1.Chart, Steema.TeeChart.Themes.Theme.OnBlackPalette); Steema.TeeChart.Themes.ColorPalettes.ApplyPalette(chart2.Chart, Steema.TeeChart.Themes.Theme.OnBlackPalette); Steema.TeeChart.Themes.ColorPalettes.ApplyPalette(chart3.Chart, Steema.TeeChart.Themes.Theme.OnBlackPalette); //Steema.TeeChart.Themes.ColorPalettes.ApplyPalette(chart4.Chart,Steema.TeeChart.Themes.Theme.OnBlackPalette); // Chart 1 chart1.Panel.Gradient.Visible = false; chart1.Panel.Color = UIColor.Black.CGColor; Steema.TeeChart.Styles.Donut series1 = new Steema.TeeChart.Styles.Donut(); chart1.Aspect.View3D = false; series1.FillSampleValues(4); series1.Circled = true; series1.Pen.Width = 5; series1.ExplodeBiggest = 20; series1.Marks.Transparent = true; series1.Marks.Font.Color = UIColor.FromRGB(255, 255, 255).CGColor; series1.Marks.Font.Size = 20; chart1.Series.Add(series1); // Chart 2 chart2.Aspect.View3D = false; chart2.Chart.Aspect.ZoomScrollStyle = Steema.TeeChart.Drawing.Aspect.ZoomScrollStyles.Manual; chart2.Panel.Gradient.Visible = false; chart2.Panel.Color = UIColor.Black.CGColor; chart2.Walls.Back.Gradient.Visible = true; chart2.Walls.Back.Gradient.StartColor = UIColor.FromRGB(0, 0, 0).CGColor; chart2.Walls.Back.Gradient.EndColor = UIColor.DarkGray.CGColor; chart2.Axes.Bottom.Grid.Visible = false; chart2.Axes.Left.Increment = 15; chart2.Axes.Bottom.Labels.Font.Size = 15; chart2.Legend.Alignment = LegendAlignments.Bottom; chart2.Legend.Transparent = true; Steema.TeeChart.Styles.Line series2 = new Steema.TeeChart.Styles.Line(); series2.Add(15); series2.Add(25); series2.Add(16); series2.Add(30); series2.Add(40); series2.Add(35); series2.Add(25); series2.Add(50); series2.Pointer.Visible = true; series2.Pointer.Style = Steema.TeeChart.Styles.PointerStyles.Circle; series2.LinePen.Width = 3; series2.Pointer.Pen.Visible = false; Steema.TeeChart.Styles.Area series3 = new Steema.TeeChart.Styles.Area(); series3.Add(10); series3.Add(15); series3.Add(6); series3.Add(15); series3.Add(10); series3.Add(25); series3.Add(20); series3.Add(24); series3.AreaLinesPen.Visible = true; series3.AreaLinesPen.Width = 3; series3.AreaLinesPen.Color = series3.Color; series3.LinePen.Visible = true; series3.LinePen.Width = 5; series3.AreaLines.Visible = false; series3.AreaBrush.Gradient.Visible = true; series3.AreaBrush.Gradient.EndColor = UIColor.DarkGray.CGColor; chart2.Series.Add(series2); chart2.Series.Add(series3); // Chart 3 chart3.Aspect.View3D = false; chart3.Legend.Visible = false; chart3.Chart.Aspect.ZoomScrollStyle = Steema.TeeChart.Drawing.Aspect.ZoomScrollStyles.Manual; chart3.Panel.Gradient.Visible = false; chart3.Panel.Color = UIColor.Black.CGColor; chart3.Walls.Back.Gradient.Visible = true; chart3.Walls.Back.Gradient.StartColor = UIColor.Black.CGColor; chart3.Walls.Back.Gradient.EndColor = UIColor.FromRGB(79, 79, 79).CGColor; chart3.Axes.Left.Labels.Separation = 100; chart3.Axes.Left.Grid.Visible = true; chart3.Axes.Left.Grid.Color = UIColor.FromRGB(79, 79, 79).CGColor; chart3.Axes.Bottom.Grid.Color = UIColor.FromRGB(79, 79, 79).CGColor; chart3.Axes.Left.AxisPen.Visible = false; Steema.TeeChart.Styles.Candle candle = new Steema.TeeChart.Styles.Candle(); Steema.TeeChart.Styles.Volume volume = new Steema.TeeChart.Styles.Volume(); chart3.Series.Add(candle); chart3.Series.Add(volume); candle.FillSampleValues(70); candle.Pen.Visible = false; volume.FillSampleValues(70); volume.Color = UIColor.Yellow.CGColor; Steema.TeeChart.Axis axis = chart3.Axes.Left; //axis.AxisPen.Color = UIColor.Red.CGColor; axis.StartPosition = 0; axis.EndPosition = 72; axis.Labels.Font.Size = 12; Steema.TeeChart.Axis customAxis = new Steema.TeeChart.Axis(chart3.Chart); customAxis.OtherSide = true; chart3.Axes.Custom.Add(customAxis); //customAxis.AxisPen.Color = UIColor.Blue.CGColor; customAxis.StartPosition = 74; customAxis.EndPosition = 100; customAxis.Labels.Font.Color = UIColor.FromRGB(255, 255, 240).CGColor; customAxis.Labels.Font.Size = 12; customAxis.Grid.Visible = false; customAxis.AxisPen.Visible = false; volume.CustomVertAxis = customAxis; chart3.Legend.Alignment = LegendAlignments.Bottom; chart3.Legend.Transparent = true; chart3.Legend.Font.Size = 12; chart3.Legend.TopLeftPos = 0; chart3.Axes.Bottom.Labels.Font.Size = 12; /* Chart 4 * * chart4.Aspect.View3D = false; * chart4.Chart.Aspect.ZoomScrollStyle = Steema.TeeChart.Drawing.Aspect.ZoomScrollStyles.Manual; * chart4.Panel.Gradient.Visible = false; * chart4.Panel.Color = UIColor.Black.CGColor; * chart4.Walls.Back.Transparent=true; * Steema.TeeChart.Styles.HorizBar series5 = new Steema.TeeChart.Styles.HorizBar(); * series5.Add(10); * series5.Add(50); * series5.Add(30); * series5.Add(70); * //series5.BarHeightPercent=100; * //series5.CustomBarWidth= 80; * series5.ColorEach = true; * //series5.Pen.Width = 3; * //series5.Gradient.Visible = true; * chart4.Series.Add(series5); * chart4.Axes.Bottom.Visible = false; */ }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.lineSeries1 = new Steema.TeeChart.Styles.Line(); this.drawLine1 = new Steema.TeeChart.Tools.DrawLine(); this.label1 = new System.Windows.Forms.Label(); this.label2 = new System.Windows.Forms.Label(); this.label3 = new System.Windows.Forms.Label(); this.panel1.SuspendLayout(); this.SuspendLayout(); // // textBox1 // this.textBox1.Name = "textBox1"; this.textBox1.Size = new System.Drawing.Size(512, 64); this.textBox1.Text = "DrawLine tool introduces OnDraggedLine event. This event is triggered when the us" + "er finishes dragging a line.\r\nTry drawing a line, then clicking and moving it. W" + "hen finished, the event is raised and the label below shows the new line positio" + "n."; // // panel1 // this.panel1.Controls.Add(this.label3); this.panel1.Controls.Add(this.label2); 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(512, 48); // // tChart1 // // // tChart1.Aspect // this.tChart1.Aspect.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.HighQuality; this.tChart1.Aspect.TextRenderingHint = System.Drawing.Text.TextRenderingHint.ClearTypeGridFit; this.tChart1.Aspect.View3D = false; // // tChart1.Header // this.tChart1.Header.Lines = new string[] { "tChart1" }; this.tChart1.Header.Visible = false; 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.Size = new System.Drawing.Size(512, 181); this.tChart1.Tools.Add(this.drawLine1); // // lineSeries1 // // // lineSeries1.Brush // this.lineSeries1.Brush.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(0)), ((System.Byte)(128)), ((System.Byte)(0))); // // lineSeries1.LinePen // this.lineSeries1.LinePen.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(0)), ((System.Byte)(77)), ((System.Byte)(0))); // // 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 = "lineSeries1"; // // lineSeries1.XValues // this.lineSeries1.XValues.DataMember = "X"; this.lineSeries1.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; // // lineSeries1.YValues // this.lineSeries1.YValues.DataMember = "Y"; // // drawLine1 // this.drawLine1.EnableDraw = false; this.drawLine1.DraggedLine += new Steema.TeeChart.Tools.DrawLineEventHandler(this.drawLine1_DraggedLine); // // label1 // this.label1.AutoSize = true; this.label1.Location = new System.Drawing.Point(11, 8); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(122, 16); this.label1.TabIndex = 0; this.label1.Text = "Dragging line position : "; this.label1.UseMnemonic = false; // // label2 // this.label2.AutoSize = true; this.label2.Location = new System.Drawing.Point(160, 8); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(20, 16); this.label2.TabIndex = 1; this.label2.Text = "0,0"; this.label2.UseMnemonic = false; // // label3 // this.label3.AutoSize = true; this.label3.Location = new System.Drawing.Point(160, 24); this.label3.Name = "label3"; this.label3.Size = new System.Drawing.Size(20, 16); this.label3.TabIndex = 2; this.label3.Text = "0,0"; this.label3.UseMnemonic = false; // // Tool_DrawLineDragged // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(512, 293); this.Name = "Tool_DrawLineDragged"; 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() { System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Export_SVG)); this.line1 = new Steema.TeeChart.Styles.Line(); this.area1 = new Steema.TeeChart.Styles.Area(); this.button1 = new System.Windows.Forms.Button(); this.saveFileDialog1 = new System.Windows.Forms.SaveFileDialog(); this.button2 = new System.Windows.Forms.Button(); this.annotation1 = new Steema.TeeChart.Tools.Annotation(); this.panel1.SuspendLayout(); this.chartContainer.SuspendLayout(); this.SuspendLayout(); // // textBox1 // this.textBox1.Size = new System.Drawing.Size(440, 56); this.textBox1.Text = "Exporting to SVG (Scalable Vector Graphics) graphic format is available using the" + " Export Dialog or by code at run-time. "; // // panel1 // this.panel1.Controls.Add(this.button2); this.panel1.Controls.Add(this.button1); this.panel1.Location = new System.Drawing.Point(0, 56); // // tChart1 // // // // this.tChart1.Aspect.Chart3DPercent = 10; this.tChart1.Aspect.Perspective = 0; this.tChart1.Aspect.Rotation = 348; this.tChart1.Aspect.RotationFloat = 348; this.tChart1.Aspect.ZOffset = 0; // // // // // // // // // this.tChart1.Axes.Bottom.AxisPen.Color = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(192))))); this.tChart1.Axes.Bottom.MaximumOffset = 3; this.tChart1.Axes.Bottom.MinimumOffset = 3; // // // // // // this.tChart1.Axes.Left.AxisPen.Color = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(192))))); // // // // // // this.tChart1.Axes.Right.AxisPen.Color = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(192))))); this.tChart1.Axes.Right.MaximumOffset = 3; this.tChart1.Axes.Right.MinimumOffset = 3; // // // this.tChart1.Axes.Top.Visible = false; // // // this.tChart1.Header.Lines = new string[] { "tChart1" }; this.tChart1.Header.Visible = false; // // // this.tChart1.Legend.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.line1); this.tChart1.Series.Add(this.area1); this.tChart1.Size = new System.Drawing.Size(440, 222); this.tChart1.Tools.Add(this.annotation1); // // // // // // // // // this.tChart1.Walls.Back.Pen.Color = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(192))))); // // // // // // this.tChart1.Walls.Bottom.Brush.Color = System.Drawing.Color.FromArgb(((int)(((byte)(178)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); // // // this.tChart1.Walls.Bottom.Brush.Gradient.Transparency = 30; // // // this.tChart1.Walls.Bottom.Pen.Visible = false; this.tChart1.Walls.Bottom.Size = 5; // // // // // // this.tChart1.Walls.Left.Brush.Color = System.Drawing.Color.FromArgb(((int)(((byte)(178)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(224))))); // // // this.tChart1.Walls.Left.Brush.Gradient.Transparency = 30; // // // this.tChart1.Walls.Left.Pen.Visible = false; // // // // // // this.tChart1.Walls.Left.Shadow.Brush.Color = System.Drawing.Color.FromArgb(((int)(((byte)(178)))), ((int)(((byte)(169)))), ((int)(((byte)(169)))), ((int)(((byte)(169))))); this.tChart1.Walls.Left.Size = 5; // // // // // // this.tChart1.Walls.Right.Pen.Color = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(192))))); // // chartContainer // this.chartContainer.Location = new System.Drawing.Point(0, 95); this.chartContainer.Size = new System.Drawing.Size(440, 222); // // line1 // // // // this.line1.Brush.Color = System.Drawing.Color.FromArgb(((int)(((byte)(68)))), ((int)(((byte)(102)))), ((int)(((byte)(163))))); this.line1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(68)))), ((int)(((byte)(102)))), ((int)(((byte)(163))))); this.line1.ColorEach = true; // // // this.line1.LinePen.Color = System.Drawing.Color.FromArgb(((int)(((byte)(41)))), ((int)(((byte)(61)))), ((int)(((byte)(98))))); // // // // // // 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; // // 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; // // line1.Pointer // this.line1.Pointer.HorizSize = 2; this.line1.Pointer.Style = Steema.TeeChart.Styles.PointerStyles.Rectangle; this.line1.Pointer.VertSize = 2; this.line1.Pointer.Visible = true; this.line1.Title = "line1"; this.line1.VertAxis = Steema.TeeChart.Styles.VerticalAxis.Right; // // // line1.XValues // this.line1.XValues.DataMember = "X"; this.line1.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; // // line1.YValues // this.line1.YValues.DataMember = "Y"; // // area1 // // // // this.area1.AreaBrush.Color = System.Drawing.Color.FromArgb(((int)(((byte)(243)))), ((int)(((byte)(156)))), ((int)(((byte)(53))))); // // // this.area1.Gradient.StartColor = System.Drawing.Color.FromArgb(((int)(((byte)(243)))), ((int)(((byte)(156)))), ((int)(((byte)(53))))); this.area1.Gradient.Transparency = 50; // // this.area1.AreaBrush.Color = System.Drawing.Color.FromArgb(((System.Byte)(127)), ((System.Byte)(0)), ((System.Byte)(128)), ((System.Byte)(0))); // this.area1.AreaLines.Color = System.Drawing.Color.FromArgb(((int)(((byte)(146)))), ((int)(((byte)(94)))), ((int)(((byte)(32))))); // this.area1.AreaBrush.Gradient.Transparency = 50; // // area1.Brush // this.area1.Brush.Color = System.Drawing.Color.FromArgb(((System.Byte)(127)), ((System.Byte)(255)), ((System.Byte)(0)), ((System.Byte)(0))); this.area1.ColorEach = true; // // // this.area1.LinePen.Color = System.Drawing.Color.FromArgb(((int)(((byte)(146)))), ((int)(((byte)(94)))), ((int)(((byte)(32))))); // // // // // // this.area1.Marks.Callout.ArrowHead = Steema.TeeChart.Styles.ArrowHeadStyles.None; this.area1.Marks.Callout.ArrowHeadSize = 8; // // this.area1.Gradient.Transparency = 50; // 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.Marks.Callout.Visible = false; // // // // // this.area1.Marks.Symbol.Shadow.Height = 1; this.area1.Marks.Symbol.Shadow.Visible = true; this.area1.Marks.Symbol.Shadow.Width = 1; // this.area1.Pointer.Brush.Color = System.Drawing.Color.FromArgb(((int)(((byte)(127)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); // // // this.area1.Pointer.Style = Steema.TeeChart.Styles.PointerStyles.Rectangle; this.area1.Title = "area1"; // // // this.area1.XValues.DataMember = "X"; this.area1.XValues.DateTime = true; this.area1.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; // // // this.area1.YValues.DataMember = "Y"; // // button1 // this.button1.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.button1.Location = new System.Drawing.Point(8, 8); this.button1.Name = "button1"; this.button1.Size = new System.Drawing.Size(104, 23); this.button1.TabIndex = 1; this.button1.Text = "Save to SVG"; this.button1.Click += new System.EventHandler(this.button1_Click); // // button2 // this.button2.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.button2.Location = new System.Drawing.Point(160, 8); this.button2.Name = "button2"; this.button2.Size = new System.Drawing.Size(120, 23); this.button2.TabIndex = 2; this.button2.Text = "Show export dialog"; this.button2.Click += new System.EventHandler(this.button2_Click); // // annotation1 // this.annotation1.AutoSize = true; this.annotation1.Cursor = System.Windows.Forms.Cursors.Default; this.annotation1.Left = 100; // // // this.annotation1.Shape.BorderRound = 8; this.annotation1.Shape.Bottom = 41; // // // this.annotation1.Shape.Brush.Color = System.Drawing.Color.FromArgb(((int)(((byte)(102)))), ((int)(((byte)(255)))), ((int)(((byte)(128)))), ((int)(((byte)(0))))); // // // this.annotation1.Shape.Brush.Gradient.Transparency = 60; this.annotation1.Shape.CustomPosition = true; // // // // // // this.annotation1.Shape.Font.Brush.Color = System.Drawing.Color.FromArgb(((int)(((byte)(254)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); this.annotation1.Shape.Font.Name = "Arial Black"; this.annotation1.Shape.Left = 100; this.annotation1.Shape.Lines = new string[] { "SVG example" }; this.annotation1.Shape.Right = 193; // // // this.annotation1.Shape.Shadow.Visible = true; this.annotation1.Shape.ShapeStyle = Steema.TeeChart.Drawing.TextShapeStyle.RoundRectangle; this.annotation1.Shape.Top = 20; this.annotation1.Text = "SVG example"; this.annotation1.Top = 20; // // Export_SVG // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(440, 317); this.Name = "Export_SVG"; this.panel1.ResumeLayout(false); this.chartContainer.ResumeLayout(false); this.ResumeLayout(false); this.PerformLayout(); }
private void InitChart() { // Create the Chart Chart1 = new TChart(); // Assign a Rect frame Chart1.Frame = this.View.Frame; // Creates the AfterDraw Event call Chart1.AfterDraw += new Steema.TeeChart.PaintChartEventHandler(chart_AfterDraw); Chart1.GetAxisLabel += Chart1_GetAxisLabel; // Adds the Chart view to the Root view this.View.AddSubview(Chart1); Chart1.Aspect.View3D = false; this.Chart1.Axes.Bottom.AxisPen.Visible = false; this.Chart1.Axes.Bottom.Grid.Color = Color.FromArgb(255, 20, 44, 80); this.Chart1.Axes.Bottom.Grid.Style = Steema.TeeChart.Drawing.DashStyle.Solid; this.Chart1.Axes.Bottom.Grid.Width = 2; this.Chart1.Axes.Bottom.Labels.Font.Brush.Color = Color.FromArgb(255, 255, 255, 255); this.Chart1.Axes.Bottom.MinorTicks.Visible = false; this.Chart1.Axes.Bottom.TickOnLabelsOnly = false; this.Chart1.Axes.Bottom.Ticks.Visible = false; this.Chart1.Axes.Left.AxisPen.Visible = false; this.Chart1.Axes.Left.Grid.Visible = false; this.Chart1.Axes.Left.Increment = 5D; this.Chart1.Axes.Left.Labels.Font.Brush.Color = Color.FromArgb(255, 128, 128, 255); this.Chart1.Axes.Left.Labels.Font.Size = 9; this.Chart1.Axes.Left.Labels.Font.SizeFloat = 9F; this.Chart1.Axes.Left.MinorTicks.Visible = false; this.Chart1.Axes.Left.TickOnLabelsOnly = false; this.Chart1.Axes.Left.Ticks.Visible = false; this.Chart1.Header.Font.Brush.Color = Color.FromArgb(255, 255, 255, 255); this.Chart1.Header.Font.Size = 21; this.Chart1.Header.Font.SizeFloat = 21F; this.Chart1.Header.Lines = new string[] { "Custom drawing on Chart" }; this.Chart1.Legend.Visible = false; this.Chart1.Panel.Brush.Color = Color.FromArgb(255, 29, 56, 109); this.Chart1.Panel.Brush.Gradient.Visible = false; this.Chart1.Panel.MarginLeft = 22D; line1 = new Steema.TeeChart.Styles.Line(); bar3D1 = new Steema.TeeChart.Styles.Bar3D(); line2 = new Steema.TeeChart.Styles.Line(); this.Chart1.Series.Add(this.line1); this.Chart1.Series.Add(this.bar3D1); this.Chart1.Series.Add(this.line2); annotation1 = new Steema.TeeChart.Tools.Annotation(); annotation2 = new Steema.TeeChart.Tools.Annotation(); this.Chart1.Tools.Add(this.annotation1); this.Chart1.Tools.Add(this.annotation2); this.Chart1.Walls.Visible = false; // line1 this.line1.Brush.Color = Color.FromArgb(255, 255, 255, 255); this.line1.Color = Color.FromArgb(255, 255, 255, 255); this.line1.ColorEach = false; this.line1.LinePen.Color = Color.FromArgb(255, 255, 255, 255); this.line1.Pointer.Pen.Color = Color.FromArgb(255, 29, 56, 109); this.line1.Pointer.SizeDouble = 0D; this.line1.Pointer.SizeUnits = Steema.TeeChart.Styles.PointerSizeUnits.Pixels; this.line1.Pointer.Style = Steema.TeeChart.Styles.PointerStyles.Circle; this.line1.Pointer.Visible = true; this.line1.Title = "line1"; this.line1.XValues.DataMember = "X"; this.line1.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; this.line1.YValues.DataMember = "Y"; // // bar3D1 this.bar3D1.Brush.Color = Color.FromArgb(255, 88, 130, 214); this.bar3D1.Color = Color.FromArgb(255, 88, 130, 214); this.bar3D1.ColorEach = false; this.bar3D1.Marks.Visible = false; this.bar3D1.Pen.Color = Color.FromArgb(255, 146, 94, 32); this.bar3D1.Pen.Visible = false; this.bar3D1.Title = "bar3D1"; this.bar3D1.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; // // line2 this.line2.Brush.Color = Color.FromArgb(255, 255, 255, 255); this.line2.Color = Color.FromArgb(255, 255, 255, 255); this.line2.ColorEach = false; this.line2.LinePen.Color = Color.FromArgb(255, 255, 255, 255); this.line2.Pointer.Pen.Color = Color.FromArgb(255, 29, 56, 109); this.line2.Pointer.SizeDouble = 0D; this.line2.Pointer.SizeUnits = Steema.TeeChart.Styles.PointerSizeUnits.Pixels; this.line2.Pointer.Style = Steema.TeeChart.Styles.PointerStyles.Circle; this.line2.Pointer.Visible = true; this.line2.Title = "line2"; this.line2.XValues.DataMember = "X"; this.line2.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; this.line2.YValues.DataMember = "Y"; // // annotation1 // this.annotation1.AutoSize = true; this.annotation1.Callout.ArrowHead = Steema.TeeChart.Styles.ArrowHeadStyles.None; this.annotation1.Callout.ArrowHeadDirection = Steema.TeeChart.Styles.ArrowHeadDirection.FromPoint; this.annotation1.Callout.ArrowHeadSize = 8; this.annotation1.Callout.Brush.Color = Color.Black; this.annotation1.Callout.Distance = 0; this.annotation1.Callout.Draw3D = false; this.annotation1.Callout.SizeDouble = 0D; this.annotation1.Callout.SizeUnits = Steema.TeeChart.Styles.PointerSizeUnits.Pixels; this.annotation1.Callout.XPosition = 0; this.annotation1.Callout.YPosition = 0; this.annotation1.Callout.ZPosition = 0; this.annotation1.Left = 2; this.annotation1.Shape.Bottom = 373; this.annotation1.Shape.CustomPosition = true; this.annotation1.Shape.Font.Brush.Color = Color.FromArgb(255, 255, 255, 255); this.annotation1.Shape.Font.Size = 40; this.annotation1.Shape.Font.SizeFloat = 40F; this.annotation1.Shape.Left = 2; this.annotation1.Shape.Lines = new string[] { "40%" }; this.annotation1.Shape.Right = 207; this.annotation1.Shape.Top = 25; this.annotation1.Shape.Transparent = true; this.annotation1.Text = "40%"; this.annotation1.Top = 70; // // annotation2 // this.annotation2.AutoSize = true; this.annotation2.Callout.ArrowHead = Steema.TeeChart.Styles.ArrowHeadStyles.None; this.annotation2.Callout.ArrowHeadDirection = Steema.TeeChart.Styles.ArrowHeadDirection.FromPoint; this.annotation2.Callout.ArrowHeadSize = 8; this.annotation2.Callout.Brush.Color = Color.Black; this.annotation2.Callout.Distance = 0; this.annotation2.Callout.Draw3D = false; this.annotation2.Callout.SizeDouble = 0D; this.annotation2.Callout.SizeUnits = Steema.TeeChart.Styles.PointerSizeUnits.Pixels; this.annotation2.Callout.XPosition = 0; this.annotation2.Callout.YPosition = 0; this.annotation2.Callout.ZPosition = 0; this.annotation2.Left = 0; this.annotation2.Shape.Bottom = 280; this.annotation2.Shape.CustomPosition = true; this.annotation2.Shape.Font.Brush.Color = Color.FromArgb(255, 128, 128, 255); this.annotation2.Shape.Font.Size = 9; this.annotation2.Shape.Font.SizeFloat = 9F; this.annotation2.Shape.Left = 6; this.annotation2.Shape.Lines = new string[] { "Percentage", "sample data" }; this.annotation2.Shape.Right = 166; this.annotation2.Shape.Top = 243; this.annotation2.Shape.Transparent = true; this.annotation2.Text = "Sample\r\ndata"; this.annotation2.Top = 120; Chart1.Axes.Left.SetMinMax(-20, 33); Chart1.Axes.Bottom.SetMinMax(-1, 16); bar3D1.Add(0, 26, -11); bar3D1.Add(1, 19, -5); bar3D1.Add(2, 18.5, -3); bar3D1.Add(3, 19, -1); bar3D1.Add(4, 17.5, -0.5, "5 jaar"); bar3D1.Add(5, 15, 2); bar3D1.Add(6, 15, 1); bar3D1.Add(7, 15, 0.5); bar3D1.Add(8, 14.5, 0.5); bar3D1.Add(9, 13, 1, "10 jaar"); bar3D1.Add(10, 12.5, 1.5); bar3D1.Add(11, 12.2, 1.5); bar3D1.Add(12, 9, 2.2); bar3D1.Add(13, 9, 3); bar3D1.Add(14, 7, 3.3, "15 jaar"); double[] xses = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14 }; double[] firstLine = { 31, 23, 22, 22.5, 20.5, 19, 18, 17, 16.5, 15.5, 14.9, 13.9, 13, 13.5, 13.2 }; double[] secondLine = { -19.5, -13, -8, -3, -2, -0.5, -0.6, -1.5, -1, 0, 0.4, 0.2, 1.7, 2.2, 2.7 }; line1.Add(xses, firstLine); line2.Add(xses, secondLine); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.components = new System.ComponentModel.Container(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Realtime)); this.lineSeries1 = new Steema.TeeChart.Styles.Line(); this.lineSeries2 = new Steema.TeeChart.Styles.Line(); this.lineSeries3 = new Steema.TeeChart.Styles.Line(); this.lineSeries4 = new Steema.TeeChart.Styles.Line(); this.checkBox1 = new System.Windows.Forms.CheckBox(); this.checkBox2 = new System.Windows.Forms.CheckBox(); this.timer1 = new System.Windows.Forms.Timer(this.components); this.checkBox3 = new System.Windows.Forms.CheckBox(); this.panel1.SuspendLayout(); this.chartContainer.SuspendLayout(); this.SuspendLayout(); // // textBox1 // this.textBox1.Size = new System.Drawing.Size(488, 48); this.textBox1.Text = "Using series Delete method you can easily do realtime charting. \r\nScrolling and a" + "xis range scaling is done automatically."; // // panel1 // 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, 48); this.panel1.Size = new System.Drawing.Size(488, 32); // // tChart1 // // // // this.tChart1.Aspect.View3D = false; // // // this.tChart1.Axes.Automatic = true; // // // // // // this.tChart1.Axes.Left.Labels.Separation = 40; // // // // // // // // // this.tChart1.Header.Brush.Gradient.EndColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(0))))); this.tChart1.Header.Brush.Gradient.MiddleColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); this.tChart1.Header.Brush.Gradient.SigmaFocus = 0F; this.tChart1.Header.Brush.Gradient.SigmaScale = 0F; this.tChart1.Header.Brush.Gradient.StartColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); this.tChart1.Header.Lines = new string[] { "tChart1" }; // // // this.tChart1.Header.Shadow.Height = 0; this.tChart1.Header.Shadow.Width = 0; this.tChart1.Header.Visible = false; // // // // // // // // // this.tChart1.Legend.Brush.Gradient.EndColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(0))))); this.tChart1.Legend.Brush.Gradient.MiddleColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); this.tChart1.Legend.Brush.Gradient.SigmaFocus = 0F; this.tChart1.Legend.Brush.Gradient.SigmaScale = 0F; this.tChart1.Legend.Brush.Gradient.StartColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); this.tChart1.Legend.LegendStyle = Steema.TeeChart.LegendStyles.LastValues; this.tChart1.Legend.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.Panel.Brush.Gradient.EndColor = System.Drawing.Color.FromArgb(((int)(((byte)(145)))), ((int)(((byte)(200)))), ((int)(((byte)(255))))); this.tChart1.Panel.Brush.Gradient.MiddleColor = System.Drawing.Color.FromArgb(((int)(((byte)(187)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); this.tChart1.Panel.Brush.Gradient.SigmaFocus = 0F; this.tChart1.Panel.Brush.Gradient.SigmaScale = 0F; this.tChart1.Panel.Brush.Gradient.StartColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(113)))), ((int)(((byte)(225))))); this.tChart1.Series.Add(this.lineSeries1); this.tChart1.Series.Add(this.lineSeries2); this.tChart1.Series.Add(this.lineSeries3); this.tChart1.Series.Add(this.lineSeries4); this.tChart1.Size = new System.Drawing.Size(488, 237); // // // // // // // // // // // // this.tChart1.Walls.Back.Brush.Gradient.MiddleColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); this.tChart1.Walls.Back.Brush.Visible = false; this.tChart1.Walls.Back.Transparent = true; // // // // // // // // // this.tChart1.Walls.Bottom.Brush.Gradient.EndColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(0))))); this.tChart1.Walls.Bottom.Brush.Gradient.MiddleColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); this.tChart1.Walls.Bottom.Brush.Gradient.SigmaFocus = 0F; this.tChart1.Walls.Bottom.Brush.Gradient.SigmaScale = 0F; this.tChart1.Walls.Bottom.Brush.Gradient.StartColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); // // // this.tChart1.Walls.Bottom.Pen.Visible = false; this.tChart1.Walls.Bottom.Size = 5; // // // // // // // // // this.tChart1.Walls.Left.Brush.Gradient.EndColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(0))))); this.tChart1.Walls.Left.Brush.Gradient.MiddleColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); this.tChart1.Walls.Left.Brush.Gradient.SigmaFocus = 0F; this.tChart1.Walls.Left.Brush.Gradient.SigmaScale = 0F; this.tChart1.Walls.Left.Brush.Gradient.StartColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); // // // this.tChart1.Walls.Left.Pen.Visible = false; this.tChart1.Walls.Left.Size = 5; // // // // // // this.tChart1.Walls.Right.Brush.Color = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(192))))); // // // this.tChart1.Walls.Right.Brush.Gradient.EndColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(0))))); this.tChart1.Walls.Right.Brush.Gradient.MiddleColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); this.tChart1.Walls.Right.Brush.Gradient.SigmaFocus = 0F; this.tChart1.Walls.Right.Brush.Gradient.SigmaScale = 0F; this.tChart1.Walls.Right.Brush.Gradient.StartColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); // // chartContainer // this.chartContainer.Location = new System.Drawing.Point(0, 80); this.chartContainer.Size = new System.Drawing.Size(488, 237); // // 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.LinePen.Width = 2; this.lineSeries1.OriginalCursor = null; // // // this.lineSeries1.Pointer.SizeDouble = 0D; this.lineSeries1.Pointer.SizeUnits = Steema.TeeChart.Styles.PointerSizeUnits.Pixels; this.lineSeries1.RecalcOptions = ((Steema.TeeChart.Styles.RecalcOptions)((((Steema.TeeChart.Styles.RecalcOptions.OnDelete | Steema.TeeChart.Styles.RecalcOptions.OnModify) | Steema.TeeChart.Styles.RecalcOptions.OnInsert) | Steema.TeeChart.Styles.RecalcOptions.OnClear))); this.lineSeries1.Title = "lineSeries1"; // // // this.lineSeries1.XValues.DataMember = "X"; this.lineSeries1.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; // // // this.lineSeries1.YValues.DataMember = "Y"; // // lineSeries2 // // // // this.lineSeries2.Brush.Color = System.Drawing.Color.FromArgb(((int)(((byte)(243)))), ((int)(((byte)(156)))), ((int)(((byte)(53))))); this.lineSeries2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(243)))), ((int)(((byte)(156)))), ((int)(((byte)(53))))); this.lineSeries2.ColorEach = false; // // // this.lineSeries2.LinePen.Color = System.Drawing.Color.FromArgb(((int)(((byte)(146)))), ((int)(((byte)(94)))), ((int)(((byte)(32))))); this.lineSeries2.LinePen.Width = 2; this.lineSeries2.OriginalCursor = null; // // // this.lineSeries2.Pointer.SizeDouble = 0D; this.lineSeries2.Pointer.SizeUnits = Steema.TeeChart.Styles.PointerSizeUnits.Pixels; this.lineSeries2.RecalcOptions = ((Steema.TeeChart.Styles.RecalcOptions)((((Steema.TeeChart.Styles.RecalcOptions.OnDelete | Steema.TeeChart.Styles.RecalcOptions.OnModify) | Steema.TeeChart.Styles.RecalcOptions.OnInsert) | Steema.TeeChart.Styles.RecalcOptions.OnClear))); this.lineSeries2.Title = "lineSeries2"; // // // this.lineSeries2.XValues.DataMember = "X"; this.lineSeries2.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; // // // this.lineSeries2.YValues.DataMember = "Y"; // // lineSeries3 // // // // this.lineSeries3.Brush.Color = System.Drawing.Color.FromArgb(((int)(((byte)(241)))), ((int)(((byte)(76)))), ((int)(((byte)(20))))); this.lineSeries3.Color = System.Drawing.Color.FromArgb(((int)(((byte)(241)))), ((int)(((byte)(76)))), ((int)(((byte)(20))))); this.lineSeries3.ColorEach = false; // // // this.lineSeries3.LinePen.Color = System.Drawing.Color.FromArgb(((int)(((byte)(145)))), ((int)(((byte)(46)))), ((int)(((byte)(12))))); this.lineSeries3.LinePen.Width = 2; this.lineSeries3.OriginalCursor = null; // // // this.lineSeries3.Pointer.SizeDouble = 0D; this.lineSeries3.Pointer.SizeUnits = Steema.TeeChart.Styles.PointerSizeUnits.Pixels; this.lineSeries3.RecalcOptions = ((Steema.TeeChart.Styles.RecalcOptions)((((Steema.TeeChart.Styles.RecalcOptions.OnDelete | Steema.TeeChart.Styles.RecalcOptions.OnModify) | Steema.TeeChart.Styles.RecalcOptions.OnInsert) | Steema.TeeChart.Styles.RecalcOptions.OnClear))); this.lineSeries3.Title = "lineSeries3"; // // // this.lineSeries3.XValues.DataMember = "X"; this.lineSeries3.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; // // // this.lineSeries3.YValues.DataMember = "Y"; // // lineSeries4 // // // // this.lineSeries4.Brush.Color = System.Drawing.Color.FromArgb(((int)(((byte)(78)))), ((int)(((byte)(151)))), ((int)(((byte)(168))))); this.lineSeries4.Color = System.Drawing.Color.FromArgb(((int)(((byte)(78)))), ((int)(((byte)(151)))), ((int)(((byte)(168))))); this.lineSeries4.ColorEach = false; // // // this.lineSeries4.LinePen.Color = System.Drawing.Color.FromArgb(((int)(((byte)(47)))), ((int)(((byte)(91)))), ((int)(((byte)(101))))); this.lineSeries4.LinePen.Width = 2; this.lineSeries4.OriginalCursor = null; // // // this.lineSeries4.Pointer.SizeDouble = 0D; this.lineSeries4.Pointer.SizeUnits = Steema.TeeChart.Styles.PointerSizeUnits.Pixels; this.lineSeries4.RecalcOptions = ((Steema.TeeChart.Styles.RecalcOptions)((((Steema.TeeChart.Styles.RecalcOptions.OnDelete | Steema.TeeChart.Styles.RecalcOptions.OnModify) | Steema.TeeChart.Styles.RecalcOptions.OnInsert) | Steema.TeeChart.Styles.RecalcOptions.OnClear))); this.lineSeries4.Title = "lineSeries4"; // // // this.lineSeries4.XValues.DataMember = "X"; this.lineSeries4.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; // // // this.lineSeries4.YValues.DataMember = "Y"; // // 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(16, 7); this.checkBox1.Name = "checkBox1"; this.checkBox1.Size = new System.Drawing.Size(67, 21); this.checkBox1.TabIndex = 0; this.checkBox1.Text = "&Animate"; 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(112, 7); this.checkBox2.Name = "checkBox2"; this.checkBox2.Size = new System.Drawing.Size(46, 21); this.checkBox2.TabIndex = 1; this.checkBox2.Text = "&3D"; this.checkBox2.CheckedChanged += new System.EventHandler(this.checkBox2_CheckedChanged); // // timer1 // this.timer1.Enabled = true; this.timer1.Interval = 50; this.timer1.Tick += new System.EventHandler(this.timer1_Tick); // // checkBox3 // this.checkBox3.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.checkBox3.Location = new System.Drawing.Point(192, 5); this.checkBox3.Name = "checkBox3"; this.checkBox3.Size = new System.Drawing.Size(104, 24); this.checkBox3.TabIndex = 2; this.checkBox3.Text = "&Legend"; this.checkBox3.CheckedChanged += new System.EventHandler(this.checkBox3_CheckedChanged); // // Realtime // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(488, 317); this.Name = "Realtime"; this.Load += new System.EventHandler(this.Realtime_Load); this.panel1.ResumeLayout(false); 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.lineSeries1 = new Steema.TeeChart.Styles.Line(); this.barSeries1 = new Steema.TeeChart.Styles.Bar(); this.areaSeries1 = new Steema.TeeChart.Styles.Area(); this.pointSeries1 = new Steema.TeeChart.Styles.Points(); this.checkBox1 = new System.Windows.Forms.CheckBox(); this.panel1.SuspendLayout(); this.SuspendLayout(); // // textBox1 // this.textBox1.Name = "textBox1"; this.textBox1.Size = new System.Drawing.Size(466, 63); this.textBox1.Text = "Legend can show CheckBoxes, one for each active Series in the Chart. Clicking the" + " CheckBox shows / hides the Series.\r\n\r\nExample: tChart1.Legend.CheckBoxes = true" + " ;"; // // panel1 // this.panel1.Controls.Add(this.checkBox1); this.panel1.Location = new System.Drawing.Point(0, 63); this.panel1.Name = "panel1"; this.panel1.Size = new System.Drawing.Size(466, 33); // // 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.Bottom // // // tChart1.Axes.Bottom.Grid // this.tChart1.Axes.Bottom.Grid.Color = System.Drawing.Color.Gray; // // tChart1.Axes.Bottom.Ticks // this.tChart1.Axes.Bottom.Ticks.Length = 2; // // tChart1.Axes.Depth // // // tChart1.Axes.Depth.Grid // this.tChart1.Axes.Depth.Grid.Color = System.Drawing.Color.Gray; // // tChart1.Axes.Depth.Ticks // this.tChart1.Axes.Depth.Ticks.Length = 2; // // tChart1.Axes.Left // // // tChart1.Axes.Left.Grid // this.tChart1.Axes.Left.Grid.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(192)), ((System.Byte)(192)), ((System.Byte)(192))); // // tChart1.Axes.Left.Ticks // this.tChart1.Axes.Left.Ticks.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(128)), ((System.Byte)(128)), ((System.Byte)(128))); this.tChart1.Axes.Left.Ticks.Length = 2; this.tChart1.Axes.Left.Ticks.Style = System.Drawing.Drawing2D.DashStyle.Dot; // // tChart1.Axes.Right // // // tChart1.Axes.Right.Grid // this.tChart1.Axes.Right.Grid.Color = System.Drawing.Color.Gray; // // tChart1.Axes.Right.Ticks // this.tChart1.Axes.Right.Ticks.Length = 2; // // tChart1.Axes.Top // // // tChart1.Axes.Top.Grid // this.tChart1.Axes.Top.Grid.Color = System.Drawing.Color.Gray; // // tChart1.Axes.Top.Ticks // this.tChart1.Axes.Top.Ticks.Length = 2; // // tChart1.Header // this.tChart1.Header.Lines = new string[] { "tChart1" }; // // tChart1.Legend // this.tChart1.Legend.CheckBoxes = true; // // tChart1.Legend.Pen // this.tChart1.Legend.Pen.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(128)), ((System.Byte)(128)), ((System.Byte)(128))); // // tChart1.Legend.Shadow // // // tChart1.Legend.Shadow.Brush // this.tChart1.Legend.Shadow.Brush.Color = System.Drawing.Color.FromArgb(((System.Byte)(181)), ((System.Byte)(0)), ((System.Byte)(0)), ((System.Byte)(0))); this.tChart1.Location = new System.Drawing.Point(0, 96); this.tChart1.Name = "tChart1"; // // tChart1.Panel // // // tChart1.Panel.Brush // this.tChart1.Panel.Brush.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(255))); // // tChart1.Panel.Gradient // this.tChart1.Panel.Brush.Gradient.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.Shadow // this.tChart1.Panel.Shadow.Height = 0; this.tChart1.Panel.Shadow.Width = 0; this.tChart1.Series.Add(this.barSeries1); this.tChart1.Series.Add(this.areaSeries1); this.tChart1.Series.Add(this.pointSeries1); this.tChart1.Series.Add(this.lineSeries1); this.tChart1.Size = new System.Drawing.Size(466, 190); // // tChart1.Walls // // // tChart1.Walls.Back // // // tChart1.Walls.Back.Pen // this.tChart1.Walls.Back.Pen.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(128)), ((System.Byte)(128)), ((System.Byte)(128))); // // 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; // // tChart1.Walls.Right // // // tChart1.Walls.Right.Brush // this.tChart1.Walls.Right.Brush.Color = System.Drawing.Color.Silver; // // lineSeries1 // // // lineSeries1.Brush // this.lineSeries1.Brush.Color = System.Drawing.Color.FromArgb(((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(204))); // // lineSeries1.LinePen // this.lineSeries1.LinePen.Color = System.Drawing.Color.FromArgb(((System.Byte)(153)), ((System.Byte)(153)), ((System.Byte)(122))); // // 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 = "lineSeries1"; // // lineSeries1.XValues // this.lineSeries1.XValues.DataMember = "X"; this.lineSeries1.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; // // lineSeries1.YValues // this.lineSeries1.YValues.DataMember = "Y"; // // barSeries1 // // // barSeries1.Brush // this.barSeries1.Brush.Color = System.Drawing.Color.FromArgb(((System.Byte)(255)), ((System.Byte)(153)), ((System.Byte)(153))); // // barSeries1.Gradient // this.barSeries1.Brush.Gradient.EndColor = System.Drawing.Color.FromArgb(((System.Byte)(255)), ((System.Byte)(153)), ((System.Byte)(153))); // // barSeries1.Gradient // this.barSeries1.Gradient.EndColor = System.Drawing.Color.FromArgb(((System.Byte)(255)), ((System.Byte)(153)), ((System.Byte)(153))); // // 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; // // barSeries1.Pen // this.barSeries1.Pen.Color = System.Drawing.Color.FromArgb(((System.Byte)(153)), ((System.Byte)(92)), ((System.Byte)(92))); this.barSeries1.Title = "barSeries1"; // // barSeries1.XValues // this.barSeries1.XValues.DataMember = "X"; this.barSeries1.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; // // barSeries1.YValues // this.barSeries1.YValues.DataMember = "Bar"; // // areaSeries1 // // // areaSeries1.AreaBrush // this.areaSeries1.AreaBrush.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(102)), ((System.Byte)(51)), ((System.Byte)(153))); // // areaSeries1.AreaLines // this.areaSeries1.AreaLines.Color = System.Drawing.Color.FromArgb(((System.Byte)(61)), ((System.Byte)(31)), ((System.Byte)(92))); // // areaSeries1.Brush // this.areaSeries1.Brush.Color = System.Drawing.Color.FromArgb(((System.Byte)(102)), ((System.Byte)(51)), ((System.Byte)(153))); // // areaSeries1.LinePen // this.areaSeries1.LinePen.Color = System.Drawing.Color.FromArgb(((System.Byte)(61)), ((System.Byte)(31)), ((System.Byte)(92))); // // areaSeries1.Marks // // // areaSeries1.Marks.Symbol // // // areaSeries1.Marks.Symbol.Shadow // this.areaSeries1.Marks.Symbol.Shadow.Height = 1; this.areaSeries1.Marks.Symbol.Shadow.Visible = true; this.areaSeries1.Marks.Symbol.Shadow.Width = 1; // // areaSeries1.Pointer // this.areaSeries1.Pointer.Style = Steema.TeeChart.Styles.PointerStyles.Rectangle; this.areaSeries1.Title = "areaSeries1"; // // areaSeries1.XValues // this.areaSeries1.XValues.DataMember = "X"; this.areaSeries1.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; // // areaSeries1.YValues // this.areaSeries1.YValues.DataMember = "Y"; // // pointSeries1 // // // pointSeries1.LinePen // this.pointSeries1.LinePen.Color = System.Drawing.Color.FromArgb(((System.Byte)(122)), ((System.Byte)(153)), ((System.Byte)(153))); // // pointSeries1.Marks // // // pointSeries1.Marks.Symbol // // // pointSeries1.Marks.Symbol.Shadow // this.pointSeries1.Marks.Symbol.Shadow.Height = 1; this.pointSeries1.Marks.Symbol.Shadow.Visible = true; this.pointSeries1.Marks.Symbol.Shadow.Width = 1; // // pointSeries1.Pointer // // // pointSeries1.Pointer.Brush // this.pointSeries1.Pointer.Brush.Color = System.Drawing.Color.FromArgb(((System.Byte)(204)), ((System.Byte)(255)), ((System.Byte)(255))); // // pointSeries1.Pointer.Pen // this.pointSeries1.Pointer.Pen.Color = System.Drawing.Color.FromArgb(((System.Byte)(122)), ((System.Byte)(153)), ((System.Byte)(153))); this.pointSeries1.Pointer.Style = Steema.TeeChart.Styles.PointerStyles.Rectangle; this.pointSeries1.Title = "pointSeries1"; // // pointSeries1.XValues // this.pointSeries1.XValues.DataMember = "X"; this.pointSeries1.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; // // pointSeries1.YValues // this.pointSeries1.YValues.DataMember = "Y"; // // 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, 8); this.checkBox1.Name = "checkBox1"; this.checkBox1.Size = new System.Drawing.Size(160, 21); this.checkBox1.TabIndex = 0; this.checkBox1.Text = "&Legend check boxes"; this.checkBox1.CheckedChanged += new System.EventHandler(this.checkBox1_CheckedChanged); // // Legend_CheckBox // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(466, 286); this.Name = "Legend_CheckBox"; 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() { #if VS2005 this.commander1 = new Steema.TeeChart.ChartController(); #else this.commander1 = new Steema.TeeChart.Commander(); #endif this.line1 = new Steema.TeeChart.Styles.Line(); this.gridBand1 = new Steema.TeeChart.Tools.GridBand(); this.panel1.SuspendLayout(); this.SuspendLayout(); // // textBox1 // this.textBox1.Name = "textBox1"; this.textBox1.Text = "TeeChart\'s ChartController ToolBar can now be fully customised by the addition of desir" + "ed buttons and separators."; // // panel1 // this.panel1.Controls.Add(this.commander1); this.panel1.Name = "panel1"; // // 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[] { "ChartController Buttons"}; 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.line1); this.tChart1.Tools.Add(this.gridBand1); // // 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; // // commander1 // this.commander1.Location = new System.Drawing.Point(0, 0); this.commander1.Name = "commander1"; this.commander1.Size = new System.Drawing.Size(440, 37); this.commander1.TabIndex = 0; // // line1 // // // line1.Brush // this.line1.Brush.Color = System.Drawing.Color.Red; // // line1.Marks // // // 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; // // 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"; // // gridBand1 // this.gridBand1.Axis = this.tChart1.Axes.Left; // // gridBand1.Band1 // this.gridBand1.Band1.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(224)), ((System.Byte)(224)), ((System.Byte)(224))); // // gridBand1.Band2 // this.gridBand1.Band2.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(255))); // // TCommander_Buttons // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(440, 317); this.Name = "TCommander_Buttons"; 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.barSeries1 = new Steema.TeeChart.Styles.Bar(); this.barSeries2 = new Steema.TeeChart.Styles.Bar(); this.subtract1 = new Steema.TeeChart.Functions.Subtract(); this.lineSeries1 = new Steema.TeeChart.Styles.Line(); this.SuspendLayout(); // // textBox1 // this.textBox1.Name = "textBox1"; this.textBox1.Size = new System.Drawing.Size(388, 55); this.textBox1.Text = "The Subtract function uses more than one series as data source. It calculates for" + " each point the difference between the last and first series."; // // panel1 // this.panel1.Location = new System.Drawing.Point(0, 55); this.panel1.Name = "panel1"; this.panel1.Size = new System.Drawing.Size(388, 51); // // 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[] { "Subtract funcion" }; this.tChart1.Location = new System.Drawing.Point(0, 106); 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.barSeries2); this.tChart1.Series.Add(this.lineSeries1); this.tChart1.Size = new System.Drawing.Size(388, 149); // // 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; // // 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 = "Source1"; // // barSeries1.XValues // this.barSeries1.XValues.DataMember = "X"; this.barSeries1.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; // // barSeries1.YValues // this.barSeries1.YValues.DataMember = "Bar"; // // barSeries2 // // // barSeries2.Brush // //this.barSeries2.Brush.Color = System.Drawing.Color.FromArgb(((System.Byte)(0)), ((System.Byte)(0)), ((System.Byte)(255))); // // barSeries2.Marks // // // barSeries2.Marks.Symbol // // // barSeries2.Marks.Symbol.Shadow // this.barSeries2.Marks.Symbol.Shadow.Height = 1; this.barSeries2.Marks.Symbol.Shadow.Visible = true; this.barSeries2.Marks.Symbol.Shadow.Width = 1; this.barSeries2.Title = "Source2"; // // barSeries2.XValues // this.barSeries2.XValues.DataMember = "X"; this.barSeries2.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; // // barSeries2.YValues // this.barSeries2.YValues.DataMember = "Bar"; // // lineSeries1 // // // lineSeries1.Brush // //this.lineSeries1.Brush.Color = System.Drawing.Color.Green; this.lineSeries1.DataSource = new object[] { this.barSeries1, this.barSeries2 }; this.lineSeries1.Function = this.subtract1; // // 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 = "Subtract"; // // lineSeries1.XValues // this.lineSeries1.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; // // Function_Subtract // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(388, 255); this.Name = "Function_Subtract"; this.ResumeLayout(false); }
public Page1() { dashBoard0 = new ChartView(); dashBoard0.WidthRequest = 400; dashBoard0.HeightRequest = 300; dashBoard0.Chart.Aspect.View3D = false; Steema.TeeChart.Styles.Bar bar1 = new Steema.TeeChart.Styles.Bar(); Steema.TeeChart.Styles.Line line1 = new Steema.TeeChart.Styles.Line(); dashBoard0.Chart.Series.Add(bar1); dashBoard0.Chart.Series.Add(line1); //barline chart bar1.Clear(); bar1.Add(20); bar1.Add(50); bar1.Add(10); bar1.Add(70); bar1.Add(46); bar1.Pen.Visible = false; bar1.BarStyle = Steema.TeeChart.Styles.BarStyles.RectGradient; bar1.Marks.Visible = false; bar1.Gradient.StartColor = Color.White; bar1.Gradient.EndColor = Color.FromRgb(102, 205, 170); bar1.Marks.Visible = true; bar1.Marks.Shadow.Visible = false; bar1.Marks.Color = Color.White; bar1.Marks.Font.Size = 10; bar1.Marks.Font.Color = Color.FromRgb(102, 205, 170); bar1.Marks.Pen.Visible = false; bar1.Marks.ArrowLength = 5; bar1.Color = Color.White; line1.Clear(); line1.Add(0, 45); line1.Add(0.444444444444444, 55); line1.Add(0.888888888888889, 75); line1.Add(1.33333333333333, 65); line1.Add(1.77777777777778, 45); line1.Add(2.22222222222222, 80); line1.Add(2.66666666666667, 85); line1.Add(3.11111111111111, 98); line1.Add(3.55555555555556, 75); line1.Add(4, 68); line1.Color = Color.FromRgb(255, 255, 240); line1.LinePen.Width = 3; line1.Smoothed = true; dashBoard0.Chart.Panel.Color = Color.FromRgb(102, 205, 170); dashBoard0.Chart.Panel.Gradient.Visible = false; dashBoard0.Chart.Walls.Back.Visible = false; dashBoard0.Chart.Title.Text = "Bars and Lines"; dashBoard0.Chart.Title.Alignment = TextAlignment.Start; dashBoard0.Chart.Title.Font.Size = 12; dashBoard0.Chart.Title.Font.Color = Color.White; //dashBoard0.Title.Font.Name = ""; dashBoard0.Chart.Axes.Left.AxisPen.Visible = false; dashBoard0.Chart.Axes.Bottom.AxisPen.Color = Color.White; dashBoard0.Chart.Legend.Visible = false; dashBoard0.Chart.Axes.Left.Grid.Color = Color.White; dashBoard0.Chart.Axes.Left.Grid.Style = Steema.TeeChart.Drawing.DashStyle.Dot; dashBoard0.Chart.Axes.Left.Labels.Font.Color = Color.White; dashBoard0.Chart.Axes.Bottom.Labels.Font.Color = Color.White; dashBoard0.Chart.Axes.Left.Increment = 25; Content = new StackLayout { Children = { dashBoard0 }, VerticalOptions = LayoutOptions.CenterAndExpand, HorizontalOptions = LayoutOptions.CenterAndExpand, }; }
public override void RowSelected(UITableView tableView, NSIndexPath indexPath) { // Do something with the row var row = indexPath.Row; Settings.SelectedIndex = row; tableView.CellAt(indexPath).Accessory = UITableViewCellAccessory.Checkmark; line1 = new Steema.TeeChart.Styles.Line(); _controller.chart.Chart.Series.Add(line1); line1.DataSource = _controller.chart.Chart.Series[0]; // Applies the selected Function switch (row) { case 0: line1.Function = new Steema.TeeChart.Functions.Add(); break; case 1: line1.Function = new Steema.TeeChart.Functions.Subtract(); break; case 2: line1.Function = new Steema.TeeChart.Functions.Multiply(); break; case 3: line1.Function = new Steema.TeeChart.Functions.Divide(); break; case 4: line1.Function = new Steema.TeeChart.Functions.High(); break; case 5: line1.Function = new Steema.TeeChart.Functions.Low(); break; case 6: line1.Function = new Steema.TeeChart.Functions.Average(); break; case 7: line1.Function = new Steema.TeeChart.Functions.Count(); break; case 8: line1.Function = new Steema.TeeChart.Functions.Momentum(); break; case 9: line1.Function = new Steema.TeeChart.Functions.MomentumDivision(); break; case 10: line1.Function = new Steema.TeeChart.Functions.Cumulative(); break; case 11: line1.Function = new Steema.TeeChart.Functions.ExpAverage(); break; case 12: line1.Function = new Steema.TeeChart.Functions.Smoothing(); break; case 13: line1.Function = new Steema.TeeChart.Functions.Custom(); break; case 14: line1.Function = new Steema.TeeChart.Functions.RootMeanSquare(); break; case 15: line1.Function = new Steema.TeeChart.Functions.StdDeviation(); break; case 16: line1.Function = new Steema.TeeChart.Functions.Stochastic(); break; case 17: line1.Function = new Steema.TeeChart.Functions.ExpMovAverage(); break; case 18: line1.Function = new Steema.TeeChart.Functions.Performance(); break; case 19: line1.Function = new Steema.TeeChart.Functions.CrossPoints(); break; case 20: line1.Function = new Steema.TeeChart.Functions.CompressOHLC(); break; case 21: line1.Function = new Steema.TeeChart.Functions.CLVFunction(); break; case 22: line1.Function = new Steema.TeeChart.Functions.OBVFunction(); break; case 23: line1.Function = new Steema.TeeChart.Functions.CCIFunction(); break; case 24: line1.Function = new Steema.TeeChart.Functions.MovingAverage(); break; case 25: line1.Function = new Steema.TeeChart.Functions.PVOFunction(); break; case 26: line1.Function = new Steema.TeeChart.Functions.DownSampling(); break; case 27: line1.Function = new Steema.TeeChart.Functions.TrendFunction(); break; case 28: line1.Function = new Steema.TeeChart.Functions.CorrelationFunction(); break; case 29: line1.Function = new Steema.TeeChart.Functions.VarianceFunction(); break; case 30: line1.Function = new Steema.TeeChart.Functions.PerimeterFunction(); break; case 31: line1.Function = new Steema.TeeChart.Functions.PolyFitting(); break; case 32: line1.Function = new Steema.TeeChart.Functions.Bollinger(); break; case 33: line1.Function = new Steema.TeeChart.Functions.MACDFunction(); break; case 34: line1.Function = new Steema.TeeChart.Functions.RSIFunction(); break; case 35: line1.Function = new Steema.TeeChart.Functions.ADXFunction(); break; case 36: line1.Function = new Steema.TeeChart.Functions.MedianFunction(); break; case 37: line1.Function = new Steema.TeeChart.Functions.ModeFunction(); break; case 38: line1.Function = new Steema.TeeChart.Functions.ExpTrendFunction(); break; case 39: line1.Function = new Steema.TeeChart.Functions.HistogramFunction(); break; case 40: line1.Function = new Steema.TeeChart.Functions.SARFunction(); break; default: break; } _controller.chart.Chart.Invalidate(); // This is what the Settings does under Settings>Mail>Show on an iPhone tableView.DeselectRow(indexPath, false); _controller.NavigationController.PopToViewController(_controller.chartController, true); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.components = new System.ComponentModel.Container(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Function_CLV)); this.candle1 = new Steema.TeeChart.Styles.Candle(); this.axis1 = new Steema.TeeChart.Axis(this.components); this.volume1 = new Steema.TeeChart.Styles.Volume(); this.axis2 = new Steema.TeeChart.Axis(this.components); this.clvFunction1 = new Steema.TeeChart.Functions.CLVFunction(); this.line1 = new Steema.TeeChart.Styles.Line(); this.axis3 = new Steema.TeeChart.Axis(this.components); this.checkBox1 = new System.Windows.Forms.CheckBox(); this.checkBox2 = new System.Windows.Forms.CheckBox(); this.panel1.SuspendLayout(); this.chartContainer.SuspendLayout(); this.SuspendLayout(); // // textBox1 // this.textBox1.Text = resources.GetString("textBox1.Text"); // // panel1 // this.panel1.Controls.Add(this.checkBox2); this.panel1.Controls.Add(this.checkBox1); // // tChart1 // // // // this.tChart1.Aspect.View3D = false; this.tChart1.Aspect.ZOffset = 0; // // // // // // this.tChart1.Axes.Bottom.MaximumOffset = 5; this.tChart1.Axes.Bottom.MinimumOffset = 5; this.tChart1.Axes.Custom.Add(this.axis1); this.tChart1.Axes.Custom.Add(this.axis2); this.tChart1.Axes.Custom.Add(this.axis3); this.tChart1.Cursor = System.Windows.Forms.Cursors.Default; // // // this.tChart1.Header.Lines = new string[0]; // // // // // // this.tChart1.Panel.Brush.Color = System.Drawing.Color.FromArgb(((int)(((byte)(254)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); // // // this.tChart1.Panel.Brush.Gradient.Direction = System.Drawing.Drawing2D.LinearGradientMode.ForwardDiagonal; this.tChart1.Panel.Brush.Gradient.EndColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); this.tChart1.Panel.Brush.Gradient.MiddleColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(192))))); this.tChart1.Panel.Brush.Gradient.StartColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); this.tChart1.Panel.MarginLeft = 7; this.tChart1.Series.Add(this.candle1); this.tChart1.Series.Add(this.volume1); this.tChart1.Series.Add(this.line1); this.tChart1.Size = new System.Drawing.Size(440, 205); // // candle1 // // // // this.candle1.Brush.Color = System.Drawing.Color.White; this.candle1.CloseValues = this.candle1.YValues; this.candle1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(68)))), ((int)(((byte)(102)))), ((int)(((byte)(163))))); this.candle1.ColorEach = false; this.candle1.CustomVertAxis = this.axis1; this.candle1.DateValues = this.candle1.XValues; // // // this.candle1.LinePen.Color = System.Drawing.Color.FromArgb(((int)(((byte)(41)))), ((int)(((byte)(61)))), ((int)(((byte)(98))))); // // // // // // this.candle1.Marks.Callout.ArrowHead = Steema.TeeChart.Styles.ArrowHeadStyles.None; this.candle1.Marks.Callout.ArrowHeadSize = 8; // // // this.candle1.Marks.Callout.Brush.Color = System.Drawing.Color.Black; this.candle1.Marks.Callout.Distance = 0; this.candle1.Marks.Callout.Draw3D = false; this.candle1.Marks.Callout.Length = 10; this.candle1.Marks.Callout.Style = Steema.TeeChart.Styles.PointerStyles.Rectangle; this.candle1.Marks.Callout.Visible = false; // // // // // // this.candle1.Pointer.Brush.Color = System.Drawing.Color.Red; this.candle1.Pointer.Draw3D = false; this.candle1.Pointer.Style = Steema.TeeChart.Styles.PointerStyles.Rectangle; this.candle1.Title = "Candle"; this.candle1.VertAxis = Steema.TeeChart.Styles.VerticalAxis.Custom; // // // this.candle1.XValues.DataMember = "Date"; this.candle1.XValues.DateTime = true; this.candle1.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; // // // this.candle1.YValues.DataMember = "Close"; // // axis1 // this.axis1.EndPosition = 37; this.axis1.Horizontal = false; this.axis1.MaximumOffset = 5; this.axis1.MinimumOffset = 5; this.axis1.OtherSide = false; // // volume1 // // // // this.volume1.Brush.Color = System.Drawing.Color.FromArgb(((int)(((byte)(243)))), ((int)(((byte)(156)))), ((int)(((byte)(53))))); this.volume1.ClickableLine = false; //this.volume1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(243)))), ((int)(((byte)(156)))), ((int)(((byte)(53))))); this.volume1.ColorEach = false; this.volume1.CustomVertAxis = this.axis2; // // // this.volume1.LinePen.Color = System.Drawing.Color.FromArgb(((int)(((byte)(243)))), ((int)(((byte)(156)))), ((int)(((byte)(53))))); // // // // // // this.volume1.Marks.Callout.ArrowHead = Steema.TeeChart.Styles.ArrowHeadStyles.None; this.volume1.Marks.Callout.ArrowHeadSize = 8; // // // this.volume1.Marks.Callout.Brush.Color = System.Drawing.Color.Black; this.volume1.Marks.Callout.Distance = 0; this.volume1.Marks.Callout.Draw3D = false; this.volume1.Marks.Callout.Length = 10; this.volume1.Marks.Callout.Style = Steema.TeeChart.Styles.PointerStyles.Rectangle; this.volume1.Marks.Callout.Visible = false; // // // // // // this.volume1.Pointer.Brush.Color = System.Drawing.Color.Green; this.volume1.Pointer.Style = Steema.TeeChart.Styles.PointerStyles.Rectangle; this.volume1.Title = "Volume"; this.volume1.VertAxis = Steema.TeeChart.Styles.VerticalAxis.Custom; // // // this.volume1.XValues.DataMember = "X"; this.volume1.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; // // // this.volume1.YValues.DataMember = "Y"; // // axis2 // this.axis2.EndPosition = 69; this.axis2.Horizontal = false; this.axis2.OtherSide = false; this.axis2.StartPosition = 40; // // clvFunction1 // this.clvFunction1.Accumulate = true; this.clvFunction1.Period = 1; this.clvFunction1.Volume = this.volume1; // // line1 // // // // this.line1.Brush.Color = System.Drawing.Color.FromArgb(((int)(((byte)(241)))), ((int)(((byte)(76)))), ((int)(((byte)(20))))); //this.line1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(241)))), ((int)(((byte)(76)))), ((int)(((byte)(20))))); this.line1.ColorEach = false; this.line1.CustomVertAxis = this.axis3; this.line1.DataSource = this.candle1; this.line1.Function = this.clvFunction1; // // // this.line1.LinePen.Color = System.Drawing.Color.FromArgb(((int)(((byte)(145)))), ((int)(((byte)(46)))), ((int)(((byte)(12))))); // // // // // // this.line1.Marks.Callout.ArrowHead = Steema.TeeChart.Styles.ArrowHeadStyles.None; this.line1.Marks.Callout.ArrowHeadSize = 8; // // // this.line1.Marks.Callout.Brush.Color = System.Drawing.Color.Black; this.line1.Marks.Callout.Distance = 0; this.line1.Marks.Callout.Draw3D = false; this.line1.Marks.Callout.Length = 10; this.line1.Marks.Callout.Style = Steema.TeeChart.Styles.PointerStyles.Rectangle; this.line1.Marks.Callout.Visible = false; // // // // // // this.line1.Pointer.Brush.Color = System.Drawing.Color.Yellow; this.line1.Pointer.Style = Steema.TeeChart.Styles.PointerStyles.Rectangle; this.line1.Title = "CLV Function"; this.line1.VertAxis = Steema.TeeChart.Styles.VerticalAxis.Custom; // // // this.line1.XValues.DateTime = true; this.line1.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; // // axis3 // this.axis3.Horizontal = false; this.axis3.OtherSide = false; this.axis3.StartPosition = 72; // // checkBox1 // this.checkBox1.Location = new System.Drawing.Point(16, 8); this.checkBox1.Name = "checkBox1"; this.checkBox1.Size = new System.Drawing.Size(104, 24); this.checkBox1.TabIndex = 0; this.checkBox1.Text = "Accumulate"; this.checkBox1.Click += new System.EventHandler(this.checkBox1_Click); // // checkBox2 // this.checkBox2.Location = new System.Drawing.Point(144, 8); this.checkBox2.Name = "checkBox2"; this.checkBox2.Size = new System.Drawing.Size(128, 24); this.checkBox2.TabIndex = 1; this.checkBox2.Text = "Multiply by Volume"; this.checkBox2.Click += new System.EventHandler(this.checkBox2_Click); // // Function_CLV // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(440, 317); this.Name = "Function_CLV"; this.panel1.ResumeLayout(false); this.chartContainer.ResumeLayout(false); this.ResumeLayout(false); this.PerformLayout(); }
/// <summary> /// �Զ���������ᣬ�������û�����ϡ�����һ�ַ�ʽʵ�� /// </summary> private void extraaxis() { Steema.TeeChart.Styles.Line extraline = new Steema.TeeChart.Styles.Line(); Steema.TeeChart.Axis extrax = new Steema.TeeChart.Axis(); extraline.CustomVertAxis = extrax; extrax.StartPosition = 0; extrax.EndPosition = 100; extrax.Title.Text = "test1"; extrax.AxisPen.Color = Color.Black; extrax.PositionUnits = Steema.TeeChart.PositionUnits.Percent; extrax.RelativePosition = 20; tChart1.Series.Add(extraline); }
/// <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.expAverage1 = new Steema.TeeChart.Functions.ExpAverage(); this.lineSeries2 = 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.checkBox1 = new System.Windows.Forms.CheckBox(); this.timer1 = new System.Windows.Forms.Timer(this.components); this.panel1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.trackBar1)).BeginInit(); this.SuspendLayout(); // // textBox1 // this.textBox1.Name = "textBox1"; this.textBox1.Size = new System.Drawing.Size(466, 63); this.textBox1.Text = "The Exponential Average function calculates the average of all the source points " + "using the exponential algorithm."; // // panel1 // this.panel1.Controls.Add(this.checkBox1); 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.Name = "panel1"; this.panel1.Size = new System.Drawing.Size(466, 41); // // tChart1 // // // tChart1.Aspect // this.tChart1.Aspect.View3D = false; // // tChart1.Header // this.tChart1.Header.Lines = new string[] { "Exponential average function" }; this.tChart1.Location = new System.Drawing.Point(0, 104); this.tChart1.Name = "tChart1"; // // tChart1.Panel // // // tChart1.Panel.Brush // this.tChart1.Panel.Brush.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(255))); this.tChart1.Series.Add(this.lineSeries1); this.tChart1.Series.Add(this.lineSeries2); this.tChart1.Size = new System.Drawing.Size(466, 182); // // 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"; // // expAverage1 // this.expAverage1.Period = 1; // // lineSeries2 // // // lineSeries2.Brush // this.lineSeries2.Brush.Color = System.Drawing.Color.FromArgb(((System.Byte)(0)), ((System.Byte)(0)), ((System.Byte)(255))); this.lineSeries2.DataSource = this.lineSeries1; this.lineSeries2.Function = this.expAverage1; // // 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 = "Exp. Average"; // // lineSeries2.XValues // this.lineSeries2.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; // // label1 // this.label1.AutoSize = true; this.label1.Location = new System.Drawing.Point(7, 13); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(105, 16); this.label1.TabIndex = 0; this.label1.Text = "&Exponential weight: "; this.label1.TextAlign = System.Drawing.ContentAlignment.TopRight; // // trackBar1 // this.trackBar1.AutoSize = false; this.trackBar1.Location = new System.Drawing.Point(113, 12); this.trackBar1.Maximum = 100; this.trackBar1.Name = "trackBar1"; this.trackBar1.Size = new System.Drawing.Size(154, 19); this.trackBar1.TabIndex = 1; this.trackBar1.TickFrequency = 5; this.trackBar1.Value = 20; this.trackBar1.ValueChanged += new System.EventHandler(this.trackBar1_ValueChanged); // // label2 // this.label2.AutoSize = true; this.label2.Location = new System.Drawing.Point(280, 13); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(20, 16); this.label2.TabIndex = 2; this.label2.Text = "0.2"; this.label2.UseMnemonic = false; // // checkBox1 // this.checkBox1.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.checkBox1.Location = new System.Drawing.Point(333, 11); this.checkBox1.Name = "checkBox1"; this.checkBox1.Size = new System.Drawing.Size(87, 21); this.checkBox1.TabIndex = 3; this.checkBox1.Text = "&Animate"; this.checkBox1.CheckedChanged += new System.EventHandler(this.checkBox1_CheckedChanged); // // timer1 // this.timer1.Interval = 50; this.timer1.Tick += new System.EventHandler(this.timer1_Tick); // // Function_ExpAve // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(466, 286); this.Name = "Function_ExpAve"; this.panel1.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.trackBar1)).EndInit(); 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(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.comboBox1 = new System.Windows.Forms.ComboBox(); this.hScrollBar1 = new System.Windows.Forms.HScrollBar(); this.label1 = new System.Windows.Forms.Label(); this.line1 = new Steema.TeeChart.Styles.Line(); this.panel1.SuspendLayout(); this.SuspendLayout(); // // textBox1 // this.textBox1.BackColor = System.Drawing.Color.AliceBlue; this.textBox1.Name = "textBox1"; this.textBox1.Size = new System.Drawing.Size(630, 63); this.textBox1.TabIndex = 0; this.textBox1.Text = "Axes can be positioned along the Z (depth) direction.\r\nExample : tChart1.Axes.Lef" + "t.ZPosition = 100; \r\n\r\nAxes grid lines can be displayed at any Z position."; // // panel1 // this.panel1.BackColor = System.Drawing.SystemColors.Control; this.panel1.Controls.Add(this.label1); this.panel1.Controls.Add(this.hScrollBar1); this.panel1.Controls.Add(this.comboBox1); this.panel1.Location = new System.Drawing.Point(0, 63); this.panel1.Name = "panel1"; this.panel1.Size = new System.Drawing.Size(630, 33); this.panel1.TabIndex = 1; // // tChart1 // // // tChart1.Aspect // this.tChart1.Aspect.Chart3DPercent = 100; this.tChart1.Aspect.ColorPaletteIndex = 7; this.tChart1.Aspect.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.HighQuality; this.tChart1.Aspect.TextRenderingHint = System.Drawing.Text.TextRenderingHint.ClearTypeGridFit; // // tChart1.Header // // // tChart1.Header.Font // // // tChart1.Header.Font.Brush // this.tChart1.Header.Font.Brush.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(0)), ((System.Byte)(0)), ((System.Byte)(128))); this.tChart1.Header.Font.Name = "Verdana"; // // tChart1.Header.Font.Shadow // // // tChart1.Header.Font.Shadow.Brush // this.tChart1.Header.Font.Shadow.Brush.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(224)), ((System.Byte)(224)), ((System.Byte)(224))); this.tChart1.Header.Font.Shadow.Visible = true; this.tChart1.Header.Lines = new string[] { "Axes Positioned" }; this.tChart1.Location = new System.Drawing.Point(0, 96); this.tChart1.Name = "tChart1"; // // tChart1.Panel // // // tChart1.Panel.Brush // this.tChart1.Panel.Brush.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(255))); // // tChart1.Panel.Gradient // this.tChart1.Panel.Brush.Gradient.MiddleColor = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(192)), ((System.Byte)(192)), ((System.Byte)(255))); this.tChart1.Panel.Brush.Gradient.StartColor = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(192)), ((System.Byte)(192)), ((System.Byte)(255))); this.tChart1.Panel.Brush.Gradient.UseMiddle = true; this.tChart1.Panel.Brush.Gradient.Visible = true; // // tChart1.Panel.Gradient // this.tChart1.Panel.Gradient.MiddleColor = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(192)), ((System.Byte)(192)), ((System.Byte)(255))); this.tChart1.Panel.Gradient.StartColor = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(192)), ((System.Byte)(192)), ((System.Byte)(255))); this.tChart1.Panel.Gradient.UseMiddle = true; this.tChart1.Panel.Gradient.Visible = true; this.tChart1.Series.Add(this.line1); this.tChart1.Size = new System.Drawing.Size(630, 297); this.tChart1.TabIndex = 2; // // 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; // // comboBox1 // this.comboBox1.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.comboBox1.Items.AddRange(new object[] { "Left Axis", "Right Axis" }); this.comboBox1.Location = new System.Drawing.Point(8, 6); this.comboBox1.Name = "comboBox1"; this.comboBox1.Size = new System.Drawing.Size(101, 21); this.comboBox1.TabIndex = 0; this.comboBox1.SelectedIndexChanged += new System.EventHandler(this.comboBox1_SelectedIndexChanged); // // hScrollBar1 // this.hScrollBar1.Location = new System.Drawing.Point(208, 8); this.hScrollBar1.Name = "hScrollBar1"; this.hScrollBar1.Size = new System.Drawing.Size(134, 17); this.hScrollBar1.TabIndex = 2; this.hScrollBar1.Scroll += new System.Windows.Forms.ScrollEventHandler(this.hScrollBar1_Scroll); // // label1 // this.label1.AutoSize = true; this.label1.Location = new System.Drawing.Point(128, 8); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(73, 16); this.label1.TabIndex = 1; this.label1.Text = "&Z position % :"; this.label1.TextAlign = System.Drawing.ContentAlignment.TopRight; // // line1 // // // line1.Brush // this.line1.Brush.Color = System.Drawing.Color.FromArgb(((System.Byte)(102)), ((System.Byte)(153)), ((System.Byte)(255))); // // line1.LinePen // this.line1.LinePen.Color = System.Drawing.Color.FromArgb(((System.Byte)(61)), ((System.Byte)(92)), ((System.Byte)(153))); // // line1.Pointer // // // line1.Pointer.Brush // this.line1.Pointer.Brush.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(0)), ((System.Byte)(0)), ((System.Byte)(0))); 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"; // // Axis_ZPosition // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(630, 393); this.Name = "Axis_ZPosition"; this.Load += new System.EventHandler(this.ZPosition_Load); 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.lineSeries1 = new Steema.TeeChart.Styles.Line(); this.checkBox1 = new System.Windows.Forms.CheckBox(); this.checkBox2 = new System.Windows.Forms.CheckBox(); this.axisArrow1 = new Steema.TeeChart.Tools.AxisArrow(); this.axisArrow2 = new Steema.TeeChart.Tools.AxisArrow(); this.axisArrow3 = new Steema.TeeChart.Tools.AxisArrow(); this.button1 = new System.Windows.Forms.Button(); this.panel1.SuspendLayout(); this.SuspendLayout(); // // textBox1 // this.textBox1.Name = "textBox1"; this.textBox1.Size = new System.Drawing.Size(466, 63); this.textBox1.Text = @"The Axis Arrow tool is used to display small arrows at begin and / or end positions of axes. Many Arrows can be added to a Chart, each one associated with a different axis. The Arrows can be customized ( pen, pattern, size ). Clicking the arrows will optionally scroll the axis a configurable percent amount."; // // panel1 // this.panel1.Controls.Add(this.button1); this.panel1.Controls.Add(this.checkBox2); this.panel1.Controls.Add(this.checkBox1); this.panel1.Location = new System.Drawing.Point(0, 63); this.panel1.Name = "panel1"; this.panel1.Size = new System.Drawing.Size(466, 34); // // tChart1 // // // tChart1.Aspect // this.tChart1.Aspect.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.HighQuality; this.tChart1.Aspect.TextRenderingHint = System.Drawing.Text.TextRenderingHint.ClearTypeGridFit; this.tChart1.Aspect.View3D = false; // // tChart1.Header // this.tChart1.Header.Lines = new string[] { "Axis arrow tool" }; // // tChart1.Legend // this.tChart1.Legend.Visible = false; this.tChart1.Location = new System.Drawing.Point(0, 97); this.tChart1.Name = "tChart1"; // // tChart1.Panel // // // tChart1.Panel.Brush // this.tChart1.Panel.Brush.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(255))); this.tChart1.Series.Add(this.lineSeries1); this.tChart1.Size = new System.Drawing.Size(466, 189); this.tChart1.Tools.Add(this.axisArrow1); this.tChart1.Tools.Add(this.axisArrow2); this.tChart1.Tools.Add(this.axisArrow3); // // lineSeries1 // // // lineSeries1.Brush // this.lineSeries1.Brush.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(255)), ((System.Byte)(0)), ((System.Byte)(255))); // // lineSeries1.LinePen // this.lineSeries1.LinePen.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(153)), ((System.Byte)(0)), ((System.Byte)(153))); // // 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 = "lineSeries1"; // // lineSeries1.XValues // this.lineSeries1.XValues.DataMember = "X"; this.lineSeries1.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; // // lineSeries1.YValues // this.lineSeries1.YValues.DataMember = "Y"; // // 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(24, 7); this.checkBox1.Name = "checkBox1"; this.checkBox1.Size = new System.Drawing.Size(140, 21); this.checkBox1.TabIndex = 0; this.checkBox1.Text = "&Active left top"; 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(133, 7); this.checkBox2.Name = "checkBox2"; this.checkBox2.Size = new System.Drawing.Size(115, 21); this.checkBox2.TabIndex = 1; this.checkBox2.Text = "Active &bottom"; this.checkBox2.CheckedChanged += new System.EventHandler(this.checkBox2_CheckedChanged); // // axisArrow1 // this.axisArrow1.Axis = this.tChart1.Axes.Left; // // axisArrow1.Brush // this.axisArrow1.Brush.Color = System.Drawing.Color.FromArgb(((System.Byte)(255)), ((System.Byte)(0)), ((System.Byte)(0))); this.axisArrow1.Position = Steema.TeeChart.Tools.AxisArrowPosition.Start; // // axisArrow2 // this.axisArrow2.Axis = this.tChart1.Axes.Left; // // axisArrow2.Brush // this.axisArrow2.Brush.Color = System.Drawing.Color.FromArgb(((System.Byte)(0)), ((System.Byte)(0)), ((System.Byte)(128))); this.axisArrow2.Position = Steema.TeeChart.Tools.AxisArrowPosition.End; // // axisArrow3 // this.axisArrow3.Axis = this.tChart1.Axes.Bottom; // // axisArrow3.Brush // this.axisArrow3.Brush.Color = System.Drawing.Color.FromArgb(((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(255))); // // button1 // this.button1.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.button1.Location = new System.Drawing.Point(256, 6); this.button1.Name = "button1"; this.button1.TabIndex = 2; this.button1.Text = "&Edit..."; this.button1.Click += new System.EventHandler(this.button1_Click); // // Tool_AxisArrow // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(466, 286); this.Name = "Tool_AxisArrow"; 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); }
/// <summary> /// graphs data in dataTable /// </summary> void Graph() { UserPreference.Save("ShowPoints", this.checkBoxShowPoints.Checked.ToString()); tChart1.Text = ""; if (dataTable == null) { return; } Console.WriteLine("graph()"); tChart1.Series.Clear(); tChart1.Zoom.Undo(); int sz = dataTable.Columns.Count; if (sz == 2 || (sz == 3 && m_db == TimeInterval.Irregular) || (sz == 3 && m_db == TimeInterval.Monthly)) // single graph series. { this.tChart1.Legend.Visible = false; } else { this.tChart1.Legend.Visible = true; } string subTitle = ""; this.tChart1.Header.Text = GetHeaderTitle(out subTitle); this.tChart1.SubHeader.Visible = false; if (subTitle.Trim() != "") { this.tChart1.SubHeader.Text = subTitle; this.tChart1.SubHeader.Visible = true; } int increment = 1; if (m_db == TimeInterval.Irregular || m_db == TimeInterval.Monthly) { increment = 2; } tChart1.Axes.Custom.RemoveAll(); tChart1.Panel.MarginLeft = 3; tChart1.Axes.Left.Title.Text = ""; tChart1.Axes.Right.Title.Text = ""; tChart1.Axes.Bottom.Labels.DateTimeFormat = "MM/dd"; for (int i = 1; i < sz; i += increment) { try { string columnName = dataTable.Columns[i].ColumnName; double avg = AverageOfColumn(dataTable, columnName); Steema.TeeChart.Styles.Line series = MakeSeries(dataTable, columnName, avg); series.VertAxis = Steema.TeeChart.Styles.VerticalAxis.Left; series.Pointer.Visible = this.checkBoxShowPoints.Checked; var tokens = TextFile.Split(columnName); string pcode = ""; string cbtt = ""; if (tokens.Length == 2) { cbtt = tokens[0].Trim(); pcode = tokens[1].Trim(); } string units = LookupUnits(pcode); if (UserPreference.Lookup("MultipleYAxis") == "True") { TChartDataLoader.SetupMultiLeftAxis(tChart1, series, units); } else { TChartDataLoader.SetupAxisLeftRight(tChart1, series, units); } /* //if (i == 1) * //{ * // vertLabel1 = Hydromet.LookupMcfPcodeDescription(cbtt, pcode); * // tChart1.Axes.Left.Title.Text = vertLabel1; * // firstPcode = pcode; * //} * //else * //{ // determine if we should use right vertical axis. * // if (firstPcode.ToLower().Trim() != pcode.Trim().ToLower()) * // { * // series.VertAxis = Steema.TeeChart.Styles.VerticalAxis.Right; * // } * //} */ tChart1.Series.Add(series); } catch (Exception e) { MessageBox.Show(e.ToString() + " series index " + i); Logger.WriteLine(e.ToString(), "ui"); } if (tChart1.Series.Count > 0) { dragPoint1.Series = tChart1[0]; dragPoint1.Active = true; } else { dragPoint1.Active = false; } } //tChart1.Zoom.ZoomPercent(94); this.comboBoxEditSeries_SelectedIndexChanged(null, null); }
/// <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.line1 = new Steema.TeeChart.Styles.Line(); this.panel1.SuspendLayout(); this.SuspendLayout(); // // textBox1 // this.textBox1.BackColor = System.Drawing.Color.AliceBlue; this.textBox1.Name = "textBox1"; this.textBox1.Text = "The Axis \"GetAxisDrawLabel\" event can be used for multiple purposes.\r\nIt is calle" + "d just before the axis is going to draw a label.\r\n\r\nThis example shows how to se" + "t a different text alignment for the first and\r\nlast labels of the bottom axis."; // // panel1 // this.panel1.BackColor = System.Drawing.SystemColors.Control; this.panel1.Controls.Add(this.checkBox1); this.panel1.Name = "panel1"; // // tChart1 // // // tChart1.Header // this.tChart1.Header.Lines = new string[] { "TeeChart" }; this.tChart1.Name = "tChart1"; // // tChart1.Panel // // // tChart1.Panel.Brush // // // tChart1.Panel.Gradient // this.tChart1.Panel.Brush.Gradient.MiddleColor = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(192)), ((System.Byte)(192)), ((System.Byte)(255))); this.tChart1.Panel.Brush.Gradient.StartColor = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(192)), ((System.Byte)(192)), ((System.Byte)(255))); this.tChart1.Panel.Brush.Gradient.UseMiddle = true; this.tChart1.Panel.Brush.Gradient.Visible = true; // // tChart1.Panel.Gradient // this.tChart1.Panel.Gradient.MiddleColor = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(192)), ((System.Byte)(192)), ((System.Byte)(255))); this.tChart1.Panel.Gradient.StartColor = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(192)), ((System.Byte)(192)), ((System.Byte)(255))); this.tChart1.Panel.Gradient.UseMiddle = true; this.tChart1.Panel.Gradient.Visible = true; this.tChart1.Series.Add(this.line1); // // checkBox1 // this.checkBox1.Checked = true; this.checkBox1.CheckState = System.Windows.Forms.CheckState.Checked; this.checkBox1.Location = new System.Drawing.Point(16, 8); this.checkBox1.Name = "checkBox1"; this.checkBox1.Size = new System.Drawing.Size(248, 24); this.checkBox1.TabIndex = 0; this.checkBox1.Text = "First and last bottom axis labels aligned"; this.checkBox1.Click += new System.EventHandler(this.checkBox1_Click); // // line1 // // // line1.Brush // this.line1.Brush.Color = System.Drawing.Color.FromArgb(((System.Byte)(102)), ((System.Byte)(153)), ((System.Byte)(255))); this.line1.ColorEach = true; // // line1.LinePen // this.line1.LinePen.Color = System.Drawing.Color.FromArgb(((System.Byte)(61)), ((System.Byte)(92)), ((System.Byte)(153))); // // line1.Pointer // this.line1.Pointer.Style = Steema.TeeChart.Styles.PointerStyles.Rectangle; this.line1.Pointer.Visible = true; 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"; // // AxisFirstLastLabels // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(440, 317); this.Name = "AxisFirstLastLabels"; this.panel1.ResumeLayout(false); this.ResumeLayout(false); }
private static void LoadSeriesData(DataTable table, string columnName, double avg, Steema.TeeChart.Styles.Line series1) { series1.Title = columnName; int sz = table.Rows.Count; for (int i = 0; i < sz; i++) { DateTime date = (DateTime)table.Rows[i][0]; if (table.Rows[i][columnName] != System.DBNull.Value) { double val = Convert.ToDouble(table.Rows[i][columnName]); series1.Add(date, val); } else { series1.Add(date, avg, Color.Transparent); } } }
public override void RowSelected(UITableView tableView, NSIndexPath indexPath) { // Uncheck the previous row /* if (_previousRow != null) tableView.CellAt(_previousRow).Accessory = UITableViewCellAccessory.None; */ // Do something with the row var row = indexPath.Row; Settings.SelectedIndex = row; tableView.CellAt(indexPath).Accessory = UITableViewCellAccessory.Checkmark; line1 = new Steema.TeeChart.Styles.Line(); _controller.chart.Chart.Series.Add(line1); line1.DataSource = _controller.chart.Chart.Series[0]; // Applies the selected Function switch (row) { case 0: line1.Function = new Steema.TeeChart.Functions.Add();break; case 1: line1.Function = new Steema.TeeChart.Functions.Subtract();break; case 2: line1.Function = new Steema.TeeChart.Functions.Multiply();break; case 3: line1.Function = new Steema.TeeChart.Functions.Divide();break; case 4: line1.Function = new Steema.TeeChart.Functions.High();break; case 5: line1.Function = new Steema.TeeChart.Functions.Low();break; case 6: line1.Function = new Steema.TeeChart.Functions.Average();break; case 7: line1.Function = new Steema.TeeChart.Functions.Count();break; case 8: line1.Function = new Steema.TeeChart.Functions.Momentum();break; case 9: line1.Function = new Steema.TeeChart.Functions.MomentumDivision();break; case 10: line1.Function = new Steema.TeeChart.Functions.Cumulative();break; case 11: line1.Function = new Steema.TeeChart.Functions.ExpAverage();break; case 12: line1.Function = new Steema.TeeChart.Functions.Smoothing();break; case 13: line1.Function = new Steema.TeeChart.Functions.Custom();break; case 14: line1.Function = new Steema.TeeChart.Functions.RootMeanSquare();break; case 15: line1.Function = new Steema.TeeChart.Functions.StdDeviation();break; case 16: line1.Function = new Steema.TeeChart.Functions.Stochastic();break; case 17: line1.Function = new Steema.TeeChart.Functions.ExpMovAverage();break; case 18: line1.Function = new Steema.TeeChart.Functions.Performance();break; case 19: line1.Function = new Steema.TeeChart.Functions.CrossPoints();break; case 20: line1.Function = new Steema.TeeChart.Functions.CompressOHLC();break; case 21: line1.Function = new Steema.TeeChart.Functions.CLVFunction();break; case 22: line1.Function = new Steema.TeeChart.Functions.OBVFunction();break; case 23: line1.Function = new Steema.TeeChart.Functions.CCIFunction();break; case 24: line1.Function = new Steema.TeeChart.Functions.MovingAverage();break; case 25: line1.Function = new Steema.TeeChart.Functions.PVOFunction();break; case 26: line1.Function = new Steema.TeeChart.Functions.DownSampling();break; case 27: line1.Function = new Steema.TeeChart.Functions.TrendFunction();break; case 28: line1.Function = new Steema.TeeChart.Functions.CorrelationFunction();break; case 29: line1.Function = new Steema.TeeChart.Functions.VarianceFunction();break; case 30: line1.Function = new Steema.TeeChart.Functions.PerimeterFunction();break; case 31: line1.Function = new Steema.TeeChart.Functions.PolyFitting();break; case 32: line1.Function = new Steema.TeeChart.Functions.Bollinger();break; case 33: line1.Function = new Steema.TeeChart.Functions.MACDFunction();break; case 34: line1.Function = new Steema.TeeChart.Functions.RSIFunction();break; case 35: line1.Function = new Steema.TeeChart.Functions.ADXFunction();break; case 36: line1.Function = new Steema.TeeChart.Functions.MedianFunction();break; case 37: line1.Function = new Steema.TeeChart.Functions.ModeFunction();break; case 38: line1.Function = new Steema.TeeChart.Functions.ExpTrendFunction();break; case 39: line1.Function = new Steema.TeeChart.Functions.HistogramFunction();break; case 40: line1.Function = new Steema.TeeChart.Functions.SARFunction();break; default: break; } _controller.chart.Chart.Invalidate(); //Console.WriteLine("{0} selected",_controller.Items[row]); _previousRow = indexPath; // This is what the Settings does under Settings>Mail>Show on an iPhone tableView.DeselectRow(indexPath,false); _controller.NavigationController.PopToViewController(_controller.chartController,true); }
/// <summary> /// This overloaded StandardTChart is used with WindowsForms. /// </summary> /// <returns></returns> public static void StandardTChart(GraphData ds, TChart tChart1, bool preserveFormat) { if (tChart1 == null) { tChart1 = new TChart(); } if (ds == null || ds.SeriesRows.Count() == 0) { tChart1.Series.Clear(); tChart1.Text = ""; //return tChart1; } try { int sz = ds.SeriesRows.Count(); if (!preserveFormat) { tChart1.Aspect.View3D = false; tChart1.Aspect.Orthogonal = false; tChart1.Series.Clear(); if (sz == 1) // single graph series. { tChart1.Legend.Visible = false; } else { tChart1.Legend.Visible = true; tChart1.Legend.Alignment = LegendAlignments.Top; } } tChart1.Text = ds.GraphRow.Title; tChart1.Axes.Right.Title.Text = ""; tChart1.Axes.Left.Title.Text = ""; string unitsOfFirstSeries = ds.SeriesRows.First().Units.Trim(); //for(int i=0; i<sz; i++) int i = 0; foreach (var s in ds.SeriesRows) { string tblName = s.TableName; DataTable dataTable = ds.GetTable(tblName); string columnName = dataTable.Columns[1].ColumnName; double avg = AverageOfColumn(dataTable, columnName); Steema.TeeChart.Styles.Line series = null; if (preserveFormat && i < tChart1.Series.Count && tChart1[i] is Steema.TeeChart.Styles.Line) { series = tChart1[i] as Steema.TeeChart.Styles.Line; } else { series = CreateSeries(tChart1, dataTable, columnName, avg); } LoadSeriesData(dataTable, columnName, avg, series); series.Title = s.Title; if (i > 0) // check units to determine what yaxis to use(left,or right) { string units = s.Units.Trim(); if (units != unitsOfFirstSeries) { // right axis series.VertAxis = Steema.TeeChart.Styles.VerticalAxis.Right; if (tChart1.Axes.Right.Title.Text.IndexOf(s.Units) < 0) { tChart1.Axes.Right.Title.Text += s.Units + " "; } //tChart1.Axes.Right.Labels.Color = Color.Red;//series.Color; } else { // left axis if (tChart1.Axes.Left.Title.Text.IndexOf(s.Units) < 0) { tChart1.Axes.Left.Title.Text += s.Units + " "; } } } else { tChart1.Axes.Left.Title.Text = s.Units + " "; } tChart1.Series.Add(series); i++; } //tChart1.Zoom.Undo(); //tChart1.Zoom.ZoomPercent(97); } catch (Exception exc) { System.Windows.Forms.MessageBox.Show(exc.Message + "\n " + exc.StackTrace); } }
// //********************************************************************************************** // public Boolean InitializeControl(System.Windows.Forms.PictureBox aPicture, System.Windows.Forms.RichTextBox aLog, System.Windows.Forms.ProgressBar aTimeBar, System.Windows.Forms.ProgressBar aPointBar, System.Windows.Forms.Button aBackgroundButton, System.Windows.Forms.Button aTextButton, System.Windows.Forms.Button aPrecipitationButton, System.Windows.Forms.Button aIrrigationButton, String aFile, String aPrecipitationFile, Boolean aIrrigationRequired, String aIrrigationFile, String aPPTFile, Boolean aPPTRequired, String aOutputDir, Steema.TeeChart.TChart achrtPrec1) { Boolean success = false; if (!Directory.Exists(aOutputDir)) { if (MessageBox.Show("Output dir " + aOutputDir + " does not exist. Create it?", "Error", MessageBoxButtons.YesNo) == DialogResult.Yes) { Directory.CreateDirectory(aOutputDir); } } if (Directory.Exists(aOutputDir)) { try { Running = false; brTimes = aTimeBar; PrecipitationFile = aPrecipitationFile; brPoints = aPointBar; LogBox = aLog; OutputDir = aOutputDir; LogBox.Clear(); LogBox.AppendText("Started at " + DateTime.Now.ToString() + "\n"); Top = new List<TPoint>(); Bottom = new List<TPoint>(); Left = new List<TPoint>(); Right = new List<TPoint>(); IrrigationRequired = aIrrigationRequired; IrrigationFile = aIrrigationFile; PPTFile = aPPTFile; PPTRequired = aPPTRequired; chrtPrec1 = achrtPrec1; PlotToShow = new List<TPlotToShow>(); if (PPTRequired) { PPT = new TPPT(); } DataManager.SaveToIniFile(aFile, aPrecipitationFile, aIrrigationFile, aOutputDir, aIrrigationRequired, aPPTRequired, aPPTFile); DataManager.ReadExcelFile(aFile); if (DataManager.ExcelIsAvailable) { SetDateFormat(); TotalBitmap = new Bitmap(800, 600); // TotalBitmap.SetResolution(300, 300); DataManager.ReadContourSheet(Top, Right, Bottom, Left); MyDrawing = new TDrawing(BackgroundColor, TextColor); // MyDrawing.DrawContours(Top, Right, Bottom, Left); MyGraph = Graphics.FromImage(TotalBitmap); Int32 NumberOfPlots = DataManager.ReadNumberOfPlots(); AssignmentMethod = DataManager.ReadAssignmentMethod(); Plot = new List<TPlot>(); for (Int32 i = 0; i < NumberOfPlots; i++) { TPlot MyPlot = new TPlot(i); MyPlot.AddBoundaries(Top, Bottom, Left, Right); MyPlot.AssignmentMethod = AssignmentMethod; Plot.Add(MyPlot); } DataManager.ReadPlotDescription(Plot); DataManager.ReadVisualization(PlotToShow); DistributePlots(); for (Int32 i = 0; i < NumberOfPlots; i++) { DataManager.ReadNodes(Plot[i].Node, i); DataManager.ReadElements(Plot[i].Node, Plot[i].Element, i); DataManager.ReadVirtualNodes(Plot[i].VirtualNode, i); } foreach (TPlotToShow MyPlot in PlotToShow) { Plot[MyPlot.PlotId].PrepareAndDrawGrid(MyPlot.ItemToVisualize); } DefineFirstAndLastNode(); CreateTotalBitmap(false); SaveGraph(OutputDir, -100); MoistureClass = new List<TMoistureClass>(); DerivedClass = new List<TDerivedClass>(); DataManager.ReadDerivativeTables(Plot); DataManager.ReadMoistureClasses(MoistureClass, DerivedClass); MyMoistureLegend = new TLegend(Color.Black, Color.White); MyMoistureLegend.SetDrawingArea(800, 600); MyMoistureLegend.DrawLegend(MoistureClass); MyDerivedLegend = new TLegend(Color.Black, Color.White); MyDerivedLegend.SetDrawingArea(800, 600); MyDerivedLegend.DrawDerivedLegend(DerivedClass); String FileName = SaveGraph(OutputDir, -10); if (PPTRequired) { PPT.AddPictureToSlide(FileName); } FileName = SaveGraph(OutputDir, -11); if (PPTRequired) { PPT.AddPictureToSlide(FileName); } MoistureContent = DataManager.ReadMoistureContents(); FindFirstAndLastDay(); PrecipitationInterval = DataManager.ReadPInterval(); ReadColors(aBackgroundButton, aTextButton, aPrecipitationButton, aIrrigationButton); DataManager.CloseExcelFile(); Precipitation = DataManager.ReadPrecipitation(PrecipitationFile, FirstDay, LastDay); if (IrrigationRequired) { Irrigation = DataManager.ReadIrrigation(IrrigationFile); } DataManager.QuitExcel(); chrtPrec2 = new Steema.TeeChart.TChart(); // precipitation Steema.TeeChart.Styles.Bar NewSeries = new Steema.TeeChart.Styles.Bar(); NewSeries.XValues.DateTime = true; NewSeries.Color = PrecipitationColor; NewSeries.Marks.Visible = false; NewSeries.Pen.Visible = false; chrtPrec2.Series.Add(NewSeries); // irrigation NewSeries = new Steema.TeeChart.Styles.Bar(); NewSeries.XValues.DateTime = true; NewSeries.Color = IrrigationColor; NewSeries.Marks.Visible = false; NewSeries.Pen.Visible = false; chrtPrec2.Series.Add(NewSeries); // line Steema.TeeChart.Styles.Line Line = new Steema.TeeChart.Styles.Line(); Line.Color = Color.Red; Line.VertAxis = Steema.TeeChart.Styles.VerticalAxis.Right; Line.XValues.DateTime = true; chrtPrec2.Axes.Right.Automatic = false; chrtPrec2.Axes.Right.Minimum = 0.0; chrtPrec2.Axes.Right.Maximum = 1.0; chrtPrec2.Axes.Right.Visible = false; chrtPrec2.Series.Add(Line); // clear chrtPrec1.Series[0].Clear(); chrtPrec1.Series[1].Clear(); chrtPrec1.Series[2].Clear(); chrtPrec2.Series[0].Clear(); chrtPrec2.Series[1].Clear(); chrtPrec2.Series[2].Clear(); ShowPrecipitation(1); ShowPrecipitation(2); // MyDrawing.SaveGraph(OutputDir, -1); } LogBox.AppendText(@"Data read at " + DateTime.Now.ToString()); success = true; } catch (Exception e) { String ErrorMessage = @"Error in input data : " + e.Message; MessageBox.Show(ErrorMessage); LogBox.AppendText(ErrorMessage); } } return success; }
/// <summary> /// This overloaded StandardTChart is used with WebChart. /// </summary> /// <param name="ds"></param> /// <param name="tChart1"></param> /// <returns></returns> static Chart StandardTChart(TimeSeriesDataSet ds, Chart tChart1) { if (tChart1 == null) { tChart1 = new Chart(); } if (ds == null || ds.Series.Rows.Count == 0) { return(tChart1); } try { tChart1.Aspect.View3D = false; tChart1.Aspect.Orthogonal = false; tChart1.Series.Clear(); int sz = ds.Series.Count; if (sz == 1) // single graph series. { tChart1.Legend.Visible = false; //tChart1.Text = ds.Series[0].Title; } else { tChart1.Legend.Visible = true; tChart1.Legend.Alignment = LegendAlignments.Top; //tChart1.Text = ""; } //tChart1.Text = ds.Graph[0].Title; string unitsOfFirstSeries = ds.Series[0].Units.Trim(); for (int i = 0; i < sz; i++) { string tblName = ds.Series[i].TableName; DataTable dataTable = ds.Tables[tblName]; string columnName = dataTable.Columns[1].ColumnName; double avg = AverageOfColumn(dataTable, columnName); Steema.TeeChart.Styles.Line series = TChartSeries(tChart1, dataTable, columnName, avg); series.Title = ds.Series[i].Title; if (i > 0) // check units to determine what yaxis to use(left,or right) { string units = ds.Series[i].Units.Trim(); if (units != unitsOfFirstSeries) { series.VertAxis = Steema.TeeChart.Styles.VerticalAxis.Right; tChart1.Axes.Right.Labels.Color = Color.Red;//series.Color; } } tChart1.Series.Add(series); } //tChart1.Zoom.Undo(); //tChart1.Zoom.ZoomPercent(97); } catch (Exception exc) { //System.Windows.Forms.MessageBox.Show("Error\n","\n"+exc.ToString()); throw exc; } return(tChart1); }
// //********************************************************************************************** // public void Scale(List<TPoint> aTop, List<TPoint> aRight, List<TPoint> aBottom, List<TPoint> aLeft) { TopBoundary = aTop; RightBoundary = aRight; BottomBoundary = aBottom; LeftBoundary = aLeft; XMax = -1.0e99; XMin = 1.0e99; YMax = -1.0e99; YMin = 1.0e99; foreach (TPoint MyPoint in TopBoundary) { if (MyPoint.X < XMin) { XMin = MyPoint.X; } if (MyPoint.X > XMax) { XMax = MyPoint.X; } if (MyPoint.Y < YMin) { YMin = MyPoint.Y; } if (MyPoint.Y > YMax) { YMax = MyPoint.Y; } } foreach (TPoint MyPoint in RightBoundary) { if (MyPoint.X < XMin) { XMin = MyPoint.X; } if (MyPoint.X > XMax) { XMax = MyPoint.X; } if (MyPoint.Y < YMin) { YMin = MyPoint.Y; } if (MyPoint.Y > YMax) { YMax = MyPoint.Y; } } foreach (TPoint MyPoint in BottomBoundary) { if (MyPoint.X < XMin) { XMin = MyPoint.X; } if (MyPoint.X > XMax) { XMax = MyPoint.X; } if (MyPoint.Y < YMin) { YMin = MyPoint.Y; } if (MyPoint.Y > YMax) { YMax = MyPoint.Y; } } foreach (TPoint MyPoint in LeftBoundary) { if (MyPoint.X < XMin) { XMin = MyPoint.X; } if (MyPoint.X > XMax) { XMax = MyPoint.X; } if (MyPoint.Y < YMin) { YMin = MyPoint.Y; } if (MyPoint.Y > YMax) { YMax = MyPoint.Y; } } MyChart.Panel.Color = BackgroundColor; MyChart.Panel.Brush.Color = BackgroundColor; MyChart.Panel.Gradient.Visible = false; MyChart.Panel.Shadow.Visible = false; MyChart.Panel.Transparent = false; MyChart.BackColor = BackgroundColor; MyChart.Legend.Visible = false; MyChart.Footer.Visible = false; MyChart.Chart.Aspect.View3D = false; MyChart.Panel.Pen.Color = ForegroundColor; MyChart.Header.Font.Color = ForegroundColor; MyChart.Walls.Right.Color = BackgroundColor; MyChart.Walls.Back.Color = BackgroundColor; MyChart.Walls.Visible = false; MyChart.Axes.Bottom.AxisPen.Color = ForegroundColor; MyChart.Axes.Bottom.Title.Color = ForegroundColor; MyChart.Axes.Bottom.Ticks.Color = ForegroundColor; MyChart.Axes.Bottom.Labels.Color = ForegroundColor; MyChart.Axes.Bottom.Grid.Color = ForegroundColor; MyChart.Axes.Bottom.MinorTicks.Color = ForegroundColor; MyChart.Axes.Bottom.Labels.Font.Color = ForegroundColor; MyChart.Axes.Left.AxisPen.Color = ForegroundColor; MyChart.Axes.Left.Title.Color = ForegroundColor; MyChart.Axes.Left.Ticks.Color = ForegroundColor; MyChart.Axes.Left.Labels.Color = ForegroundColor; MyChart.Axes.Left.Grid.Color = ForegroundColor; MyChart.Axes.Left.MinorTicks.Color = ForegroundColor; MyChart.Axes.Left.Labels.Font.Color = ForegroundColor; MyChart.Panel.Bevel.ColorOne = BackgroundColor; MyChart.Panel.Bevel.ColorTwo = BackgroundColor; MyChart.Axes.Left.Automatic = false; MyChart.Axes.Left.Maximum = YMax; MyChart.Axes.Left.Minimum = YMin; MyChart.Axes.Bottom.Automatic = false; MyChart.Axes.Bottom.Minimum = XMin; MyChart.Axes.Bottom.Maximum = XMax; MyChart.Legend.Visible = false; MyChart.Header.Visible = false; MyChart.Axes.Bottom.Title.Visible = false; MyChart.Axes.Left.Title.Visible = false; Steema.TeeChart.Styles.Line MyLine = new Steema.TeeChart.Styles.Line(); MyLine.Add(XMin, YMin); MyLine.Add(XMax, YMax); MyChart.Series.Add(MyLine); MyChart.Draw(); MyChart.Update(); MyChart.Refresh(); Application.DoEvents(); HorOffset = MyChart.Axes.Bottom.IStartPos; HorSize = MyChart.Axes.Bottom.IEndPos - HorOffset + 2; VertOffset = MyChart.Axes.Left.IStartPos; VertSize = MyChart.Axes.Left.IEndPos - VertOffset + 2; MyBitmap = new Bitmap(HorSize, VertSize); MyGraph = Graphics.FromImage(MyBitmap); MyGraph.Clear(BackgroundColor); dX = HorSize / (XMax - XMin); dY = VertSize / (YMax - YMin); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Function_Variance)); this.button1 = new System.Windows.Forms.Button(); this.points1 = new Steema.TeeChart.Styles.Points(); this.varianceFunction1 = new Steema.TeeChart.Functions.VarianceFunction(); this.line1 = new Steema.TeeChart.Styles.Line(); this.panel1.SuspendLayout(); this.chartContainer.SuspendLayout(); this.SuspendLayout(); // // textBox1 // this.textBox1.Size = new System.Drawing.Size(440, 56); this.textBox1.Text = "The Variance function returns how spread out a distribution is. The Standard Devi" + "ation function is the square root of the variance."; // // panel1 // this.panel1.Controls.Add(this.button1); this.panel1.Location = new System.Drawing.Point(0, 56); this.panel1.Size = new System.Drawing.Size(440, 48); // // tChart1 // // // // this.tChart1.Aspect.View3D = false; this.tChart1.Aspect.ZOffset = 0; // // // // // // // // // this.tChart1.Axes.Bottom.AxisPen.Color = System.Drawing.Color.FromArgb(((int)(((byte)(130)))), ((int)(((byte)(130)))), ((int)(((byte)(130))))); // // // this.tChart1.Axes.Bottom.Grid.Color = System.Drawing.Color.FromArgb(((int)(((byte)(130)))), ((int)(((byte)(130)))), ((int)(((byte)(130))))); this.tChart1.Axes.Bottom.Grid.Style = System.Drawing.Drawing2D.DashStyle.Solid; // // // // // // // // // this.tChart1.Axes.Bottom.MaximumOffset = 5; this.tChart1.Axes.Bottom.MinimumOffset = 5; // // // this.tChart1.Axes.Bottom.MinorTicks.Visible = false; // // // this.tChart1.Axes.Bottom.Ticks.Color = System.Drawing.Color.FromArgb(((int)(((byte)(130)))), ((int)(((byte)(130)))), ((int)(((byte)(130))))); // // // this.tChart1.Axes.Bottom.TicksInner.Visible = true; // // // // // // this.tChart1.Axes.Depth.AxisPen.Color = System.Drawing.Color.FromArgb(((int)(((byte)(130)))), ((int)(((byte)(130)))), ((int)(((byte)(130))))); // // // this.tChart1.Axes.Depth.Grid.Color = System.Drawing.Color.FromArgb(((int)(((byte)(130)))), ((int)(((byte)(130)))), ((int)(((byte)(130))))); this.tChart1.Axes.Depth.Grid.Style = System.Drawing.Drawing2D.DashStyle.Solid; // // // // // // // // // // // // this.tChart1.Axes.Depth.MinorTicks.Visible = false; // // // this.tChart1.Axes.Depth.Ticks.Color = System.Drawing.Color.FromArgb(((int)(((byte)(130)))), ((int)(((byte)(130)))), ((int)(((byte)(130))))); // // // this.tChart1.Axes.Depth.TicksInner.Visible = true; // // // // // // this.tChart1.Axes.DepthTop.AxisPen.Color = System.Drawing.Color.FromArgb(((int)(((byte)(130)))), ((int)(((byte)(130)))), ((int)(((byte)(130))))); // // // this.tChart1.Axes.DepthTop.Grid.Color = System.Drawing.Color.FromArgb(((int)(((byte)(130)))), ((int)(((byte)(130)))), ((int)(((byte)(130))))); this.tChart1.Axes.DepthTop.Grid.Style = System.Drawing.Drawing2D.DashStyle.Solid; // // // // // // // // // // // // this.tChart1.Axes.DepthTop.MinorTicks.Visible = false; // // // this.tChart1.Axes.DepthTop.Ticks.Color = System.Drawing.Color.FromArgb(((int)(((byte)(130)))), ((int)(((byte)(130)))), ((int)(((byte)(130))))); // // // this.tChart1.Axes.DepthTop.TicksInner.Visible = true; // // // // // // this.tChart1.Axes.Left.AxisPen.Color = System.Drawing.Color.FromArgb(((int)(((byte)(130)))), ((int)(((byte)(130)))), ((int)(((byte)(130))))); // // // this.tChart1.Axes.Left.Grid.Color = System.Drawing.Color.FromArgb(((int)(((byte)(130)))), ((int)(((byte)(130)))), ((int)(((byte)(130))))); this.tChart1.Axes.Left.Grid.Style = System.Drawing.Drawing2D.DashStyle.Solid; // // // // // // // // // this.tChart1.Axes.Left.MaximumOffset = 5; this.tChart1.Axes.Left.MinimumOffset = 5; // // // this.tChart1.Axes.Left.MinorTicks.Visible = false; // // // this.tChart1.Axes.Left.Ticks.Color = System.Drawing.Color.FromArgb(((int)(((byte)(130)))), ((int)(((byte)(130)))), ((int)(((byte)(130))))); // // // this.tChart1.Axes.Left.TicksInner.Visible = true; // // // // // // this.tChart1.Axes.Right.AxisPen.Color = System.Drawing.Color.FromArgb(((int)(((byte)(130)))), ((int)(((byte)(130)))), ((int)(((byte)(130))))); // // // this.tChart1.Axes.Right.Grid.Color = System.Drawing.Color.FromArgb(((int)(((byte)(130)))), ((int)(((byte)(130)))), ((int)(((byte)(130))))); this.tChart1.Axes.Right.Grid.Style = System.Drawing.Drawing2D.DashStyle.Solid; // // // // // // // // // // // // this.tChart1.Axes.Right.MinorTicks.Visible = false; // // // this.tChart1.Axes.Right.Ticks.Color = System.Drawing.Color.FromArgb(((int)(((byte)(130)))), ((int)(((byte)(130)))), ((int)(((byte)(130))))); // // // this.tChart1.Axes.Right.TicksInner.Visible = true; // // // // // // this.tChart1.Axes.Top.AxisPen.Color = System.Drawing.Color.FromArgb(((int)(((byte)(130)))), ((int)(((byte)(130)))), ((int)(((byte)(130))))); // // // this.tChart1.Axes.Top.Grid.Color = System.Drawing.Color.FromArgb(((int)(((byte)(130)))), ((int)(((byte)(130)))), ((int)(((byte)(130))))); this.tChart1.Axes.Top.Grid.Style = System.Drawing.Drawing2D.DashStyle.Solid; // // // // // // // // // // // // this.tChart1.Axes.Top.MinorTicks.Visible = false; // // // this.tChart1.Axes.Top.Ticks.Color = System.Drawing.Color.FromArgb(((int)(((byte)(130)))), ((int)(((byte)(130)))), ((int)(((byte)(130))))); // // // this.tChart1.Axes.Top.TicksInner.Visible = true; this.tChart1.BackColor = System.Drawing.Color.Transparent; // // // // // // // // // this.tChart1.Header.Brush.Gradient.EndColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(0))))); this.tChart1.Header.Brush.Gradient.MiddleColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); this.tChart1.Header.Brush.Gradient.SigmaFocus = 0F; this.tChart1.Header.Brush.Gradient.SigmaScale = 0F; this.tChart1.Header.Brush.Gradient.StartColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); // // // // // // this.tChart1.Header.Font.Brush.Color = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); this.tChart1.Header.Lines = new string[] { "Variance function example" }; // // // this.tChart1.Legend.Alignment = Steema.TeeChart.LegendAlignments.Bottom; // // // // // // this.tChart1.Legend.Brush.Gradient.EndColor = System.Drawing.Color.FromArgb(((int)(((byte)(120)))), ((int)(((byte)(120)))), ((int)(((byte)(120))))); this.tChart1.Legend.Brush.Gradient.MiddleColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); this.tChart1.Legend.Brush.Gradient.SigmaFocus = 0F; this.tChart1.Legend.Brush.Gradient.SigmaScale = 0F; this.tChart1.Legend.Brush.Gradient.StartColor = System.Drawing.Color.FromArgb(((int)(((byte)(70)))), ((int)(((byte)(70)))), ((int)(((byte)(70))))); this.tChart1.Legend.Brush.Gradient.Visible = true; // // // // // // this.tChart1.Legend.Font.Brush.Color = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); // // // this.tChart1.Legend.Pen.Visible = false; // // // // // // this.tChart1.Panel.Brush.Color = System.Drawing.Color.FromArgb(((int)(((byte)(240)))), ((int)(((byte)(240)))), ((int)(((byte)(240))))); // // // this.tChart1.Panel.Brush.Gradient.EndColor = System.Drawing.Color.FromArgb(((int)(((byte)(70)))), ((int)(((byte)(70)))), ((int)(((byte)(70))))); this.tChart1.Panel.Brush.Gradient.MiddleColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); this.tChart1.Panel.Brush.Gradient.SigmaFocus = 0F; this.tChart1.Panel.Brush.Gradient.SigmaScale = 0F; this.tChart1.Panel.Brush.Gradient.StartColor = System.Drawing.Color.FromArgb(((int)(((byte)(70)))), ((int)(((byte)(70)))), ((int)(((byte)(70))))); this.tChart1.Panel.Brush.Gradient.UseMiddle = false; this.tChart1.Series.Add(this.points1); this.tChart1.Series.Add(this.line1); this.tChart1.Size = new System.Drawing.Size(440, 213); // // // // // // // // // // // // this.tChart1.Walls.Back.Brush.Gradient.EndColor = System.Drawing.Color.FromArgb(((int)(((byte)(120)))), ((int)(((byte)(120)))), ((int)(((byte)(120))))); this.tChart1.Walls.Back.Brush.Gradient.MiddleColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); this.tChart1.Walls.Back.Brush.Gradient.StartColor = System.Drawing.Color.FromArgb(((int)(((byte)(70)))), ((int)(((byte)(70)))), ((int)(((byte)(70))))); // // // this.tChart1.Walls.Back.Pen.Visible = false; // // // // // // // // // this.tChart1.Walls.Bottom.Brush.Gradient.EndColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(0))))); this.tChart1.Walls.Bottom.Brush.Gradient.MiddleColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); this.tChart1.Walls.Bottom.Brush.Gradient.SigmaFocus = 0F; this.tChart1.Walls.Bottom.Brush.Gradient.SigmaScale = 0F; this.tChart1.Walls.Bottom.Brush.Gradient.StartColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); // // // this.tChart1.Walls.Bottom.Pen.Visible = false; // // // // // // // // // this.tChart1.Walls.Left.Brush.Gradient.EndColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(0))))); this.tChart1.Walls.Left.Brush.Gradient.MiddleColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); this.tChart1.Walls.Left.Brush.Gradient.SigmaFocus = 0F; this.tChart1.Walls.Left.Brush.Gradient.SigmaScale = 0F; this.tChart1.Walls.Left.Brush.Gradient.StartColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); // // // this.tChart1.Walls.Left.Pen.Visible = false; // // // // // // this.tChart1.Walls.Right.Brush.Color = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(192))))); // // // this.tChart1.Walls.Right.Brush.Gradient.EndColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(0))))); this.tChart1.Walls.Right.Brush.Gradient.MiddleColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); this.tChart1.Walls.Right.Brush.Gradient.SigmaFocus = 0F; this.tChart1.Walls.Right.Brush.Gradient.SigmaScale = 0F; this.tChart1.Walls.Right.Brush.Gradient.StartColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); // // // this.tChart1.Walls.Right.Pen.Visible = false; // // chartContainer // this.chartContainer.Location = new System.Drawing.Point(0, 104); this.chartContainer.Size = new System.Drawing.Size(440, 213); // // button1 // this.button1.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.button1.Location = new System.Drawing.Point(32, 16); this.button1.Name = "button1"; this.button1.Size = new System.Drawing.Size(120, 23); this.button1.TabIndex = 0; this.button1.Text = "New random values"; this.button1.Click += new System.EventHandler(this.button1_Click); // // points1 // this.points1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(130)))), ((int)(((byte)(155)))), ((int)(((byte)(254))))); this.points1.ColorEach = false; // // // // // // // // // this.points1.Marks.Brush.Gradient.EndColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(0))))); this.points1.Marks.Brush.Gradient.MiddleColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); this.points1.Marks.Brush.Gradient.SigmaFocus = 0F; this.points1.Marks.Brush.Gradient.SigmaScale = 0F; this.points1.Marks.Brush.Gradient.StartColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); // // // this.points1.Marks.Callout.ArrowHead = Steema.TeeChart.Styles.ArrowHeadStyles.None; this.points1.Marks.Callout.ArrowHeadSize = 8; // // // this.points1.Marks.Callout.Brush.Color = System.Drawing.Color.Black; this.points1.Marks.Callout.Distance = 0; this.points1.Marks.Callout.Draw3D = false; this.points1.Marks.Callout.Length = 0; this.points1.Marks.Callout.Style = Steema.TeeChart.Styles.PointerStyles.Rectangle; this.points1.Marks.Callout.Visible = false; // // // // // // this.points1.Marks.Font.Brush.Color = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); this.points1.Marks.Transparent = true; // // // // // // this.points1.Pointer.Brush.Color = System.Drawing.Color.FromArgb(((int)(((byte)(130)))), ((int)(((byte)(155)))), ((int)(((byte)(254))))); this.points1.Pointer.Style = Steema.TeeChart.Styles.PointerStyles.Rectangle; this.points1.Title = "Data"; // // // this.points1.XValues.DataMember = "X"; this.points1.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; // // // this.points1.YValues.DataMember = "Y"; // // line1 // // // // this.line1.Brush.Color = System.Drawing.Color.FromArgb(((int)(((byte)(252)))), ((int)(((byte)(209)))), ((int)(((byte)(36))))); this.line1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(252)))), ((int)(((byte)(209)))), ((int)(((byte)(36))))); this.line1.ColorEach = false; this.line1.DataSource = this.points1; this.line1.Function = this.varianceFunction1; // // // this.line1.LinePen.Color = System.Drawing.Color.FromArgb(((int)(((byte)(41)))), ((int)(((byte)(61)))), ((int)(((byte)(98))))); // // // // // // // // // this.line1.Marks.Brush.Gradient.EndColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(0))))); this.line1.Marks.Brush.Gradient.MiddleColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); this.line1.Marks.Brush.Gradient.SigmaFocus = 0F; this.line1.Marks.Brush.Gradient.SigmaScale = 0F; this.line1.Marks.Brush.Gradient.StartColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); // // // 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.Marks.Font.Brush.Color = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); this.line1.Marks.Transparent = true; // // // this.line1.Pointer.Style = Steema.TeeChart.Styles.PointerStyles.Rectangle; this.line1.Title = "Variance"; this.line1.VertAxis = Steema.TeeChart.Styles.VerticalAxis.Right; // // // this.line1.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; // // Function_Variance // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(440, 317); this.Name = "Function_Variance"; this.panel1.ResumeLayout(false); this.chartContainer.ResumeLayout(false); this.ResumeLayout(false); this.PerformLayout(); }