//Configuration Smoothing private void ConfigureSmoothing() { tChart1.Draw(); SmoothingArea = new Steema.TeeChart.Styles.Area(tChart1.Chart); SmoothingFunc = new Steema.TeeChart.Functions.Smoothing(); SmoothingArea.DataSource = area1; SmoothingArea.Function = SmoothingFunc; SmoothingArea.Color = area1.Color; SmoothingArea.AreaLines.Visible = false; SmoothingArea.LinePen.Visible = false; scrollPager1.Series = SmoothingArea; scrollPager1.Series.Color = BlueFlatPalette[0]; area1.Visible = false; }
/// <summary> /// Method to draw frequency area chart from the datatable /// </summary> /// <param name="dataTable">DataTable with the source data</param> /// <param name="chart">Chart to insert area into</param> private void DrawAreaFromDataTable(DataTable dataTable, Steema.TeeChart.TChart chart) { chart.Series.RemoveAllSeries(); Steema.TeeChart.Styles.Area areaSeries = new Steema.TeeChart.Styles.Area(); areaSeries.ColorEach = true; areaSeries.Marks.Style = Steema.TeeChart.Styles.MarksStyles.LabelValue; if (this.ToolStripMenuToggleMarks.Checked) { areaSeries.Marks.Visible = true; } else { areaSeries.Marks.Visible = false; } foreach (DataRow dataRow in dataTable.Rows) { double temp; try { temp = Convert.ToDouble(dataRow[1]); } catch { temp = 0; } if (this.ToolStripMenuItemAbsolute.Checked) { areaSeries.Add(temp, dataRow[0].ToString()); } else { if ((temp != 0) && (this.rowCount != 0)) { temp = Math.Round(((temp / (double)this.rowCount) * 100), 2); areaSeries.Add(temp, dataRow[0].ToString()); } else { areaSeries.Add(0, dataRow[0].ToString()); } } chart.Series.Add(areaSeries); } }
/// <summary> /// Method to draw frequency area graph from the datatable /// </summary> /// <param name="dataTable">DataTable with the source data</param> /// <param name="chart">Chart to insert area into</param> private void DrawAreaFromDataTable(ArrayList categoriesFrequency, Steema.TeeChart.TChart chart) { chart.Series.RemoveAllSeries(); Steema.TeeChart.Styles.Area areaSeries; areaSeries = new Steema.TeeChart.Styles.Area(); areaSeries.ColorEach = true; areaSeries.Marks.Style = Steema.TeeChart.Styles.MarksStyles.LabelValue; if (this.ToolStripMenuItemToggleMarks.Checked) { areaSeries.Marks.Visible = true; } else { areaSeries.Marks.Visible = false; } foreach (CategoryFrequency catFrequency in categoriesFrequency) { double temp; try { temp = Convert.ToDouble(catFrequency.count); } catch { temp = 0; } if (this.ToolStripMenuItemAbsolute.Checked) { areaSeries.Add(temp, catFrequency.key); } else { if ((temp != 0) && (this.rowCount != 0)) { temp = Math.Round(((temp / (double)this.rowCount) * 100), 2); areaSeries.Add(temp, catFrequency.key); } else { areaSeries.Add(0, catFrequency.key); } } chart.Series.Add(areaSeries); } }
private void button1_Click(object sender, EventArgs e) { mystyle++; tChart1.Series.Clear(); switch (mystyle) { case 1: Steema.TeeChart.Styles.Area area = new Steema.TeeChart.Styles.Area(); area.Add(data); tChart1.Series.Add(area); break; case 2: Steema.TeeChart.Styles.Arrow arrow= new Steema.TeeChart.Styles.Arrow(); arrow.Add(data); tChart1.Series.Add(arrow); break; case 3: Steema.TeeChart.Styles.Bar Bar = new Steema.TeeChart.Styles.Bar(); Bar.Add(data); tChart1.Series.Add(Bar); break; case 4: Steema.TeeChart.Styles.Bar3D Bar3D = new Steema.TeeChart.Styles.Bar3D(); Bar3D.Add(data); tChart1.Series.Add(Bar3D); break; case 5: Steema.TeeChart.Styles.BarJoin BarJoin = new Steema.TeeChart.Styles.BarJoin(); BarJoin.Add(data); tChart1.Series.Add(BarJoin); break; case 6: Steema.TeeChart.Styles.Bezier Bezier = new Steema.TeeChart.Styles.Bezier(); Bezier.Add(data); tChart1.Series.Add(Bezier); break; } if (mystyle > 10) mystyle = 0; }
protected override void OnCreate(Bundle bundle) { base.OnCreate(bundle); var tChart1 = new Steema.TeeChart.TChart(ApplicationContext); tChart1.Panel.Transparent = true; tChart1.Header.Text = "Multiple series made with Xamarin.Android"; tChart1.Zoom.Style = Steema.TeeChart.ZoomStyles.FullChart; tChart1.Axes.Top.Visible = false; tChart1.ContentDescription = "MultiChart"; var myTheme = new Steema.TeeChart.Themes.BlackIsBackTheme(tChart1.Chart); myTheme.Apply(); var area1 = new Steema.TeeChart.Styles.Area(tChart1.Chart); area1.FillSampleValues(); area1.Gradient.Visible = true; area1.Gradient.StartColor = area1.Color; area1.Gradient.Transparency = 40; area1.Transparency = area1.Gradient.Transparency; var bar1 = new Steema.TeeChart.Styles.Bar(tChart1.Chart); bar1.FillSampleValues(); bar1.Brush.Transparency = 30; bar1.Marks.Visible = false; bar1.Color = Steema.TeeChart.Themes.Theme.OnBlackPalette[1]; bar1.HorizAxis = Steema.TeeChart.Styles.HorizontalAxis.Top; var line1 = new Steema.TeeChart.Styles.Line(tChart1.Chart); line1.FillSampleValues(); line1.Color = Steema.TeeChart.Themes.Theme.OnBlackPalette[3]; SetContentView(tChart1); }
public MainPage() { InitializeComponent(); AreaLineChart = new ChartView(); area1 = new Steema.TeeChart.Styles.Area(); AreaLineChart.Chart.Series.Add(area1); colorLine1 = new Steema.TeeChart.Tools.ColorLine(); annotation1 = new Steema.TeeChart.Tools.Annotation(); AreaLineChart.Chart.Panning.Allow = ScrollModes.None; AreaLineChart.Chart.Panel.Gradient.Visible = false; AreaLineChart.Chart.Panel.Color = Color.White; AreaLineChart.Chart.Walls.Back.Visible = false; AreaLineChart.Chart.Header.Visible = false; AreaLineChart.Chart.Legend.Visible = false; AreaLineChart.Chart.Aspect.View3D = false; area1.AreaBrush.Color = Color.FromRgb(192, 192, 255); AreaLineChart.Chart.Axes.Bottom.Labels.Font.Brush.Color = Color.FromRgb(128, 128, 128); AreaLineChart.Chart.Axes.Bottom.Labels.Font.Size = 18; AreaLineChart.Chart.Axes.Left.Labels.Font.Brush.Color = Color.FromRgb(128, 128, 128); AreaLineChart.Chart.Axes.Left.Labels.Font.Size = 18; AreaLineChart.Chart.Axes.Left.AxisPen.Visible = false; AreaLineChart.Chart.Axes.Left.MaximumOffset = 5; AreaLineChart.Chart.Axes.Left.MinimumOffset = 5; area1.AreaBrush.Color = Color.FromRgb(192, 192, 255); area1.AreaBrush.Solid = true; area1.AreaBrush.Visible = true; area1.AreaLines.Visible = false; area1.Brush.Color = Color.FromRgb(192, 192, 255); area1.Brush.Solid = true; area1.Color = Color.FromRgb(192, 192, 255); area1.LinePen.Width = 6; area1.LinePen.Color = Color.Navy; AreaLineChart.Chart.Axes.Left.Ticks.Length = 10; AreaLineChart.Chart.Axes.Bottom.Ticks.Length = 10; AreaLineChart.Chart.Axes.Left.Increment = 100; // // colorLine1 // AreaLineChart.Chart.Tools.Add(colorLine1); colorLine1.Axis = AreaLineChart.Chart.Axes.Bottom; colorLine1.Pen.Color = Color.Navy; colorLine1.Pen.Width = 6; colorLine1.Pen.Style = Steema.TeeChart.Drawing.DashStyle.Dot; colorLine1.Value = 10D; colorLine1.DragLine += ColorLine1_DragLine; colorLine1.DrawBehind = false; colorLine1.ColorLineClickTolerance = 15; annotation1.Shape.Color = Color.Navy; annotation1.Shape.Font.Color = Color.White; annotation1.Shape.Font.Size = 25; annotation1.Shape.Pen.Visible = false; annotation1.Shape.BorderRound = 15; annotation1.Shape.BevelInner = Steema.TeeChart.Drawing.BevelStyles.None; annotation1.Shape.BevelOuter = Steema.TeeChart.Drawing.BevelStyles.None; annotation1.Shape.Shadow.Visible = false; annotation1.TextAlign = TextAlignment.Center; annotation1.Shape.TextAlign = TextAlignment.Center; AreaLineChart.WidthRequest = 650; AreaLineChart.HeightRequest = 350; AreaLineChart.Chart.AfterDraw += Chart_AfterDraw; AreaLineChart.Chart.Panel.Brush.Solid = true; area1.Marks.Visible = false; AreaLineChart.Chart.Tools.Add(annotation1); annotation1.Active = false; area1.FillSampleValues(100); Content = new StackLayout { Children = { AreaLineChart }, VerticalOptions = LayoutOptions.CenterAndExpand, HorizontalOptions = LayoutOptions.CenterAndExpand, }; }
/// <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(); }
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.areaSeries1 = new Steema.TeeChart.Styles.Area(); this.label1 = new System.Windows.Forms.Label(); this.hScrollBar1 = new System.Windows.Forms.HScrollBar(); this.label2 = new System.Windows.Forms.Label(); this.button1 = new System.Windows.Forms.Button(); this.button2 = 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 = "Series Marks can be rotated using the Angle property.\r\n\r\nExample: areaSeries1.Mar" + "ks.Angle = 90 ;"; // // panel1 // this.panel1.Controls.Add(this.button2); this.panel1.Controls.Add(this.button1); this.panel1.Controls.Add(this.label2); this.panel1.Controls.Add(this.hScrollBar1); 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.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.HighQuality; this.tChart1.Aspect.TextRenderingHint = System.Drawing.Text.TextRenderingHint.ClearTypeGridFit; // // tChart1.Header // this.tChart1.Header.Lines = new string[] { "tChart1" }; this.tChart1.Location = new System.Drawing.Point(0, 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.areaSeries1); this.tChart1.Size = new System.Drawing.Size(466, 182); // // 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; // // areaSeries1 // // // areaSeries1.AreaBrush // this.areaSeries1.AreaBrush.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(255)), ((System.Byte)(0)), ((System.Byte)(0))); // // areaSeries1.Brush // this.areaSeries1.Brush.Color = System.Drawing.Color.Red; // // areaSeries1.Marks // this.areaSeries1.Marks.Angle = 45; // // 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; this.areaSeries1.Marks.Visible = true; // // 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"; // // label1 // this.label1.AutoSize = true; this.label1.Location = new System.Drawing.Point(20, 13); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(36, 16); this.label1.TabIndex = 0; this.label1.Text = "&Angle:"; this.label1.TextAlign = System.Drawing.ContentAlignment.TopRight; // // hScrollBar1 // this.hScrollBar1.Location = new System.Drawing.Point(60, 13); this.hScrollBar1.Maximum = 360; this.hScrollBar1.Name = "hScrollBar1"; this.hScrollBar1.Size = new System.Drawing.Size(113, 17); this.hScrollBar1.TabIndex = 1; this.hScrollBar1.Value = 45; this.hScrollBar1.ValueChanged += new System.EventHandler(this.hScrollBar1_ValueChanged); // // label2 // this.label2.AutoSize = true; this.label2.Location = new System.Drawing.Point(180, 13); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(17, 16); this.label2.TabIndex = 2; this.label2.Text = "45"; this.label2.UseMnemonic = false; // // button1 // this.button1.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.button1.Location = new System.Drawing.Point(232, 10); this.button1.Name = "button1"; this.button1.TabIndex = 3; 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(327, 10); this.button2.Name = "button2"; this.button2.TabIndex = 4; this.button2.Text = "&Vertical"; this.button2.Click += new System.EventHandler(this.button2_Click); // // Angle // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(466, 286); this.Name = "Angle"; this.panel1.ResumeLayout(false); this.ResumeLayout(false); }
public override void ViewDidLoad() { base.ViewDidLoad(); // Creating the Chart component Chart = new TChart(); // Setting the Chart bounds Chart.Frame = View.Frame; // 2D Chart Chart.Aspect.View3D = false; // Chart appearance Chart.Header.Font.Color = Color.White; Chart.Header.Font.Size = 16; Chart.Header.Text = "CALORIES"; Chart.Header.Font.Name = "Verdana"; Chart.SubHeader.Text = "Today's Summary"; Chart.SubHeader.Visible = true; Chart.SubHeader.Font.Bold = true; Chart.SubHeader.Font.Name = "Verdana"; Chart.Header.Font.Size = 12; Chart.SubHeader.Font.Color = Color.FromArgb(255, 78, 191, 185); Chart.SubFooter.Visible = true; Chart.SubFooter.Font.Name = "Verdana"; Chart.SubFooter.Text = "TeeChart for Xamarin.Forms"; Chart.SubFooter.Font.Color = Color.FromArgb(255, 78, 191, 185); Chart.Header.Font.Size = 12; Chart.Panel.Gradient.StartColor = Color.FromArgb(255, 17, 151, 140); Chart.Panel.Gradient.EndColor = Color.FromArgb(255, 11, 93, 143); Chart.Panel.Gradient.UseMiddle = false; Chart.Panel.Gradient.Visible = true; Chart.Panel.Pen.Visible = true; Chart.Panel.Pen.Color = Color.FromArgb(255, 20, 58, 69); Chart.Panel.Color = Color.FromArgb(255, 11, 93, 143); // Customizing the Axes grid appearance Chart.Axes.Bottom.Grid.Visible = false; Chart.Axes.Bottom.MinorTicks.Visible = false; // Setting a custom left axis increment, and axis pen width, and other properties Chart.Axes.Left.AxisPen.Width = 1; Chart.Axes.Bottom.AxisPen.Width = 1; Chart.Axes.Bottom.AxisPen.Color = Color.FromArgb(255, 51, 138, 166); Chart.Axes.Left.MaximumOffset = 12; Chart.Axes.Left.AxisPen.Visible = false; Chart.Axes.Left.Grid.Color = Color.FromArgb(255, 51, 138, 166); Chart.Axes.Right.AxisPen.Visible = false; Chart.Axes.Right.Grid.Color = Color.FromArgb(255, 51, 138, 166); Chart.Axes.Right.Labels.Font.Color = Color.FromArgb(255, 78, 191, 185); Chart.Axes.Right.Labels.Font.Size = 12; Chart.Axes.Right.MinorTicks.Visible = false; Chart.Axes.Right.Ticks.Visible = false; Chart.Axes.Right.GridCentered = true; Chart.Axes.Right.Ticks.Length = -150; Chart.Axes.Right.Ticks.Visible = true; Chart.Axes.Right.RelativePosition = 10; Chart.Axes.Left.Labels.Visible = false; Chart.Axes.Bottom.Labels.Font.Color = Color.FromArgb(255, 51, 138, 166); Chart.Axes.Bottom.Labels.Font.Size = 12; // Chaging the Legend, Panel and Walls appearance Chart.Legend.Transparent = true; Chart.Legend.Font.Color = Color.White; Chart.Legend.Font.Size = 16; Chart.Legend.Alignment = LegendAlignments.Bottom; Chart.Legend.LegendStyle = LegendStyles.Series; Chart.Walls.Back.Visible = false; Chart.Panel.BorderPen.Width = 3; Chart.Panel.BorderRound = 32; Chart.Panel.Bevel.Width = 2; Chart.Panel.Bevel.Outer = Steema.TeeChart.Drawing.BevelStyles.Lowered; Chart.Panel.Bevel.Inner = Steema.TeeChart.Drawing.BevelStyles.Lowered; Chart.Panel.Bevel.ColorOne = Color.FromArgb(255, 20, 58, 69); Chart.Panel.Bevel.ColorTwo = Color.FromArgb(255, 20, 58, 69); // Allow to Zoom and Pan over the Chart Series Chart.Panning.Active = true; Chart.Zoom.Active = true; // Creating the Chart Series (FastLine series in that case) Steema.TeeChart.Styles.Area fline1 = new Steema.TeeChart.Styles.Area(Chart.Chart); fline1.AreaBrush.Gradient.Visible = true; fline1.AreaBrush.Gradient.StartColor = Color.FromArgb(255, 78, 191, 185); fline1.LinePen.Color = Color.FromArgb(255, 197, 248, 229); fline1.AreaBrush.Gradient.EndColor = Color.Transparent; fline1.AreaLinesPen.Color = Color.FromArgb(255, 197, 248, 229); fline1.AreaLinesPen.Width = 3; fline1.AreaLines.Visible = false; fline1.Title = "Today"; var tmpHour = Utils.GetDateTimeStep(DateTimeSteps.OneHour); // Adding data to the Series fline1.Add(DateTime.Now.ToOADate(), 350, "350"); fline1.Add(DateTime.Now.ToOADate() + tmpHour, 500, "500"); fline1.Add(DateTime.Now.ToOADate() + tmpHour * 2, 400, "400"); fline1.Add(DateTime.Now.ToOADate() + tmpHour * 3, 475, "475"); fline1.Add(DateTime.Now.ToOADate() + tmpHour * 4, 300, "300"); fline1.Add(DateTime.Now.ToOADate() + tmpHour * 5, 222, "222"); fline1.Add(DateTime.Now.ToOADate() + tmpHour * 6, 280, "280"); fline1.Smoothed = true; fline1.VertAxis = Steema.TeeChart.Styles.VerticalAxis.Right; fline1.XValues.DateTime = true; Chart.Axes.Bottom.Labels.DateTimeFormat = "HH:mm tt"; Chart.Axes.Bottom.Increment = Steema.TeeChart.Utils.GetDateTimeStep(DateTimeSteps.OneHour); Chart.Axes.Right.MinimumOffset = 10; // Add a click Tolerance in pixels fline1.ClickTolerance = 3; // Hiding Series Marks fline1.Marks.Visible = false; fline1.LinePen.Width = 4; // Setting custom left axis increment Chart.Axes.Right.Increment = 100; Chart.Axes.Right.Automatic = true; Chart.Panning.Allow = ScrollModes.Horizontal; // Scroll by points per page.... // Chart.Page.MaxPointsPerPage = 10; // Scroll by using UISlider and SetMinMax //Chart.Panel.MarginBottom += 10; //Chart.Axes.Bottom.SetMinMax(0, 10); /* Using Slider to scroll * UISlider slider1 = new UISlider(new CoreGraphics.CGRect(0,this.View.Frame.Height - 25,this.View.Frame.Width, 20)); * slider1.MinValue = 5; * slider1.MaxValue = 95; * slider1.Value = 5.0f; // the current value * slider1.ValueChanged += (sender, e) => Chart.Axes.Bottom.SetMinMax(((UISlider)sender).Value - 5, ((UISlider)sender).Value + 5); */ // Use of Annotation Tool annotation = new Annotation(Chart.Chart); annotation.Active = false; annotation.Shape.Font.Size = 14; //annotation.Shape.Font.Bold = true; annotation.Shape.Pen.Color = Color.White; annotation.Shape.Pen.Width = 3; annotation.TextAlign = CTTextAlignment.Center; annotation.Position = AnnotationPositions.Center; // Chart and Series events Chart.ClickBackground += Chart_ClickBackground; Chart.ClickSeries += Chart_ClickSeries; Chart.ClickLegend += Chart_ClickLegend; Chart.AfterDraw += Chart_AfterDraw1; Chart.ClickAxis += Chart_ClickAxis; Chart.ClickTitle += Chart_ClickTitle; Chart.GetLegendText += Chart_GetLegendText; Chart.Draw(); // Finally adding the Chart View as SubView to the parent View View.AddSubview(Chart); // In the case we want to add an slider //View.AddSubview(slider1); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Area_SalesPrice)); this.area1 = new Steema.TeeChart.Styles.Area(); this.chartContainer.SuspendLayout(); this.SuspendLayout(); // // textBox1 // this.textBox1.Text = resources.GetString("textBox1.Text"); // // panel1 // this.panel1.Size = new System.Drawing.Size(440, 10); // // tChart1 // // // // this.tChart1.Aspect.ZOffset = 0; this.tChart1.Series.Add(this.area1); this.tChart1.Size = new System.Drawing.Size(440, 234); // // chartContainer // this.chartContainer.Location = new System.Drawing.Point(0, 83); this.chartContainer.Size = new System.Drawing.Size(440, 234); // // area1 // // // // this.area1.AreaBrush.Color = System.Drawing.Color.FromArgb(((int)(((byte)(68)))), ((int)(((byte)(102)))), ((int)(((byte)(163))))); // // // this.area1.Gradient.StartColor = System.Drawing.Color.FromArgb(((int)(((byte)(68)))), ((int)(((byte)(102)))), ((int)(((byte)(163))))); // // // this.area1.AreaLines.Color = System.Drawing.Color.FromArgb(((int)(((byte)(41)))), ((int)(((byte)(61)))), ((int)(((byte)(98))))); // // // this.area1.Brush.Color = System.Drawing.Color.FromArgb(((int)(((byte)(68)))), ((int)(((byte)(102)))), ((int)(((byte)(163))))); this.area1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(68)))), ((int)(((byte)(102)))), ((int)(((byte)(163))))); this.area1.ColorEach = false; // // // this.area1.LinePen.Color = System.Drawing.Color.FromArgb(((int)(((byte)(41)))), ((int)(((byte)(61)))), ((int)(((byte)(98))))); // // // // // // this.area1.Marks.Callout.ArrowHead = Steema.TeeChart.Styles.ArrowHeadStyles.None; this.area1.Marks.Callout.ArrowHeadSize = 8; // // // this.area1.Marks.Callout.Brush.Color = System.Drawing.Color.Black; this.area1.Marks.Callout.Distance = 0; this.area1.Marks.Callout.Draw3D = false; this.area1.Marks.Callout.Length = 10; this.area1.Marks.Callout.Style = Steema.TeeChart.Styles.PointerStyles.Rectangle; this.area1.Marks.Callout.Visible = false; // // // this.area1.Pointer.Style = Steema.TeeChart.Styles.PointerStyles.Rectangle; this.area1.Title = "area1"; // // // this.area1.XValues.DataMember = "X"; this.area1.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; // // // this.area1.YValues.DataMember = "Y"; // // Area_SalesPrice // this.ClientSize = new System.Drawing.Size(440, 317); this.Name = "Area_SalesPrice"; 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.areaSeries1 = new Steema.TeeChart.Styles.Area(); this.areaSeries2 = new Steema.TeeChart.Styles.Area(); this.areaSeries3 = new Steema.TeeChart.Styles.Area(); this.checkBox1 = new System.Windows.Forms.CheckBox(); this.hScrollBar1 = new System.Windows.Forms.HScrollBar(); this.hScrollBar2 = new System.Windows.Forms.HScrollBar(); this.hScrollBar3 = new System.Windows.Forms.HScrollBar(); this.panel1.SuspendLayout(); this.SuspendLayout(); // // textBox1 // this.textBox1.Name = "textBox1"; this.textBox1.Size = new System.Drawing.Size(466, 73); this.textBox1.Text = "Area Series, when displayed in 2D mode, allows Transparency. Transparency is a nu" + "mber from 0 to 100 expressed in percent units.\r\n\r\nareaSeries1.Transparency = 45 " + ";"; // // panel1 // this.panel1.Controls.Add(this.hScrollBar3); this.panel1.Controls.Add(this.hScrollBar2); this.panel1.Controls.Add(this.hScrollBar1); this.panel1.Controls.Add(this.checkBox1); this.panel1.Name = "panel1"; this.panel1.Size = new System.Drawing.Size(466, 31); // // 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[] { "Area series transparency" }; // // tChart1.Legend // // // tChart1.Legend.Brush // this.tChart1.Legend.Brush.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(240)), ((System.Byte)(240)), ((System.Byte)(255))); // // tChart1.Legend.Pen // this.tChart1.Legend.Pen.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(134)), ((System.Byte)(134)), ((System.Byte)(134))); this.tChart1.Legend.Pen.Visible = false; // // tChart1.Legend.Shadow // this.tChart1.Legend.Shadow.Visible = false; 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))); // // tChart1.Panel.Gradient // this.tChart1.Panel.Brush.Gradient.Direction = System.Drawing.Drawing2D.LinearGradientMode.BackwardDiagonal; this.tChart1.Panel.Brush.Gradient.MiddleColor = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(224)), ((System.Byte)(224)), ((System.Byte)(224))); this.tChart1.Panel.Brush.Gradient.StartColor = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(192)), ((System.Byte)(192)), ((System.Byte)(192))); this.tChart1.Panel.Brush.Gradient.UseMiddle = true; this.tChart1.Panel.Brush.Gradient.Visible = true; // // tChart1.Panel.Gradient // this.tChart1.Panel.Gradient.Direction = System.Drawing.Drawing2D.LinearGradientMode.BackwardDiagonal; this.tChart1.Panel.Gradient.MiddleColor = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(224)), ((System.Byte)(224)), ((System.Byte)(224))); this.tChart1.Panel.Gradient.StartColor = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(192)), ((System.Byte)(192)), ((System.Byte)(192))); this.tChart1.Panel.Gradient.UseMiddle = true; this.tChart1.Panel.Gradient.Visible = true; this.tChart1.Series.Add(this.areaSeries1); this.tChart1.Series.Add(this.areaSeries2); this.tChart1.Series.Add(this.areaSeries3); this.tChart1.Size = new System.Drawing.Size(466, 182); // // areaSeries1 // // // areaSeries1.AreaBrush // this.areaSeries1.AreaBrush.Color = System.Drawing.Color.FromArgb(((System.Byte)(178)), ((System.Byte)(219)), ((System.Byte)(37)), ((System.Byte)(23))); // // areaSeries1.Gradient // this.areaSeries1.AreaBrush.Gradient.Transparency = 30; // // areaSeries1.AreaLines // this.areaSeries1.AreaLines.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(128)), ((System.Byte)(64)), ((System.Byte)(64))); // // areaSeries1.Brush // this.areaSeries1.Brush.Color = System.Drawing.Color.FromArgb(((System.Byte)(178)), ((System.Byte)(219)), ((System.Byte)(37)), ((System.Byte)(23))); // // areaSeries1.TopGradient // this.areaSeries1.Brush.Gradient.Transparency = 30; // // areaSeries1.Gradient // this.areaSeries1.Gradient.Transparency = 30; // // areaSeries1.LinePen // this.areaSeries1.LinePen.Visible = false; // // 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.TopGradient // this.areaSeries1.TopGradient.Transparency = 30; // // areaSeries1.XValues // this.areaSeries1.XValues.DataMember = "X"; this.areaSeries1.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; // // areaSeries1.YValues // this.areaSeries1.YValues.DataMember = "Y"; // // areaSeries2 // // // areaSeries2.AreaBrush // this.areaSeries2.AreaBrush.Color = System.Drawing.Color.FromArgb(((System.Byte)(178)), ((System.Byte)(1)), ((System.Byte)(43)), ((System.Byte)(81))); // // areaSeries2.Gradient // this.areaSeries2.AreaBrush.Gradient.Transparency = 30; // // areaSeries2.AreaLines // this.areaSeries2.AreaLines.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(0)), ((System.Byte)(0)), ((System.Byte)(64))); // // areaSeries2.Brush // this.areaSeries2.Brush.Color = System.Drawing.Color.FromArgb(((System.Byte)(178)), ((System.Byte)(1)), ((System.Byte)(43)), ((System.Byte)(81))); // // areaSeries2.TopGradient // this.areaSeries2.Brush.Gradient.Transparency = 30; // // areaSeries2.Gradient // this.areaSeries2.Gradient.Transparency = 30; // // areaSeries2.LinePen // this.areaSeries2.LinePen.Visible = false; // // areaSeries2.Marks // // // areaSeries2.Marks.Symbol // // // areaSeries2.Marks.Symbol.Shadow // this.areaSeries2.Marks.Symbol.Shadow.Height = 1; this.areaSeries2.Marks.Symbol.Shadow.Visible = true; this.areaSeries2.Marks.Symbol.Shadow.Width = 1; // // areaSeries2.Pointer // this.areaSeries2.Pointer.Style = Steema.TeeChart.Styles.PointerStyles.Rectangle; this.areaSeries2.Title = "areaSeries2"; // // areaSeries2.TopGradient // this.areaSeries2.TopGradient.Transparency = 30; // // areaSeries2.XValues // this.areaSeries2.XValues.DataMember = "X"; this.areaSeries2.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; // // areaSeries2.YValues // this.areaSeries2.YValues.DataMember = "Y"; // // areaSeries3 // // // areaSeries3.AreaBrush // this.areaSeries3.AreaBrush.Color = System.Drawing.Color.FromArgb(((System.Byte)(178)), ((System.Byte)(255)), ((System.Byte)(234)), ((System.Byte)(88))); // // areaSeries3.Gradient // this.areaSeries3.AreaBrush.Gradient.Transparency = 30; // // areaSeries3.AreaLines // this.areaSeries3.AreaLines.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(64)), ((System.Byte)(64)), ((System.Byte)(0))); // // areaSeries3.Brush // this.areaSeries3.Brush.Color = System.Drawing.Color.FromArgb(((System.Byte)(178)), ((System.Byte)(255)), ((System.Byte)(234)), ((System.Byte)(88))); // // areaSeries3.TopGradient // this.areaSeries3.Brush.Gradient.Transparency = 30; // // areaSeries3.Gradient // this.areaSeries3.Gradient.Transparency = 30; // // areaSeries3.LinePen // this.areaSeries3.LinePen.Visible = false; // // areaSeries3.Marks // // // areaSeries3.Marks.Symbol // // // areaSeries3.Marks.Symbol.Shadow // this.areaSeries3.Marks.Symbol.Shadow.Height = 1; this.areaSeries3.Marks.Symbol.Shadow.Visible = true; this.areaSeries3.Marks.Symbol.Shadow.Width = 1; // // areaSeries3.Pointer // this.areaSeries3.Pointer.Style = Steema.TeeChart.Styles.PointerStyles.Rectangle; this.areaSeries3.Title = "areaSeries3"; // // areaSeries3.TopGradient // this.areaSeries3.TopGradient.Transparency = 30; // // areaSeries3.XValues // this.areaSeries3.XValues.DataMember = "X"; this.areaSeries3.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; // // areaSeries3.YValues // this.areaSeries3.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, 7); this.checkBox1.Name = "checkBox1"; this.checkBox1.Size = new System.Drawing.Size(94, 21); this.checkBox1.TabIndex = 0; this.checkBox1.Text = "&Transparency"; this.checkBox1.CheckedChanged += new System.EventHandler(this.checkBox1_CheckedChanged); // // hScrollBar1 // this.hScrollBar1.Location = new System.Drawing.Point(120, 10); this.hScrollBar1.Name = "hScrollBar1"; this.hScrollBar1.Size = new System.Drawing.Size(100, 14); this.hScrollBar1.TabIndex = 1; this.hScrollBar1.Value = 30; this.hScrollBar1.ValueChanged += new System.EventHandler(this.hScrollBar1_ValueChanged); this.hScrollBar1.Scroll += new System.Windows.Forms.ScrollEventHandler(this.hScrollBar1_Scroll); // // hScrollBar2 // this.hScrollBar2.Location = new System.Drawing.Point(232, 10); this.hScrollBar2.Name = "hScrollBar2"; this.hScrollBar2.Size = new System.Drawing.Size(100, 14); this.hScrollBar2.TabIndex = 2; this.hScrollBar2.Value = 30; this.hScrollBar2.ValueChanged += new System.EventHandler(this.hScrollBar2_ValueChanged); // // hScrollBar3 // this.hScrollBar3.Location = new System.Drawing.Point(333, 10); this.hScrollBar3.Name = "hScrollBar3"; this.hScrollBar3.Size = new System.Drawing.Size(100, 14); this.hScrollBar3.TabIndex = 3; this.hScrollBar3.Value = 30; this.hScrollBar3.ValueChanged += new System.EventHandler(this.hScrollBar3_ValueChanged); // // Area_Transparency // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(466, 286); this.Name = "Area_Transparency"; 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(ColorBand_Transparent)); this.areaSeries1 = new Steema.TeeChart.Styles.Area(); this.colorBand1 = new Steema.TeeChart.Tools.ColorBand(); this.label1 = new System.Windows.Forms.Label(); this.trackBar1 = new System.Windows.Forms.TrackBar(); this.checkBox1 = new System.Windows.Forms.CheckBox(); this.checkBox2 = new System.Windows.Forms.CheckBox(); this.panel1.SuspendLayout(); this.chartContainer.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.trackBar1)).BeginInit(); this.SuspendLayout(); // // textBox1 // this.textBox1.Size = new System.Drawing.Size(466, 63); this.textBox1.Text = "Color Bands can also be shown with transparency, thus displaying the background u" + "nder the band.\r\n\r\nExample: colorBand1.Transparency = 60 ; <--- 60% "; // // panel1 // this.panel1.Controls.Add(this.checkBox2); this.panel1.Controls.Add(this.checkBox1); this.panel1.Controls.Add(this.trackBar1); this.panel1.Controls.Add(this.label1); this.panel1.Location = new System.Drawing.Point(0, 63); this.panel1.Size = new System.Drawing.Size(466, 41); // // tChart1 // // // // this.tChart1.Aspect.View3D = false; this.tChart1.Aspect.ZOffset = 0; this.tChart1.Cursor = System.Windows.Forms.Cursors.Default; // // // this.tChart1.Header.Lines = new string[] { "Color band transparency" }; // // // 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)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(192))))); 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)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); this.tChart1.Panel.Brush.Gradient.UseMiddle = false; this.tChart1.Series.Add(this.areaSeries1); this.tChart1.Size = new System.Drawing.Size(466, 182); this.tChart1.Tools.Add(this.colorBand1); // // chartContainer // this.chartContainer.Location = new System.Drawing.Point(0, 104); this.chartContainer.Size = new System.Drawing.Size(466, 182); // // areaSeries1 // // // // this.areaSeries1.AreaBrush.Color = System.Drawing.Color.FromArgb(((int)(((byte)(68)))), ((int)(((byte)(102)))), ((int)(((byte)(163))))); // // // this.areaSeries1.Gradient.StartColor = System.Drawing.Color.FromArgb(((int)(((byte)(68)))), ((int)(((byte)(102)))), ((int)(((byte)(163))))); // // // this.areaSeries1.AreaLines.Color = System.Drawing.Color.FromArgb(((int)(((byte)(41)))), ((int)(((byte)(61)))), ((int)(((byte)(98))))); // // // this.areaSeries1.Brush.Color = System.Drawing.Color.FromArgb(((int)(((byte)(68)))), ((int)(((byte)(102)))), ((int)(((byte)(163))))); this.areaSeries1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(68)))), ((int)(((byte)(102)))), ((int)(((byte)(163))))); this.areaSeries1.ColorEach = false; // // // this.areaSeries1.LinePen.Color = System.Drawing.Color.FromArgb(((int)(((byte)(41)))), ((int)(((byte)(61)))), ((int)(((byte)(98))))); // // // // // // this.areaSeries1.Marks.Callout.ArrowHead = Steema.TeeChart.Styles.ArrowHeadStyles.None; this.areaSeries1.Marks.Callout.ArrowHeadSize = 8; // // // this.areaSeries1.Marks.Callout.Brush.Color = System.Drawing.Color.Black; this.areaSeries1.Marks.Callout.Distance = 0; this.areaSeries1.Marks.Callout.Draw3D = false; this.areaSeries1.Marks.Callout.Length = 10; this.areaSeries1.Marks.Callout.Style = Steema.TeeChart.Styles.PointerStyles.Rectangle; this.areaSeries1.Marks.Callout.Visible = false; // // // this.areaSeries1.Pointer.Style = Steema.TeeChart.Styles.PointerStyles.Rectangle; this.areaSeries1.Title = "areaSeries1"; // // // this.areaSeries1.XValues.DataMember = "X"; this.areaSeries1.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; // // // this.areaSeries1.YValues.DataMember = "Y"; // // colorBand1 // this.colorBand1.Axis = this.tChart1.Axes.Left; // // // this.colorBand1.Brush.Color = System.Drawing.Color.FromArgb(((int)(((byte)(102)))), ((int)(((byte)(255)))), ((int)(((byte)(192)))), ((int)(((byte)(128))))); this.colorBand1.Brush.ForegroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(128)))), ((int)(((byte)(0))))); this.colorBand1.Brush.Solid = false; this.colorBand1.Brush.Style = System.Drawing.Drawing2D.HatchStyle.DarkDownwardDiagonal; this.colorBand1.DrawBehind = false; this.colorBand1.End = 100; this.colorBand1.ResizeEnd = false; this.colorBand1.ResizeStart = false; this.colorBand1.Start = 30; // // label1 // this.label1.AutoSize = true; this.label1.Location = new System.Drawing.Point(13, 11); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(75, 13); this.label1.TabIndex = 0; this.label1.Text = "&Transparency:"; this.label1.TextAlign = System.Drawing.ContentAlignment.TopRight; // // trackBar1 // this.trackBar1.AutoSize = false; this.trackBar1.Location = new System.Drawing.Point(100, 5); this.trackBar1.Maximum = 100; this.trackBar1.Name = "trackBar1"; this.trackBar1.Size = new System.Drawing.Size(147, 28); this.trackBar1.TabIndex = 1; this.trackBar1.TickFrequency = 5; this.trackBar1.Value = 60; this.trackBar1.Scroll += new System.EventHandler(this.trackBar1_Scroll); // // checkBox1 // this.checkBox1.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.checkBox1.Location = new System.Drawing.Point(260, 9); this.checkBox1.Name = "checkBox1"; this.checkBox1.Size = new System.Drawing.Size(92, 21); this.checkBox1.TabIndex = 2; this.checkBox1.Text = "&Draw behind"; 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(360, 9); this.checkBox2.Name = "checkBox2"; this.checkBox2.Size = new System.Drawing.Size(64, 21); this.checkBox2.TabIndex = 3; this.checkBox2.Text = "&3D"; this.checkBox2.CheckedChanged += new System.EventHandler(this.checkBox2_CheckedChanged); // // ColorBand_Transparent // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(466, 286); this.Name = "ColorBand_Transparent"; this.panel1.ResumeLayout(false); this.panel1.PerformLayout(); this.chartContainer.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.trackBar1)).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.areaSeries1 = new Steema.TeeChart.Styles.Area(); this.checkBox1 = new System.Windows.Forms.CheckBox(); this.buttonPen1 = new Steema.TeeChart.ButtonPen(); 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.Text = "All Axes can display a Minor Grid, that is, grid lines inside grid lines. The Min" + "orTickCount property controls the number of minor grid lines.\r\n\r\nthis.tChart1.Ax" + "es.Bottom.MinorGrid.Visible = true;\r\nthis.tChart1.Axes.Bottom.MinorTickCount = 3" + ";"; // // panel1 // this.panel1.BackColor = System.Drawing.SystemColors.Control; this.panel1.Controls.Add(this.buttonPen1); 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(630, 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.AxisPen // this.tChart1.Axes.Bottom.AxisPen.Width = 1; // // tChart1.Axes.Left // // // tChart1.Axes.Left.AxisPen // this.tChart1.Axes.Left.AxisPen.Width = 1; // // 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)(192)), ((System.Byte)(192)), ((System.Byte)(192))); this.tChart1.Header.Font.Shadow.Visible = true; this.tChart1.Header.Lines = new string[] { "Minor Grid" }; // // tChart1.Legend // this.tChart1.Legend.Alignment = Steema.TeeChart.LegendAlignments.Bottom; this.tChart1.Legend.Transparent = true; 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.areaSeries1); this.tChart1.Size = new System.Drawing.Size(630, 297); // // tChart1.Walls // // // tChart1.Walls.Back // // // tChart1.Walls.Back.Brush // this.tChart1.Walls.Back.Brush.Color = System.Drawing.Color.FromArgb(((System.Byte)(76)), ((System.Byte)(192)), ((System.Byte)(192)), ((System.Byte)(192))); // // tChart1.Walls.Back.Gradient // this.tChart1.Walls.Back.Brush.Gradient.Transparency = 70; // // tChart1.Walls.Back.Gradient // this.tChart1.Walls.Back.Gradient.Transparency = 70; // // tChart1.Walls.Back.Pen // this.tChart1.Walls.Back.Pen.Visible = false; this.tChart1.Walls.Back.Transparent = false; // // 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; // // areaSeries1 // // // areaSeries1.AreaBrush // this.areaSeries1.AreaBrush.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(255)), ((System.Byte)(0)), ((System.Byte)(0))); // // areaSeries1.AreaLines // this.areaSeries1.AreaLines.Visible = false; // // areaSeries1.Brush // this.areaSeries1.Brush.Color = System.Drawing.Color.Red; this.areaSeries1.ColorEach = true; // // areaSeries1.LinePen // this.areaSeries1.LinePen.Visible = false; // // areaSeries1.Pointer // this.areaSeries1.Pointer.Style = Steema.TeeChart.Styles.PointerStyles.Rectangle; this.areaSeries1.Title = "areaSeries1"; this.areaSeries1.UseOrigin = true; // // areaSeries1.XValues // this.areaSeries1.XValues.DataMember = "X"; this.areaSeries1.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; // // areaSeries1.YValues // this.areaSeries1.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(8, 8); this.checkBox1.Name = "checkBox1"; this.checkBox1.Size = new System.Drawing.Size(87, 21); this.checkBox1.TabIndex = 0; this.checkBox1.Text = "&Minor grid"; this.checkBox1.CheckedChanged += new System.EventHandler(this.checkBox1_CheckedChanged); // // buttonPen1 // this.buttonPen1.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.buttonPen1.Location = new System.Drawing.Point(120, 5); this.buttonPen1.Name = "buttonPen1"; this.buttonPen1.TabIndex = 1; this.buttonPen1.Text = "&Border..."; // // Axis_MinorGrid // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(630, 393); this.Name = "Axis_MinorGrid"; this.panel1.ResumeLayout(false); this.ResumeLayout(false); }
public override void ViewDidLoad() { base.ViewDidLoad(); //any additional setup after loading the view, typically from a nib. r1 = new System.Drawing.RectangleF(0, 0, (float)this.View.Bounds.Width / 2, (float)this.View.Bounds.Height / 2); r2 = new System.Drawing.RectangleF((float)this.View.Bounds.Width / 2, 0, (float)this.View.Bounds.Width / 2, (float)this.View.Bounds.Height / 2); r3 = new System.Drawing.RectangleF(0, (float)this.View.Bounds.Height / 2, (float)this.View.Bounds.Width, (float)this.View.Bounds.Height / 2); chart1.Frame = r1; chart2.Frame = r2; chart3.Frame = r3; chart1.Header.Visible = false; chart1.Legend.Visible = false; chart2.Header.Visible = false; chart3.Header.Visible = false; this.View.AddSubview(chart1); this.View.AddSubview(chart2); this.View.AddSubview(chart3); 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.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); // Chart 1 chart1.Panel.Gradient.Visible = false; chart1.Panel.Color = Color.Black; 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 = Color.FromArgb(144, 255, 255, 255); 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 = Color.Black; chart2.Walls.Back.Gradient.Visible = true; chart2.Walls.Back.Gradient.StartColor = Color.FromArgb(255, 0, 0, 0); chart2.Walls.Back.Gradient.EndColor = Color.DarkGray; 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 = Color.DarkGray; 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 = Color.Black; chart3.Walls.Back.Gradient.Visible = true; chart3.Walls.Back.Gradient.StartColor = Color.Black; chart3.Walls.Back.Gradient.EndColor = Color.FromArgb(255, 79, 79, 79); chart3.Axes.Left.Labels.Separation = 100; chart3.Axes.Left.Grid.Visible = true; chart3.Axes.Left.Grid.Color = Color.FromArgb(255, 79, 79, 79); chart3.Axes.Bottom.Grid.Color = Color.FromArgb(255, 79, 79, 79); 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 = Color.Yellow; Steema.TeeChart.Axis axis = chart3.Axes.Left; 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.StartPosition = 74; customAxis.EndPosition = 100; customAxis.Labels.Font.Color = Color.FromArgb(255, 255, 255, 240); 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.areaSeries1 = new Steema.TeeChart.Styles.Area(); this.checkBox1 = new System.Windows.Forms.CheckBox(); this.numericUpDown1 = new System.Windows.Forms.NumericUpDown(); this.label1 = new System.Windows.Forms.Label(); this.panel1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.numericUpDown1)).BeginInit(); this.SuspendLayout(); // // textBox1 // this.textBox1.Name = "textBox1"; this.textBox1.Size = new System.Drawing.Size(466, 64); this.textBox1.TabIndex = 0; this.textBox1.Text = "Area series can specify the \"Y Origin\". This is the Y value that defines the bott" + "om position for area points.\r\n\r\nExample: areaSeries1.UseOrigin=true ; Series1.O" + "rigin = 200 ;"; // // panel1 // this.panel1.Controls.Add(this.label1); this.panel1.Controls.Add(this.numericUpDown1); this.panel1.Controls.Add(this.checkBox1); this.panel1.Location = new System.Drawing.Point(0, 64); this.panel1.Name = "panel1"; this.panel1.Size = new System.Drawing.Size(466, 33); this.panel1.TabIndex = 1; // // tChart1 // // // tChart1.Aspect // this.tChart1.Aspect.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.HighQuality; this.tChart1.Aspect.TextRenderingHint = System.Drawing.Text.TextRenderingHint.ClearTypeGridFit; this.tChart1.Aspect.View3D = false; // // tChart1.Axes // // // tChart1.Axes.Bottom // // // tChart1.Axes.Bottom.AxisPen // this.tChart1.Axes.Bottom.AxisPen.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(64)), ((System.Byte)(64)), ((System.Byte)(64))); // // tChart1.Axes.Left // // // tChart1.Axes.Left.AxisPen // this.tChart1.Axes.Left.AxisPen.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(64)), ((System.Byte)(64)), ((System.Byte)(64))); // // tChart1.Header // this.tChart1.Header.Lines = new string[0]; // // 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))); // // tChart1.Panel.Gradient // 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.Visible = true; // // tChart1.Panel.Gradient // 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.Visible = true; this.tChart1.Series.Add(this.areaSeries1); this.tChart1.Size = new System.Drawing.Size(466, 189); this.tChart1.TabIndex = 2; // // tChart1.Walls // this.tChart1.Walls.Visible = false; // // areaSeries1 // // // areaSeries1.AreaBrush // this.areaSeries1.AreaBrush.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(255)), ((System.Byte)(0)), ((System.Byte)(0))); // // areaSeries1.Gradient // this.areaSeries1.AreaBrush.Gradient.StartColor = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(128))); this.areaSeries1.AreaBrush.Gradient.Visible = true; // // areaSeries1.AreaLines // this.areaSeries1.AreaLines.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(192)), ((System.Byte)(192)), ((System.Byte)(0))); // // areaSeries1.Brush // this.areaSeries1.Brush.Color = System.Drawing.Color.Red; // // areaSeries1.Gradient // this.areaSeries1.Gradient.StartColor = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(128))); this.areaSeries1.Gradient.Visible = true; // // areaSeries1.LinePen // this.areaSeries1.LinePen.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(128)), ((System.Byte)(128)), ((System.Byte)(0))); // // 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"; // // 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(87, 21); this.checkBox1.TabIndex = 0; this.checkBox1.Text = "&Use Origin"; this.checkBox1.CheckedChanged += new System.EventHandler(this.checkBox1_CheckedChanged); // // numericUpDown1 // this.numericUpDown1.Location = new System.Drawing.Point(153, 8); this.numericUpDown1.Maximum = new System.Decimal(new int[] { 30000, 0, 0, 0 }); this.numericUpDown1.Minimum = new System.Decimal(new int[] { 30000, 0, 0, -2147483648 }); this.numericUpDown1.Name = "numericUpDown1"; this.numericUpDown1.Size = new System.Drawing.Size(54, 20); this.numericUpDown1.TabIndex = 2; this.numericUpDown1.TextAlign = System.Windows.Forms.HorizontalAlignment.Right; this.numericUpDown1.TextChanged += new System.EventHandler(this.numericUpDown1_TextChanged); this.numericUpDown1.ValueChanged += new System.EventHandler(this.numericUpDown1_ValueChanged); // // label1 // this.label1.AutoSize = true; this.label1.Location = new System.Drawing.Point(111, 10); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(38, 16); this.label1.TabIndex = 1; this.label1.Text = "&Origin:"; this.label1.TextAlign = System.Drawing.ContentAlignment.TopRight; // // Area_Origin // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(466, 286); this.Name = "Area_Origin"; this.panel1.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.numericUpDown1)).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(Area_Gradient)); this.areaSeries1 = new Steema.TeeChart.Styles.Area(); this.button1 = new System.Windows.Forms.Button(); this.checkBox1 = new System.Windows.Forms.CheckBox(); this.trackBar1 = new System.Windows.Forms.TrackBar(); this.label1 = new System.Windows.Forms.Label(); this.cbGradRelative = new System.Windows.Forms.CheckBox(); this.panel1.SuspendLayout(); this.chartContainer.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.trackBar1)).BeginInit(); this.SuspendLayout(); // // textBox1 // this.textBox1.Size = new System.Drawing.Size(466, 63); this.textBox1.TabIndex = 0; this.textBox1.Text = resources.GetString("textBox1.Text"); // // panel1 // this.panel1.Controls.Add(this.cbGradRelative); this.panel1.Controls.Add(this.label1); this.panel1.Controls.Add(this.trackBar1); this.panel1.Controls.Add(this.checkBox1); this.panel1.Controls.Add(this.button1); this.panel1.Location = new System.Drawing.Point(0, 63); this.panel1.Size = new System.Drawing.Size(466, 33); this.panel1.TabIndex = 1; // // tChart1 // // // // this.tChart1.Aspect.View3D = false; this.tChart1.Aspect.ZOffset = 0; // // // this.tChart1.Header.Lines = new string[] { "Area series gradient & transparency" }; // // // // // // 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.BackwardDiagonal; this.tChart1.Series.Add(this.areaSeries1); this.tChart1.Size = new System.Drawing.Size(466, 190); this.tChart1.TabIndex = 2; // // chartContainer // this.chartContainer.Location = new System.Drawing.Point(0, 96); this.chartContainer.Size = new System.Drawing.Size(466, 190); // // areaSeries1 // // // // this.areaSeries1.AreaBrush.Color = System.Drawing.Color.FromArgb(((int)(((byte)(68)))), ((int)(((byte)(102)))), ((int)(((byte)(163))))); // // // this.areaSeries1.Gradient.StartColor = System.Drawing.Color.FromArgb(((int)(((byte)(68)))), ((int)(((byte)(102)))), ((int)(((byte)(163))))); // // // this.areaSeries1.AreaLines.Color = System.Drawing.Color.FromArgb(((int)(((byte)(41)))), ((int)(((byte)(61)))), ((int)(((byte)(98))))); // // // this.areaSeries1.Brush.Color = System.Drawing.Color.FromArgb(((int)(((byte)(68)))), ((int)(((byte)(102)))), ((int)(((byte)(163))))); this.areaSeries1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(68)))), ((int)(((byte)(102)))), ((int)(((byte)(163))))); this.areaSeries1.ColorEach = false; // // // this.areaSeries1.LinePen.Color = System.Drawing.Color.FromArgb(((int)(((byte)(41)))), ((int)(((byte)(61)))), ((int)(((byte)(98))))); // // // // // // this.areaSeries1.Marks.Callout.ArrowHead = Steema.TeeChart.Styles.ArrowHeadStyles.None; this.areaSeries1.Marks.Callout.ArrowHeadSize = 8; // // // this.areaSeries1.Marks.Callout.Brush.Color = System.Drawing.Color.Black; this.areaSeries1.Marks.Callout.Distance = 0; this.areaSeries1.Marks.Callout.Draw3D = false; this.areaSeries1.Marks.Callout.Length = 10; this.areaSeries1.Marks.Callout.Style = Steema.TeeChart.Styles.PointerStyles.Rectangle; this.areaSeries1.Marks.Callout.Visible = false; // // // this.areaSeries1.Pointer.Style = Steema.TeeChart.Styles.PointerStyles.Rectangle; this.areaSeries1.Title = "areaSeries1"; // // // this.areaSeries1.XValues.DataMember = "X"; this.areaSeries1.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; // // // this.areaSeries1.YValues.DataMember = "Y"; // // button1 // this.button1.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.button1.Location = new System.Drawing.Point(11, 5); this.button1.Name = "button1"; this.button1.Size = new System.Drawing.Size(85, 23); this.button1.TabIndex = 0; this.button1.Text = "&Edit gradient..."; this.button1.Click += new System.EventHandler(this.button1_Click); // // 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(102, 1); this.checkBox1.Name = "checkBox1"; this.checkBox1.Size = new System.Drawing.Size(119, 15); this.checkBox1.TabIndex = 1; this.checkBox1.Text = "&Gradient visible"; this.checkBox1.CheckedChanged += new System.EventHandler(this.checkBox1_CheckedChanged); // // trackBar1 // this.trackBar1.AutoSize = false; this.trackBar1.LargeChange = 10; this.trackBar1.Location = new System.Drawing.Point(276, 10); this.trackBar1.Maximum = 100; this.trackBar1.Name = "trackBar1"; this.trackBar1.Size = new System.Drawing.Size(127, 13); this.trackBar1.TabIndex = 3; this.trackBar1.TickFrequency = 5; this.trackBar1.ValueChanged += new System.EventHandler(this.trackBar1_ValueChanged); // // label1 // this.label1.AutoSize = true; this.label1.Location = new System.Drawing.Point(227, 10); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(43, 13); this.label1.TabIndex = 2; this.label1.Text = "&Transp:"; this.label1.TextAlign = System.Drawing.ContentAlignment.TopRight; // // cbGradRelative // this.cbGradRelative.Checked = true; this.cbGradRelative.CheckState = System.Windows.Forms.CheckState.Checked; this.cbGradRelative.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.cbGradRelative.Location = new System.Drawing.Point(102, 15); this.cbGradRelative.Name = "cbGradRelative"; this.cbGradRelative.Size = new System.Drawing.Size(119, 15); this.cbGradRelative.TabIndex = 4; this.cbGradRelative.Text = "Gradient &relative"; this.cbGradRelative.CheckedChanged += new System.EventHandler(this.cbGradRelative_CheckedChanged); // // Area_Gradient // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(466, 286); this.Name = "Area_Gradient"; this.panel1.ResumeLayout(false); this.panel1.PerformLayout(); this.chartContainer.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.trackBar1)).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() { System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Function_Trend)); this.area1 = new Steema.TeeChart.Styles.Area(); this.trendFunction1 = new Steema.TeeChart.Functions.TrendFunction(); this.line1 = new Steema.TeeChart.Styles.Line(); this.button1 = new System.Windows.Forms.Button(); this.comboBox1 = new System.Windows.Forms.ComboBox(); this.label1 = new System.Windows.Forms.Label(); this.panel1.SuspendLayout(); this.chartContainer.SuspendLayout(); this.SuspendLayout(); // // textBox1 // this.textBox1.Size = new System.Drawing.Size(440, 56); this.textBox1.Text = resources.GetString("textBox1.Text"); // // panel1 // this.panel1.Controls.Add(this.label1); this.panel1.Controls.Add(this.comboBox1); this.panel1.Controls.Add(this.button1); this.panel1.Location = new System.Drawing.Point(0, 56); // // tChart1 // // // // this.tChart1.Aspect.View3D = false; this.tChart1.Aspect.ZOffset = 0; // // // // // // this.tChart1.Header.Font.Bold = true; this.tChart1.Header.Font.Name = "Courier New"; this.tChart1.Header.Lines = new string[] { "Trendline example" }; // // // // // // 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.StartColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(192))))); this.tChart1.Series.Add(this.area1); this.tChart1.Series.Add(this.line1); this.tChart1.Size = new System.Drawing.Size(440, 222); // // chartContainer // this.chartContainer.Location = new System.Drawing.Point(0, 95); this.chartContainer.Size = new System.Drawing.Size(440, 222); // // area1 // // // // this.area1.AreaBrush.Color = System.Drawing.Color.FromArgb(((int)(((byte)(68)))), ((int)(((byte)(102)))), ((int)(((byte)(163))))); // // // this.area1.Gradient.StartColor = System.Drawing.Color.FromArgb(((int)(((byte)(68)))), ((int)(((byte)(102)))), ((int)(((byte)(163))))); this.area1.Gradient.Transparency = 20; // // // this.area1.AreaLines.Color = System.Drawing.Color.FromArgb(((int)(((byte)(41)))), ((int)(((byte)(61)))), ((int)(((byte)(98))))); // // // this.area1.Brush.Color = System.Drawing.Color.FromArgb(((int)(((byte)(68)))), ((int)(((byte)(102)))), ((int)(((byte)(163))))); this.area1.Brush.Visible = false; this.area1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(68)))), ((int)(((byte)(102)))), ((int)(((byte)(163))))); this.area1.ColorEach = false; // // // this.area1.LinePen.Color = System.Drawing.Color.FromArgb(((int)(((byte)(41)))), ((int)(((byte)(61)))), ((int)(((byte)(98))))); // // // // // // this.area1.Marks.Callout.ArrowHead = Steema.TeeChart.Styles.ArrowHeadStyles.None; this.area1.Marks.Callout.ArrowHeadSize = 8; // // // this.area1.Marks.Callout.Brush.Color = System.Drawing.Color.Black; this.area1.Marks.Callout.Distance = 0; this.area1.Marks.Callout.Draw3D = false; this.area1.Marks.Callout.Length = 10; this.area1.Marks.Callout.Style = Steema.TeeChart.Styles.PointerStyles.Rectangle; this.area1.Marks.Callout.Visible = false; // // // this.area1.Pointer.Style = Steema.TeeChart.Styles.PointerStyles.Rectangle; this.area1.Title = "Data"; // // // this.area1.XValues.DataMember = "X"; this.area1.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; // // // this.area1.YValues.DataMember = "Y"; // // 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.DataSource = this.area1; this.line1.Function = this.trendFunction1; // // // this.line1.LinePen.Color = System.Drawing.Color.FromArgb(((int)(((byte)(146)))), ((int)(((byte)(94)))), ((int)(((byte)(32))))); this.line1.LinePen.Style = System.Drawing.Drawing2D.DashStyle.DashDot; this.line1.LinePen.Width = 2; // // // // // // 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 = "Trendline"; // // // this.line1.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; // // button1 // this.button1.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.button1.Location = new System.Drawing.Point(16, 8); this.button1.Name = "button1"; this.button1.Size = new System.Drawing.Size(160, 23); this.button1.TabIndex = 0; this.button1.Text = "New random points"; this.button1.Click += new System.EventHandler(this.button1_Click); // // comboBox1 // this.comboBox1.Items.AddRange(new object[] { "Normal", "Exponential", "Logarithmic" }); this.comboBox1.Location = new System.Drawing.Point(280, 8); this.comboBox1.Name = "comboBox1"; this.comboBox1.Size = new System.Drawing.Size(121, 21); this.comboBox1.TabIndex = 1; this.comboBox1.Text = "comboBox1"; this.comboBox1.SelectedIndexChanged += new System.EventHandler(this.comboBox1_SelectedIndexChanged); // // label1 // this.label1.Location = new System.Drawing.Point(208, 8); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(72, 16); this.label1.TabIndex = 2; this.label1.Text = "Trend style:"; // // Function_Trend // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(440, 317); this.Name = "Function_Trend"; this.Load += new System.EventHandler(this.Function_Trend_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.components = new System.ComponentModel.Container(); this.groupBox1 = new System.Windows.Forms.GroupBox(); this.CBDrag = new System.Windows.Forms.CheckBox(); this.CBDelete = new System.Windows.Forms.CheckBox(); this.CBInsert = new System.Windows.Forms.CheckBox(); this.CBType = new System.Windows.Forms.CheckBox(); this.CBColor = new System.Windows.Forms.CheckBox(); this.pLeft = new System.Windows.Forms.Panel(); this.chartListBox1 = new Steema.TeeChart.ChartListBox(this.components); this.tChart1 = new Steema.TeeChart.TChart(); this.area1 = new Steema.TeeChart.Styles.Area(); this.bar1 = new Steema.TeeChart.Styles.Bar(); this.bubble1 = new Steema.TeeChart.Styles.Bubble(); this.line1 = new Steema.TeeChart.Styles.Line(); this.pRight = new System.Windows.Forms.Panel(); this.splitter1 = new System.Windows.Forms.Splitter(); this.panel1.SuspendLayout(); this.panel2.SuspendLayout(); this.groupBox1.SuspendLayout(); this.pLeft.SuspendLayout(); this.pRight.SuspendLayout(); this.SuspendLayout(); // // textBox1 // this.textBox1.Name = "textBox1"; this.textBox1.Text = @"The ChartListBox component now has additional properties to control if the end-user can change a Series type or Series color, if Series can be re-ordered by dragging, and if Series can be deleted pressing the Del key. Example: chartListBox1.EnableChangeColor=false; ChartListBox now also synchronizes when Series are added or deleted programatically"; // // panel1 // this.panel1.Controls.Add(this.groupBox1); this.panel1.Name = "panel1"; // // panel2 // this.panel2.Controls.Add(this.splitter1); this.panel2.Controls.Add(this.pRight); this.panel2.Controls.Add(this.pLeft); this.panel2.Name = "panel2"; // // groupBox1 // this.groupBox1.Controls.Add(this.CBDrag); this.groupBox1.Controls.Add(this.CBDelete); this.groupBox1.Controls.Add(this.CBInsert); this.groupBox1.Controls.Add(this.CBType); this.groupBox1.Controls.Add(this.CBColor); this.groupBox1.Location = new System.Drawing.Point(2, 1); this.groupBox1.Name = "groupBox1"; this.groupBox1.Size = new System.Drawing.Size(421, 39); this.groupBox1.TabIndex = 0; this.groupBox1.TabStop = false; this.groupBox1.Text = "Enable"; // // CBDrag // this.CBDrag.Checked = true; this.CBDrag.CheckState = System.Windows.Forms.CheckState.Checked; this.CBDrag.Location = new System.Drawing.Point(331, 14); this.CBDrag.Name = "CBDrag"; this.CBDrag.Size = new System.Drawing.Size(83, 19); this.CBDrag.TabIndex = 4; this.CBDrag.Text = "Drag Series"; this.CBDrag.Click += new System.EventHandler(this.CBDrag_Click); // // CBDelete // this.CBDelete.Checked = true; this.CBDelete.CheckState = System.Windows.Forms.CheckState.Checked; this.CBDelete.Location = new System.Drawing.Point(255, 14); this.CBDelete.Name = "CBDelete"; this.CBDelete.Size = new System.Drawing.Size(81, 19); this.CBDelete.TabIndex = 3; this.CBDelete.Text = "Delete Key"; this.CBDelete.Click += new System.EventHandler(this.CBDelete_Click); // // CBInsert // this.CBInsert.Checked = true; this.CBInsert.CheckState = System.Windows.Forms.CheckState.Checked; this.CBInsert.Location = new System.Drawing.Point(186, 14); this.CBInsert.Name = "CBInsert"; this.CBInsert.Size = new System.Drawing.Size(74, 19); this.CBInsert.TabIndex = 2; this.CBInsert.Text = "Insert Key"; this.CBInsert.Click += new System.EventHandler(this.CBInsert_Click); // // CBType // this.CBType.Checked = true; this.CBType.CheckState = System.Windows.Forms.CheckState.Checked; this.CBType.Location = new System.Drawing.Point(96, 14); this.CBType.Name = "CBType"; this.CBType.Size = new System.Drawing.Size(93, 19); this.CBType.TabIndex = 1; this.CBType.Text = "Change Type"; this.CBType.Click += new System.EventHandler(this.CBType_Click); // // CBColor // this.CBColor.Checked = true; this.CBColor.CheckState = System.Windows.Forms.CheckState.Checked; this.CBColor.Location = new System.Drawing.Point(8, 14); this.CBColor.Name = "CBColor"; this.CBColor.Size = new System.Drawing.Size(93, 19); this.CBColor.TabIndex = 0; this.CBColor.Text = "Change Color"; this.CBColor.Click += new System.EventHandler(this.CBColor_Click); // // pLeft // this.pLeft.BackColor = System.Drawing.Color.White; this.pLeft.Controls.Add(this.chartListBox1); this.pLeft.Dock = System.Windows.Forms.DockStyle.Left; this.pLeft.Location = new System.Drawing.Point(0, 0); this.pLeft.Name = "pLeft"; this.pLeft.Size = new System.Drawing.Size(176, 154); this.pLeft.TabIndex = 0; // // chartListBox1 // this.chartListBox1.AllowDrop = true; this.chartListBox1.Chart = this.tChart1; this.chartListBox1.Dock = System.Windows.Forms.DockStyle.Fill; this.chartListBox1.Location = new System.Drawing.Point(0, 0); this.chartListBox1.Name = "chartListBox1"; this.chartListBox1.OtherItems = null; this.chartListBox1.Size = new System.Drawing.Size(176, 148); this.chartListBox1.TabIndex = 0; // // tChart1 // // // tChart1.Aspect // this.tChart1.Aspect.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.HighQuality; this.tChart1.Aspect.TextRenderingHint = System.Drawing.Text.TextRenderingHint.ClearTypeGridFit; this.tChart1.BackColor = System.Drawing.Color.Red; this.tChart1.Dock = System.Windows.Forms.DockStyle.Fill; // // tChart1.Header // this.tChart1.Header.Lines = new string[] { "TeeChart" }; this.tChart1.Location = new System.Drawing.Point(0, 0); 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.FromArgb(((System.Byte)(254)), ((System.Byte)(225)), ((System.Byte)(225)), ((System.Byte)(255))); this.tChart1.Panel.Brush.Gradient.StartColor = 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)(225)), ((System.Byte)(225)), ((System.Byte)(255))); this.tChart1.Panel.Gradient.StartColor = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(255))); this.tChart1.Series.Add(this.area1); this.tChart1.Series.Add(this.bar1); this.tChart1.Series.Add(this.bubble1); this.tChart1.Series.Add(this.line1); this.tChart1.Size = new System.Drawing.Size(250, 154); this.tChart1.TabIndex = 0; // // 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; // // area1 // // // area1.AreaBrush // this.area1.AreaBrush.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(255)), ((System.Byte)(128)), ((System.Byte)(0))); // // area1.AreaLines // this.area1.AreaLines.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(153)), ((System.Byte)(77)), ((System.Byte)(0))); // // area1.Brush // this.area1.Brush.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(255)), ((System.Byte)(128)), ((System.Byte)(0))); // // area1.LinePen // this.area1.LinePen.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(153)), ((System.Byte)(77)), ((System.Byte)(0))); // // area1.Marks // // // area1.Marks.Font // // // area1.Marks.Font.Brush // this.area1.Marks.Font.Brush.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(64)), ((System.Byte)(0)), ((System.Byte)(0))); this.area1.Marks.Font.Size = 14; // // area1.Marks.Pen // this.area1.Marks.Pen.Visible = false; // // area1.Marks.Symbol // // // area1.Marks.Symbol.Shadow // this.area1.Marks.Symbol.Shadow.Height = 1; this.area1.Marks.Symbol.Shadow.Visible = true; this.area1.Marks.Symbol.Shadow.Width = 1; // // area1.Pointer // this.area1.Pointer.Style = Steema.TeeChart.Styles.PointerStyles.Rectangle; this.area1.Title = "area1"; // // area1.XValues // this.area1.XValues.DataMember = "X"; this.area1.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; // // area1.YValues // this.area1.YValues.DataMember = "Y"; // // bar1 // // // bar1.Brush // this.bar1.Brush.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(128))); // // bar1.Marks // // // bar1.Marks.Font // // // bar1.Marks.Font.Brush // this.bar1.Marks.Font.Brush.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(64)), ((System.Byte)(0)), ((System.Byte)(0))); this.bar1.Marks.Font.Size = 14; // // bar1.Marks.Pen // this.bar1.Marks.Pen.Visible = false; // // bar1.Marks.Symbol // // // bar1.Marks.Symbol.Shadow // this.bar1.Marks.Symbol.Shadow.Height = 1; this.bar1.Marks.Symbol.Shadow.Visible = true; this.bar1.Marks.Symbol.Shadow.Width = 1; this.bar1.Marks.Transparent = true; // // bar1.Pen // this.bar1.Pen.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(153)), ((System.Byte)(153)), ((System.Byte)(77))); this.bar1.Title = "bar2"; // // bar1.XValues // this.bar1.XValues.DataMember = "X"; this.bar1.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; // // bar1.YValues // this.bar1.YValues.DataMember = "Bar"; // // bubble1 // this.bubble1.ColorEach = false; this.bubble1.LabelMember = "Labels"; // // bubble1.LinePen // this.bubble1.LinePen.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(77)), ((System.Byte)(0)), ((System.Byte)(0))); // // bubble1.Marks // // // bubble1.Marks.Symbol // // // bubble1.Marks.Symbol.Shadow // this.bubble1.Marks.Symbol.Shadow.Height = 1; this.bubble1.Marks.Symbol.Shadow.Visible = true; this.bubble1.Marks.Symbol.Shadow.Width = 1; this.bubble1.Marks.Transparent = true; // // bubble1.Pointer // // // bubble1.Pointer.Brush // this.bubble1.Pointer.Brush.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(128)), ((System.Byte)(0)), ((System.Byte)(0))); this.bubble1.Pointer.InflateMargins = false; // // bubble1.Pointer.Pen // this.bubble1.Pointer.Pen.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(77)), ((System.Byte)(0)), ((System.Byte)(0))); this.bubble1.Pointer.Style = Steema.TeeChart.Styles.PointerStyles.Sphere; this.bubble1.Title = "bubble3"; // // bubble1.XValues // this.bubble1.XValues.DataMember = "X"; this.bubble1.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; // // bubble1.YValues // this.bubble1.YValues.DataMember = "Y"; // // line1 // // // line1.Brush // this.line1.Brush.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(0)), ((System.Byte)(0)), ((System.Byte)(64))); // // line1.LinePen // this.line1.LinePen.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(0)), ((System.Byte)(0)), ((System.Byte)(38))); // // 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 = "line4"; // // line1.XValues // this.line1.XValues.DataMember = "X"; this.line1.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; // // line1.YValues // this.line1.YValues.DataMember = "Y"; // // pRight // this.pRight.BackColor = System.Drawing.Color.White; this.pRight.Controls.Add(this.tChart1); this.pRight.Dock = System.Windows.Forms.DockStyle.Fill; this.pRight.Location = new System.Drawing.Point(176, 0); this.pRight.Name = "pRight"; this.pRight.Size = new System.Drawing.Size(250, 154); this.pRight.TabIndex = 1; // // splitter1 // this.splitter1.Location = new System.Drawing.Point(176, 0); this.splitter1.Name = "splitter1"; this.splitter1.Size = new System.Drawing.Size(3, 154); this.splitter1.TabIndex = 0; this.splitter1.TabStop = false; // // ChartListBoxEnable // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(426, 258); this.Name = "ChartListBoxEnable"; this.panel1.ResumeLayout(false); this.panel2.ResumeLayout(false); this.groupBox1.ResumeLayout(false); this.pLeft.ResumeLayout(false); this.pRight.ResumeLayout(false); this.ResumeLayout(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); 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); }
private void modifySeriesAppearance(int idx, MouseEventArgs e) { switch (e.Button) { // Cycle through line widths case MouseButtons.Left: if (this.tChart1.Series[idx] is Steema.TeeChart.Styles.Line) { int currWidth = (this.tChart1.Series[idx] as Steema.TeeChart.Styles.Line).LinePen.Width; int newWidth = currWidth + 1; if (newWidth > 5) { newWidth = 1; } (this.tChart1.Series[idx] as Steema.TeeChart.Styles.Line).LinePen.Width = newWidth; } break; // Cycle through line styles case MouseButtons.Right: var lineStyle = new List <System.Drawing.Drawing2D.DashStyle> { System.Drawing.Drawing2D.DashStyle.Dash, System.Drawing.Drawing2D.DashStyle.DashDot, System.Drawing.Drawing2D.DashStyle.DashDotDot, System.Drawing.Drawing2D.DashStyle.Dot, System.Drawing.Drawing2D.DashStyle.Solid }; if (this.tChart1.Series[idx] is Steema.TeeChart.Styles.Line) { int lineStyleIdx = lineStyle.IndexOf((this.tChart1.Series[idx] as Steema.TeeChart.Styles.Line).LinePen.Style) + 1; if (lineStyleIdx == lineStyle.Count) { lineStyleIdx = 0; } (this.tChart1.Series[idx] as Steema.TeeChart.Styles.Line).LinePen.Style = lineStyle[lineStyleIdx]; } break; // Nothing yet case MouseButtons.Middle: break; // Add area shading to line case MouseButtons.XButton1: if (this.tChart1.Series[idx] is Steema.TeeChart.Styles.Line) { var s = this.tChart1.Series[idx]; Steema.TeeChart.Styles.Area areaChart1 = new Steema.TeeChart.Styles.Area(); areaChart1.DataSource = s; areaChart1.VertAxis = s.VertAxis; areaChart1.HorizAxis = s.HorizAxis; areaChart1.AreaLines.Visible = false; areaChart1.AreaBrush.Solid = true; areaChart1.AreaBrush.Transparency = 100; areaChart1.Legend.Visible = false; tChart1.Chart.Series.Add(areaChart1); tChart1.Series.MoveTo(this.tChart1.Series[this.tChart1.Series.Count - 1], 0); } break; // Cycle through colors case MouseButtons.XButton2: if (idx != selIdx) { selIdx = idx; colorCounter = 0; } if (this.tChart1.Series[idx] is Steema.TeeChart.Styles.Line) { this.tChart1.Series[idx].Color = lineColors[colorCounter]; } if (this.tChart1.Series[idx] is Steema.TeeChart.Styles.Area) { this.tChart1.Series[idx].Color = fillColors[colorCounter]; } colorCounter++; if (colorCounter >= lineColors.Count()) { colorCounter = 0; } break; } }
public Page6() { // NavigationPage.SetHasNavigationBar(this, false); dashChart = new Chart(); dashChart.Aspect.View3D = false; Steema.TeeChart.Styles.Area area1 = new Steema.TeeChart.Styles.Area(); Steema.TeeChart.Styles.Area area2 = new Steema.TeeChart.Styles.Area(); dashChart.Series.Add(area1); dashChart.Series.Add(area2); area2.Transparency = 50; area1.Gradient.Visible = true; area2.Gradient.Visible = true; area1.AreaLinesPen.Visible = false; area2.AreaLinesPen.Visible = false; area1.LinePen.Color = Color.White; area1.LinePen.Width = 2; area2.LinePen.Color = Color.White; area2.LinePen.Width = 2; area1.Gradient.StartColor = Color.FromRgb(255, 255, 255); area1.Gradient.EndColor = Color.FromRgb(186, 85, 211); area2.Gradient.StartColor = Color.FromRgb(255, 255, 255); area2.Gradient.EndColor = Color.FromRgb(186, 85, 211); dashChart.Axes.Left.Visible = false; dashChart.Axes.Bottom.AxisPen.Color = Color.White; dashChart.Axes.Bottom.Labels.Font.Color = Color.White; Random rnd1 = new Random(); for (int i = 0; i < 40; i++) { area1.Add(rnd1.Next(100)); area2.Add(rnd1.Next(70)); } area1.Smoothed = true; area2.Smoothed = true; dashChart.Axes.Bottom.SetMinMax(10, 30); // Areas and Points dashChart.Panel.Color = Color.FromRgb(186, 85, 211); dashChart.Panel.Gradient.Visible = false; dashChart.Title.Text = "Areas and Points"; dashChart.Title.Alignment = TextAlignment.End; dashChart.Title.Font.Size = 12; dashChart.Title.Font.Color = Color.White; //dashBoard0.Title.Font.Name = ""; dashChart.Legend.Visible = false; dashChart.Walls.Back.Visible = false; DashView5 = new ChartView { VerticalOptions = LayoutOptions.FillAndExpand, HorizontalOptions = LayoutOptions.FillAndExpand, }; DashView5.Model = dashChart; Content = new StackLayout { Children = { DashView5 } }; }
/// <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() { this.checkBox1 = new System.Windows.Forms.CheckBox(); this.area1 = new Steema.TeeChart.Styles.Area(); this.area2 = new Steema.TeeChart.Styles.Area(); this.panel1.SuspendLayout(); this.SuspendLayout(); // // textBox1 // this.textBox1.Name = "textBox1"; this.textBox1.Size = new System.Drawing.Size(466, 56); this.textBox1.Text = "Area Series in \"Stair\" mode can set using :\r\n\r\narea1.Stairs=true; area2.Stairs=tr" + "ue;"; // // panel1 // this.panel1.Controls.Add(this.checkBox1); this.panel1.Location = new System.Drawing.Point(0, 56); this.panel1.Name = "panel1"; this.panel1.Size = new System.Drawing.Size(466, 31); // // 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.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; // // 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.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)(192)), ((System.Byte)(192)), ((System.Byte)(192))); this.tChart1.Header.Font.Shadow.Visible = false; this.tChart1.Header.Lines = new string[] { "Area series stairs" }; // // tChart1.Header.Shadow // this.tChart1.Header.Shadow.Visible = false; // // tChart1.Legend // // // tChart1.Legend.Brush // this.tChart1.Legend.Brush.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(240)), ((System.Byte)(240)), ((System.Byte)(255))); // // tChart1.Legend.Font // // // tChart1.Legend.Font.Shadow // this.tChart1.Legend.Font.Shadow.Visible = false; // // tChart1.Legend.Pen // this.tChart1.Legend.Pen.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(134)), ((System.Byte)(134)), ((System.Byte)(134))); this.tChart1.Legend.Pen.Visible = false; // // tChart1.Legend.Shadow // this.tChart1.Legend.Shadow.Visible = false; // // 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.Location = new System.Drawing.Point(0, 87); 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)(224)), ((System.Byte)(224)), ((System.Byte)(224))); this.tChart1.Panel.Brush.Gradient.SigmaFocus = 0.518F; 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)(224)), ((System.Byte)(224)), ((System.Byte)(224))); this.tChart1.Panel.Gradient.SigmaFocus = 0.518F; 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; // // tChart1.Panel.Shadow // this.tChart1.Panel.Shadow.Visible = false; this.tChart1.Series.Add(this.area1); this.tChart1.Series.Add(this.area2); this.tChart1.Size = new System.Drawing.Size(466, 199); // // 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; // // 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; // // 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, 7); this.checkBox1.Name = "checkBox1"; this.checkBox1.Size = new System.Drawing.Size(94, 21); this.checkBox1.TabIndex = 0; this.checkBox1.Text = "&Stairs"; this.checkBox1.CheckedChanged += new System.EventHandler(this.checkBox1_CheckedChanged); // // area1 // // // area1.AreaBrush // this.area1.AreaBrush.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(255)), ((System.Byte)(153)), ((System.Byte)(102))); // // area1.AreaLines // this.area1.AreaLines.Color = System.Drawing.Color.FromArgb(((System.Byte)(153)), ((System.Byte)(92)), ((System.Byte)(61))); // // area1.Brush // this.area1.Brush.Color = System.Drawing.Color.FromArgb(((System.Byte)(255)), ((System.Byte)(153)), ((System.Byte)(102))); // // area1.LinePen // this.area1.LinePen.Color = System.Drawing.Color.FromArgb(((System.Byte)(153)), ((System.Byte)(92)), ((System.Byte)(61))); // // area1.Marks // // // area1.Marks.Callout // this.area1.Marks.Callout.Arrow = this.area1.Marks.Arrow; this.area1.Marks.Callout.ArrowHead = Steema.TeeChart.Styles.ArrowHeadStyles.None; this.area1.Marks.Callout.ArrowHeadSize = 8; // // area1.Marks.Callout.Brush // 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; // // area1.Marks.Font // // // area1.Marks.Font.Shadow // this.area1.Marks.Font.Shadow.Visible = false; this.area1.MultiArea = Steema.TeeChart.Styles.MultiAreas.Stacked; // // area1.Pointer // this.area1.Pointer.Style = Steema.TeeChart.Styles.PointerStyles.Rectangle; this.area1.Stacked = Steema.TeeChart.Styles.CustomStack.Stack; this.area1.Title = "area1"; // // area1.XValues // this.area1.XValues.DataMember = "X"; this.area1.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; // // area1.YValues // this.area1.YValues.DataMember = "Y"; // // area2 // // // area2.AreaBrush // this.area2.AreaBrush.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(255)), ((System.Byte)(102)), ((System.Byte)(102))); // // area2.AreaLines // this.area2.AreaLines.Color = System.Drawing.Color.FromArgb(((System.Byte)(153)), ((System.Byte)(61)), ((System.Byte)(61))); // // area2.Brush // this.area2.Brush.Color = System.Drawing.Color.FromArgb(((System.Byte)(255)), ((System.Byte)(102)), ((System.Byte)(102))); // // area2.LinePen // this.area2.LinePen.Color = System.Drawing.Color.FromArgb(((System.Byte)(153)), ((System.Byte)(61)), ((System.Byte)(61))); // // area2.Marks // // // area2.Marks.Callout // this.area2.Marks.Callout.Arrow = this.area2.Marks.Arrow; this.area2.Marks.Callout.ArrowHead = Steema.TeeChart.Styles.ArrowHeadStyles.None; this.area2.Marks.Callout.ArrowHeadSize = 8; // // area2.Marks.Callout.Brush // this.area2.Marks.Callout.Brush.Color = System.Drawing.Color.Black; this.area2.Marks.Callout.Distance = 0; this.area2.Marks.Callout.Draw3D = false; this.area2.Marks.Callout.Length = 10; this.area2.Marks.Callout.Style = Steema.TeeChart.Styles.PointerStyles.Rectangle; // // area2.Marks.Font // // // area2.Marks.Font.Shadow // this.area2.Marks.Font.Shadow.Visible = false; this.area2.MultiArea = Steema.TeeChart.Styles.MultiAreas.Stacked; // // area2.Pointer // this.area2.Pointer.Style = Steema.TeeChart.Styles.PointerStyles.Rectangle; this.area2.Stacked = Steema.TeeChart.Styles.CustomStack.Stack; this.area2.Title = "area2"; // // area2.XValues // this.area2.XValues.DataMember = "X"; this.area2.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; // // area2.YValues // this.area2.YValues.DataMember = "Y"; // // Area_Stairs // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(466, 286); this.Name = "Area_Stairs"; 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.label1 = new System.Windows.Forms.Label(); this.comboBox1 = new System.Windows.Forms.ComboBox(); this.button1 = new System.Windows.Forms.Button(); this.checkBox1 = new System.Windows.Forms.CheckBox(); this.checkBox2 = new System.Windows.Forms.CheckBox(); this.areaSeries1 = new Steema.TeeChart.Styles.Area(); this.areaSeries2 = new Steema.TeeChart.Styles.Area(); this.areaSeries3 = new Steema.TeeChart.Styles.Area(); this.cBMarks = 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(466, 63); this.textBox1.Text = "The Area style allows single or multiple areas, with different layouts ( 3D, stac" + "ked, stacked 100% ).\r\nOptions include 2D and 3D, color-each-area, patterns, dark" + " 3D, bottom origin, stairs mode, marks, border, etc."; // // panel1 // this.panel1.Controls.Add(this.cBMarks); this.panel1.Controls.Add(this.checkBox2); this.panel1.Controls.Add(this.label1); this.panel1.Controls.Add(this.checkBox1); this.panel1.Controls.Add(this.button1); 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(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 // // // tChart1.Header.Font // // // tChart1.Header.Font.Brush // this.tChart1.Header.Font.Brush.Color = System.Drawing.Color.Black; this.tChart1.Header.Font.Name = "Microsoft Sans Serif"; this.tChart1.Header.Font.Size = 11; this.tChart1.Header.Lines = new string[] { "Area Series example" }; // // tChart1.Legend // // // tChart1.Legend.Pen // this.tChart1.Legend.Pen.Visible = false; // // tChart1.Legend.Shadow // this.tChart1.Legend.Shadow.Visible = false; 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.areaSeries1); this.tChart1.Series.Add(this.areaSeries2); this.tChart1.Series.Add(this.areaSeries3); this.tChart1.Size = new System.Drawing.Size(466, 182); this.tChart1.Tools.Add(this.gridBand1); // // tChart1.Walls // // // tChart1.Walls.Back // // // 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))); // // tChart1.Walls.Bottom // // // tChart1.Walls.Bottom.Pen // this.tChart1.Walls.Bottom.Pen.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(192)), ((System.Byte)(192)), ((System.Byte)(192))); 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.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(192)), ((System.Byte)(192)), ((System.Byte)(192))); this.tChart1.Walls.Left.Pen.Visible = false; this.tChart1.Walls.Left.Size = 5; // // label1 // this.label1.AutoSize = true; this.label1.Location = new System.Drawing.Point(9, 10); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(44, 16); this.label1.TabIndex = 2; this.label1.Text = "&Layout :"; this.label1.TextAlign = System.Drawing.ContentAlignment.TopRight; // // comboBox1 // this.comboBox1.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.comboBox1.Items.AddRange(new object[] { "3D", "Stacked", "Stacked 100%" }); this.comboBox1.Location = new System.Drawing.Point(53, 8); this.comboBox1.Name = "comboBox1"; this.comboBox1.Size = new System.Drawing.Size(94, 21); this.comboBox1.TabIndex = 3; this.comboBox1.SelectedIndexChanged += new System.EventHandler(this.comboBox1_SelectedIndexChanged); // // button1 // this.button1.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.button1.Location = new System.Drawing.Point(368, 8); this.button1.Name = "button1"; this.button1.TabIndex = 5; this.button1.Text = "&Edit..."; this.button1.Click += new System.EventHandler(this.button1_Click); // // checkBox1 // this.checkBox1.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.checkBox1.Location = new System.Drawing.Point(160, 11); this.checkBox1.Name = "checkBox1"; this.checkBox1.Size = new System.Drawing.Size(53, 14); this.checkBox1.TabIndex = 6; this.checkBox1.Text = "&Stairs"; 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(220, 11); this.checkBox2.Name = "checkBox2"; this.checkBox2.Size = new System.Drawing.Size(46, 14); this.checkBox2.TabIndex = 7; this.checkBox2.Text = "&3D"; this.checkBox2.CheckedChanged += new System.EventHandler(this.checkBox2_CheckedChanged); // // areaSeries1 // // // areaSeries1.AreaBrush // this.areaSeries1.AreaBrush.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(1)), ((System.Byte)(43)), ((System.Byte)(81))); // // areaSeries1.Gradient // this.areaSeries1.AreaBrush.Gradient.EndColor = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(1)), ((System.Byte)(11)), ((System.Byte)(49))); this.areaSeries1.AreaBrush.Gradient.StartColor = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(1)), ((System.Byte)(43)), ((System.Byte)(81))); this.areaSeries1.AreaBrush.Gradient.Visible = true; // // areaSeries1.AreaLines // this.areaSeries1.AreaLines.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(2)), ((System.Byte)(9)), ((System.Byte)(32))); // // areaSeries1.Brush // this.areaSeries1.Brush.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(1)), ((System.Byte)(43)), ((System.Byte)(81))); // // areaSeries1.TopGradient // this.areaSeries1.Brush.Gradient.StartColor = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(1)), ((System.Byte)(43)), ((System.Byte)(81))); // // areaSeries1.Gradient // this.areaSeries1.Gradient.EndColor = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(1)), ((System.Byte)(11)), ((System.Byte)(49))); this.areaSeries1.Gradient.StartColor = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(1)), ((System.Byte)(43)), ((System.Byte)(81))); this.areaSeries1.Gradient.Visible = true; // // areaSeries1.LinePen // this.areaSeries1.LinePen.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(2)), ((System.Byte)(9)), ((System.Byte)(32))); // // areaSeries1.Marks // // // areaSeries1.Marks.Arrow // this.areaSeries1.Marks.Arrow.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(128)), ((System.Byte)(128)), ((System.Byte)(128))); // // areaSeries1.Marks.Brush // this.areaSeries1.Marks.Brush.Color = System.Drawing.Color.FromArgb(((System.Byte)(211)), ((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(224))); // // areaSeries1.Marks.Gradient // this.areaSeries1.Marks.Brush.Gradient.Transparency = 17; // // areaSeries1.Marks.Gradient // this.areaSeries1.Marks.Gradient.Transparency = 17; // // areaSeries1.Marks.Pen // this.areaSeries1.Marks.Pen.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(128)), ((System.Byte)(128)), ((System.Byte)(128))); // // areaSeries1.Marks.Shadow // this.areaSeries1.Marks.Shadow.Visible = false; // // 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 = "area1"; // // areaSeries1.TopGradient // this.areaSeries1.TopGradient.StartColor = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(1)), ((System.Byte)(43)), ((System.Byte)(81))); // // areaSeries1.XValues // this.areaSeries1.XValues.DataMember = "X"; this.areaSeries1.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; // // areaSeries1.YValues // this.areaSeries1.YValues.DataMember = "Y"; // // areaSeries2 // // // areaSeries2.AreaBrush // this.areaSeries2.AreaBrush.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(219)), ((System.Byte)(37)), ((System.Byte)(23))); // // areaSeries2.Gradient // this.areaSeries2.AreaBrush.Gradient.EndColor = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(187)), ((System.Byte)(5)), ((System.Byte)(0))); this.areaSeries2.AreaBrush.Gradient.StartColor = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(219)), ((System.Byte)(37)), ((System.Byte)(23))); this.areaSeries2.AreaBrush.Gradient.Visible = true; // // areaSeries2.AreaLines // this.areaSeries2.AreaLines.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(148)), ((System.Byte)(26)), ((System.Byte)(16))); // // areaSeries2.Brush // this.areaSeries2.Brush.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(219)), ((System.Byte)(37)), ((System.Byte)(23))); // // areaSeries2.Gradient // this.areaSeries2.Gradient.EndColor = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(187)), ((System.Byte)(5)), ((System.Byte)(0))); this.areaSeries2.Gradient.StartColor = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(219)), ((System.Byte)(37)), ((System.Byte)(23))); this.areaSeries2.Gradient.Visible = true; // // areaSeries2.LinePen // this.areaSeries2.LinePen.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(148)), ((System.Byte)(26)), ((System.Byte)(15))); // // areaSeries2.Marks // // // areaSeries2.Marks.Arrow // this.areaSeries2.Marks.Arrow.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(128)), ((System.Byte)(128)), ((System.Byte)(128))); // // areaSeries2.Marks.Brush // this.areaSeries2.Marks.Brush.Color = System.Drawing.Color.FromArgb(((System.Byte)(211)), ((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(224))); // // areaSeries2.Marks.Gradient // this.areaSeries2.Marks.Brush.Gradient.Transparency = 17; // // areaSeries2.Marks.Gradient // this.areaSeries2.Marks.Gradient.Transparency = 17; // // areaSeries2.Marks.Pen // this.areaSeries2.Marks.Pen.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(192)), ((System.Byte)(192)), ((System.Byte)(192))); // // areaSeries2.Marks.Shadow // this.areaSeries2.Marks.Shadow.Visible = false; // // areaSeries2.Marks.Symbol // // // areaSeries2.Marks.Symbol.Shadow // this.areaSeries2.Marks.Symbol.Shadow.Height = 1; this.areaSeries2.Marks.Symbol.Shadow.Visible = true; this.areaSeries2.Marks.Symbol.Shadow.Width = 1; // // areaSeries2.Pointer // this.areaSeries2.Pointer.Style = Steema.TeeChart.Styles.PointerStyles.Rectangle; this.areaSeries2.Title = "area2"; // // areaSeries2.XValues // this.areaSeries2.XValues.DataMember = "X"; this.areaSeries2.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; // // areaSeries2.YValues // this.areaSeries2.YValues.DataMember = "Y"; // // areaSeries3 // // // areaSeries3.AreaBrush // this.areaSeries3.AreaBrush.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(255)), ((System.Byte)(234)), ((System.Byte)(88))); // // areaSeries3.Gradient // this.areaSeries3.AreaBrush.Gradient.EndColor = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(223)), ((System.Byte)(202)), ((System.Byte)(56))); this.areaSeries3.AreaBrush.Gradient.StartColor = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(255)), ((System.Byte)(234)), ((System.Byte)(88))); this.areaSeries3.AreaBrush.Gradient.Visible = true; // // areaSeries3.AreaLines // this.areaSeries3.AreaLines.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(206)), ((System.Byte)(186)), ((System.Byte)(0))); // // areaSeries3.Brush // this.areaSeries3.Brush.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(255)), ((System.Byte)(234)), ((System.Byte)(88))); // // areaSeries3.Gradient // this.areaSeries3.Gradient.EndColor = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(223)), ((System.Byte)(202)), ((System.Byte)(56))); this.areaSeries3.Gradient.StartColor = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(255)), ((System.Byte)(234)), ((System.Byte)(88))); this.areaSeries3.Gradient.Visible = true; // // areaSeries3.LinePen // this.areaSeries3.LinePen.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(206)), ((System.Byte)(186)), ((System.Byte)(0))); // // areaSeries3.Marks // // // areaSeries3.Marks.Arrow // this.areaSeries3.Marks.Arrow.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(128)), ((System.Byte)(128)), ((System.Byte)(128))); // // areaSeries3.Marks.Brush // this.areaSeries3.Marks.Brush.Color = System.Drawing.Color.FromArgb(((System.Byte)(211)), ((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(224))); // // areaSeries3.Marks.Gradient // this.areaSeries3.Marks.Brush.Gradient.Transparency = 17; // // areaSeries3.Marks.Gradient // this.areaSeries3.Marks.Gradient.Transparency = 17; // // areaSeries3.Marks.Pen // this.areaSeries3.Marks.Pen.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(192)), ((System.Byte)(192)), ((System.Byte)(192))); // // areaSeries3.Marks.Shadow // this.areaSeries3.Marks.Shadow.Visible = false; // // areaSeries3.Marks.Symbol // // // areaSeries3.Marks.Symbol.Shadow // this.areaSeries3.Marks.Symbol.Shadow.Height = 1; this.areaSeries3.Marks.Symbol.Shadow.Visible = true; this.areaSeries3.Marks.Symbol.Shadow.Width = 1; // // areaSeries3.Pointer // this.areaSeries3.Pointer.Style = Steema.TeeChart.Styles.PointerStyles.Rectangle; this.areaSeries3.Title = "area3"; // // areaSeries3.XValues // this.areaSeries3.XValues.DataMember = "X"; this.areaSeries3.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; // // areaSeries3.YValues // this.areaSeries3.YValues.DataMember = "Y"; // // cBMarks // this.cBMarks.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.cBMarks.Location = new System.Drawing.Point(273, 10); this.cBMarks.Name = "cBMarks"; this.cBMarks.Size = new System.Drawing.Size(87, 16); this.cBMarks.TabIndex = 8; this.cBMarks.Text = "Show &Marks"; this.cBMarks.CheckedChanged += new System.EventHandler(this.cBMarks_CheckedChanged); // // gridBand1 // this.gridBand1.Axis = this.tChart1.Axes.Left; // // gridBand1.Band1 // this.gridBand1.Band1.Color = System.Drawing.Color.FromArgb(((System.Byte)(76)), ((System.Byte)(128)), ((System.Byte)(128)), ((System.Byte)(0))); // // gridBand1.Band2 // this.gridBand1.Band2.Color = System.Drawing.Color.FromArgb(((System.Byte)(102)), ((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(255))); // // SeriesType_Area // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(466, 286); this.Name = "SeriesType_Area"; this.Load += new System.EventHandler(this.SeriesType_Area_Load); this.panel1.ResumeLayout(false); this.ResumeLayout(false); }