/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.donut1 = new Steema.TeeChart.Styles.Donut(); this.checkBox1 = new System.Windows.Forms.CheckBox(); this.hScrollBar1 = new System.Windows.Forms.HScrollBar(); this.label1 = new System.Windows.Forms.Label(); this.panel1.SuspendLayout(); this.SuspendLayout(); // // textBox1 // this.textBox1.Name = "textBox1"; this.textBox1.Text = "Each pie or donut series slice can be displayed using a different height, \r\nas pe" + "rcentage of Chart1.Chart3DPercent. Default is 100 %.\r\n\r\ndonut1.SliceHeight[3] =" + " 50; // slice index 3, using a 50% of 3D height."; // // panel1 // this.panel1.Controls.Add(this.label1); this.panel1.Controls.Add(this.hScrollBar1); this.panel1.Controls.Add(this.checkBox1); this.panel1.Name = "panel1"; // // tChart1 // // // tChart1.Aspect // this.tChart1.Aspect.Chart3DPercent = 55; this.tChart1.Aspect.Elevation = 315; this.tChart1.Aspect.Orthogonal = false; this.tChart1.Aspect.Perspective = 0; this.tChart1.Aspect.Rotation = 360; this.tChart1.Aspect.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.HighQuality; this.tChart1.Aspect.TextRenderingHint = System.Drawing.Text.TextRenderingHint.ClearTypeGridFit; this.tChart1.Aspect.ThemeIndex = 4; // // tChart1.Axes // // // tChart1.Axes.Bottom // // // tChart1.Axes.Bottom.Grid // this.tChart1.Axes.Bottom.Grid.Color = System.Drawing.Color.FromArgb(((System.Byte)(196)), ((System.Byte)(196)), ((System.Byte)(196))); this.tChart1.Axes.Bottom.Grid.Style = System.Drawing.Drawing2D.DashStyle.Solid; this.tChart1.Axes.Bottom.Grid.Visible = false; // // tChart1.Axes.Bottom.Labels // // // tChart1.Axes.Bottom.Labels.Font // this.tChart1.Axes.Bottom.Labels.Font.Bold = true; this.tChart1.Axes.Bottom.Labels.Font.Name = "Lucida Console"; this.tChart1.Axes.Bottom.Labels.Font.Size = 10; // // tChart1.Axes.Bottom.MinorGrid // this.tChart1.Axes.Bottom.MinorGrid.Color = System.Drawing.Color.FromArgb(((System.Byte)(229)), ((System.Byte)(229)), ((System.Byte)(229))); // // tChart1.Axes.Bottom.MinorTicks // this.tChart1.Axes.Bottom.MinorTicks.Color = System.Drawing.Color.Black; this.tChart1.Axes.Bottom.MinorTicks.Length = -3; // // tChart1.Axes.Bottom.Ticks // this.tChart1.Axes.Bottom.Ticks.Color = System.Drawing.Color.Black; this.tChart1.Axes.Bottom.Ticks.Length = 0; // // tChart1.Axes.Bottom.TicksInner // this.tChart1.Axes.Bottom.TicksInner.Color = System.Drawing.Color.Black; this.tChart1.Axes.Bottom.TicksInner.Length = 6; // // tChart1.Axes.Depth // // // tChart1.Axes.Depth.Grid // this.tChart1.Axes.Depth.Grid.Color = System.Drawing.Color.FromArgb(((System.Byte)(196)), ((System.Byte)(196)), ((System.Byte)(196))); this.tChart1.Axes.Depth.Grid.Style = System.Drawing.Drawing2D.DashStyle.Solid; // // tChart1.Axes.Depth.Labels // // // tChart1.Axes.Depth.Labels.Font // this.tChart1.Axes.Depth.Labels.Font.Name = "Lucida Console"; this.tChart1.Axes.Depth.Labels.Font.Size = 10; // // tChart1.Axes.Depth.MinorTicks // this.tChart1.Axes.Depth.MinorTicks.Color = System.Drawing.Color.Black; this.tChart1.Axes.Depth.MinorTicks.Length = -3; // // tChart1.Axes.Depth.Ticks // this.tChart1.Axes.Depth.Ticks.Color = System.Drawing.Color.Black; this.tChart1.Axes.Depth.Ticks.Length = 0; // // tChart1.Axes.Depth.TicksInner // this.tChart1.Axes.Depth.TicksInner.Color = System.Drawing.Color.Black; this.tChart1.Axes.Depth.TicksInner.Length = 6; // // tChart1.Axes.Left // // // tChart1.Axes.Left.Grid // this.tChart1.Axes.Left.Grid.Color = System.Drawing.Color.FromArgb(((System.Byte)(196)), ((System.Byte)(196)), ((System.Byte)(196))); this.tChart1.Axes.Left.Grid.Style = System.Drawing.Drawing2D.DashStyle.Solid; // // tChart1.Axes.Left.Labels // // // tChart1.Axes.Left.Labels.Font // this.tChart1.Axes.Left.Labels.Font.Bold = true; this.tChart1.Axes.Left.Labels.Font.Name = "Lucida Console"; this.tChart1.Axes.Left.Labels.Font.Size = 10; // // tChart1.Axes.Left.MinorTicks // this.tChart1.Axes.Left.MinorTicks.Color = System.Drawing.Color.Black; this.tChart1.Axes.Left.MinorTicks.Length = -3; // // tChart1.Axes.Left.Ticks // this.tChart1.Axes.Left.Ticks.Color = System.Drawing.Color.Black; this.tChart1.Axes.Left.Ticks.Length = 0; // // tChart1.Axes.Left.TicksInner // this.tChart1.Axes.Left.TicksInner.Color = System.Drawing.Color.Black; this.tChart1.Axes.Left.TicksInner.Length = 6; // // tChart1.Axes.Right // // // tChart1.Axes.Right.Grid // this.tChart1.Axes.Right.Grid.Color = System.Drawing.Color.FromArgb(((System.Byte)(196)), ((System.Byte)(196)), ((System.Byte)(196))); this.tChart1.Axes.Right.Grid.Style = System.Drawing.Drawing2D.DashStyle.Solid; // // tChart1.Axes.Right.Labels // // // tChart1.Axes.Right.Labels.Font // this.tChart1.Axes.Right.Labels.Font.Name = "Lucida Console"; this.tChart1.Axes.Right.Labels.Font.Size = 10; // // tChart1.Axes.Right.MinorTicks // this.tChart1.Axes.Right.MinorTicks.Color = System.Drawing.Color.Black; this.tChart1.Axes.Right.MinorTicks.Length = -3; // // tChart1.Axes.Right.Ticks // this.tChart1.Axes.Right.Ticks.Color = System.Drawing.Color.Black; this.tChart1.Axes.Right.Ticks.Length = 0; // // tChart1.Axes.Right.TicksInner // this.tChart1.Axes.Right.TicksInner.Color = System.Drawing.Color.Black; this.tChart1.Axes.Right.TicksInner.Length = 6; // // tChart1.Axes.Top // // // tChart1.Axes.Top.Grid // this.tChart1.Axes.Top.Grid.Color = System.Drawing.Color.FromArgb(((System.Byte)(196)), ((System.Byte)(196)), ((System.Byte)(196))); this.tChart1.Axes.Top.Grid.Style = System.Drawing.Drawing2D.DashStyle.Solid; this.tChart1.Axes.Top.Grid.Visible = false; // // tChart1.Axes.Top.Labels // // // tChart1.Axes.Top.Labels.Font // this.tChart1.Axes.Top.Labels.Font.Name = "Lucida Console"; this.tChart1.Axes.Top.Labels.Font.Size = 10; // // tChart1.Axes.Top.MinorTicks // this.tChart1.Axes.Top.MinorTicks.Color = System.Drawing.Color.Black; this.tChart1.Axes.Top.MinorTicks.Length = -3; // // tChart1.Axes.Top.Ticks // this.tChart1.Axes.Top.Ticks.Color = System.Drawing.Color.Black; this.tChart1.Axes.Top.Ticks.Length = 0; // // tChart1.Axes.Top.TicksInner // this.tChart1.Axes.Top.TicksInner.Color = System.Drawing.Color.Black; this.tChart1.Axes.Top.TicksInner.Length = 6; // // tChart1.Header // // // tChart1.Header.Brush // this.tChart1.Header.Brush.Color = System.Drawing.Color.White; // // tChart1.Header.Gradient // this.tChart1.Header.Brush.Gradient.EndColor = System.Drawing.Color.Gray; this.tChart1.Header.Brush.Gradient.MiddleColor = System.Drawing.Color.Empty; this.tChart1.Header.Brush.Gradient.StartColor = System.Drawing.Color.White; this.tChart1.Header.Brush.Gradient.Visible = true; // // tChart1.Header.Font // this.tChart1.Header.Font.Bold = true; // // tChart1.Header.Font.Brush // this.tChart1.Header.Font.Brush.Color = System.Drawing.Color.Black; this.tChart1.Header.Font.Name = "Lucida Console"; this.tChart1.Header.Font.Size = 10; // // tChart1.Header.Gradient // this.tChart1.Header.Gradient.EndColor = System.Drawing.Color.Gray; this.tChart1.Header.Gradient.MiddleColor = System.Drawing.Color.Empty; this.tChart1.Header.Gradient.StartColor = System.Drawing.Color.White; this.tChart1.Header.Gradient.Visible = true; this.tChart1.Header.Lines = new string[] { "TeeChart" }; // // tChart1.Header.Pen // this.tChart1.Header.Pen.Width = 2; // // tChart1.Header.Shadow // // // tChart1.Header.Shadow.Brush // this.tChart1.Header.Shadow.Brush.Color = System.Drawing.Color.FromArgb(((System.Byte)(76)), ((System.Byte)(169)), ((System.Byte)(169)), ((System.Byte)(169))); this.tChart1.Header.Shadow.Height = 4; this.tChart1.Header.Shadow.Width = 4; // // tChart1.Legend // // // tChart1.Legend.Brush // // // tChart1.Legend.Gradient // this.tChart1.Legend.Brush.Gradient.EndColor = System.Drawing.Color.Yellow; this.tChart1.Legend.Brush.Gradient.MiddleColor = System.Drawing.Color.Empty; this.tChart1.Legend.Brush.Gradient.StartColor = System.Drawing.Color.White; // // tChart1.Legend.DividingLines // this.tChart1.Legend.DividingLines.Color = System.Drawing.Color.Silver; // // tChart1.Legend.Font // // // tChart1.Legend.Font.Brush // this.tChart1.Legend.Font.Brush.Color = System.Drawing.Color.FromArgb(((System.Byte)(100)), ((System.Byte)(0)), ((System.Byte)(0))); this.tChart1.Legend.Font.Name = "Lucida Console"; this.tChart1.Legend.Font.Size = 9; // // tChart1.Legend.Gradient // this.tChart1.Legend.Gradient.EndColor = System.Drawing.Color.Yellow; this.tChart1.Legend.Gradient.MiddleColor = System.Drawing.Color.Empty; this.tChart1.Legend.Gradient.StartColor = System.Drawing.Color.White; // // tChart1.Legend.Shadow // // // tChart1.Legend.Shadow.Brush // this.tChart1.Legend.Shadow.Brush.Color = System.Drawing.Color.DarkGray; // // tChart1.Legend.Symbol // // // tChart1.Legend.Symbol.Pen // this.tChart1.Legend.Symbol.Pen.Visible = false; this.tChart1.Legend.Symbol.Squared = true; this.tChart1.Legend.Transparent = true; this.tChart1.Legend.Visible = false; this.tChart1.Name = "tChart1"; // // tChart1.Panel // // // tChart1.Panel.Bevel // this.tChart1.Panel.Bevel.Outer = Steema.TeeChart.Drawing.BevelStyles.None; // // tChart1.Panel.Brush // this.tChart1.Panel.Brush.Color = System.Drawing.Color.FromArgb(((System.Byte)(196)), ((System.Byte)(196)), ((System.Byte)(196))); // // tChart1.Panel.Gradient // this.tChart1.Panel.Brush.Gradient.EndColor = System.Drawing.Color.Yellow; this.tChart1.Panel.Brush.Gradient.MiddleColor = System.Drawing.Color.Empty; this.tChart1.Panel.Brush.Gradient.StartColor = System.Drawing.Color.White; // // tChart1.Panel.Gradient // this.tChart1.Panel.Gradient.EndColor = System.Drawing.Color.Yellow; this.tChart1.Panel.Gradient.MiddleColor = System.Drawing.Color.Empty; this.tChart1.Panel.Gradient.StartColor = System.Drawing.Color.White; // // tChart1.Panel.Pen // this.tChart1.Panel.Pen.Visible = true; // // tChart1.Panel.Shadow // // // tChart1.Panel.Shadow.Brush // this.tChart1.Panel.Shadow.Brush.Color = System.Drawing.Color.Black; this.tChart1.Panel.Shadow.Height = 0; this.tChart1.Panel.Shadow.Visible = true; this.tChart1.Panel.Shadow.Width = 0; this.tChart1.Series.Add(this.donut1); // // tChart1.Walls // // // tChart1.Walls.Back // // // tChart1.Walls.Back.Brush // this.tChart1.Walls.Back.Brush.Color = System.Drawing.Color.White; // // tChart1.Walls.Back.Gradient // this.tChart1.Walls.Back.Brush.Gradient.EndColor = System.Drawing.Color.FromArgb(((System.Byte)(223)), ((System.Byte)(122)), ((System.Byte)(41))); this.tChart1.Walls.Back.Brush.Gradient.MiddleColor = System.Drawing.Color.Empty; this.tChart1.Walls.Back.Brush.Gradient.StartColor = System.Drawing.Color.White; // // tChart1.Walls.Back.Gradient // this.tChart1.Walls.Back.Gradient.EndColor = System.Drawing.Color.FromArgb(((System.Byte)(223)), ((System.Byte)(122)), ((System.Byte)(41))); this.tChart1.Walls.Back.Gradient.MiddleColor = System.Drawing.Color.Empty; this.tChart1.Walls.Back.Gradient.StartColor = System.Drawing.Color.White; this.tChart1.Walls.Back.Transparent = false; // // tChart1.Walls.Bottom // // // tChart1.Walls.Bottom.Brush // // // tChart1.Walls.Bottom.Gradient // this.tChart1.Walls.Bottom.Brush.Gradient.EndColor = System.Drawing.Color.FromArgb(((System.Byte)(252)), ((System.Byte)(254)), ((System.Byte)(253))); this.tChart1.Walls.Bottom.Brush.Gradient.StartColor = System.Drawing.Color.FromArgb(((System.Byte)(47)), ((System.Byte)(133)), ((System.Byte)(253))); // // tChart1.Walls.Bottom.Gradient // this.tChart1.Walls.Bottom.Gradient.EndColor = System.Drawing.Color.FromArgb(((System.Byte)(252)), ((System.Byte)(254)), ((System.Byte)(253))); this.tChart1.Walls.Bottom.Gradient.StartColor = System.Drawing.Color.FromArgb(((System.Byte)(47)), ((System.Byte)(133)), ((System.Byte)(253))); // // tChart1.Walls.Left // // // tChart1.Walls.Left.Brush // this.tChart1.Walls.Left.Brush.Color = System.Drawing.Color.White; // // tChart1.Walls.Left.Gradient // this.tChart1.Walls.Left.Brush.Gradient.EndColor = System.Drawing.Color.FromArgb(((System.Byte)(36)), ((System.Byte)(209)), ((System.Byte)(252))); this.tChart1.Walls.Left.Brush.Gradient.StartColor = System.Drawing.Color.FromArgb(((System.Byte)(13)), ((System.Byte)(188)), ((System.Byte)(124))); // // tChart1.Walls.Left.Gradient // this.tChart1.Walls.Left.Gradient.EndColor = System.Drawing.Color.FromArgb(((System.Byte)(36)), ((System.Byte)(209)), ((System.Byte)(252))); this.tChart1.Walls.Left.Gradient.StartColor = System.Drawing.Color.FromArgb(((System.Byte)(13)), ((System.Byte)(188)), ((System.Byte)(124))); // // tChart1.Walls.Right // // // tChart1.Walls.Right.Brush // this.tChart1.Walls.Right.Brush.Color = System.Drawing.Color.White; // // donut1 // // // donut1.Brush // this.donut1.Brush.Color = System.Drawing.Color.Red; this.donut1.LabelMember = "Labels"; // // donut1.Marks // // // donut1.Marks.Arrow // this.donut1.Marks.Arrow.Color = System.Drawing.Color.White; // // donut1.Marks.Brush // // // donut1.Marks.Gradient // this.donut1.Marks.Brush.Gradient.StartColor = System.Drawing.Color.Silver; this.donut1.Marks.Brush.Gradient.Visible = true; // // donut1.Marks.Font // this.donut1.Marks.Font.Name = "Lucida Console"; // // donut1.Marks.Gradient // this.donut1.Marks.Gradient.StartColor = System.Drawing.Color.Silver; this.donut1.Marks.Gradient.Visible = true; // // donut1.Marks.Symbol // // // donut1.Marks.Symbol.Shadow // this.donut1.Marks.Symbol.Shadow.Height = 1; this.donut1.Marks.Symbol.Shadow.Visible = true; this.donut1.Marks.Symbol.Shadow.Width = 1; // // donut1.Pen // this.donut1.Pen.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(128)), ((System.Byte)(128)), ((System.Byte)(128))); // // donut1.Shadow // this.donut1.Shadow.Height = 20; this.donut1.Shadow.Width = 20; this.donut1.Title = "donut1"; // // donut1.XValues // this.donut1.XValues.DataMember = "Angle"; this.donut1.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; // // donut1.YValues // this.donut1.YValues.DataMember = "Pie"; // // checkBox1 // this.checkBox1.Location = new System.Drawing.Point(8, 8); this.checkBox1.Name = "checkBox1"; this.checkBox1.Size = new System.Drawing.Size(120, 24); this.checkBox1.TabIndex = 0; this.checkBox1.Text = "Vary Slice Heights"; this.checkBox1.CheckedChanged += new System.EventHandler(this.checkBox1_CheckedChanged); // // hScrollBar1 // this.hScrollBar1.Location = new System.Drawing.Point(247, 12); this.hScrollBar1.Maximum = 360; this.hScrollBar1.Name = "hScrollBar1"; this.hScrollBar1.Size = new System.Drawing.Size(128, 17); this.hScrollBar1.TabIndex = 1; this.hScrollBar1.Scroll += new System.Windows.Forms.ScrollEventHandler(this.hScrollBar1_Scroll); // // label1 // this.label1.Location = new System.Drawing.Point(198, 13); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(45, 16); this.label1.TabIndex = 2; this.label1.Text = "Rotate:"; // // PieSliceHeights // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(440, 317); this.Name = "PieSliceHeights"; 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.numericUpDown1 = new System.Windows.Forms.NumericUpDown(); this.donutSeries1 = new Steema.TeeChart.Styles.Donut(); this.panel1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.numericUpDown1)).BeginInit(); this.SuspendLayout(); // // textBox1 // this.textBox1.Name = "textBox1"; this.textBox1.Size = new System.Drawing.Size(466, 73); this.textBox1.Text = "Donut series draws points very similar to Pie series, with a middle hole. The hol" + "e dimensions can be configured as percent of circle radius.\r\n\r\nExample: donutSer" + "ies1.DonutPercent =75;"; // // panel1 // this.panel1.Controls.Add(this.numericUpDown1); this.panel1.Controls.Add(this.label1); this.panel1.Name = "panel1"; this.panel1.Size = new System.Drawing.Size(466, 31); // // tChart1 // // // tChart1.Aspect // this.tChart1.Aspect.Chart3DPercent = 20; this.tChart1.Aspect.Elevation = 315; this.tChart1.Aspect.Orthogonal = false; this.tChart1.Aspect.Perspective = 0; this.tChart1.Aspect.Rotation = 360; this.tChart1.Aspect.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.HighQuality; this.tChart1.Aspect.TextRenderingHint = System.Drawing.Text.TextRenderingHint.ClearTypeGridFit; // // tChart1.Header // this.tChart1.Header.Lines = new string[] { "tChart1" }; this.tChart1.Header.Visible = false; // // 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))); // // tChart1.Panel.Gradient // this.tChart1.Panel.Brush.Gradient.StartColor = System.Drawing.Color.FromArgb(((System.Byte)(127)), ((System.Byte)(255)), ((System.Byte)(215)), ((System.Byte)(0))); this.tChart1.Panel.Brush.Gradient.Visible = true; // // tChart1.Panel.Gradient // this.tChart1.Panel.Gradient.StartColor = System.Drawing.Color.FromArgb(((System.Byte)(127)), ((System.Byte)(255)), ((System.Byte)(215)), ((System.Byte)(0))); this.tChart1.Panel.Gradient.Visible = true; this.tChart1.Series.Add(this.donutSeries1); this.tChart1.Size = new System.Drawing.Size(466, 182); // // tChart1.Walls // // // tChart1.Walls.Back // // // tChart1.Walls.Back.Brush // this.tChart1.Walls.Back.Brush.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(255))); // // label1 // this.label1.AutoSize = true; this.label1.Location = new System.Drawing.Point(13, 8); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(41, 16); this.label1.TabIndex = 0; this.label1.Text = "&Hole %"; this.label1.TextAlign = System.Drawing.ContentAlignment.TopRight; // // numericUpDown1 // this.numericUpDown1.Increment = new System.Decimal(new int[] { 5, 0, 0, 0 }); this.numericUpDown1.Location = new System.Drawing.Point(67, 6); this.numericUpDown1.Name = "numericUpDown1"; this.numericUpDown1.Size = new System.Drawing.Size(53, 20); this.numericUpDown1.TabIndex = 1; this.numericUpDown1.TextAlign = System.Windows.Forms.HorizontalAlignment.Right; this.numericUpDown1.Value = new System.Decimal(new int[] { 50, 0, 0, 0 }); this.numericUpDown1.TextChanged += new System.EventHandler(this.numericUpDown1_ValueChanged); this.numericUpDown1.ValueChanged += new System.EventHandler(this.numericUpDown1_ValueChanged); // // donutSeries1 // // // donutSeries1.Brush // this.donutSeries1.Brush.Color = System.Drawing.Color.Red; this.donutSeries1.LabelMember = "Labels"; // // donutSeries1.Marks // // // donutSeries1.Marks.Symbol // // // donutSeries1.Marks.Symbol.Shadow // this.donutSeries1.Marks.Symbol.Shadow.Height = 1; this.donutSeries1.Marks.Symbol.Shadow.Visible = true; this.donutSeries1.Marks.Symbol.Shadow.Width = 1; // // donutSeries1.Pen // this.donutSeries1.Pen.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(64)), ((System.Byte)(64)), ((System.Byte)(64))); // // donutSeries1.Shadow // this.donutSeries1.Shadow.Height = 20; this.donutSeries1.Shadow.Width = 20; this.donutSeries1.Title = "donutSeries1"; // // donutSeries1.XValues // this.donutSeries1.XValues.DataMember = "Angle"; this.donutSeries1.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; // // donutSeries1.YValues // this.donutSeries1.YValues.DataMember = "Pie"; // // SeriesType_Donut // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(466, 286); this.Name = "SeriesType_Donut"; this.panel1.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.numericUpDown1)).EndInit(); this.ResumeLayout(false); }
private void tchartdisplay_2groups(string title, float[,] data, string[] ttt, int count) { int i; Color c; tChart1.Visible = true; label3.Visible = false; tChart1.Series.Clear(); tChart1.Header.Text = title; tChart1.Legend.FontSeriesColor = true; tChart1.Legend.Visible = false; switch (comboBox5.SelectedIndex) { case 0: Steema.TeeChart.Styles.Bar bar = new Steema.TeeChart.Styles.Bar(); for (i = 0; i < count; i++) { c = Color.FromArgb(global.r.Next(0, 256), global.r.Next(0, 256), global.r.Next(0, 256), global.r.Next(0, 256)); bar.Add(data[i,0], ttt[i]+"����", c); } Steema.TeeChart.Styles.Bar bar1 = new Steema.TeeChart.Styles.Bar(); for (i = 0; i < count; i++) { c = Color.FromArgb(global.r.Next(0, 256), global.r.Next(0, 256), global.r.Next(0, 256), global.r.Next(0, 256)); bar1.Add(data[i, 1], ttt[i] +"������", c); } tChart1.Series.Add(bar); tChart1.Series.Add(bar1); break; case 1: Steema.TeeChart.Styles.Pie pie = new Steema.TeeChart.Styles.Pie(); for (i = 0; i < count; i++) { c = Color.FromArgb(global.r.Next(0, 256), global.r.Next(0, 256), global.r.Next(0, 256), global.r.Next(0, 256)); pie.Add(data[i,0], ttt[i]+"����", c); } Steema.TeeChart.Styles.Pie pie1 = new Steema.TeeChart.Styles.Pie(); for (i = 0; i < count; i++) { c = Color.FromArgb(global.r.Next(0, 256), global.r.Next(0, 256), global.r.Next(0, 256), global.r.Next(0, 256)); pie1.Add(data[i, 1], ttt[i] + "������", c); } tChart1.Series.Add(pie); tChart1.Series.Add(pie1); break; case 2: Steema.TeeChart.Styles.Pyramid pi = new Steema.TeeChart.Styles.Pyramid(); for (i = 0; i < count; i++) { c = Color.FromArgb(global.r.Next(0, 256), global.r.Next(0, 256), global.r.Next(0, 256), global.r.Next(0, 256)); pi.Add(data[i,0], ttt[i]+"����", c); } Steema.TeeChart.Styles.Pyramid pi1 = new Steema.TeeChart.Styles.Pyramid(); for (i = 0; i < count; i++) { c = Color.FromArgb(global.r.Next(0, 256), global.r.Next(0, 256), global.r.Next(0, 256), global.r.Next(0, 256)); pi1.Add(data[i, 1], ttt[i]+"������", c); } tChart1.Series.Add(pi); tChart1.Series.Add(pi1); break; case 3: Steema.TeeChart.Styles.Donut dt = new Steema.TeeChart.Styles.Donut(); for (i = 0; i < count; i++) { c = Color.FromArgb(global.r.Next(0, 256), global.r.Next(0, 256), global.r.Next(0, 256), global.r.Next(0, 256)); dt.Add(data[i,0], ttt[i]+"����", c); } Steema.TeeChart.Styles.Donut dt1 = new Steema.TeeChart.Styles.Donut(); for (i = 0; i < count; i++) { c = Color.FromArgb(global.r.Next(0, 256), global.r.Next(0, 256), global.r.Next(0, 256), global.r.Next(0, 256)); dt1.Add(data[i, 1], ttt[i]+"������", c); } tChart1.Series.Add(dt); tChart1.Series.Add(dt1); break; } }
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; */ }
public MultiDonuts() { Steema.TeeChart.Animations.EasingFunctions.BounceEase bounceEase1 = new Steema.TeeChart.Animations.EasingFunctions.BounceEase(); Steema.TeeChart.Animations.EasingFunctions.CircleEase circleEase1 = new Steema.TeeChart.Animations.EasingFunctions.CircleEase(); this.tChart4 = new Steema.TeeChart.Chart(); this.donut4 = new Steema.TeeChart.Styles.Donut(); this.tChart3 = new Steema.TeeChart.Chart(); this.donut3 = new Steema.TeeChart.Styles.Donut(); this.tChart2 = new Steema.TeeChart.Chart(); this.donut2 = new Steema.TeeChart.Styles.Donut(); this.tChart1 = new Steema.TeeChart.Chart(); this.donut1 = new Steema.TeeChart.Styles.Donut(); this.label1 = new Label(); this.label2 = new Label(); this.tChart5 = new Steema.TeeChart.Chart(); this.horizBar1 = new Steema.TeeChart.Styles.HorizBar(); this.chartPartAnimation1 = new Steema.TeeChart.Animations.ChartPartAnimation(); this.chartPartAnimation2 = new Steema.TeeChart.Animations.ChartPartAnimation(); // tChart4 this.tChart4.Aspect.ColorPaletteIndex = 14; this.tChart4.Aspect.Elevation = 315; this.tChart4.Aspect.Orthogonal = false; this.tChart4.Aspect.Perspective = 0; this.tChart4.Aspect.Rotation = 360; this.tChart4.Aspect.View3D = false; this.tChart4.Footer.Font.Bold = true; this.tChart4.Footer.Font.Brush.Color = Color.Gray; this.tChart4.Footer.Lines = new string[] { "WHILE SHOPPING" }; this.tChart4.Footer.Visible = true; this.tChart4.Header.Visible = false; this.tChart4.Legend.Alignment = Steema.TeeChart.LegendAlignments.Bottom; this.tChart4.Legend.Font.Bold = true; this.tChart4.Legend.Font.Brush.Color = Color.FromRgb(((int)(((byte)(243)))), ((int)(((byte)(234)))), ((int)(((byte)(141))))); this.tChart4.Legend.Font.Name = "Segoe UI"; this.tChart4.Legend.Font.Size = 24; this.tChart4.Legend.FontSeriesColor = true; this.tChart4.Legend.LegendStyle = Steema.TeeChart.LegendStyles.LastValues; this.tChart4.Legend.Symbol.Visible = false; this.tChart4.Legend.TopLeftPos = 5; this.tChart4.Legend.Transparent = true; this.tChart4.Legend.VertSpacing = -10; this.tChart4.Panel.Brush.Color = Color.White; this.tChart4.Panel.Brush.Gradient.EndColor = Color.White; this.tChart4.Panel.Brush.Gradient.Visible = false; this.tChart4.Panel.Brush.ImageMode = Steema.TeeChart.Drawing.ImageMode.Center; this.tChart4.Panel.ImageMode = Steema.TeeChart.Drawing.ImageMode.Center; this.tChart4.Panel.MarginBottom = 2D; this.tChart4.Series.Add(this.donut4); this.tChart4.SubFooter.Font.Brush.Color = Color.Gray; this.tChart4.Walls.Back.Brush.Gradient.EndColor = Color.White; // donut4 this.donut4.AutoPenColor = false; this.donut4.Brush.Color = Color.FromRgb(((int)(((byte)(242)))), ((int)(((byte)(192)))), ((int)(((byte)(93))))); this.donut4.Circled = true; this.donut4.Color = Color.FromRgb(((int)(((byte)(243)))), ((int)(((byte)(234)))), ((int)(((byte)(141))))); this.donut4.DonutPercent = 60; this.donut4.Frame.Circled = true; this.donut4.Frame.FrameElementPercents = new double[] { 25D, 60D, 15D }; this.donut4.Frame.OuterBand.Gradient.UseMiddle = false; this.donut4.Frame.Width = 4; this.donut4.LabelMember = "Labels"; this.donut4.Marks.Visible = false; this.donut4.MarksPie.LegSize = 0; this.donut4.MarksPie.VertCenter = false; this.donut4.MultiPie = Steema.TeeChart.Styles.MultiPies.Automatic; this.donut4.OtherSlice.Style = Steema.TeeChart.Styles.PieOtherStyles.None; this.donut4.OtherSlice.Text = ""; this.donut4.OtherSlice.Value = 0D; this.donut4.Pen.Color = Color.FromRgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); this.donut4.Pen.Width = 3; this.donut4.RotationAngle = 91; this.donut4.Title = "donut1"; this.donut4.UniqueCustomRadius = true; this.donut4.XValues.DataMember = "Angle"; this.donut4.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; this.donut4.YValues.DataMember = "Pie"; // tChart3 this.tChart3.Aspect.ColorPaletteIndex = 14; this.tChart3.Aspect.Elevation = 315; this.tChart3.Aspect.Orthogonal = false; this.tChart3.Aspect.Perspective = 0; this.tChart3.Aspect.Rotation = 360; this.tChart3.Aspect.RotationFloat = 360D; this.tChart3.Aspect.View3D = false; this.tChart3.Footer.Font.Bold = true; this.tChart3.Footer.Font.Brush.Color = Color.Gray; this.tChart3.Footer.Lines = new string[] { "WHILE HAVING DINNER" }; this.tChart3.Footer.Visible = true; this.tChart3.Header.Visible = false; this.tChart3.Legend.Alignment = Steema.TeeChart.LegendAlignments.Bottom; this.tChart3.Legend.Font.Bold = true; this.tChart3.Legend.Font.Brush.Color = Color.FromRgb(((int)(((byte)(243)))), ((int)(((byte)(234)))), ((int)(((byte)(141))))); this.tChart3.Legend.Font.Name = "Segoe UI"; this.tChart3.Legend.Font.Size = 24; this.tChart3.Legend.FontSeriesColor = true; this.tChart3.Legend.LegendStyle = Steema.TeeChart.LegendStyles.LastValues; this.tChart3.Legend.Symbol.Visible = false; this.tChart3.Legend.TopLeftPos = 5; this.tChart3.Legend.Transparent = true; this.tChart3.Legend.VertSpacing = -10; this.tChart3.Panel.Brush.Color = Color.White; this.tChart3.Panel.Brush.Gradient.EndColor = Color.White; this.tChart3.Panel.Brush.Gradient.Visible = false; this.tChart3.Panel.Brush.ImageMode = Steema.TeeChart.Drawing.ImageMode.Center; this.tChart3.Panel.ImageMode = Steema.TeeChart.Drawing.ImageMode.Center; this.tChart3.Panel.MarginBottom = 2D; this.tChart3.Series.Add(this.donut3); this.tChart3.SubFooter.Font.Brush.Color = Color.Gray; this.tChart3.Walls.Back.Brush.Gradient.EndColor = Color.White; // donut3 this.donut3.AutoPenColor = false; this.donut3.Brush.Color = Color.FromRgb(((int)(((byte)(242)))), ((int)(((byte)(192)))), ((int)(((byte)(93))))); this.donut3.Circled = true; this.donut3.Color = Color.FromRgb(((int)(((byte)(243)))), ((int)(((byte)(234)))), ((int)(((byte)(141))))); this.donut3.DonutPercent = 60; this.donut3.Frame.Circled = true; this.donut3.Frame.FrameElementPercents = new double[] { 25D, 60D, 15D }; this.donut3.Frame.OuterBand.Gradient.UseMiddle = false; this.donut3.Frame.Width = 4; this.donut3.LabelMember = "Labels"; this.donut3.Marks.Visible = false; this.donut3.MarksPie.LegSize = 0; this.donut3.MarksPie.VertCenter = false; this.donut3.MultiPie = Steema.TeeChart.Styles.MultiPies.Automatic; this.donut3.OtherSlice.Style = Steema.TeeChart.Styles.PieOtherStyles.None; this.donut3.OtherSlice.Text = ""; this.donut3.OtherSlice.Value = 0D; this.donut3.Pen.Color = Color.FromRgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); this.donut3.Pen.Width = 3; this.donut3.RotationAngle = 91; this.donut3.Title = "donut1"; this.donut3.UniqueCustomRadius = true; this.donut3.XValues.DataMember = "Angle"; this.donut3.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; this.donut3.YValues.DataMember = "Pie"; // tChart2 this.tChart2.Aspect.ColorPaletteIndex = 14; this.tChart2.Aspect.Elevation = 315; this.tChart2.Aspect.Orthogonal = false; this.tChart2.Aspect.Perspective = 0; this.tChart2.Aspect.Rotation = 360; this.tChart2.Aspect.RotationFloat = 360D; this.tChart2.Aspect.View3D = false; this.tChart2.Footer.Font.Bold = true; this.tChart2.Footer.Font.Brush.Color = Color.Gray; this.tChart2.Footer.Lines = new string[] { "WHILE COMMUTING" }; this.tChart2.Footer.Visible = true; this.tChart2.Header.Visible = false; this.tChart2.Legend.Alignment = Steema.TeeChart.LegendAlignments.Bottom; this.tChart2.Legend.Font.Bold = true; this.tChart2.Legend.Font.Brush.Color = Color.FromRgb(((int)(((byte)(243)))), ((int)(((byte)(234)))), ((int)(((byte)(141))))); this.tChart2.Legend.Font.Name = "Segoe UI"; this.tChart2.Legend.Font.Size = 24; this.tChart2.Legend.FontSeriesColor = true; this.tChart2.Legend.LegendStyle = Steema.TeeChart.LegendStyles.LastValues; this.tChart2.Legend.Symbol.Visible = false; this.tChart2.Legend.TopLeftPos = 5; this.tChart2.Legend.Transparent = true; this.tChart2.Legend.VertSpacing = -10; this.tChart2.Panel.Brush.Color = Color.White; this.tChart2.Panel.Brush.Gradient.EndColor = Color.White; this.tChart2.Panel.Brush.Gradient.Visible = false; this.tChart2.Panel.Brush.ImageMode = Steema.TeeChart.Drawing.ImageMode.Center; this.tChart2.Panel.ImageMode = Steema.TeeChart.Drawing.ImageMode.Center; this.tChart2.Panel.MarginBottom = 2D; this.tChart2.Series.Add(this.donut2); this.tChart2.SubFooter.Font.Brush.Color = Color.Gray; this.tChart2.Walls.Back.Brush.Gradient.EndColor = Color.White; // donut2 this.donut2.AutoPenColor = false; this.donut2.Brush.Color = Color.FromRgb(((int)(((byte)(242)))), ((int)(((byte)(192)))), ((int)(((byte)(93))))); this.donut2.Circled = true; this.donut2.Color = Color.FromRgb(((int)(((byte)(243)))), ((int)(((byte)(234)))), ((int)(((byte)(141))))); this.donut2.DonutPercent = 60; this.donut2.Frame.Circled = true; this.donut2.Frame.FrameElementPercents = new double[] { 25D, 60D, 15D }; this.donut2.Frame.OuterBand.Gradient.UseMiddle = false; this.donut2.Frame.Width = 4; this.donut2.LabelMember = "Labels"; this.donut2.Marks.Visible = false; this.donut2.MarksPie.LegSize = 0; this.donut2.MarksPie.VertCenter = false; this.donut2.MultiPie = Steema.TeeChart.Styles.MultiPies.Automatic; this.donut2.OtherSlice.Style = Steema.TeeChart.Styles.PieOtherStyles.None; this.donut2.OtherSlice.Text = ""; this.donut2.OtherSlice.Value = 0D; this.donut2.Pen.Color = Color.FromRgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); this.donut2.Pen.Width = 3; this.donut2.RotationAngle = 91; this.donut2.Title = "donut1"; this.donut2.UniqueCustomRadius = true; this.donut2.XValues.DataMember = "Angle"; this.donut2.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; this.donut2.YValues.DataMember = "Pie"; // tChart1 this.tChart1.Animations.Add(this.chartPartAnimation2); this.tChart1.Aspect.ColorPaletteIndex = 21; this.tChart1.Aspect.Elevation = 315; this.tChart1.Aspect.Orthogonal = false; this.tChart1.Aspect.Perspective = 0; this.tChart1.Aspect.Rotation = 360; this.tChart1.Aspect.RotationFloat = 360D; this.tChart1.Aspect.View3D = false; this.tChart1.Footer.Font.Bold = true; this.tChart1.Footer.Font.Brush.Color = Color.Gray; this.tChart1.Footer.Lines = new string[] { "LATE AT NIGHT IN BED" }; this.tChart1.Footer.Visible = true; this.tChart1.Header.Visible = false; this.tChart1.Legend.Alignment = Steema.TeeChart.LegendAlignments.Bottom; this.tChart1.Legend.Font.Bold = true; this.tChart1.Legend.Font.Brush.Color = Color.FromRgb(((int)(((byte)(243)))), ((int)(((byte)(234)))), ((int)(((byte)(141))))); this.tChart1.Legend.Font.Name = "Segoe UI"; this.tChart1.Legend.Font.Size = 24; this.tChart1.Legend.FontSeriesColor = true; this.tChart1.Legend.LegendStyle = Steema.TeeChart.LegendStyles.LastValues; this.tChart1.Legend.Symbol.Visible = false; this.tChart1.Legend.TopLeftPos = 5; this.tChart1.Legend.Transparent = true; this.tChart1.Legend.VertSpacing = -10; this.tChart1.Panel.Brush.Color = Color.White; this.tChart1.Panel.Brush.Gradient.EndColor = Color.White; this.tChart1.Panel.Brush.Gradient.Visible = false; this.tChart1.Panel.Brush.ImageMode = Steema.TeeChart.Drawing.ImageMode.Center; this.tChart1.Panel.ImageMode = Steema.TeeChart.Drawing.ImageMode.Center; this.tChart1.Panel.MarginBottom = 2D; this.tChart1.Series.Add(this.donut1); this.tChart1.SubFooter.Font.Brush.Color = Color.Gray; this.tChart1.Walls.Back.Brush.Gradient.EndColor = Color.White; // donut1 this.donut1.AutoPenColor = false; this.donut1.Brush.Color = Color.FromRgb(((int)(((byte)(255)))), ((int)(((byte)(172)))), ((int)(((byte)(0))))); this.donut1.Circled = true; this.donut1.Color = Color.FromRgb(((int)(((byte)(243)))), ((int)(((byte)(234)))), ((int)(((byte)(141))))); this.donut1.DonutPercent = 60; this.donut1.Frame.Circled = true; this.donut1.Frame.FrameElementPercents = new double[] { 25D, 60D, 15D }; this.donut1.Frame.OuterBand.Gradient.UseMiddle = false; this.donut1.Frame.Width = 4; this.donut1.LabelMember = "Labels"; this.donut1.Marks.Visible = false; this.donut1.MarksPie.LegSize = 0; this.donut1.MarksPie.VertCenter = false; this.donut1.MultiPie = Steema.TeeChart.Styles.MultiPies.Automatic; this.donut1.OtherSlice.Style = Steema.TeeChart.Styles.PieOtherStyles.None; this.donut1.OtherSlice.Text = ""; this.donut1.OtherSlice.Value = 0D; this.donut1.Pen.Color = Color.FromRgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); this.donut1.Pen.Width = 3; this.donut1.RotationAngle = 91; this.donut1.Title = "donut1"; this.donut1.UniqueCustomRadius = true; this.donut1.XValues.DataMember = "Angle"; this.donut1.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; this.donut1.YValues.DataMember = "Pie"; // label1 this.label1.Text = "Ericson consumerLab. 2014"; // label2 this.label2.Text = "Where do customers watch mobile video content ?"; // tChart5 this.tChart5.Animations.Add(this.chartPartAnimation1); this.tChart5.Aspect.ColorPaletteIndex = 14; this.tChart5.Aspect.View3D = false; this.tChart5.Axes.Bottom.AxisPen.Visible = false; this.tChart5.Axes.Bottom.Grid.Visible = false; this.tChart5.Axes.Bottom.MinorTicks.Visible = false; this.tChart5.Axes.Bottom.Visible = false; this.tChart5.Axes.Left.AxisPen.Color = Color.Gray; this.tChart5.Axes.Left.AxisPen.Width = 1; this.tChart5.Axes.Left.Grid.Visible = false; this.tChart5.Axes.Left.Labels.Font.Brush.Color = Color.Gray; this.tChart5.Axes.Left.Labels.Font.Name = "Segoe UI"; this.tChart5.Axes.Left.Labels.Font.Size = 16; this.tChart5.Axes.Left.MinorTicks.Visible = false; this.tChart5.Footer.Font.Brush.Color = Color.Blue; this.tChart5.Header.Visible = false; this.tChart5.Legend.Visible = false; this.tChart5.Panel.Brush.Color = Color.White; this.tChart5.Panel.Brush.Gradient.EndColor = Color.White; this.tChart5.Series.Add(this.horizBar1); this.tChart5.Walls.Back.Brush.Gradient.EndColor = Color.White; this.tChart5.Walls.Back.Visible = false; // horizBar1 this.horizBar1.BarHeightPercent = 90; this.horizBar1.BarRound = Steema.TeeChart.Styles.BarRounding.AtValue; this.horizBar1.BarStyle = Steema.TeeChart.Styles.BarStyles.RoundRectangle; this.horizBar1.Brush.Color = Color.FromRgb(((int)(((byte)(243)))), ((int)(((byte)(234)))), ((int)(((byte)(141))))); this.horizBar1.Color = Color.FromRgb(((int)(((byte)(243)))), ((int)(((byte)(234)))), ((int)(((byte)(141))))); this.horizBar1.ColorEach = false; this.horizBar1.Marks.Brush.Visible = false; this.horizBar1.Marks.Font.Brush.Color = Color.Gray; this.horizBar1.Marks.Style = Steema.TeeChart.Styles.MarksStyles.Value; this.horizBar1.Marks.Transparent = true; this.horizBar1.Pen.Color = Color.FromRgb(((int)(((byte)(146)))), ((int)(((byte)(140)))), ((int)(((byte)(85))))); this.horizBar1.Pen.Visible = false; this.horizBar1.Title = "horizBar1"; this.horizBar1.ValueFormat = "## %"; this.horizBar1.XValues.DataMember = "X"; this.horizBar1.YValues.DataMember = "Bar"; this.horizBar1.YValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; // chartPartAnimation1 this.chartPartAnimation1.Axis = null; bounceEase1.EasingMode = Steema.TeeChart.Animations.EasingFunctions.EasingMode.EaseOut; this.chartPartAnimation1.EasingFunction = bounceEase1; this.chartPartAnimation1.EasingMode = Steema.TeeChart.Animations.EasingFunctions.EasingMode.EaseOut; this.chartPartAnimation1.Fade = Steema.TeeChart.Animations.TransformFade.None; this.chartPartAnimation1.RotateMax = 0F; this.chartPartAnimation1.RotateMin = 0F; this.chartPartAnimation1.Series = null; this.chartPartAnimation1.Speed = 1000; this.chartPartAnimation1.Target = Steema.TeeChart.ChartClickedPartStyle.Series; this.chartPartAnimation1.ZoomStyle = Steema.TeeChart.Animations.TransformZoom.None; // chartPartAnimation2 this.chartPartAnimation2.Axis = null; circleEase1.EasingMode = Steema.TeeChart.Animations.EasingFunctions.EasingMode.EaseIn; this.chartPartAnimation2.EasingFunction = circleEase1; this.chartPartAnimation2.EasingMode = Steema.TeeChart.Animations.EasingFunctions.EasingMode.EaseIn; this.chartPartAnimation2.Fade = Steema.TeeChart.Animations.TransformFade.In; this.chartPartAnimation2.RotateMax = 360F; this.chartPartAnimation2.RotateMin = 0F; this.chartPartAnimation2.Series = null; this.chartPartAnimation2.Speed = 1000; this.chartPartAnimation2.Target = Steema.TeeChart.ChartClickedPartStyle.Series; this.chartPartAnimation2.TranslateStyle = Steema.TeeChart.Animations.TransformTranslate.None; this.chartPartAnimation2.ZoomStyle = Steema.TeeChart.Animations.TransformZoom.None; tChart1.Panel.Gradient.Visible = false; tChart2.Panel.Gradient.Visible = false; tChart3.Panel.Gradient.Visible = false; tChart4.Panel.Gradient.Visible = false; tChart5.Panel.Gradient.Visible = false; this.tChart1.Aspect.ZoomText = true; this.tChart2.Aspect.ZoomText = true; this.tChart3.Aspect.ZoomText = true; this.tChart4.Aspect.ZoomText = true; this.tChart5.Aspect.ZoomText = true; initChart(); chartView1 = new ChartView { VerticalOptions = LayoutOptions.FillAndExpand, HorizontalOptions = LayoutOptions.FillAndExpand, WidthRequest = 25, HeightRequest = 25 }; chartView1.Model = tChart1; chartView2 = new ChartView { VerticalOptions = LayoutOptions.FillAndExpand, HorizontalOptions = LayoutOptions.FillAndExpand, WidthRequest = 25, HeightRequest = 25 }; chartView2.Model = tChart2; chartView3 = new ChartView { VerticalOptions = LayoutOptions.FillAndExpand, HorizontalOptions = LayoutOptions.FillAndExpand, WidthRequest = 25, HeightRequest = 25 }; chartView3.Model = tChart3; chartView4 = new ChartView { VerticalOptions = LayoutOptions.FillAndExpand, HorizontalOptions = LayoutOptions.FillAndExpand, WidthRequest = 25, HeightRequest = 25 }; chartView4.Model = tChart4; chartView5 = new ChartView { VerticalOptions = LayoutOptions.FillAndExpand, HorizontalOptions = LayoutOptions.FillAndExpand, WidthRequest = 25, HeightRequest = 25 }; chartView5.Model = tChart5; Grid grid = new Grid { VerticalOptions = LayoutOptions.FillAndExpand, Padding = 5, RowDefinitions = { new RowDefinition { Height = new GridLength(1, GridUnitType.Star) }, new RowDefinition { Height = new GridLength(1, GridUnitType.Star) } }, ColumnDefinitions = { new ColumnDefinition { Width = new GridLength(1, GridUnitType.Star) }, new ColumnDefinition { Width = new GridLength(1, GridUnitType.Star) }, new ColumnDefinition { Width = new GridLength(1, GridUnitType.Star) }, new ColumnDefinition { Width = new GridLength(1, GridUnitType.Star) } } }; grid.Children.Add(chartView1, 0, 0); grid.Children.Add(chartView2, 1, 0); grid.Children.Add(chartView3, 2, 0); grid.Children.Add(chartView4, 3, 0); grid.Children.Add(chartView5, 0, 4, 1, 2); // Build the page. this.Content = grid; }
public override void ViewDidLoad () { base.ViewDidLoad (); //any additional setup after loading the view, typically from a nib. r1 = new System.Drawing.RectangleF(0,0,this.View.Bounds.Width/2,this.View.Bounds.Height/2); r2 = new System.Drawing.RectangleF(this.View.Bounds.Width/2,0,this.View.Bounds.Width/2,this.View.Bounds.Height/2); r3 = new System.Drawing.RectangleF(0,this.View.Bounds.Height/2,this.View.Bounds.Width,this.View.Bounds.Height/2); //r3 = new System.Drawing.RectangleF(0,this.View.Bounds.Height/2,this.View.Bounds.Width/2,this.View.Bounds.Height/2); // r4 = new System.Drawing.RectangleF(this.View.Bounds.Width/2,this.View.Bounds.Height/2,this.View.Bounds.Width/2,this.View.Bounds.Height/2); chart1.Frame = r1; chart2.Frame = r2; chart3.Frame = r3; //chart4.Frame = r4; chart1.Header.Visible = false; chart1.Legend.Visible = false; chart2.Header.Visible = false; chart3.Header.Visible = false; //chart4.Header.Visible = false; this.View.AddSubview(chart1); this.View.AddSubview(chart2); this.View.AddSubview(chart3); //this.View.AddSubview(chart4); Steema.TeeChart.Themes.BlackIsBackTheme theme1 = new Steema.TeeChart.Themes.BlackIsBackTheme(chart1.Chart); Steema.TeeChart.Themes.BlackIsBackTheme theme2 = new Steema.TeeChart.Themes.BlackIsBackTheme(chart2.Chart); Steema.TeeChart.Themes.BlackIsBackTheme theme3 = new Steema.TeeChart.Themes.BlackIsBackTheme(chart3.Chart); //Steema.TeeChart.Themes.BlackIsBackTheme theme4 = new Steema.TeeChart.Themes.BlackIsBackTheme(chart4.Chart); theme1.Apply(); theme2.Apply(); theme3.Apply(); //theme4.Apply(); Steema.TeeChart.Themes.ColorPalettes.ApplyPalette(chart1.Chart,Steema.TeeChart.Themes.Theme.OnBlackPalette); Steema.TeeChart.Themes.ColorPalettes.ApplyPalette(chart2.Chart,Steema.TeeChart.Themes.Theme.OnBlackPalette); Steema.TeeChart.Themes.ColorPalettes.ApplyPalette(chart3.Chart,Steema.TeeChart.Themes.Theme.OnBlackPalette); //Steema.TeeChart.Themes.ColorPalettes.ApplyPalette(chart4.Chart,Steema.TeeChart.Themes.Theme.OnBlackPalette); // Chart 1 chart1.Panel.Gradient.Visible = false; chart1.Panel.Color = UIColor.Black.CGColor; Steema.TeeChart.Styles.Donut series1 = new Steema.TeeChart.Styles.Donut(); chart1.Aspect.View3D = false; series1.FillSampleValues(4); series1.Circled = true; series1.Pen.Width = 5; series1.ExplodeBiggest=20; series1.Marks.Transparent = true; series1.Marks.Font.Color = UIColor.FromRGB(255,255,255).CGColor; series1.Marks.Font.Size = 20; chart1.Series.Add(series1); // Chart 2 chart2.Aspect.View3D = false; chart2.Chart.Aspect.ZoomScrollStyle = Steema.TeeChart.Drawing.Aspect.ZoomScrollStyles.Manual; chart2.Panel.Gradient.Visible = false; chart2.Panel.Color = UIColor.Black.CGColor; chart2.Walls.Back.Gradient.Visible = true; chart2.Walls.Back.Gradient.StartColor = UIColor.FromRGB(0,0,0).CGColor; chart2.Walls.Back.Gradient.EndColor = UIColor.DarkGray.CGColor; chart2.Axes.Bottom.Grid.Visible = false; chart2.Axes.Left.Increment = 15; chart2.Axes.Bottom.Labels.Font.Size = 15; chart2.Legend.Alignment = LegendAlignments.Bottom; chart2.Legend.Transparent = true; Steema.TeeChart.Styles.Line series2 = new Steema.TeeChart.Styles.Line(); series2.Add(15); series2.Add(25); series2.Add(16); series2.Add(30); series2.Add(40); series2.Add(35); series2.Add(25); series2.Add(50); series2.Pointer.Visible = true; series2.Pointer.Style = Steema.TeeChart.Styles.PointerStyles.Circle; series2.LinePen.Width = 3; series2.Pointer.Pen.Visible = false; Steema.TeeChart.Styles.Area series3 = new Steema.TeeChart.Styles.Area(); series3.Add(10); series3.Add(15); series3.Add(6); series3.Add(15); series3.Add(10); series3.Add(25); series3.Add(20); series3.Add(24); series3.AreaLinesPen.Visible = true; series3.AreaLinesPen.Width=3; series3.AreaLinesPen.Color = series3.Color; series3.LinePen.Visible = true; series3.LinePen.Width = 5; series3.AreaLines.Visible = false; series3.AreaBrush.Gradient.Visible = true; series3.AreaBrush.Gradient.EndColor = UIColor.DarkGray.CGColor; chart2.Series.Add(series2); chart2.Series.Add(series3); // Chart 3 chart3.Aspect.View3D = false; chart3.Legend.Visible = false; chart3.Chart.Aspect.ZoomScrollStyle = Steema.TeeChart.Drawing.Aspect.ZoomScrollStyles.Manual; chart3.Panel.Gradient.Visible = false; chart3.Panel.Color = UIColor.Black.CGColor; chart3.Walls.Back.Gradient.Visible = true; chart3.Walls.Back.Gradient.StartColor = UIColor.Black.CGColor; chart3.Walls.Back.Gradient.EndColor = UIColor.FromRGB(79,79,79).CGColor; chart3.Axes.Left.Labels.Separation = 100; chart3.Axes.Left.Grid.Visible = true; chart3.Axes.Left.Grid.Color = UIColor.FromRGB(79,79,79).CGColor; chart3.Axes.Bottom.Grid.Color = UIColor.FromRGB(79,79,79).CGColor; chart3.Axes.Left.AxisPen.Visible = false; Steema.TeeChart.Styles.Candle candle = new Steema.TeeChart.Styles.Candle(); Steema.TeeChart.Styles.Volume volume = new Steema.TeeChart.Styles.Volume(); chart3.Series.Add(candle); chart3.Series.Add(volume); candle.FillSampleValues(70); candle.Pen.Visible = false; volume.FillSampleValues(70); volume.Color = UIColor.Yellow.CGColor; Steema.TeeChart.Axis axis = chart3.Axes.Left; //axis.AxisPen.Color = UIColor.Red.CGColor; axis.StartPosition = 0; axis.EndPosition = 72; axis.Labels.Font.Size = 12; Steema.TeeChart.Axis customAxis = new Steema.TeeChart.Axis(chart3.Chart); customAxis.OtherSide = true; chart3.Axes.Custom.Add(customAxis); //customAxis.AxisPen.Color = UIColor.Blue.CGColor; customAxis.StartPosition = 74; customAxis.EndPosition = 100; customAxis.Labels.Font.Color = UIColor.FromRGB(255,255,240).CGColor; customAxis.Labels.Font.Size = 12; customAxis.Grid.Visible = false; customAxis.AxisPen.Visible = false; volume.CustomVertAxis = customAxis; chart3.Legend.Alignment = LegendAlignments.Bottom; chart3.Legend.Transparent = true; chart3.Legend.Font.Size = 12; chart3.Legend.TopLeftPos = 0; chart3.Axes.Bottom.Labels.Font.Size = 12; /* Chart 4 chart4.Aspect.View3D = false; chart4.Chart.Aspect.ZoomScrollStyle = Steema.TeeChart.Drawing.Aspect.ZoomScrollStyles.Manual; chart4.Panel.Gradient.Visible = false; chart4.Panel.Color = UIColor.Black.CGColor; chart4.Walls.Back.Transparent=true; Steema.TeeChart.Styles.HorizBar series5 = new Steema.TeeChart.Styles.HorizBar(); series5.Add(10); series5.Add(50); series5.Add(30); series5.Add(70); //series5.BarHeightPercent=100; //series5.CustomBarWidth= 80; series5.ColorEach = true; //series5.Pen.Width = 3; //series5.Gradient.Visible = true; chart4.Series.Add(series5); chart4.Axes.Bottom.Visible = false; */ }
public WebAnalytics() { this.tChart3 = new Steema.TeeChart.Chart(); this.donut3 = new Steema.TeeChart.Styles.Donut(); this.annotation3 = new Steema.TeeChart.Tools.Annotation(); this.tChart2 = new Steema.TeeChart.Chart(); this.donut2 = new Steema.TeeChart.Styles.Donut(); this.annotation2 = new Steema.TeeChart.Tools.Annotation(); this.tChart4 = new Steema.TeeChart.Chart(); this.line1 = new Steema.TeeChart.Styles.Line(); this.line2 = new Steema.TeeChart.Styles.Line(); this.line3 = new Steema.TeeChart.Styles.Line(); this.cursorTool1 = new Steema.TeeChart.Tools.CursorTool(); this.annotation4 = new Steema.TeeChart.Tools.Annotation(); this.cursorTool2 = new Steema.TeeChart.Tools.CursorTool(); this.annotation6 = new Steema.TeeChart.Tools.Annotation(); this.cursorTool3 = new Steema.TeeChart.Tools.CursorTool(); this.annotation8 = new Steema.TeeChart.Tools.Annotation(); this.tChart1 = new Steema.TeeChart.Chart(); this.donut1 = new Steema.TeeChart.Styles.Donut(); this.annotation1 = new Steema.TeeChart.Tools.Annotation(); this.textSource1 = new Steema.TeeChart.Data.TextSource(); // tChart3 this.tChart3.Aspect.Elevation = 315; this.tChart3.Aspect.Orthogonal = false; this.tChart3.Aspect.Perspective = 0; this.tChart3.Aspect.Rotation = 360; this.tChart3.Aspect.View3D = false; this.tChart3.Footer.Font.Brush.Color = Color.Gray; this.tChart3.Header.Visible = false; this.tChart3.Legend.Visible = false; this.tChart3.Panel.Bevel.Outer = Steema.TeeChart.Drawing.BevelStyles.None; this.tChart3.Panel.Brush.Color = Color.White; this.tChart3.Panel.Brush.Gradient.EndColor = Color.White; this.tChart3.Panel.Brush.Gradient.UseMiddle = false; this.tChart3.Series.Add(this.donut3); this.tChart3.Tools.Add(this.annotation3); this.tChart3.Walls.Back.Brush.Gradient.EndColor = Color.White; // donut3 this.donut3.Brush.Color = Color.FromRgb(((int)(((byte)(243)))), ((int)(((byte)(156)))), ((int)(((byte)(53))))); this.donut3.Circled = true; this.donut3.Color = Color.FromRgb(((int)(((byte)(68)))), ((int)(((byte)(102)))), ((int)(((byte)(163))))); this.donut3.DonutPercent = 95; this.donut3.Frame.Circled = true; this.donut3.Frame.FrameElementPercents = new double[] { 25D, 60D, 15D }; this.donut3.Frame.OuterBand.Gradient.UseMiddle = false; this.donut3.LabelMember = "Labels"; this.donut3.Marks.Visible = false; this.donut3.MarksPie.LegSize = 0; this.donut3.MarksPie.VertCenter = false; this.donut3.MultiPie = Steema.TeeChart.Styles.MultiPies.Automatic; this.donut3.OtherSlice.Style = Steema.TeeChart.Styles.PieOtherStyles.None; this.donut3.OtherSlice.Text = ""; this.donut3.OtherSlice.Value = 0D; this.donut3.RotationAngle = 180; this.donut3.Shadow.Height = 3; this.donut3.Shadow.Width = 3; this.donut3.Title = "Series0"; this.donut3.UniqueCustomRadius = true; this.donut3.XValues.DataMember = "Angle"; this.donut3.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; this.donut3.YValues.DataMember = "Pie"; // annotation3 this.annotation3.AutoSize = true; this.annotation3.Callout.ArrowHead = Steema.TeeChart.Styles.ArrowHeadStyles.None; this.annotation3.Callout.ArrowHeadDirection = Steema.TeeChart.Styles.ArrowHeadDirection.FromPoint; this.annotation3.Callout.ArrowHeadSize = 8; this.annotation3.Callout.Brush.Color = Color.Black; this.annotation3.Callout.Distance = 0; this.annotation3.Callout.Draw3D = false; this.annotation3.Callout.SizeDouble = 0D; this.annotation3.Callout.SizeUnits = Steema.TeeChart.Styles.PointerSizeUnits.Pixels; this.annotation3.Callout.XPosition = 0; this.annotation3.Callout.YPosition = 0; this.annotation3.Callout.ZPosition = 0; this.annotation3.Position = Steema.TeeChart.Tools.AnnotationPositions.Center; this.annotation3.Shape.Font.Name = "Segoe UI"; this.annotation3.Shape.Font.Size = 29; this.annotation3.Shape.Lines = new string[] { "$1500" }; this.annotation3.Shape.Transparent = true; this.annotation3.Text = "$1500"; // tChart2 this.tChart2.Aspect.Elevation = 315; this.tChart2.Aspect.Orthogonal = false; this.tChart2.Aspect.Perspective = 0; this.tChart2.Aspect.Rotation = 360; this.tChart2.Aspect.View3D = false; this.tChart2.Footer.Font.Brush.Color = Color.Gray; this.tChart2.Header.Visible = false; this.tChart2.Legend.Visible = false; this.tChart2.Panel.Bevel.Outer = Steema.TeeChart.Drawing.BevelStyles.None; this.tChart2.Panel.Brush.Color = Color.White; this.tChart2.Panel.Brush.Gradient.EndColor = Color.White; this.tChart2.Panel.Brush.Gradient.UseMiddle = false; this.tChart2.Series.Add(this.donut2); this.tChart2.Tools.Add(this.annotation2); this.tChart2.Walls.Back.Brush.Gradient.EndColor = Color.White; // donut2 this.donut2.Brush.Color = Color.FromRgb(((int)(((byte)(243)))), ((int)(((byte)(156)))), ((int)(((byte)(53))))); this.donut2.Circled = true; this.donut2.Color = Color.FromRgb(((int)(((byte)(68)))), ((int)(((byte)(102)))), ((int)(((byte)(163))))); this.donut2.DonutPercent = 95; this.donut2.Frame.Circled = true; this.donut2.Frame.FrameElementPercents = new double[] { 25D, 60D, 15D }; this.donut2.Frame.OuterBand.Gradient.UseMiddle = false; this.donut2.LabelMember = "Labels"; this.donut2.Marks.Visible = false; this.donut2.MarksPie.LegSize = 0; this.donut2.MarksPie.VertCenter = false; this.donut2.MultiPie = Steema.TeeChart.Styles.MultiPies.Automatic; this.donut2.OtherSlice.Style = Steema.TeeChart.Styles.PieOtherStyles.None; this.donut2.OtherSlice.Text = ""; this.donut2.OtherSlice.Value = 0D; this.donut2.RotationAngle = 247; this.donut2.Shadow.Height = 3; this.donut2.Shadow.Width = 3; this.donut2.Title = "Series0"; this.donut2.UniqueCustomRadius = true; this.donut2.XValues.DataMember = "Angle"; this.donut2.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; this.donut2.YValues.DataMember = "Pie"; // annotation2 this.annotation2.AutoSize = true; this.annotation2.Callout.ArrowHead = Steema.TeeChart.Styles.ArrowHeadStyles.None; this.annotation2.Callout.ArrowHeadDirection = Steema.TeeChart.Styles.ArrowHeadDirection.FromPoint; this.annotation2.Callout.ArrowHeadSize = 8; this.annotation2.Callout.Brush.Color = Color.Black; this.annotation2.Callout.Distance = 0; this.annotation2.Callout.Draw3D = false; this.annotation2.Callout.SizeDouble = 0D; this.annotation2.Callout.SizeUnits = Steema.TeeChart.Styles.PointerSizeUnits.Pixels; this.annotation2.Callout.XPosition = 0; this.annotation2.Callout.YPosition = 0; this.annotation2.Callout.ZPosition = 0; this.annotation2.Position = Steema.TeeChart.Tools.AnnotationPositions.Center; this.annotation2.Shape.Font.Name = "Segoe UI"; this.annotation2.Shape.Font.Size = 29; this.annotation2.Shape.Lines = new string[] { "3390" }; this.annotation2.Shape.Transparent = true; this.annotation2.Text = "3390"; // tChart4 this.tChart4.Aspect.View3D = false; this.tChart4.Axes.Bottom.MinorTicks.Visible = false; this.tChart4.Axes.Left.Grid.Visible = false; this.tChart4.Axes.Left.Increment = 20D; this.tChart4.Axes.Left.MinorTicks.Visible = false; this.tChart4.Footer.Font.Brush.Color = Color.Blue; this.tChart4.Header.Visible = false; this.tChart4.Legend.Alignment = Steema.TeeChart.LegendAlignments.Bottom; this.tChart4.Legend.Transparent = true; this.tChart4.Panel.Bevel.Outer = Steema.TeeChart.Drawing.BevelStyles.None; this.tChart4.Panel.Brush.Color = Color.White; this.tChart4.Panel.Brush.Gradient.EndColor = Color.White; this.tChart4.Panel.Brush.Gradient.UseMiddle = false; this.tChart4.Series.Add(this.line1); this.tChart4.Series.Add(this.line2); this.tChart4.Series.Add(this.line3); this.tChart4.Tools.Add(this.cursorTool1); this.tChart4.Tools.Add(this.annotation4); this.tChart4.Tools.Add(this.cursorTool2); this.tChart4.Tools.Add(this.annotation6); this.tChart4.Tools.Add(this.cursorTool3); this.tChart4.Tools.Add(this.annotation8); this.tChart4.Walls.Back.Brush.Gradient.EndColor = Color.White; this.tChart4.Walls.Back.Visible = false; this.tChart4.AfterDraw += new Steema.TeeChart.PaintChartEventHandler(this.tChart4_AfterDraw); // line1 this.line1.Brush.Color = Color.FromRgb(((int)(((byte)(68)))), ((int)(((byte)(102)))), ((int)(((byte)(163))))); this.line1.Color = Color.FromRgb(((int)(((byte)(68)))), ((int)(((byte)(102)))), ((int)(((byte)(163))))); this.line1.ColorEach = false; this.line1.ColorMember = "Colors"; this.line1.LinePen.Color = Color.FromRgb(((int)(((byte)(41)))), ((int)(((byte)(61)))), ((int)(((byte)(98))))); this.line1.LinePen.Width = 4; this.line1.Pointer.Pen.Visible = false; this.line1.Pointer.SizeDouble = 0D; this.line1.Pointer.SizeUnits = Steema.TeeChart.Styles.PointerSizeUnits.Pixels; this.line1.Pointer.Style = Steema.TeeChart.Styles.PointerStyles.Circle; this.line1.Title = "Speed"; this.line1.XValues.DataMember = "X"; this.line1.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; this.line1.YValues.DataMember = "Y"; // line2 this.line2.Brush.Color = Color.FromRgb(((int)(((byte)(6)))), ((int)(((byte)(191)))), ((int)(((byte)(89))))); this.line2.Color = Color.FromRgb(((int)(((byte)(6)))), ((int)(((byte)(191)))), ((int)(((byte)(89))))); this.line2.ColorEach = false; this.line2.LinePen.Color = Color.FromRgb(((int)(((byte)(146)))), ((int)(((byte)(94)))), ((int)(((byte)(32))))); this.line2.LinePen.Width = 4; this.line2.Pointer.Pen.Visible = false; this.line2.Pointer.SizeDouble = 0D; this.line2.Pointer.SizeUnits = Steema.TeeChart.Styles.PointerSizeUnits.Pixels; this.line2.Pointer.Style = Steema.TeeChart.Styles.PointerStyles.Circle; this.line2.Title = "Time"; this.line2.XValues.DataMember = "X"; this.line2.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; this.line2.YValues.DataMember = "Y"; // line3 this.line3.Brush.Color = Color.FromRgb(((int)(((byte)(238)))), ((int)(((byte)(17)))), ((int)(((byte)(34))))); this.line3.Color = Color.FromRgb(((int)(((byte)(238)))), ((int)(((byte)(17)))), ((int)(((byte)(34))))); this.line3.ColorEach = false; this.line3.ColorMember = "Colors"; this.line3.LinePen.Color = Color.FromRgb(((int)(((byte)(146)))), ((int)(((byte)(94)))), ((int)(((byte)(32))))); this.line3.LinePen.Width = 4; this.line3.Pointer.Pen.Visible = false; this.line3.Pointer.SizeDouble = 0D; this.line3.Pointer.SizeUnits = Steema.TeeChart.Styles.PointerSizeUnits.Pixels; this.line3.Pointer.Style = Steema.TeeChart.Styles.PointerStyles.Circle; this.line3.Title = "Visitors"; this.line3.XValues.DataMember = "X"; this.line3.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; this.line3.YValues.DataMember = "Y"; // cursorTool1 this.cursorTool1.FollowMouse = true; this.cursorTool1.Pen.Color = Color.Gray; this.cursorTool1.Series = this.line1; this.cursorTool1.Style = Steema.TeeChart.Tools.CursorToolStyles.Vertical; this.cursorTool1.Change += new Steema.TeeChart.Tools.CursorChangeEventHandler(this.cursorTool1_Change); // annotation4 this.annotation4.AutoSize = true; this.annotation4.Callout.ArrowHead = Steema.TeeChart.Styles.ArrowHeadStyles.None; this.annotation4.Callout.ArrowHeadDirection = Steema.TeeChart.Styles.ArrowHeadDirection.FromPoint; this.annotation4.Callout.ArrowHeadSize = 8; this.annotation4.Callout.Brush.Color = Color.Black; this.annotation4.Callout.Distance = 0; this.annotation4.Callout.Draw3D = false; this.annotation4.Callout.SizeDouble = 0D; this.annotation4.Callout.SizeUnits = Steema.TeeChart.Styles.PointerSizeUnits.Pixels; this.annotation4.Callout.XPosition = 0; this.annotation4.Callout.YPosition = 0; this.annotation4.Callout.ZPosition = 0; this.annotation4.Left = 56; this.annotation4.Shape.Bottom = 212; this.annotation4.Shape.Brush.Color = Color.FromRgb(((int)(((byte)(238)))), ((int)(((byte)(17)))), ((int)(((byte)(34))))); this.annotation4.Shape.CustomPosition = true; this.annotation4.Shape.Font.Brush.Color = Color.White; this.annotation4.Shape.Left = 56; this.annotation4.Shape.Lines = new string[] { "0" }; this.annotation4.Shape.Pen.Visible = false; this.annotation4.Shape.Right = 75; this.annotation4.Shape.Shadow.Visible = false; this.annotation4.Shape.ShapeStyle = Steema.TeeChart.Drawing.TextShapeStyle.RoundRectangle; this.annotation4.Shape.Top = 194; this.annotation4.Shape.Visible = false; this.annotation4.Text = "0"; this.annotation4.Top = 194; // cursorTool2 this.cursorTool2.FollowMouse = true; this.cursorTool2.Pen.Color = Color.Gray; this.cursorTool2.Series = this.line2; this.cursorTool2.Style = Steema.TeeChart.Tools.CursorToolStyles.Vertical; // annotation6 this.annotation6.AutoSize = true; this.annotation6.Callout.ArrowHead = Steema.TeeChart.Styles.ArrowHeadStyles.None; this.annotation6.Callout.ArrowHeadDirection = Steema.TeeChart.Styles.ArrowHeadDirection.FromPoint; this.annotation6.Callout.ArrowHeadSize = 8; this.annotation6.Callout.Brush.Color = Color.Black; this.annotation6.Callout.Distance = 0; this.annotation6.Callout.Draw3D = false; this.annotation6.Callout.SizeDouble = 0D; this.annotation6.Callout.SizeUnits = Steema.TeeChart.Styles.PointerSizeUnits.Pixels; this.annotation6.Callout.XPosition = 0; this.annotation6.Callout.YPosition = 0; this.annotation6.Callout.ZPosition = 0; this.annotation6.Left = -19; this.annotation6.Shape.Bottom = 212; this.annotation6.Shape.Brush.Color = Color.FromRgb(((int)(((byte)(238)))), ((int)(((byte)(17)))), ((int)(((byte)(34))))); this.annotation6.Shape.CustomPosition = true; this.annotation6.Shape.Font.Brush.Color = Color.White; this.annotation6.Shape.Left = -19; this.annotation6.Shape.Lines = new string[] { "-0,458" }; this.annotation6.Shape.Pen.Visible = false; this.annotation6.Shape.Right = 29; this.annotation6.Shape.Shadow.Visible = false; this.annotation6.Shape.ShapeStyle = Steema.TeeChart.Drawing.TextShapeStyle.RoundRectangle; this.annotation6.Shape.Top = 194; this.annotation6.Shape.Visible = false; this.annotation6.Text = "-0,458"; this.annotation6.TextAlign = TextAlignment.Center; this.annotation6.Top = 194; // cursorTool3 this.cursorTool3.FollowMouse = true; this.cursorTool3.Pen.Color = Color.Gray; this.cursorTool3.Series = this.line3; this.cursorTool3.Style = Steema.TeeChart.Tools.CursorToolStyles.Vertical; // annotation8 this.annotation8.AutoSize = true; this.annotation8.Callout.ArrowHead = Steema.TeeChart.Styles.ArrowHeadStyles.None; this.annotation8.Callout.ArrowHeadDirection = Steema.TeeChart.Styles.ArrowHeadDirection.FromPoint; this.annotation8.Callout.ArrowHeadSize = 8; this.annotation8.Callout.Brush.Color = Color.Black; this.annotation8.Callout.Distance = 0; this.annotation8.Callout.Draw3D = false; this.annotation8.Callout.SizeDouble = 0D; this.annotation8.Callout.SizeUnits = Steema.TeeChart.Styles.PointerSizeUnits.Pixels; this.annotation8.Callout.XPosition = 0; this.annotation8.Callout.YPosition = 0; this.annotation8.Callout.ZPosition = 0; this.annotation8.Left = -19; this.annotation8.Shape.Bottom = 212; this.annotation8.Shape.Brush.Color = Color.FromRgb(((int)(((byte)(238)))), ((int)(((byte)(17)))), ((int)(((byte)(34))))); this.annotation8.Shape.CustomPosition = true; this.annotation8.Shape.Font.Brush.Color = Color.White; this.annotation8.Shape.Left = -19; this.annotation8.Shape.Lines = new string[] { "-0,458" }; this.annotation8.Shape.Pen.Visible = false; this.annotation8.Shape.Right = 29; this.annotation8.Shape.Shadow.Visible = false; this.annotation8.Shape.ShapeStyle = Steema.TeeChart.Drawing.TextShapeStyle.RoundRectangle; this.annotation8.Shape.Top = 194; this.annotation8.Shape.Visible = false; this.annotation8.Text = "-0,458"; this.annotation8.TextAlign = TextAlignment.Center; this.annotation8.Top = 194; // tChart1 this.tChart1.Aspect.Elevation = 315; this.tChart1.Aspect.Orthogonal = false; this.tChart1.Aspect.Perspective = 0; this.tChart1.Aspect.Rotation = 360; this.tChart1.Aspect.View3D = false; this.tChart1.Footer.Font.Brush.Color = Color.Gray; this.tChart1.Header.Visible = false; this.tChart1.Legend.Visible = false; this.tChart1.Panel.Bevel.Outer = Steema.TeeChart.Drawing.BevelStyles.None; this.tChart1.Panel.Brush.Color = Color.White; this.tChart1.Panel.Brush.Gradient.EndColor = Color.White; this.tChart1.Panel.Brush.Gradient.UseMiddle = false; this.tChart1.Series.Add(this.donut1); this.tChart1.Tools.Add(this.annotation1); this.tChart1.Walls.Back.Brush.Gradient.EndColor = Color.White; // donut1 this.donut1.Brush.Color = Color.FromRgb(((int)(((byte)(243)))), ((int)(((byte)(156)))), ((int)(((byte)(53))))); this.donut1.Circled = true; this.donut1.Color = Color.FromRgb(((int)(((byte)(68)))), ((int)(((byte)(102)))), ((int)(((byte)(163))))); this.donut1.DonutPercent = 95; this.donut1.Frame.Circled = true; this.donut1.Frame.FrameElementPercents = new double[] { 25D, 60D, 15D }; this.donut1.Frame.OuterBand.Gradient.UseMiddle = false; this.donut1.LabelMember = "Labels"; this.donut1.Marks.Visible = false; this.donut1.MarksPie.LegSize = 0; this.donut1.MarksPie.VertCenter = false; this.donut1.MultiPie = Steema.TeeChart.Styles.MultiPies.Automatic; this.donut1.OtherSlice.Style = Steema.TeeChart.Styles.PieOtherStyles.None; this.donut1.OtherSlice.Text = ""; this.donut1.OtherSlice.Value = 0D; this.donut1.RotationAngle = 180; this.donut1.Shadow.Height = 3; this.donut1.Shadow.Width = 3; this.donut1.Title = "Series0"; this.donut1.UniqueCustomRadius = true; this.donut1.XValues.DataMember = "Angle"; this.donut1.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; this.donut1.YValues.DataMember = "Pie"; // annotation1 this.annotation1.AutoSize = true; this.annotation1.Callout.ArrowHead = Steema.TeeChart.Styles.ArrowHeadStyles.None; this.annotation1.Callout.ArrowHeadDirection = Steema.TeeChart.Styles.ArrowHeadDirection.FromPoint; this.annotation1.Callout.ArrowHeadSize = 8; this.annotation1.Callout.Brush.Color = Color.Black; this.annotation1.Callout.Distance = 0; this.annotation1.Callout.Draw3D = false; this.annotation1.Callout.SizeDouble = 0D; this.annotation1.Callout.SizeUnits = Steema.TeeChart.Styles.PointerSizeUnits.Pixels; this.annotation1.Callout.XPosition = 0; this.annotation1.Callout.YPosition = 0; this.annotation1.Callout.ZPosition = 0; this.annotation1.Position = Steema.TeeChart.Tools.AnnotationPositions.Center; this.annotation1.Shape.Font.Name = "Segoe UI"; this.annotation1.Shape.Font.Size = 29; this.annotation1.Shape.Lines = new string[] { "$750" }; this.annotation1.Shape.Transparent = true; this.annotation1.Text = "$750"; tChart1.Panel.Gradient.Visible = false; tChart2.Panel.Gradient.Visible = false; tChart3.Panel.Gradient.Visible = false; tChart4.Panel.Gradient.Visible = false; donut1.Clear(); donut1.Add(750, Color.FromRgb(((int)(((byte)(68)))), ((int)(((byte)(102)))), ((int)(((byte)(163)))))); donut1.Add(250, Color.Transparent); donut1.Pen.Visible = false; donut2.Clear(); donut2.Add(3390, Color.Green); donut2.Add(2510, Color.Transparent); donut2.Pen.Visible = false; donut3.Clear(); donut3.Add(1500, Color.Red); donut3.Add(500, Color.Transparent); donut3.Pen.Visible = false; donut3.Pen.Color = Color.White; double[] vals1 = new double[] { 220, 150, 135, 190, 210, 200 }; double[] vals2 = new double[] { 100, 70, 100, 150, 110, 24 }; double[] vals3 = new double[] { 100, 130, 80, 130, 126, 240 }; line1.Smoothed = true; line2.Smoothed = true; line3.Smoothed = true; line1.Add(vals1); line2.Add(vals2); line3.Add(vals3); annotation4.Shape.Font.Brush.Color = line1.Color; annotation6.Shape.Font.Brush.Color = line2.Color; annotation8.Shape.Font.Brush.Color = line3.Color; cursorTool1_Change(tChart4, new Steema.TeeChart.Tools.CursorChangeEventArgs()); this.tChart1.Aspect.ZoomText = true; this.tChart2.Aspect.ZoomText = true; this.tChart3.Aspect.ZoomText = true; this.tChart4.Aspect.ZoomText = true; chartView1 = new ChartView { VerticalOptions = LayoutOptions.FillAndExpand, HorizontalOptions = LayoutOptions.FillAndExpand, WidthRequest = 25, HeightRequest = 25 }; chartView1.Model = tChart1; chartView2 = new ChartView { VerticalOptions = LayoutOptions.FillAndExpand, HorizontalOptions = LayoutOptions.FillAndExpand, WidthRequest = 25, HeightRequest = 25 }; chartView2.Model = tChart2; chartView3 = new ChartView { VerticalOptions = LayoutOptions.FillAndExpand, HorizontalOptions = LayoutOptions.FillAndExpand, WidthRequest = 25, HeightRequest = 25 }; chartView3.Model = tChart3; chartView4 = new ChartView { VerticalOptions = LayoutOptions.FillAndExpand, HorizontalOptions = LayoutOptions.FillAndExpand, WidthRequest = 25, HeightRequest = 25 }; chartView4.Model = tChart4; Grid grid = new Grid { VerticalOptions = LayoutOptions.FillAndExpand, Padding = 5, RowDefinitions = { new RowDefinition { Height = new GridLength(1, GridUnitType.Star) }, new RowDefinition { Height = new GridLength(1, GridUnitType.Star) } }, ColumnDefinitions = { new ColumnDefinition { Width = new GridLength(1, GridUnitType.Star) }, new ColumnDefinition { Width = new GridLength(1, GridUnitType.Star) }, new ColumnDefinition { Width = new GridLength(1, GridUnitType.Star) } } }; grid.Children.Add(chartView1, 0, 0); grid.Children.Add(chartView2, 1, 0); grid.Children.Add(chartView3, 2, 0); grid.Children.Add(chartView4, 0, 3, 1, 2); // Build the page. this.Content = grid; }