public override void ViewDidLoad() { base.ViewDidLoad(); chartview = new TChart(); chartview.Frame = new RectangleF(0, 0, 320, 460); //產生不同類型的圖表 switch (chart) { case ChartType.Bar: var Barstyle = new Steema.TeeChart.Styles.Bar(); Barstyle.FillSampleValues(samples); Barstyle.ShowInLegend = false; Barstyle.Marks.Visible = true; chartview.Series.Add(Barstyle); break; case ChartType.Candle: var Candlestyle = new Steema.TeeChart.Styles.Candle(); Candlestyle.FillSampleValues(samples); Candlestyle.ShowInLegend = false; Candlestyle.Marks.Visible = true; chartview.Series.Add(Candlestyle); break; case ChartType.Bubble: var Bubblestyle = new Steema.TeeChart.Styles.Bubble(); Bubblestyle.FillSampleValues(samples); Bubblestyle.ShowInLegend = false; Bubblestyle.Marks.Visible = true; chartview.Series.Add(Bubblestyle); break; case ChartType.Radar: var Radarstyle = new Steema.TeeChart.Styles.Radar(); Radarstyle.FillSampleValues(samples); Radarstyle.ShowInLegend = false; Radarstyle.Marks.Visible = true; chartview.Series.Add(Radarstyle); break; case ChartType.Tower: var Towerstyle = new Steema.TeeChart.Styles.Tower(); Towerstyle.FillSampleValues(samples); Towerstyle.ShowInLegend = false; Towerstyle.Marks.Visible = true; chartview.Series.Add(Towerstyle); break; } View.AddSubview(chartview); }
/// <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_RotateRotating)); this.tower1 = new Steema.TeeChart.Styles.Tower(); this.rotate1 = new Steema.TeeChart.Tools.Rotate(); this.label1 = new System.Windows.Forms.Label(); this.lRotation = new System.Windows.Forms.Label(); this.label2 = new System.Windows.Forms.Label(); this.numericUpDown1 = new System.Windows.Forms.NumericUpDown(); this.label3 = new System.Windows.Forms.Label(); this.hScrollBar1 = new System.Windows.Forms.HScrollBar(); this.panel1.SuspendLayout(); this.chartContainer.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.numericUpDown1)).BeginInit(); this.SuspendLayout(); // // textBox1 // this.textBox1.Text = "The RotateTool has a Rotate event + Speed and Inertia properties."; // // panel1 // this.panel1.Controls.Add(this.hScrollBar1); this.panel1.Controls.Add(this.label3); this.panel1.Controls.Add(this.numericUpDown1); this.panel1.Controls.Add(this.label2); this.panel1.Controls.Add(this.lRotation); this.panel1.Controls.Add(this.label1); // // tChart1 // // // // this.tChart1.Aspect.Chart3DPercent = 25; this.tChart1.Aspect.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.AntiAlias; this.tChart1.Aspect.TextRenderingHint = System.Drawing.Text.TextRenderingHint.AntiAlias; this.tChart1.Aspect.ZOffset = 0; // // // this.tChart1.Header.Lines = new string[] { "RotateTool Rotate/Speed" }; // // // this.tChart1.Legend.MaxNumRows = 8; 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.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.Series.Add(this.tower1); this.tChart1.Size = new System.Drawing.Size(440, 205); this.tChart1.Tools.Add(this.rotate1); // // tower1 // // // // this.tower1.Brush.Color = System.Drawing.Color.FromArgb(((int)(((byte)(233)))), ((int)(((byte)(244)))), ((int)(((byte)(78))))); this.tower1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(68)))), ((int)(((byte)(102)))), ((int)(((byte)(163))))); this.tower1.ColorEach = false; // // // // // // this.tower1.Marks.Callout.ArrowHead = Steema.TeeChart.Styles.ArrowHeadStyles.None; this.tower1.Marks.Callout.ArrowHeadSize = 8; // // // this.tower1.Marks.Callout.Brush.Color = System.Drawing.Color.Black; this.tower1.Marks.Callout.Distance = 0; this.tower1.Marks.Callout.Draw3D = false; this.tower1.Marks.Callout.Length = 10; this.tower1.Marks.Callout.Style = Steema.TeeChart.Styles.PointerStyles.Rectangle; this.tower1.Marks.Callout.Visible = false; this.tower1.Origin = 0; this.tower1.PaletteMin = 0; this.tower1.PaletteStep = 0; this.tower1.Title = "tower1"; this.tower1.UseColorRange = false; this.tower1.UsePalette = true; // // // this.tower1.XValues.DataMember = "X"; // // // this.tower1.YValues.DataMember = "Y"; // // // this.tower1.ZValues.DataMember = "Z"; // // rotate1 // this.rotate1.Rotating += new Steema.TeeChart.Tools.RotatingEventHandler(this.rotate1_Rotating); // // label1 // this.label1.AutoSize = true; this.label1.Location = new System.Drawing.Point(12, 14); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(50, 13); this.label1.TabIndex = 0; this.label1.Text = "Rotation:"; // // lRotation // this.lRotation.AutoSize = true; this.lRotation.Location = new System.Drawing.Point(62, 14); this.lRotation.Name = "lRotation"; this.lRotation.Size = new System.Drawing.Size(0, 13); this.lRotation.TabIndex = 1; // // label2 // this.label2.AutoSize = true; this.label2.Location = new System.Drawing.Point(134, 14); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(41, 13); this.label2.TabIndex = 2; this.label2.Text = "Speed:"; // // numericUpDown1 // this.numericUpDown1.Location = new System.Drawing.Point(181, 12); this.numericUpDown1.Name = "numericUpDown1"; this.numericUpDown1.Size = new System.Drawing.Size(45, 20); this.numericUpDown1.TabIndex = 3; this.numericUpDown1.Value = new decimal(new int[] { 50, 0, 0, 0 }); this.numericUpDown1.ValueChanged += new System.EventHandler(this.numericUpDown1_ValueChanged); // // label3 // this.label3.AutoSize = true; this.label3.Location = new System.Drawing.Point(258, 14); this.label3.Name = "label3"; this.label3.Size = new System.Drawing.Size(36, 13); this.label3.TabIndex = 4; this.label3.Text = "Inertia"; // // hScrollBar1 // this.hScrollBar1.Location = new System.Drawing.Point(297, 10); this.hScrollBar1.Name = "hScrollBar1"; this.hScrollBar1.Size = new System.Drawing.Size(118, 17); this.hScrollBar1.TabIndex = 5; this.hScrollBar1.Scroll += new System.Windows.Forms.ScrollEventHandler(this.hScrollBar1_Scroll); // // Tool_RotateRotating // #if VS2005 this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; #endif this.ClientSize = new System.Drawing.Size(440, 317); this.Name = "Tool_RotateRotating"; this.Text = "Tool_RotateRotating"; this.panel1.ResumeLayout(false); this.panel1.PerformLayout(); this.chartContainer.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.numericUpDown1)).EndInit(); this.ResumeLayout(false); this.PerformLayout(); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.checkBox1 = new System.Windows.Forms.CheckBox(); this.checkBox2 = new System.Windows.Forms.CheckBox(); this.gridBand1 = new Steema.TeeChart.Tools.GridBand(); this.tower1 = new Steema.TeeChart.Styles.Tower(); this.panel1.SuspendLayout(); this.SuspendLayout(); // // textBox1 // this.textBox1.BackColor = System.Drawing.Color.AliceBlue; this.textBox1.Name = "textBox1"; this.textBox1.Text = "The DepthTop axis displays at the top left side of a 3D chart.\r\n\r\ntChart1.Axes.De" + "pthTop.Visible = true;"; // // panel1 // this.panel1.BackColor = System.Drawing.SystemColors.Control; this.panel1.Controls.Add(this.checkBox2); this.panel1.Controls.Add(this.checkBox1); this.panel1.Name = "panel1"; // // tChart1 // // // tChart1.Axes // // // tChart1.Axes.Bottom // // // tChart1.Axes.Bottom.Grid // this.tChart1.Axes.Bottom.Grid.Visible = false; // // tChart1.Axes.DepthTop // // // tChart1.Axes.DepthTop.AxisPen // this.tChart1.Axes.DepthTop.AxisPen.Visible = false; // // tChart1.Axes.DepthTop.Labels // // // tChart1.Axes.DepthTop.Ticks // this.tChart1.Axes.DepthTop.Ticks.Length = 6; this.tChart1.Axes.DepthTop.Visible = true; // // tChart1.Axes.Left // // // tChart1.Axes.Left.AxisPen // this.tChart1.Axes.Left.AxisPen.Visible = false; // // tChart1.Axes.Left.Grid // this.tChart1.Axes.Left.Grid.Visible = false; // // 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))); // // 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[] { "DepthTop Axes" }; // // tChart1.Legend // this.tChart1.Legend.BorderRound = 8; // // tChart1.Legend.Brush // this.tChart1.Legend.Brush.Color = System.Drawing.Color.FromArgb(((System.Byte)(127)), ((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(255))); // // tChart1.Legend.Gradient // this.tChart1.Legend.Brush.Gradient.Transparency = 50; // // tChart1.Legend.Gradient // this.tChart1.Legend.Gradient.Transparency = 50; this.tChart1.Legend.MaxNumRows = 8; // // tChart1.Legend.Pen // this.tChart1.Legend.Pen.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(192)), ((System.Byte)(192)), ((System.Byte)(255))); // // tChart1.Legend.Shadow // this.tChart1.Legend.Shadow.Visible = false; this.tChart1.Legend.ShapeStyle = Steema.TeeChart.Drawing.TextShapeStyle.RoundRectangle; 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.tower1); // // tChart1.Walls // // // tChart1.Walls.Back // // // tChart1.Walls.Back.Brush // this.tChart1.Walls.Back.Brush.Color = System.Drawing.Color.FromArgb(((System.Byte)(102)), ((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(255))); // // tChart1.Walls.Back.Gradient // this.tChart1.Walls.Back.Brush.Gradient.Transparency = 60; // // tChart1.Walls.Back.Gradient // this.tChart1.Walls.Back.Gradient.Transparency = 60; // // tChart1.Walls.Back.Pen // this.tChart1.Walls.Back.Pen.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(192)), ((System.Byte)(192)), ((System.Byte)(192))); this.tChart1.Walls.Back.Transparent = false; // // 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(32, 8); this.checkBox1.Name = "checkBox1"; this.checkBox1.Size = new System.Drawing.Size(144, 24); this.checkBox1.TabIndex = 0; this.checkBox1.Text = "View DepthTop Axis"; this.checkBox1.Click += new System.EventHandler(this.checkBox1_Click); // // checkBox2 // this.checkBox2.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.checkBox2.Location = new System.Drawing.Point(168, 8); this.checkBox2.Name = "checkBox2"; this.checkBox2.TabIndex = 1; this.checkBox2.Text = "View Depth Axis"; this.checkBox2.Click += new System.EventHandler(this.checkBox2_Click); // // gridBand1 // this.gridBand1.Axis = this.tChart1.Axes.Left; // // gridBand1.Band1 // this.gridBand1.Band1.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(255))); // // gridBand1.Band2 // this.gridBand1.Band2.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(224)), ((System.Byte)(224)), ((System.Byte)(224))); // // tower1 // // // tower1.Brush // this.tower1.Brush.Color = System.Drawing.Color.FromArgb(((System.Byte)(102)), ((System.Byte)(153)), ((System.Byte)(255))); this.tower1.Origin = 0; this.tower1.PaletteMin = 0; this.tower1.PaletteStep = 0; // // tower1.Pen // this.tower1.Pen.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(128)), ((System.Byte)(128)), ((System.Byte)(128))); this.tower1.StartColor = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(102)), ((System.Byte)(153)), ((System.Byte)(255))); this.tower1.Title = "tower1"; // // tower1.XValues // this.tower1.XValues.DataMember = "X"; // // tower1.YValues // this.tower1.YValues.DataMember = "Y"; // // tower1.ZValues // this.tower1.ZValues.DataMember = "Z"; // // AxisDepthTop // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(440, 317); this.Name = "AxisDepthTop"; this.Load += new System.EventHandler(this.AxisDepthTop_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.checkBox1 = new System.Windows.Forms.CheckBox(); this.tower1 = new Steema.TeeChart.Styles.Tower(); this.panel1.SuspendLayout(); this.SuspendLayout(); // // textBox1 // this.textBox1.BackColor = System.Drawing.Color.AliceBlue; this.textBox1.Name = "textBox1"; this.textBox1.Text = "Depth and Depth-Top axes can be set to display date-time labels,\r\njust like all o" + "ther axis."; // // panel1 // this.panel1.BackColor = System.Drawing.SystemColors.Control; this.panel1.Controls.Add(this.checkBox1); this.panel1.Name = "panel1"; // // tChart1 // this.tChart1.Cursor = System.Windows.Forms.Cursors.Default; // // tChart1.Header // this.tChart1.Header.Lines = new string[] { "TeeChart" }; // // tChart1.Legend // this.tChart1.Legend.MaxNumRows = 8; 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.tower1); // // 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(184, 24); this.checkBox1.TabIndex = 0; this.checkBox1.Text = "DateTime Depth Axes"; this.checkBox1.Click += new System.EventHandler(this.checkBox1_Click); // // tower1 // // // tower1.Brush // this.tower1.Brush.Color = System.Drawing.Color.FromArgb(((System.Byte)(102)), ((System.Byte)(153)), ((System.Byte)(255))); this.tower1.Origin = 0; this.tower1.PaletteMin = 0; this.tower1.PaletteStep = 0; this.tower1.StartColor = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(102)), ((System.Byte)(153)), ((System.Byte)(255))); this.tower1.Title = "tower1"; // // tower1.XValues // this.tower1.XValues.DataMember = "X"; // // tower1.YValues // this.tower1.YValues.DataMember = "Y"; // // tower1.ZValues // this.tower1.ZValues.DataMember = "Z"; // // AxisDepthDateTime // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(440, 317); this.Name = "AxisDepthDateTime"; 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.towerSeries1 = new Steema.TeeChart.Styles.Tower(); this.button1 = new System.Windows.Forms.Button(); this.label1 = new System.Windows.Forms.Label(); this.comboBox1 = new System.Windows.Forms.ComboBox(); this.checkBox1 = new System.Windows.Forms.CheckBox(); this.gridBand1 = new Steema.TeeChart.Tools.GridBand(); this.panel1.SuspendLayout(); this.SuspendLayout(); // // textBox1 // this.textBox1.Name = "textBox1"; this.textBox1.Size = new System.Drawing.Size(488, 49); this.textBox1.Text = "Tower series displays bars in 3D grid mode. Several properties configure the aspe" + "ct and size of each bar."; // // panel1 // this.panel1.Controls.Add(this.checkBox1); this.panel1.Controls.Add(this.comboBox1); this.panel1.Controls.Add(this.label1); this.panel1.Controls.Add(this.button1); this.panel1.Location = new System.Drawing.Point(0, 49); this.panel1.Name = "panel1"; this.panel1.Size = new System.Drawing.Size(488, 39); // // 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" }; // // tChart1.Legend // this.tChart1.Legend.MaxNumRows = 8; this.tChart1.Location = new System.Drawing.Point(0, 88); 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.towerSeries1); this.tChart1.Size = new System.Drawing.Size(488, 245); 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; // // towerSeries1 // // // towerSeries1.Brush // this.towerSeries1.Brush.Color = System.Drawing.Color.Red; // // towerSeries1.Marks // // // towerSeries1.Marks.Symbol // // // towerSeries1.Marks.Symbol.Shadow // this.towerSeries1.Marks.Symbol.Shadow.Height = 1; this.towerSeries1.Marks.Symbol.Shadow.Visible = true; this.towerSeries1.Marks.Symbol.Shadow.Width = 1; this.towerSeries1.NumXValues = 25; this.towerSeries1.NumZValues = 25; this.towerSeries1.Origin = 0; this.towerSeries1.PaletteMin = 0; this.towerSeries1.PaletteStep = 0; this.towerSeries1.Title = "towerSeries1"; this.towerSeries1.UseColorRange = false; this.towerSeries1.UsePalette = true; // // towerSeries1.XValues // this.towerSeries1.XValues.DataMember = "X"; // // towerSeries1.YValues // this.towerSeries1.YValues.DataMember = "Y"; // // towerSeries1.ZValues // this.towerSeries1.ZValues.DataMember = "Z"; // // button1 // this.button1.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.button1.Location = new System.Drawing.Point(8, 7); this.button1.Name = "button1"; this.button1.TabIndex = 0; this.button1.Text = "&Edit..."; this.button1.Click += new System.EventHandler(this.button1_Click); // // label1 // this.label1.AutoSize = true; this.label1.Location = new System.Drawing.Point(114, 10); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(33, 16); this.label1.TabIndex = 1; this.label1.Text = "&Style:"; this.label1.TextAlign = System.Drawing.ContentAlignment.TopRight; // // comboBox1 // this.comboBox1.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.comboBox1.Items.AddRange(new object[] { "Cube", "Rectangle", "Cover", "Cylinder", "Arrow", "Cone" }); this.comboBox1.Location = new System.Drawing.Point(153, 8); this.comboBox1.Name = "comboBox1"; this.comboBox1.Size = new System.Drawing.Size(101, 21); this.comboBox1.TabIndex = 2; this.comboBox1.SelectedIndexChanged += new System.EventHandler(this.comboBox1_SelectedIndexChanged); // // 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(293, 8); this.checkBox1.Name = "checkBox1"; this.checkBox1.Size = new System.Drawing.Size(87, 21); this.checkBox1.TabIndex = 3; this.checkBox1.Text = "&Use origin"; this.checkBox1.CheckedChanged += new System.EventHandler(this.checkBox1_CheckedChanged); // // 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))); // // SeriesType_Tower // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(488, 333); this.Name = "SeriesType_Tower"; this.Load += new System.EventHandler(this.SeriesType_Tower_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.bLightProps = new System.Windows.Forms.Button(); this.tower1 = new Steema.TeeChart.Styles.Tower(); this.lightTool1 = new Steema.TeeChart.Tools.LightTool(); this.rotate1 = new Steema.TeeChart.Tools.Rotate(); this.label1 = new System.Windows.Forms.Label(); this.panel1.SuspendLayout(); this.SuspendLayout(); // // textBox1 // this.textBox1.Name = "textBox1"; this.textBox1.Text = "The Light tool enables \"2D lighting\" visual effect to charts.\r\n\r\nIncludes several" + " properties to control light and interactivity."; // // panel1 // this.panel1.Controls.Add(this.label1); this.panel1.Controls.Add(this.bLightProps); this.panel1.Name = "panel1"; // // tChart1 // // // tChart1.Aspect // this.tChart1.Aspect.Chart3DPercent = 45; this.tChart1.Aspect.Orthogonal = false; this.tChart1.Aspect.Zoom = 79; // // tChart1.Axes // // // tChart1.Axes.Bottom // // // tChart1.Axes.Bottom.Grid // this.tChart1.Axes.Bottom.Grid.ZPosition = 0; // // tChart1.Axes.Bottom.Labels // // // tChart1.Axes.Bottom.Labels.Font // // // tChart1.Axes.Bottom.Labels.Font.Shadow // this.tChart1.Axes.Bottom.Labels.Font.Shadow.Visible = false; // // tChart1.Axes.Bottom.Labels.Shadow // this.tChart1.Axes.Bottom.Labels.Shadow.Visible = false; // // tChart1.Axes.Bottom.Title // // // tChart1.Axes.Bottom.Title.Font // // // tChart1.Axes.Bottom.Title.Font.Shadow // this.tChart1.Axes.Bottom.Title.Font.Shadow.Visible = false; // // tChart1.Axes.Bottom.Title.Shadow // this.tChart1.Axes.Bottom.Title.Shadow.Visible = false; // // tChart1.Axes.Depth // // // tChart1.Axes.Depth.Grid // this.tChart1.Axes.Depth.Grid.ZPosition = 0; // // tChart1.Axes.Depth.Labels // // // tChart1.Axes.Depth.Labels.Font // // // tChart1.Axes.Depth.Labels.Font.Shadow // this.tChart1.Axes.Depth.Labels.Font.Shadow.Visible = false; // // tChart1.Axes.Depth.Labels.Shadow // this.tChart1.Axes.Depth.Labels.Shadow.Visible = false; // // tChart1.Axes.Depth.Title // // // tChart1.Axes.Depth.Title.Font // // // tChart1.Axes.Depth.Title.Font.Shadow // this.tChart1.Axes.Depth.Title.Font.Shadow.Visible = false; // // tChart1.Axes.Depth.Title.Shadow // this.tChart1.Axes.Depth.Title.Shadow.Visible = false; // // tChart1.Axes.DepthTop // // // tChart1.Axes.DepthTop.Grid // this.tChart1.Axes.DepthTop.Grid.ZPosition = 0; // // tChart1.Axes.DepthTop.Labels // // // tChart1.Axes.DepthTop.Labels.Font // // // tChart1.Axes.DepthTop.Labels.Font.Shadow // this.tChart1.Axes.DepthTop.Labels.Font.Shadow.Visible = false; // // tChart1.Axes.DepthTop.Labels.Shadow // this.tChart1.Axes.DepthTop.Labels.Shadow.Visible = false; // // tChart1.Axes.DepthTop.Title // // // tChart1.Axes.DepthTop.Title.Font // // // tChart1.Axes.DepthTop.Title.Font.Shadow // this.tChart1.Axes.DepthTop.Title.Font.Shadow.Visible = false; // // tChart1.Axes.DepthTop.Title.Shadow // this.tChart1.Axes.DepthTop.Title.Shadow.Visible = false; // // tChart1.Axes.Left // // // tChart1.Axes.Left.Grid // this.tChart1.Axes.Left.Grid.ZPosition = 0; // // tChart1.Axes.Left.Labels // // // tChart1.Axes.Left.Labels.Font // // // tChart1.Axes.Left.Labels.Font.Shadow // this.tChart1.Axes.Left.Labels.Font.Shadow.Visible = false; // // tChart1.Axes.Left.Labels.Shadow // this.tChart1.Axes.Left.Labels.Shadow.Visible = false; // // tChart1.Axes.Left.Title // // // tChart1.Axes.Left.Title.Font // // // tChart1.Axes.Left.Title.Font.Shadow // this.tChart1.Axes.Left.Title.Font.Shadow.Visible = false; // // tChart1.Axes.Left.Title.Shadow // this.tChart1.Axes.Left.Title.Shadow.Visible = false; // // tChart1.Axes.Right // // // tChart1.Axes.Right.Grid // this.tChart1.Axes.Right.Grid.ZPosition = 0; // // tChart1.Axes.Right.Labels // // // tChart1.Axes.Right.Labels.Font // // // tChart1.Axes.Right.Labels.Font.Shadow // this.tChart1.Axes.Right.Labels.Font.Shadow.Visible = false; // // tChart1.Axes.Right.Labels.Shadow // this.tChart1.Axes.Right.Labels.Shadow.Visible = false; // // tChart1.Axes.Right.Title // // // tChart1.Axes.Right.Title.Font // // // tChart1.Axes.Right.Title.Font.Shadow // this.tChart1.Axes.Right.Title.Font.Shadow.Visible = false; // // tChart1.Axes.Right.Title.Shadow // this.tChart1.Axes.Right.Title.Shadow.Visible = false; // // tChart1.Axes.Top // // // tChart1.Axes.Top.Grid // this.tChart1.Axes.Top.Grid.ZPosition = 0; // // tChart1.Axes.Top.Labels // // // tChart1.Axes.Top.Labels.Font // // // tChart1.Axes.Top.Labels.Font.Shadow // this.tChart1.Axes.Top.Labels.Font.Shadow.Visible = false; // // tChart1.Axes.Top.Labels.Shadow // this.tChart1.Axes.Top.Labels.Shadow.Visible = false; // // tChart1.Axes.Top.Title // // // tChart1.Axes.Top.Title.Font // // // tChart1.Axes.Top.Title.Font.Shadow // this.tChart1.Axes.Top.Title.Font.Shadow.Visible = false; // // tChart1.Axes.Top.Title.Shadow // this.tChart1.Axes.Top.Title.Shadow.Visible = false; this.tChart1.BackColor = System.Drawing.Color.Transparent; // // tChart1.Footer // // // tChart1.Footer.Font // // // tChart1.Footer.Font.Shadow // this.tChart1.Footer.Font.Shadow.Visible = false; // // tChart1.Footer.Shadow // this.tChart1.Footer.Shadow.Visible = false; // // tChart1.Header // // // tChart1.Header.Font // // // tChart1.Header.Font.Shadow // this.tChart1.Header.Font.Shadow.Visible = false; this.tChart1.Header.Lines = new string[] { "TeeChart" }; // // tChart1.Header.Shadow // this.tChart1.Header.Shadow.Visible = false; this.tChart1.Header.Visible = false; // // tChart1.Legend // // // tChart1.Legend.Font // // // tChart1.Legend.Font.Shadow // this.tChart1.Legend.Font.Shadow.Visible = false; this.tChart1.Legend.MaxNumRows = 8; // // tChart1.Legend.Title // // // tChart1.Legend.Title.Font // this.tChart1.Legend.Title.Font.Bold = true; // // tChart1.Legend.Title.Font.Shadow // this.tChart1.Legend.Title.Font.Shadow.Visible = false; // // tChart1.Legend.Title.Pen // this.tChart1.Legend.Title.Pen.Visible = false; // // tChart1.Legend.Title.Shadow // this.tChart1.Legend.Title.Shadow.Visible = false; this.tChart1.Legend.Visible = false; this.tChart1.Name = "tChart1"; // // tChart1.Panel // // // tChart1.Panel.Brush // this.tChart1.Panel.Brush.Color = System.Drawing.Color.FromArgb(((System.Byte)(127)), ((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(255))); // // tChart1.Panel.Shadow // this.tChart1.Panel.Shadow.Visible = false; this.tChart1.Series.Add(this.tower1); // // tChart1.SubFooter // // // tChart1.SubFooter.Font // // // tChart1.SubFooter.Font.Shadow // this.tChart1.SubFooter.Font.Shadow.Visible = false; // // tChart1.SubFooter.Shadow // this.tChart1.SubFooter.Shadow.Visible = false; // // tChart1.SubHeader // // // tChart1.SubHeader.Font // // // tChart1.SubHeader.Font.Shadow // this.tChart1.SubHeader.Font.Shadow.Visible = false; // // tChart1.SubHeader.Shadow // this.tChart1.SubHeader.Shadow.Visible = false; this.tChart1.Tools.Add(this.lightTool1); this.tChart1.Tools.Add(this.rotate1); // // tChart1.Walls // // // tChart1.Walls.Back // this.tChart1.Walls.Back.AutoHide = false; // // tChart1.Walls.Back.Shadow // this.tChart1.Walls.Back.Shadow.Visible = false; // // tChart1.Walls.Bottom // this.tChart1.Walls.Bottom.AutoHide = false; // // tChart1.Walls.Bottom.Shadow // this.tChart1.Walls.Bottom.Shadow.Visible = false; // // tChart1.Walls.Left // this.tChart1.Walls.Left.AutoHide = false; // // tChart1.Walls.Left.Shadow // this.tChart1.Walls.Left.Shadow.Visible = false; // // tChart1.Walls.Right // this.tChart1.Walls.Right.AutoHide = false; // // tChart1.Walls.Right.Shadow // this.tChart1.Walls.Right.Shadow.Visible = false; // // bLightProps // this.bLightProps.Location = new System.Drawing.Point(16, 8); this.bLightProps.Name = "bLightProps"; this.bLightProps.Size = new System.Drawing.Size(120, 23); this.bLightProps.TabIndex = 0; this.bLightProps.Text = "Light Tool properties"; this.bLightProps.Click += new System.EventHandler(this.bLightProps_Click); // // tower1 // // // tower1.Brush // this.tower1.Brush.Color = System.Drawing.Color.Red; this.tower1.Dark3D = false; // // tower1.Marks // // // tower1.Marks.Callout // this.tower1.Marks.Callout.Arrow = this.tower1.Marks.Arrow; this.tower1.Marks.Callout.ArrowHead = Steema.TeeChart.Styles.ArrowHeadStyles.None; this.tower1.Marks.Callout.ArrowHeadSize = 8; // // tower1.Marks.Callout.Brush // this.tower1.Marks.Callout.Brush.Color = System.Drawing.Color.Black; this.tower1.Marks.Callout.Distance = 0; this.tower1.Marks.Callout.Draw3D = false; this.tower1.Marks.Callout.Length = 10; this.tower1.Marks.Callout.Style = Steema.TeeChart.Styles.PointerStyles.Rectangle; // // tower1.Marks.Font // // // tower1.Marks.Font.Shadow // this.tower1.Marks.Font.Shadow.Visible = false; this.tower1.Origin = 0; this.tower1.PaletteMin = 0; this.tower1.PaletteStep = 0; this.tower1.PaletteStyle = Steema.TeeChart.Styles.PaletteStyles.Strong; this.tower1.Title = "tower1"; this.tower1.TowerStyle = Steema.TeeChart.Styles.TowerStyles.Cone; this.tower1.UseColorRange = false; this.tower1.UsePalette = true; // // tower1.XValues // this.tower1.XValues.DataMember = "X"; // // tower1.YValues // this.tower1.YValues.DataMember = "Y"; // // tower1.ZValues // this.tower1.ZValues.DataMember = "Z"; // // lightTool1 // this.lightTool1.Factor = 12; this.lightTool1.FollowMouse = true; this.lightTool1.Style = Steema.TeeChart.Tools.LightStyle.SpotLight; // // label1 // this.label1.Location = new System.Drawing.Point(155, 13); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(120, 16); this.label1.TabIndex = 1; this.label1.Text = "Drag Chart to rotate"; // // Tool_Lighting // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(440, 317); this.Name = "Tool_Lighting"; this.panel1.ResumeLayout(false); this.ResumeLayout(false); }
public override void ViewDidLoad() { base.ViewDidLoad(); chartview = new TChart(); chartview.Frame = new RectangleF(0, 0, 320, 460); //���ͤ��P�������Ϫ� switch (chart) { case ChartType.Bar: var Barstyle = new Steema.TeeChart.Styles.Bar(); Barstyle.FillSampleValues(samples); Barstyle.ShowInLegend = false; Barstyle.Marks.Visible = true; chartview.Series.Add(Barstyle); break; case ChartType.Candle: var Candlestyle = new Steema.TeeChart.Styles.Candle(); Candlestyle.FillSampleValues(samples); Candlestyle.ShowInLegend = false; Candlestyle.Marks.Visible = true; chartview.Series.Add(Candlestyle); break; case ChartType.Bubble: var Bubblestyle = new Steema.TeeChart.Styles.Bubble(); Bubblestyle.FillSampleValues(samples); Bubblestyle.ShowInLegend = false; Bubblestyle.Marks.Visible = true; chartview.Series.Add(Bubblestyle); break; case ChartType.Radar: var Radarstyle = new Steema.TeeChart.Styles.Radar(); Radarstyle.FillSampleValues(samples); Radarstyle.ShowInLegend = false; Radarstyle.Marks.Visible = true; chartview.Series.Add(Radarstyle); break; case ChartType.Tower: var Towerstyle = new Steema.TeeChart.Styles.Tower(); Towerstyle.FillSampleValues(samples); Towerstyle.ShowInLegend = false; Towerstyle.Marks.Visible = true; chartview.Series.Add(Towerstyle); break; } View.AddSubview(chartview); }