protected override void OnCreate(Bundle savedInstanceState) { base.OnCreate(savedInstanceState); var chart = new TChart(this); var pieStyle = new Steema.TeeChart.Styles.Pie(); chart.Series.Add(pieStyle); // Loading data to the Pie series, we can use Random data just to test var termin1 = 34; var termin2 = 44; var termin3 = 5; var spannungspunkte = termin1 + termin2 + termin3; var rest = 100 - spannungspunkte; pieStyle.Add(termin1, termin1); pieStyle.Add(termin2, termin2); pieStyle.Add(termin3, termin3); pieStyle.Add(rest, rest); //pieStyle.FillSampleValues(4); // Setting Pie series as Circular, and marks visible pieStyle.Circled = true; pieStyle.Marks.Visible = true; SetContentView(chart); }
void InitializeChart() { tChart1 = new Steema.TeeChart.TChart(ApplicationContext); tChart1.Aspect.View3D = false; tChart1.Zoom.Style = Steema.TeeChart.ZoomStyles.InChart; tChart1.Legend.Visible = false; tChart1.Header.Text = "Chart created using Xamarin.Android"; tChart1.Header.Font.Size = 24; tChart1.Header.Font.Color = System.Drawing.Color.Black; tChart1.ContentDescription = "Pie2D"; var pie1 = new Steema.TeeChart.Styles.Pie(tChart1.Chart); pie1.FillSampleValues(4); pie1.Circled = true; pie1.Marks.Transparent = true; pie1.Marks.Arrow.Visible = false; pie1.Marks.Font.Size = 24; pie1.Pen.Width = 8; pie1.Pen.Color = System.Drawing.Color.FromArgb(60, 60, 60); pie1.Pen.EndCap = Android.Graphics.Paint.Cap.Round; pie1.ExplodeBiggest = 15; pie1.ColorEach = false; for (int i = 0; i < pie1.Count; i++) { pie1.Colors[i] = Steema.TeeChart.Themes.Theme.OnBlackPalette [i]; } SetContentView(tChart1); }
public override void ViewDidLoad() { base.ViewDidLoad (); chart1.Frame = DDTUIView.Frame; this.View.AddSubview(chart1); // Bar series Steema.TeeChart.Styles.Pie pie1 = new Steema.TeeChart.Styles.Pie(); chart1.Series.Add(pie1); chart1.Aspect.View3D = true; // Header chart1.Header.Text = "Distribution by Device Type"; chart1.Header.Visible = false; chart1.Header.Alignment = MonoTouch.CoreText.CTTextAlignment.Center; chart1.Header.Shadow.Visible = true; // Formating Legend chart1.Legend.Alignment = LegendAlignments.Bottom; chart1.Legend.Shadow.Visible=false; chart1.Legend.Transparency = 50; // Static series pie1.Add(66,"Smart Phone",UIColor.Blue.CGColor); pie1.Add(21,"USB Modem",UIColor.Red.CGColor); pie1.Add(8,"Wireless Hotspot",UIColor.Green.CGColor); pie1.Add(5,"Others",UIColor.Yellow.CGColor); }
public MainPage() { InitializeComponent(); PieChart = new ChartView(); pie = new Steema.TeeChart.Styles.Pie(); PieChart.Chart.ClickSeries += Chart_ClickSeries; PieChart.Chart.Series.Add(pie); PieChart.Chart.Panning.Allow = ScrollModes.None; PieChart.Chart.Panel.Gradient.Visible = false; PieChart.Chart.Panel.Color = Color.White; PieChart.Chart.Walls.Back.Visible = false; PieChart.Chart.Header.Visible = false; PieChart.Chart.Legend.Visible = false; PieChart.Chart.Aspect.View3D = false; PieChart.WidthRequest = 650; PieChart.HeightRequest = 350; PieChart.Chart.Panel.Brush.Solid = true; pie.Circled = true; pie.AutoPenColor = false; pie.Pen.Color = Color.White; pie.Pen.Width = 15; pie.Marks.Visible = false; pie.FillSampleValues(3); PieChart.Chart.Tools.Add(ann); ann.Active = false; ann.Shape.Font.Size = 25; ann.Shape.TextAlign = TextAlignment.Center; ann.TextAlign = TextAlignment.Center; ann.Shape.Pen.Color = ann.Shape.Color; ann.AutoSize = false; if (Device.OS == TargetPlatform.iOS) { ann.Shape.Width = 80; ann.Shape.Height = 40; } else { ann.Shape.Width = 200; ann.Shape.Height = 100; } Content = new StackLayout { Children = { PieChart }, VerticalOptions = LayoutOptions.CenterAndExpand, HorizontalOptions = LayoutOptions.CenterAndExpand, }; }
public Page5() { // NavigationPage.SetHasNavigationBar(this, false); dashChart = new Chart(); dashChart.Aspect.View3D = false; Steema.TeeChart.Styles.Pie pie1 = new Steema.TeeChart.Styles.Pie(); dashChart.Series.Add(pie1); //pie pie1.Circled = true; pie1.Add(476, "Tables", Color.White); pie1.Add(883, "Chairs", Color.FromRgb(242, 242, 242)); pie1.Add(537, "Sofas", Color.FromRgb(223, 223, 223)); pie1.Add(364, "Cupboards", Color.FromRgb(215, 215, 215)); pie1.Marks.Visible = true; pie1.Marks.Transparent = true; pie1.Pen.Color = Color.FromRgb(255, 105, 180); pie1.Pen.Width = 3; pie1.Marks.Arrow.Visible = false; pie1.Marks.ArrowLength = -25; pie1.Marks.Font.Color = Color.FromRgb(255, 105, 180); // Pie and Donut chart dashChart.Panel.Color = Color.FromRgb(255, 105, 180); dashChart.Panel.Gradient.Visible = false; dashChart.Title.Text = "Pies and Donuts"; dashChart.Title.Alignment = TextAlignment.Center; dashChart.Title.Font.Size = 12; dashChart.Title.Font.Color = Color.White; dashChart.Title.Height = 30; //dashBoard0.Title.Font.Name = ""; dashChart.Legend.Visible = false; DashView4 = new ChartView { VerticalOptions = LayoutOptions.FillAndExpand, HorizontalOptions = LayoutOptions.FillAndExpand, }; DashView4.Model = dashChart; Content = new StackLayout { Children = { DashView4 } }; }
private void InitializeChart() { tChart1.Series.Add(pie = new Steema.TeeChart.Styles.Pie()); pie.FillSampleValues(); tChart1.Legend.TextStyle = LegendTextStyles.Value; tChart1.Legend.ColumnWidthAuto = false; tChart1.Legend.ColumnWidths[0] = 100; // Force re-draw to make tChart1 recalculate all Legend Items[] tChart1.Draw(); numericUpDown1.Maximum = pie.Count - 1; numericUpDown1_Click(this, EventArgs.Empty); }
protected override void OnCreate(Bundle bundle) { base.OnCreate(bundle); chart = new Steema.TeeChart.TChart(this.ApplicationContext); chart.Zoom.Style = Steema.TeeChart.ZoomStyles.FullChart; Steema.TeeChart.Themes.BlackIsBackTheme myTheme = new Steema.TeeChart.Themes.BlackIsBackTheme(chart.Chart); myTheme.Apply(); Bundle extras = Intent.Extras; int seriesType = extras.GetInt("SeriesPosition"); Type tmp = (Type)Steema.TeeChart.Utils.SeriesTypesOf[seriesType]; Steema.TeeChart.Styles.Series series; //Some series can not work without a parent chart due to internal structure. if (tmp.Name == "TreeMap") { series = new Steema.TeeChart.Styles.TreeMap(chart.Chart); } else if (tmp.Name == "PolarGrid") { series = new Steema.TeeChart.Styles.PolarGrid(chart.Chart); } else { series = chart.Series.Add(tmp); } series.FillSampleValues(); chart.Aspect.View3D = Needs3D(chart[0]); //chart.Panel.Transparent = true; if (chart[0] is Steema.TeeChart.Styles.Pie) { Steema.TeeChart.Styles.Pie pie = (Steema.TeeChart.Styles.Pie)chart[0]; pie.EdgeStyle = Steema.TeeChart.Drawing.EdgeStyles.Flat; pie.BevelPercent = 30; chart.Legend.Visible = false; chart.Aspect.Elevation = 300; } SetContentView(chart); }
protected override void OnCreate(Bundle savedInstanceState) { base.OnCreate(savedInstanceState); var chart = new TChart(this); var pieStyle = new Steema.TeeChart.Styles.Pie(); chart.Series.Add(pieStyle); // Loading data to the Pie series, we can use Random data just to test var termin1 = 34; var termin2 = 44; var termin3 = 5; var spannungspunkte = termin1 + termin2 + termin3; var rest = 100 - spannungspunkte; pieStyle.Add(termin1, termin1); pieStyle.Add(termin2, termin2); pieStyle.Add(termin3, termin3); pieStyle.Add(rest, rest); System.Diagnostics.Debug.WriteLine("hallo tages"); Service s = new Service(); List <Task> l = s.getTaskArray(); foreach (var i in l) { System.Diagnostics.Debug.WriteLine(l[1]); } //pieStyle.FillSampleValues(4); // Setting Pie series as Circular, and marks visible pieStyle.Circled = true; pieStyle.Marks.Visible = true; SetContentView(chart); }
private void InitializeChart() { tChart1.DoubleClick += new EventHandler(tChart1_DoubleClick); tChart1.Series.Add(pie1 = new Steema.TeeChart.Styles.Pie()); pie1.FillSampleValues(); pie1.Pen.Visible = false; pie1.BevelPercent = 15; pie1.ExplodeBiggest = 10; pie1.EdgeStyle = Steema.TeeChart.Drawing.EdgeStyles.Curved; pie1.Marks.Transparent = true; pie1.Marks.ArrowLength = 15; pie1.Marks.FontSeriesColor = true; cbEdgeStyles.Items.Add(Steema.TeeChart.Drawing.EdgeStyles.Curved); cbEdgeStyles.Items.Add(Steema.TeeChart.Drawing.EdgeStyles.Flat); cbEdgeStyles.Items.Add(Steema.TeeChart.Drawing.EdgeStyles.None); cbEdgeStyles.SelectedIndex = 0; numericUpDown1.Value = 15; upTransparency.Value = 0; }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.pie1 = new Steema.TeeChart.Styles.Pie(); this.checkBox1 = new System.Windows.Forms.CheckBox(); this.panel1.SuspendLayout(); this.SuspendLayout(); // // textBox1 // this.textBox1.Name = "textBox1"; this.textBox1.Text = "Global method to smooth curve and diagonal lines (Anti-Alias), and new Canvas pro" + "perty to zoom fonts (as percentage)."; // // panel1 // this.panel1.Controls.Add(this.checkBox1); this.panel1.Name = "panel1"; // // tChart1 // // // tChart1.Aspect // this.tChart1.Aspect.Elevation = 315; this.tChart1.Aspect.Orthogonal = false; this.tChart1.Aspect.Perspective = 0; this.tChart1.Aspect.Rotation = 360; this.tChart1.Aspect.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.AntiAlias; this.tChart1.Aspect.TextRenderingHint = System.Drawing.Text.TextRenderingHint.AntiAlias; // // tChart1.Header // this.tChart1.Header.Lines = new string[] { "Anti-Aliased Pie" }; 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.pie1); this.tChart1.AfterDraw += new Steema.TeeChart.PaintChartEventHandler(this.tChart1_AfterDraw); // // pie1 // // // pie1.Brush // this.pie1.Brush.Color = System.Drawing.Color.Red; this.pie1.LabelMember = "Labels"; // // pie1.Marks // // // pie1.Marks.Symbol // // // pie1.Marks.Symbol.Shadow // this.pie1.Marks.Symbol.Shadow.Height = 1; this.pie1.Marks.Symbol.Shadow.Visible = true; this.pie1.Marks.Symbol.Shadow.Width = 1; // // pie1.Shadow // this.pie1.Shadow.Height = 20; this.pie1.Shadow.Width = 20; this.pie1.Title = "pie1"; // // pie1.XValues // this.pie1.XValues.DataMember = "Angle"; this.pie1.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; // // pie1.YValues // this.pie1.YValues.DataMember = "Pie"; // // checkBox1 // this.checkBox1.Location = new System.Drawing.Point(16, 8); this.checkBox1.Name = "checkBox1"; this.checkBox1.TabIndex = 0; this.checkBox1.Text = "Anti-Alias"; this.checkBox1.Click += new System.EventHandler(this.checkBox1_Click); this.checkBox1.CheckedChanged += new System.EventHandler(this.checkBox1_CheckedChanged); // // Canvas_AntiAlias // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(440, 317); this.Name = "Canvas_AntiAlias"; this.panel1.ResumeLayout(false); this.ResumeLayout(false); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.components = new System.ComponentModel.Container(); this.checkBox1 = new System.Windows.Forms.CheckBox(); this.buttonColor1 = new Steema.TeeChart.ButtonColor(); this.groupBox1 = new System.Windows.Forms.GroupBox(); this.radioButton3 = new System.Windows.Forms.RadioButton(); this.radioButton2 = new System.Windows.Forms.RadioButton(); this.radioButton1 = new System.Windows.Forms.RadioButton(); this.pie1 = new Steema.TeeChart.Styles.Pie(); this.timer1 = new System.Windows.Forms.Timer(this.components); this.panel1.SuspendLayout(); this.groupBox1.SuspendLayout(); this.SuspendLayout(); // // textBox1 // this.textBox1.Name = "textBox1"; this.textBox1.Text = "A procedure to draw elliptical shadows. \r\nUseful for circular series like Pie, at" + " Chart OnBeforeDrawSeries event.\r\n\r\nDrawEllipseShadow( Chart1.Canvas, Chart1.Col" + "or, R );"; // // panel1 // this.panel1.Controls.Add(this.groupBox1); this.panel1.Controls.Add(this.buttonColor1); this.panel1.Controls.Add(this.checkBox1); this.panel1.Name = "panel1"; // // tChart1 // // // tChart1.Aspect // this.tChart1.Aspect.Elevation = 315; this.tChart1.Aspect.Orthogonal = false; this.tChart1.Aspect.Perspective = 0; this.tChart1.Aspect.Rotation = 360; this.tChart1.Aspect.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.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.Gray; // // tChart1.Axes.Left.Ticks // this.tChart1.Axes.Left.Ticks.Length = 2; // // 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" }; this.tChart1.Header.Visible = false; // // tChart1.Legend // // // tChart1.Legend.Shadow // // // tChart1.Legend.Shadow.Brush // this.tChart1.Legend.Shadow.Brush.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(0)), ((System.Byte)(0)), ((System.Byte)(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.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.ImageBevel // this.tChart1.Panel.ImageBevel.Visible = true; this.tChart1.Panel.ImageBevel.Width = 5; // // tChart1.Panel.Shadow // this.tChart1.Panel.Shadow.Height = 0; this.tChart1.Panel.Shadow.Width = 0; this.tChart1.Series.Add(this.pie1); // // tChart1.Walls // // // tChart1.Walls.Right // // // tChart1.Walls.Right.Brush // this.tChart1.Walls.Right.Brush.Color = System.Drawing.Color.Silver; this.tChart1.BeforeDrawSeries += new Steema.TeeChart.PaintChartEventHandler(this.tChart1_BeforeDrawSeries); // // checkBox1 // this.checkBox1.Checked = true; this.checkBox1.CheckState = System.Windows.Forms.CheckState.Checked; this.checkBox1.Location = new System.Drawing.Point(16, 8); this.checkBox1.Name = "checkBox1"; this.checkBox1.TabIndex = 0; this.checkBox1.Text = "View Shadow:"; this.checkBox1.CheckedChanged += new System.EventHandler(this.checkBox1_CheckedChanged); // // buttonColor1 // this.buttonColor1.Color = System.Drawing.Color.Empty; this.buttonColor1.Location = new System.Drawing.Point(136, 9); this.buttonColor1.Name = "buttonColor1"; this.buttonColor1.TabIndex = 1; this.buttonColor1.Text = "Color..."; // // groupBox1 // this.groupBox1.Controls.Add(this.radioButton3); this.groupBox1.Controls.Add(this.radioButton2); this.groupBox1.Controls.Add(this.radioButton1); this.groupBox1.Location = new System.Drawing.Point(232, 0); this.groupBox1.Name = "groupBox1"; this.groupBox1.Size = new System.Drawing.Size(184, 37); this.groupBox1.TabIndex = 2; this.groupBox1.TabStop = false; this.groupBox1.Text = "Animation"; // // radioButton3 // this.radioButton3.Location = new System.Drawing.Point(128, 17); this.radioButton3.Name = "radioButton3"; this.radioButton3.Size = new System.Drawing.Size(50, 13); this.radioButton3.TabIndex = 2; this.radioButton3.Text = "Fast"; this.radioButton3.CheckedChanged += new System.EventHandler(this.radioButton_CheckedChanged); // // radioButton2 // this.radioButton2.Checked = true; this.radioButton2.Location = new System.Drawing.Point(71, 17); this.radioButton2.Name = "radioButton2"; this.radioButton2.Size = new System.Drawing.Size(50, 13); this.radioButton2.TabIndex = 1; this.radioButton2.TabStop = true; this.radioButton2.Text = "Slow"; this.radioButton2.CheckedChanged += new System.EventHandler(this.radioButton_CheckedChanged); // // radioButton1 // this.radioButton1.Location = new System.Drawing.Point(14, 17); this.radioButton1.Name = "radioButton1"; this.radioButton1.Size = new System.Drawing.Size(50, 13); this.radioButton1.TabIndex = 0; this.radioButton1.Text = "None"; this.radioButton1.CheckedChanged += new System.EventHandler(this.radioButton_CheckedChanged); // // pie1 // // // pie1.Brush // this.pie1.Brush.Color = System.Drawing.Color.FromArgb(((System.Byte)(255)), ((System.Byte)(153)), ((System.Byte)(153))); this.pie1.LabelMember = "Labels"; // // pie1.Marks // // // pie1.Marks.Symbol // // // pie1.Marks.Symbol.Shadow // this.pie1.Marks.Symbol.Shadow.Height = 1; this.pie1.Marks.Symbol.Shadow.Visible = true; this.pie1.Marks.Symbol.Shadow.Width = 1; // // pie1.Pen // this.pie1.Pen.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(128)), ((System.Byte)(128)), ((System.Byte)(128))); // // pie1.Shadow // this.pie1.Shadow.Height = 20; this.pie1.Shadow.Width = 20; this.pie1.Title = "pie1"; // // pie1.XValues // this.pie1.XValues.DataMember = "Angle"; this.pie1.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; // // pie1.YValues // this.pie1.YValues.DataMember = "Pie"; // // timer1 // this.timer1.Enabled = true; this.timer1.Interval = 200; this.timer1.Tick += new System.EventHandler(this.timer1_Tick); // // PieShadowEllipse // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(440, 317); this.Name = "PieShadowEllipse"; this.panel1.ResumeLayout(false); this.groupBox1.ResumeLayout(false); this.ResumeLayout(false); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.pieSeries1 = new Steema.TeeChart.Styles.Pie(); this.label1 = new System.Windows.Forms.Label(); this.comboBox1 = new System.Windows.Forms.ComboBox(); this.panel1.SuspendLayout(); this.SuspendLayout(); // // textBox1 // this.textBox1.Name = "textBox1"; this.textBox1.Size = new System.Drawing.Size(466, 63); this.textBox1.Text = "Several different legend text styles are supported via the Legend.TextStyle prope" + "rty.\r\n\r\nExample: tChart1.Legend.TextStyle =Steema.TeeChart.LegendTextStyles.Left" + "Value;"; // // panel1 // this.panel1.Controls.Add(this.comboBox1); 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.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.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.pieSeries1); this.tChart1.Size = new System.Drawing.Size(466, 182); // // pieSeries1 // // // pieSeries1.Brush // this.pieSeries1.Brush.Color = System.Drawing.Color.Red; this.pieSeries1.LabelMember = "Labels"; // // pieSeries1.Marks // // // pieSeries1.Marks.Symbol // // // pieSeries1.Marks.Symbol.Shadow // this.pieSeries1.Marks.Symbol.Shadow.Height = 1; this.pieSeries1.Marks.Symbol.Shadow.Visible = true; this.pieSeries1.Marks.Symbol.Shadow.Width = 1; // // pieSeries1.Pen // this.pieSeries1.Pen.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(128)), ((System.Byte)(128)), ((System.Byte)(128))); // // pieSeries1.Shadow // this.pieSeries1.Shadow.Height = 20; this.pieSeries1.Shadow.Width = 20; this.pieSeries1.Title = "pieSeries1"; // // pieSeries1.XValues // this.pieSeries1.XValues.DataMember = "Angle"; this.pieSeries1.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; // // pieSeries1.YValues // this.pieSeries1.YValues.DataMember = "Pie"; // // label1 // this.label1.AutoSize = true; this.label1.Location = new System.Drawing.Point(26, 11); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(36, 16); this.label1.TabIndex = 0; this.label1.Text = "&Style :"; this.label1.TextAlign = System.Drawing.ContentAlignment.TopRight; // // comboBox1 // this.comboBox1.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.comboBox1.Items.AddRange(new object[] { "Plain", "Left Value", "Right Value", "Left Percent", "Right Percent", "X Value", "Value", "Percent", "X and Value", "X and Percent" }); this.comboBox1.Location = new System.Drawing.Point(67, 9); this.comboBox1.Name = "comboBox1"; this.comboBox1.Size = new System.Drawing.Size(100, 21); this.comboBox1.TabIndex = 1; this.comboBox1.SelectedIndexChanged += new System.EventHandler(this.comboBox1_SelectedIndexChanged); // // Legend_TextStyle // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(466, 286); this.Name = "Legend_TextStyle"; this.Load += new System.EventHandler(this.Legend_TextStyle_Load); this.panel1.ResumeLayout(false); this.ResumeLayout(false); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.pieSeries1 = new Steema.TeeChart.Styles.Pie(); this.checkBox1 = new System.Windows.Forms.CheckBox(); this.checkBox2 = new System.Windows.Forms.CheckBox(); this.panel1.SuspendLayout(); this.SuspendLayout(); // // textBox1 // this.textBox1.Name = "textBox1"; this.textBox1.Size = new System.Drawing.Size(466, 64); this.textBox1.Text = "The AngleSize property, used with RotationAngle, can display horizontal or vertic" + "al partial pie series.\r\n\r\nExample: pieSeries1.AngleSize = 180 ; pieSeries1.Rot" + "ationAngle = 90;"; // // panel1 // this.panel1.Controls.Add(this.checkBox2); 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, 34); // // tChart1 // // // tChart1.Aspect // this.tChart1.Aspect.Elevation = 315; this.tChart1.Aspect.Orthogonal = false; this.tChart1.Aspect.Perspective = 0; this.tChart1.Aspect.Rotation = 360; this.tChart1.Aspect.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.HighQuality; this.tChart1.Aspect.TextRenderingHint = System.Drawing.Text.TextRenderingHint.ClearTypeGridFit; this.tChart1.Aspect.View3D = false; // // tChart1.Header // this.tChart1.Header.Lines = new string[] { "tChart1" }; this.tChart1.Location = new System.Drawing.Point(0, 98); 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.pieSeries1); this.tChart1.Size = new System.Drawing.Size(466, 188); // // pieSeries1 // // // pieSeries1.Brush // this.pieSeries1.Brush.Color = System.Drawing.Color.Red; this.pieSeries1.LabelMember = "Labels"; // // pieSeries1.Marks // // // pieSeries1.Marks.Symbol // // // pieSeries1.Marks.Symbol.Shadow // this.pieSeries1.Marks.Symbol.Shadow.Height = 1; this.pieSeries1.Marks.Symbol.Shadow.Visible = true; this.pieSeries1.Marks.Symbol.Shadow.Width = 1; // // pieSeries1.Pen // this.pieSeries1.Pen.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(128)), ((System.Byte)(128)), ((System.Byte)(128))); // // pieSeries1.Shadow // this.pieSeries1.Shadow.Height = 20; this.pieSeries1.Shadow.Width = 20; this.pieSeries1.Title = "pieSeries1"; // // pieSeries1.XValues // this.pieSeries1.XValues.DataMember = "Angle"; this.pieSeries1.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; // // pieSeries1.YValues // this.pieSeries1.YValues.DataMember = "Pie"; // // 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(20, 7); this.checkBox1.Name = "checkBox1"; this.checkBox1.Size = new System.Drawing.Size(87, 21); this.checkBox1.TabIndex = 0; this.checkBox1.Text = "&Semi"; 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(120, 7); this.checkBox2.Name = "checkBox2"; this.checkBox2.Size = new System.Drawing.Size(87, 21); this.checkBox2.TabIndex = 1; this.checkBox2.Text = "&Vertical"; this.checkBox2.CheckedChanged += new System.EventHandler(this.checkBox2_CheckedChanged); // // Pie_Semi // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(466, 286); this.Name = "Pie_Semi"; 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.tChart1 = new Steema.TeeChart.TChart(); this.pieSeries1 = new Steema.TeeChart.Styles.Pie(); this.lineSeries1 = new Steema.TeeChart.Styles.Line(); this.lineSeries2 = new Steema.TeeChart.Styles.Line(); this.fastLineSeries1 = new Steema.TeeChart.Styles.FastLine(); this.timer1 = new System.Timers.Timer(); ((System.ComponentModel.ISupportInitialize)(this.timer1)).BeginInit(); this.SuspendLayout(); // // tChart1 // // // tChart1.Aspect // this.tChart1.Aspect.Elevation = 315; this.tChart1.Aspect.Orthogonal = false; this.tChart1.Aspect.Perspective = 0; this.tChart1.Aspect.Rotation = 360; this.tChart1.Aspect.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.AntiAlias; this.tChart1.Aspect.TextRenderingHint = System.Drawing.Text.TextRenderingHint.AntiAlias; this.tChart1.BackColor = System.Drawing.Color.White; this.tChart1.Cursor = System.Windows.Forms.Cursors.Default; this.tChart1.Dock = System.Windows.Forms.DockStyle.Fill; // // tChart1.Header // this.tChart1.Header.Lines = new string[] { "tChart1" }; this.tChart1.Header.Visible = false; // // tChart1.Legend // this.tChart1.Legend.Visible = false; this.tChart1.Location = new System.Drawing.Point(0, 0); this.tChart1.Name = "tChart1"; // // tChart1.Panel // // // tChart1.Panel.Bevel // this.tChart1.Panel.Bevel.Outer = Steema.TeeChart.Drawing.BevelStyles.None; // // tChart1.Panel.Brush // this.tChart1.Panel.Brush.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(255))); // // tChart1.Panel.Gradient // //this.tChart1.Panel.Gradient.EndColor = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(21)), ((System.Byte)(60)), ((System.Byte)(89))); //this.tChart1.Panel.Gradient.MiddleColor = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(255))); //this.tChart1.Panel.Gradient.Sigma = true; //this.tChart1.Panel.Gradient.SigmaFocus = 1F; //this.tChart1.Panel.Gradient.SigmaScale = 0.8F; //this.tChart1.Panel.Gradient.StartColor = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(255))); this.tChart1.Panel.Gradient.UseMiddle = true; this.tChart1.Panel.Gradient.Visible = true; this.tChart1.Series.Add(this.pieSeries1); this.tChart1.Series.Add(this.lineSeries1); this.tChart1.Series.Add(this.lineSeries2); this.tChart1.Series.Add(this.fastLineSeries1); this.tChart1.Size = new System.Drawing.Size(393, 279); this.tChart1.TabIndex = 0; this.tChart1.AfterDraw += new Steema.TeeChart.PaintChartEventHandler(this.tChart1_AfterDraw); this.tChart1.BeforeDraw += new Steema.TeeChart.PaintChartEventHandler(this.tChart1_BeforeDraw); // // pieSeries1 // // // pieSeries1.Brush // this.pieSeries1.Brush.Color = System.Drawing.Color.Red; this.pieSeries1.CircleBackColor = System.Drawing.Color.FromArgb(((System.Byte)(0)), ((System.Byte)(0)), ((System.Byte)(0)), ((System.Byte)(0))); this.pieSeries1.ExplodeBiggest = 30; this.pieSeries1.LabelMember = "Labels"; // // pieSeries1.Marks // // // pieSeries1.Marks.Symbol // // // pieSeries1.Marks.Symbol.Shadow // this.pieSeries1.Marks.Symbol.Shadow.Height = 1; this.pieSeries1.Marks.Symbol.Shadow.Visible = true; this.pieSeries1.Marks.Symbol.Shadow.Width = 1; // // pieSeries1.Pen // this.pieSeries1.Pen.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(192)), ((System.Byte)(192)), ((System.Byte)(192))); // // pieSeries1.Shadow // this.pieSeries1.Shadow.Height = 20; this.pieSeries1.Shadow.Width = 20; this.pieSeries1.Title = "pie1"; // // pieSeries1.XValues // this.pieSeries1.XValues.DataMember = "Angle"; this.pieSeries1.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; // // pieSeries1.YValues // this.pieSeries1.YValues.DataMember = "Pie"; // // lineSeries1 // // // lineSeries1.Brush // this.lineSeries1.Brush.Color = System.Drawing.Color.FromArgb(((System.Byte)(198)), ((System.Byte)(255)), ((System.Byte)(199)), ((System.Byte)(26))); // // lineSeries1.Gradient // this.lineSeries1.Brush.Gradient.Transparency = 25; // // lineSeries1.Gradient // this.lineSeries1.Gradient.Transparency = 25; // // lineSeries1.LinePen // this.lineSeries1.LinePen.Visible = false; // // lineSeries1.Marks // // // lineSeries1.Marks.Symbol // // // lineSeries1.Marks.Symbol.Shadow // this.lineSeries1.Marks.Symbol.Shadow.Height = 1; this.lineSeries1.Marks.Symbol.Shadow.Visible = true; this.lineSeries1.Marks.Symbol.Shadow.Width = 1; // // lineSeries1.Pointer // this.lineSeries1.Pointer.Style = Steema.TeeChart.Styles.PointerStyles.Rectangle; this.lineSeries1.Title = "line2"; this.lineSeries1.Visible = false; // // lineSeries1.XValues // this.lineSeries1.XValues.DataMember = "X"; this.lineSeries1.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; // // lineSeries1.YValues // this.lineSeries1.YValues.DataMember = "Y"; // // lineSeries2 // // // lineSeries2.Brush // this.lineSeries2.Brush.Color = System.Drawing.Color.FromArgb(((System.Byte)(198)), ((System.Byte)(106)), ((System.Byte)(106)), ((System.Byte)(255))); // // lineSeries2.Gradient // this.lineSeries2.Brush.Gradient.Transparency = 35; // // lineSeries2.Gradient // this.lineSeries2.Gradient.Transparency = 35; // // lineSeries2.LinePen // this.lineSeries2.LinePen.Visible = false; // // lineSeries2.Marks // // // lineSeries2.Marks.Symbol // // // lineSeries2.Marks.Symbol.Shadow // this.lineSeries2.Marks.Symbol.Shadow.Height = 1; this.lineSeries2.Marks.Symbol.Shadow.Visible = true; this.lineSeries2.Marks.Symbol.Shadow.Width = 1; // // lineSeries2.Pointer // this.lineSeries2.Pointer.Style = Steema.TeeChart.Styles.PointerStyles.Rectangle; this.lineSeries2.Title = "line3"; this.lineSeries2.Visible = false; // // lineSeries2.XValues // this.lineSeries2.XValues.DataMember = "X"; this.lineSeries2.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; // // lineSeries2.YValues // this.lineSeries2.YValues.DataMember = "Y"; // // fastLineSeries1 // // // fastLineSeries1.LinePen // this.fastLineSeries1.LinePen.Color = System.Drawing.Color.FromArgb(((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(204))); // // fastLineSeries1.Marks // // // fastLineSeries1.Marks.Symbol // // // fastLineSeries1.Marks.Symbol.Shadow // this.fastLineSeries1.Marks.Symbol.Shadow.Height = 1; this.fastLineSeries1.Marks.Symbol.Shadow.Visible = true; this.fastLineSeries1.Marks.Symbol.Shadow.Width = 1; this.fastLineSeries1.Title = "fast Line4"; this.fastLineSeries1.Visible = false; // // fastLineSeries1.XValues // this.fastLineSeries1.XValues.DataMember = "X"; this.fastLineSeries1.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; // // fastLineSeries1.YValues // this.fastLineSeries1.YValues.DataMember = "Y"; // // timer1 // this.timer1.SynchronizingObject = this; this.timer1.Elapsed += new System.Timers.ElapsedEventHandler(this.timer1_Elapsed); // // WelcomeForm // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.BackColor = System.Drawing.Color.White; this.ClientSize = new System.Drawing.Size(393, 279); this.Controls.Add(this.tChart1); this.Name = "WelcomeForm"; this.Text = "WelcomeForm"; this.Load += new System.EventHandler(this.WelcomeForm_Load); ((System.ComponentModel.ISupportInitialize)(this.timer1)).EndInit(); this.ResumeLayout(false); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.pie1 = new Steema.TeeChart.Styles.Pie(); this.checkBox1 = new System.Windows.Forms.CheckBox(); this.panel1.SuspendLayout(); this.SuspendLayout(); // // textBox1 // this.textBox1.Name = "textBox1"; this.textBox1.Text = "Pie series can display Marks using an anti-overlap algorithm. \r\nThe algorithm mov" + "es marks outside the space of previous point marks. \r\n\r\npie1.AutoMarkPosition = " + "true; // default is True"; // // panel1 // this.panel1.Controls.Add(this.checkBox1); this.panel1.Name = "panel1"; // // tChart1 // // // tChart1.Aspect // this.tChart1.Aspect.Elevation = 315; this.tChart1.Aspect.Orthogonal = false; this.tChart1.Aspect.Perspective = 0; this.tChart1.Aspect.Rotation = 360; this.tChart1.Aspect.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.HighQuality; this.tChart1.Aspect.TextRenderingHint = System.Drawing.Text.TextRenderingHint.ClearTypeGridFit; this.tChart1.Cursor = System.Windows.Forms.Cursors.Default; // // tChart1.Header // this.tChart1.Header.Lines = new string[0]; // // tChart1.Legend // // // tChart1.Legend.Brush // this.tChart1.Legend.Brush.Color = System.Drawing.Color.FromArgb(((System.Byte)(127)), ((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(255))); // // tChart1.Legend.Gradient // this.tChart1.Legend.Brush.Gradient.Transparency = 50; // // tChart1.Legend.Gradient // this.tChart1.Legend.Gradient.Transparency = 50; // // tChart1.Legend.Shadow // // // tChart1.Legend.Shadow.Brush // this.tChart1.Legend.Shadow.Brush.Color = System.Drawing.Color.FromArgb(((System.Byte)(127)), ((System.Byte)(0)), ((System.Byte)(0)), ((System.Byte)(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))); this.tChart1.Series.Add(this.pie1); // // pie1 // // // pie1.Brush // this.pie1.Brush.Color = System.Drawing.Color.Red; this.pie1.LabelMember = "Labels"; // // pie1.Marks // // // pie1.Marks.Symbol // // // pie1.Marks.Symbol.Shadow // this.pie1.Marks.Symbol.Shadow.Height = 1; this.pie1.Marks.Symbol.Shadow.Visible = true; this.pie1.Marks.Symbol.Shadow.Width = 1; // // pie1.Pen // this.pie1.Pen.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(128)), ((System.Byte)(128)), ((System.Byte)(128))); // // pie1.Shadow // this.pie1.Shadow.Height = 20; this.pie1.Shadow.Width = 20; this.pie1.Title = "pie1"; // // pie1.XValues // this.pie1.XValues.DataMember = "Angle"; this.pie1.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; // // pie1.YValues // this.pie1.YValues.DataMember = "Pie"; // // checkBox1 // this.checkBox1.Checked = true; this.checkBox1.CheckState = System.Windows.Forms.CheckState.Checked; this.checkBox1.Location = new System.Drawing.Point(8, 8); this.checkBox1.Name = "checkBox1"; this.checkBox1.Size = new System.Drawing.Size(152, 24); this.checkBox1.TabIndex = 0; this.checkBox1.Text = "AutoMark Position"; this.checkBox1.Click += new System.EventHandler(this.checkBox1_Click); // // Pie_AutoMarkPosition // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(440, 317); this.Name = "Pie_AutoMarkPosition"; this.panel1.ResumeLayout(false); this.ResumeLayout(false); }
public ChartToolsPage(Type toolsType) { chart.HeightRequest = 300; chart.WidthRequest = 300; ToolsGalleryDemos toolsDemos = new ToolsGalleryDemos(chart.Chart, typeof(TeeChartTheme)); chart.Chart.Aspect.View3D = false; chart.Chart.Panel.Bevel.Inner = BevelStyles.None; chart.Chart.Panel.Bevel.Outer = BevelStyles.None; chart.Chart.Panel.Gradient.Visible = true; chart.Chart.Zoom.Active = false; chart.Chart.Touch.Style = Steema.TeeChart.TouchStyle.InChart; toolsDemos.CreateGallery(toolsType); ReportTheme theme = new ReportTheme(chart.Chart); Steema.TeeChart.Themes.Theme.ApplyChartTheme(theme, chart.Chart); Steema.TeeChart.Themes.ColorPalettes.ApplyPalette(chart.Chart, Theme.OnBlackPalette); chart.Chart.Header.Font.Color = Color.Gray; chart.Chart.Axes.Left.AxisPen.Color = Color.Gray; chart.Chart.Axes.Bottom.AxisPen.Color = Color.Gray; chart.Chart.Axes.Left.Labels.Font.Color = Color.Gray; chart.Chart.Axes.Bottom.Labels.Font.Color = Color.Gray; if (chart.Chart.Series.Count > 0) { if (chart.Chart.Series[0] is Steema.TeeChart.Styles.Pie) { Steema.TeeChart.Styles.Pie pie = ((Steema.TeeChart.Styles.Pie)(chart.Chart.Series[0])); pie.Circled = true; pie.CircleGradient.Visible = false; } } if (chart.Chart.Tools.Count > 0) { foreach (Steema.TeeChart.Tools.Tool s in chart.Chart.Tools) { if (s is Steema.TeeChart.Tools.Annotation) { Steema.TeeChart.Tools.Annotation annotation = ((Steema.TeeChart.Tools.Annotation)(s)); annotation.Shape.Font.Size = 12; annotation.TextAlign = TextAlignment.Center; annotation.Shape.Gradient.StartColor = Color.FromRgb(120, 120, 120); } if (s is Steema.TeeChart.Tools.GridBand) { Steema.TeeChart.Tools.GridBand gridband = ((Steema.TeeChart.Tools.GridBand)(s)); gridband.Band1.Color = Color.FromRgb(192, 192, 192); gridband.Band2.Color = Color.FromRgb(225, 225, 225); chart.Chart.Axes.Left.Labels.RoundFirstLabel = true; chart.Chart.Axes.Left.Labels.Separation = 100; } } } chart.InvalidateDisplay(); chart.Chart.Invalidate(); Content = new StackLayout { Children = { chart }, VerticalOptions = LayoutOptions.CenterAndExpand, HorizontalOptions = LayoutOptions.CenterAndExpand, }; }
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; } }
/// <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(Marks_PerPoint)); this.label2 = new System.Windows.Forms.Label(); this.button1 = new System.Windows.Forms.Button(); this.numericUpDown1 = new System.Windows.Forms.NumericUpDown(); this.button2 = new System.Windows.Forms.Button(); this.label1 = new System.Windows.Forms.Label(); this.pie1 = new Steema.TeeChart.Styles.Pie(); this.panel1.SuspendLayout(); this.chartContainer.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.numericUpDown1)).BeginInit(); this.SuspendLayout(); // // textBox1 // this.textBox1.Size = new System.Drawing.Size(466, 64); this.textBox1.TabIndex = 0; this.textBox1.Text = "Series Marks can be individually customized using the default property:\r\n\r\npie1.M" + "arks.Items[3].Font.Size = 14 ; // custom font for mark item 3"; // // panel1 // this.panel1.Controls.Add(this.label1); this.panel1.Controls.Add(this.button2); this.panel1.Controls.Add(this.numericUpDown1); this.panel1.Controls.Add(this.button1); this.panel1.Controls.Add(this.label2); this.panel1.Location = new System.Drawing.Point(0, 64); this.panel1.Size = new System.Drawing.Size(466, 40); this.panel1.TabIndex = 1; // // tChart1 // // // // this.tChart1.Aspect.Chart3DPercent = 20; this.tChart1.Aspect.Elevation = 310; this.tChart1.Aspect.ElevationFloat = 310; this.tChart1.Aspect.Orthogonal = false; this.tChart1.Aspect.Perspective = 0; this.tChart1.Aspect.Rotation = 360; this.tChart1.Aspect.RotationFloat = 360; this.tChart1.Aspect.ZOffset = 0; // // // // // // // // // this.tChart1.Axes.Bottom.Grid.Color = System.Drawing.Color.FromArgb(((int)(((byte)(254)))), ((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(192))))); // // // // // // this.tChart1.Axes.Left.Grid.Color = System.Drawing.Color.FromArgb(((int)(((byte)(254)))), ((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(192))))); this.tChart1.BackColor = System.Drawing.Color.Transparent; this.tChart1.Cursor = System.Windows.Forms.Cursors.Default; // // // this.tChart1.Header.AdjustFrame = false; // // // this.tChart1.Header.Brush.Color = System.Drawing.Color.FromArgb(((int)(((byte)(254)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); // // // this.tChart1.Header.Font.Bold = true; // // // this.tChart1.Header.Font.Brush.Color = System.Drawing.Color.FromArgb(((int)(((byte)(254)))), ((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(192))))); this.tChart1.Header.Font.Brush.ForegroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(254)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.tChart1.Header.Font.Brush.Solid = false; this.tChart1.Header.Font.Brush.Style = System.Drawing.Drawing2D.HatchStyle.Percent50; this.tChart1.Header.Font.Name = "Microsoft Sans Serif"; this.tChart1.Header.Font.Size = 14; this.tChart1.Header.Font.SizeFloat = 14F; this.tChart1.Header.Lines = new string[] { "Marks per point" }; // // // // // // this.tChart1.Header.Shadow.Brush.Color = System.Drawing.Color.FromArgb(((int)(((byte)(254)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); this.tChart1.Header.Shadow.Height = 1; this.tChart1.Header.Shadow.Width = 1; // // // // // // this.tChart1.Legend.Pen.Visible = false; // // // // // // this.tChart1.Legend.Shadow.Brush.Color = System.Drawing.Color.FromArgb(((int)(((byte)(155)))), ((int)(((byte)(128)))), ((int)(((byte)(128)))), ((int)(((byte)(128))))); this.tChart1.Legend.Shadow.Height = 4; this.tChart1.Legend.Shadow.Width = 4; // // // this.tChart1.Legend.Symbol.DefaultPen = false; // // // // // // this.tChart1.Panel.Brush.Color = System.Drawing.Color.FromArgb(((int)(((byte)(254)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); // // // this.tChart1.Panel.Brush.Gradient.EndColor = System.Drawing.Color.FromArgb(((int)(((byte)(254)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); this.tChart1.Panel.Brush.Gradient.Sigma = true; this.tChart1.Panel.Brush.Gradient.SigmaFocus = 0.447F; this.tChart1.Panel.Brush.Gradient.SigmaScale = 0.694F; this.tChart1.Panel.Brush.Gradient.StartColor = System.Drawing.Color.FromArgb(((int)(((byte)(254)))), ((int)(((byte)(223)))), ((int)(((byte)(223)))), ((int)(((byte)(255))))); this.tChart1.Series.Add(this.pie1); this.tChart1.Size = new System.Drawing.Size(466, 182); this.tChart1.TabIndex = 2; // // chartContainer // this.chartContainer.Location = new System.Drawing.Point(0, 104); this.chartContainer.Size = new System.Drawing.Size(466, 182); // // label2 // this.label2.AutoSize = true; this.label2.Location = new System.Drawing.Point(24, 13); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(34, 13); this.label2.TabIndex = 2; this.label2.Text = "&Mark:"; // // button1 // this.button1.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.button1.Location = new System.Drawing.Point(108, 8); this.button1.Name = "button1"; this.button1.Size = new System.Drawing.Size(80, 24); this.button1.TabIndex = 1; this.button1.Text = "&Edit..."; this.button1.Click += new System.EventHandler(this.button1_Click); // // numericUpDown1 // this.numericUpDown1.Location = new System.Drawing.Point(56, 10); this.numericUpDown1.Name = "numericUpDown1"; this.numericUpDown1.Size = new System.Drawing.Size(40, 20); this.numericUpDown1.TabIndex = 0; this.numericUpDown1.ValueChanged += new System.EventHandler(this.numericUpDown1_ValueChanged); // // button2 // this.button2.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.button2.Location = new System.Drawing.Point(208, 8); this.button2.Name = "button2"; this.button2.Size = new System.Drawing.Size(80, 24); this.button2.TabIndex = 2; this.button2.Text = "&Reset"; this.button2.Click += new System.EventHandler(this.button2_Click); // // label1 // this.label1.AutoSize = true; this.label1.Location = new System.Drawing.Point(304, 12); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(35, 13); this.label1.TabIndex = 7; this.label1.Text = "label1"; // // pie1 // // // // this.pie1.Brush.Color = System.Drawing.Color.FromArgb(((int)(((byte)(179)))), ((int)(((byte)(8)))), ((int)(((byte)(14))))); this.pie1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(68)))), ((int)(((byte)(102)))), ((int)(((byte)(163))))); this.pie1.LabelMember = "Labels"; // // // this.pie1.Marks.ArrowLength = 10; // // // this.pie1.Marks.Callout.ArrowHead = Steema.TeeChart.Styles.ArrowHeadStyles.None; this.pie1.Marks.Callout.ArrowHeadSize = 8; // // // this.pie1.Marks.Callout.Brush.Color = System.Drawing.Color.Black; this.pie1.Marks.Callout.Distance = 0; this.pie1.Marks.Callout.Draw3D = false; this.pie1.Marks.Callout.Length = 10; this.pie1.Marks.Callout.Style = Steema.TeeChart.Styles.PointerStyles.Rectangle; this.pie1.Marks.Callout.Visible = false; // // // this.pie1.MarksPie.LegSize = 0; this.pie1.MarksPie.VertCenter = false; this.pie1.MultiPie = Steema.TeeChart.Styles.MultiPies.Automatic; // // // this.pie1.OtherSlice.Color = System.Drawing.Color.Empty; this.pie1.OtherSlice.Style = Steema.TeeChart.Styles.PieOtherStyles.None; this.pie1.OtherSlice.Text = ""; this.pie1.OtherSlice.Value = 0; // // // this.pie1.Pen.Color = System.Drawing.Color.FromArgb(((int)(((byte)(254)))), ((int)(((byte)(128)))), ((int)(((byte)(128)))), ((int)(((byte)(128))))); // // // this.pie1.Shadow.Height = 20; this.pie1.Shadow.Width = 20; this.pie1.Title = "pie1"; this.pie1.Transparency = 0; // // // this.pie1.XValues.DataMember = "Angle"; this.pie1.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; // // // this.pie1.YValues.DataMember = "Pie"; // // MarksPerPoint // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(466, 286); this.Name = "MarksPerPoint"; this.panel1.ResumeLayout(false); this.panel1.PerformLayout(); this.chartContainer.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.numericUpDown1)).EndInit(); this.ResumeLayout(false); this.PerformLayout(); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.pieSeries1 = new Steema.TeeChart.Styles.Pie(); this.checkBox1 = new System.Windows.Forms.CheckBox(); this.trackBar1 = new System.Windows.Forms.TrackBar(); this.trackBar2 = new System.Windows.Forms.TrackBar(); this.label1 = new System.Windows.Forms.Label(); this.label2 = new System.Windows.Forms.Label(); this.panel1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.trackBar1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.trackBar2)).BeginInit(); this.SuspendLayout(); // // textBox1 // this.textBox1.Name = "textBox1"; this.textBox1.Size = new System.Drawing.Size(511, 64); this.textBox1.TabIndex = 0; this.textBox1.Text = "The Chart Legend can be custom-positioned.\r\n\r\nExample: tChart1.Legend.CustomPosit" + "ion = true;\r\n tChart1.Legend.Left := 123;"; // // panel1 // this.panel1.Controls.Add(this.label2); this.panel1.Controls.Add(this.label1); this.panel1.Controls.Add(this.trackBar2); this.panel1.Controls.Add(this.trackBar1); 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(511, 40); this.panel1.TabIndex = 1; // // tChart1 // // // tChart1.Aspect // this.tChart1.Aspect.Elevation = 315; this.tChart1.Aspect.Orthogonal = false; this.tChart1.Aspect.Perspective = 0; this.tChart1.Aspect.Rotation = 360; this.tChart1.Aspect.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.HighQuality; this.tChart1.Aspect.TextRenderingHint = System.Drawing.Text.TextRenderingHint.ClearTypeGridFit; // // tChart1.Header // this.tChart1.Header.Lines = new string[] { "tChart1" }; // // tChart1.Legend // this.tChart1.Legend.Alignment = Steema.TeeChart.LegendAlignments.Left; // // tChart1.Legend.Pen // this.tChart1.Legend.Pen.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(192)), ((System.Byte)(192)), ((System.Byte)(192))); 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.pieSeries1); this.tChart1.Size = new System.Drawing.Size(511, 208); this.tChart1.TabIndex = 2; // // pieSeries1 // // // pieSeries1.Brush // this.pieSeries1.Brush.Color = System.Drawing.Color.Red; this.pieSeries1.LabelMember = "Labels"; // // pieSeries1.Marks // // // pieSeries1.Marks.Pen // this.pieSeries1.Marks.Pen.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(192)), ((System.Byte)(192)), ((System.Byte)(192))); // // pieSeries1.Marks.Symbol // // // pieSeries1.Marks.Symbol.Shadow // this.pieSeries1.Marks.Symbol.Shadow.Height = 1; this.pieSeries1.Marks.Symbol.Shadow.Visible = true; this.pieSeries1.Marks.Symbol.Shadow.Width = 1; // // pieSeries1.Pen // this.pieSeries1.Pen.Visible = false; // // pieSeries1.Shadow // this.pieSeries1.Shadow.Height = 20; this.pieSeries1.Shadow.Width = 20; this.pieSeries1.Title = "pieSeries1"; // // pieSeries1.XValues // this.pieSeries1.XValues.DataMember = "Angle"; this.pieSeries1.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; // // pieSeries1.YValues // this.pieSeries1.YValues.DataMember = "Pie"; // // 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(15, 8); this.checkBox1.Name = "checkBox1"; this.checkBox1.Size = new System.Drawing.Size(109, 23); this.checkBox1.TabIndex = 0; this.checkBox1.Text = "&Custom position"; this.checkBox1.CheckedChanged += new System.EventHandler(this.checkBox1_CheckedChanged); // // trackBar1 // this.trackBar1.AutoSize = false; this.trackBar1.Location = new System.Drawing.Point(183, 11); this.trackBar1.Maximum = 300; this.trackBar1.Name = "trackBar1"; this.trackBar1.Size = new System.Drawing.Size(102, 17); this.trackBar1.TabIndex = 2; this.trackBar1.TickFrequency = 20; this.trackBar1.Scroll += new System.EventHandler(this.trackBar1_Scroll); // // trackBar2 // this.trackBar2.AutoSize = false; this.trackBar2.Location = new System.Drawing.Point(336, 11); this.trackBar2.Maximum = 300; this.trackBar2.Name = "trackBar2"; this.trackBar2.Size = new System.Drawing.Size(102, 17); this.trackBar2.TabIndex = 4; this.trackBar2.TickFrequency = 20; this.trackBar2.Scroll += new System.EventHandler(this.trackBar2_Scroll); // // label1 // this.label1.AutoSize = true; this.label1.Location = new System.Drawing.Point(146, 11); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(26, 16); this.label1.TabIndex = 1; this.label1.Text = "&Left:"; this.label1.TextAlign = System.Drawing.ContentAlignment.TopRight; // // label2 // this.label2.AutoSize = true; this.label2.Location = new System.Drawing.Point(292, 11); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(27, 16); this.label2.TabIndex = 3; this.label2.Text = "&Top:"; this.label2.TextAlign = System.Drawing.ContentAlignment.TopRight; // // Legend_CustomPos // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(511, 312); this.Name = "Legend_CustomPos"; this.panel1.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.trackBar1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.trackBar2)).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() { this.bEdit = new System.Windows.Forms.Button(); this.pie1 = new Steema.TeeChart.Styles.Pie(); this.panel1.SuspendLayout(); this.SuspendLayout(); // // textBox1 // this.textBox1.Name = "textBox1"; this.textBox1.Text = "Image Bevels are an alternative to standard Windows bevels and \r\ncan be configure" + "d to any number of interesting combinations to give\r\nthat extra touch to your ch" + "arts."; // // panel1 // this.panel1.Controls.Add(this.bEdit); this.panel1.Name = "panel1"; // // tChart1 // // // tChart1.Aspect // this.tChart1.Aspect.Chart3DPercent = 70; this.tChart1.Aspect.Elevation = 333; this.tChart1.Aspect.HorizOffset = -12; this.tChart1.Aspect.Orthogonal = false; this.tChart1.Aspect.Perspective = 46; this.tChart1.Aspect.Rotation = 342; this.tChart1.Aspect.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.AntiAlias; this.tChart1.Aspect.TextRenderingHint = System.Drawing.Text.TextRenderingHint.AntiAlias; this.tChart1.Aspect.VertOffset = -12; this.tChart1.Aspect.Zoom = 79; // // tChart1.Axes // // // tChart1.Axes.Bottom // // // tChart1.Axes.Bottom.AxisPen // this.tChart1.Axes.Bottom.AxisPen.Width = 1; // // tChart1.Axes.Bottom.Grid // this.tChart1.Axes.Bottom.Grid.Color = System.Drawing.Color.FromArgb(((System.Byte)(255)), ((System.Byte)(185)), ((System.Byte)(185))); // // tChart1.Axes.Bottom.Labels // // // tChart1.Axes.Bottom.Labels.Font // this.tChart1.Axes.Bottom.Labels.Font.Bold = true; // // tChart1.Axes.Bottom.Labels.Font.Brush // this.tChart1.Axes.Bottom.Labels.Font.Name = "Tahoma"; // // tChart1.Axes.Bottom.MinorGrid // this.tChart1.Axes.Bottom.MinorGrid.Color = System.Drawing.Color.FromArgb(((System.Byte)(229)), ((System.Byte)(229)), ((System.Byte)(229))); this.tChart1.Axes.Bottom.MinorGrid.Visible = true; this.tChart1.Axes.Bottom.MinorTickCount = 7; // // tChart1.Axes.Bottom.Ticks // this.tChart1.Axes.Bottom.Ticks.Length = 5; // // 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.AxisPen // this.tChart1.Axes.Left.AxisPen.Color = System.Drawing.Color.Navy; this.tChart1.Axes.Left.AxisPen.Width = 1; // // tChart1.Axes.Left.Grid // this.tChart1.Axes.Left.Grid.Color = System.Drawing.Color.Blue; // // tChart1.Axes.Left.Labels // // // tChart1.Axes.Left.Labels.Font // this.tChart1.Axes.Left.Labels.Font.Bold = true; // // tChart1.Axes.Left.Labels.Font.Brush // this.tChart1.Axes.Left.Labels.Font.Name = "Tahoma"; // // tChart1.Axes.Left.Ticks // this.tChart1.Axes.Left.Ticks.Length = 2; // // 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; this.tChart1.Axes.Right.Visible = false; // // tChart1.Axes.Top // // // tChart1.Axes.Top.AxisPen // this.tChart1.Axes.Top.AxisPen.Visible = false; // // 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 // // // tChart1.Header.Brush // this.tChart1.Header.Brush.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(0)), ((System.Byte)(0)), ((System.Byte)(0))); // // tChart1.Header.Gradient // this.tChart1.Header.Brush.Gradient.EndColor = System.Drawing.Color.Black; this.tChart1.Header.Brush.Gradient.MiddleColor = System.Drawing.Color.FromArgb(((System.Byte)(128)), ((System.Byte)(0)), ((System.Byte)(64))); this.tChart1.Header.Brush.Gradient.StartColor = System.Drawing.Color.Gray; this.tChart1.Header.Brush.Gradient.UseMiddle = true; 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.Navy; this.tChart1.Header.Font.Name = "Verdana"; this.tChart1.Header.Font.Size = 12; // // tChart1.Header.Gradient // this.tChart1.Header.Gradient.EndColor = System.Drawing.Color.Black; this.tChart1.Header.Gradient.MiddleColor = System.Drawing.Color.FromArgb(((System.Byte)(128)), ((System.Byte)(0)), ((System.Byte)(64))); this.tChart1.Header.Gradient.StartColor = System.Drawing.Color.Gray; this.tChart1.Header.Gradient.UseMiddle = true; this.tChart1.Header.Gradient.Visible = true; this.tChart1.Header.Lines = new string[] { "Image Bevels" }; // // tChart1.Header.Pen // this.tChart1.Header.Pen.Color = System.Drawing.Color.FromArgb(((System.Byte)(153)), ((System.Byte)(221)), ((System.Byte)(251))); 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.Direction = System.Drawing.Drawing2D.LinearGradientMode.Horizontal; this.tChart1.Legend.Brush.Gradient.EndColor = System.Drawing.Color.FromArgb(((System.Byte)(206)), ((System.Byte)(219)), ((System.Byte)(255))); this.tChart1.Legend.Brush.Gradient.MiddleColor = System.Drawing.Color.FromArgb(((System.Byte)(224)), ((System.Byte)(230)), ((System.Byte)(233))); this.tChart1.Legend.Brush.Gradient.StartColor = System.Drawing.Color.FromArgb(((System.Byte)(255)), ((System.Byte)(243)), ((System.Byte)(234))); this.tChart1.Legend.Brush.Gradient.UseMiddle = true; this.tChart1.Legend.Brush.Gradient.Visible = true; // // tChart1.Legend.DividingLines // this.tChart1.Legend.DividingLines.Color = System.Drawing.Color.Silver; this.tChart1.Legend.DividingLines.Visible = true; // // 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))); // // tChart1.Legend.Gradient // this.tChart1.Legend.Gradient.Direction = System.Drawing.Drawing2D.LinearGradientMode.Horizontal; this.tChart1.Legend.Gradient.EndColor = System.Drawing.Color.FromArgb(((System.Byte)(206)), ((System.Byte)(219)), ((System.Byte)(255))); this.tChart1.Legend.Gradient.MiddleColor = System.Drawing.Color.FromArgb(((System.Byte)(224)), ((System.Byte)(230)), ((System.Byte)(233))); this.tChart1.Legend.Gradient.StartColor = System.Drawing.Color.FromArgb(((System.Byte)(255)), ((System.Byte)(243)), ((System.Byte)(234))); this.tChart1.Legend.Gradient.UseMiddle = true; this.tChart1.Legend.Gradient.Visible = true; // // tChart1.Legend.Shadow // // // tChart1.Legend.Shadow.Brush // this.tChart1.Legend.Shadow.Brush.Color = System.Drawing.Color.FromArgb(((System.Byte)(127)), ((System.Byte)(0)), ((System.Byte)(0)), ((System.Byte)(0))); this.tChart1.Legend.Shadow.Height = 4; this.tChart1.Legend.Shadow.Width = 5; // // tChart1.Legend.Symbol // this.tChart1.Legend.Symbol.Squared = true; this.tChart1.Legend.Visible = false; this.tChart1.Name = "tChart1"; // // tChart1.Panel // // // tChart1.Panel.Brush // this.tChart1.Panel.Brush.Color = System.Drawing.Color.FromArgb(((System.Byte)(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)(255)), ((System.Byte)(255)), ((System.Byte)(128))); this.tChart1.Panel.Brush.Gradient.StartColor = System.Drawing.Color.FromArgb(((System.Byte)(165)), ((System.Byte)(3)), ((System.Byte)(32))); this.tChart1.Panel.Brush.Gradient.UseMiddle = true; // // tChart1.Panel.Gradient // this.tChart1.Panel.Gradient.MiddleColor = System.Drawing.Color.FromArgb(((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(128))); this.tChart1.Panel.Gradient.StartColor = System.Drawing.Color.FromArgb(((System.Byte)(165)), ((System.Byte)(3)), ((System.Byte)(32))); this.tChart1.Panel.Gradient.UseMiddle = true; // // tChart1.Panel.ImageBevel // // // tChart1.Panel.ImageBevel.Brush // this.tChart1.Panel.ImageBevel.Brush.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(128)), ((System.Byte)(128)), ((System.Byte)(208))); this.tChart1.Panel.ImageBevel.Brush.ForegroundColor = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(192)), ((System.Byte)(192)), ((System.Byte)(192))); this.tChart1.Panel.ImageBevel.Brush.Solid = false; this.tChart1.Panel.ImageBevel.Brush.Style = System.Drawing.Drawing2D.HatchStyle.Shingle; // // tChart1.Panel.ImageBevel.Pen // this.tChart1.Panel.ImageBevel.Pen.Color = System.Drawing.Color.FromArgb(((System.Byte)(127)), ((System.Byte)(0)), ((System.Byte)(0)), ((System.Byte)(0))); this.tChart1.Panel.ImageBevel.Pen.Transparency = 50; this.tChart1.Panel.ImageBevel.Pen.Visible = false; this.tChart1.Panel.ImageBevel.Pen.Width = 2; this.tChart1.Panel.ImageBevel.Visible = true; this.tChart1.Panel.ImageBevel.Width = 18; // // tChart1.Panel.Pen // this.tChart1.Panel.Pen.Color = System.Drawing.Color.Navy; this.tChart1.Panel.Pen.Width = 6; // // tChart1.Panel.Shadow // // // tChart1.Panel.Shadow.Brush // this.tChart1.Panel.Shadow.Brush.Color = System.Drawing.Color.Black; this.tChart1.Panel.Shadow.Height = 7; this.tChart1.Panel.Shadow.Visible = true; this.tChart1.Panel.Shadow.Width = 7; // // tChart1.Walls // // // tChart1.Walls.Back // // // tChart1.Walls.Back.Brush // this.tChart1.Walls.Back.Brush.Color = System.Drawing.Color.FromArgb(((System.Byte)(51)), ((System.Byte)(207)), ((System.Byte)(236)), ((System.Byte)(252))); // // tChart1.Walls.Back.Gradient // this.tChart1.Walls.Back.Brush.Gradient.Transparency = 80; // // tChart1.Walls.Back.Gradient // this.tChart1.Walls.Back.Gradient.Transparency = 80; // // tChart1.Walls.Back.Pen // this.tChart1.Walls.Back.Pen.Visible = false; this.tChart1.Walls.Back.Size = 5; this.tChart1.Walls.Back.Transparent = false; // // tChart1.Walls.Bottom // // // tChart1.Walls.Bottom.Brush // this.tChart1.Walls.Bottom.Brush.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(192))); // // tChart1.Walls.Bottom.Pen // this.tChart1.Walls.Bottom.Pen.Visible = false; this.tChart1.Walls.Bottom.Size = 5; // // tChart1.Walls.Left // // // tChart1.Walls.Left.Brush // this.tChart1.Walls.Left.Brush.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(53)), ((System.Byte)(53)), ((System.Byte)(0))); // // 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; this.tChart1.Walls.Right.Size = 5; // // bEdit // this.bEdit.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.bEdit.Location = new System.Drawing.Point(16, 8); this.bEdit.Name = "bEdit"; this.bEdit.Size = new System.Drawing.Size(72, 23); this.bEdit.TabIndex = 0; this.bEdit.Text = "Edit..."; this.bEdit.Click += new System.EventHandler(this.bEdit_Click); // // pie1 // // // pie1.Brush // this.pie1.Brush.Color = System.Drawing.Color.FromArgb(((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(204))); // // pie1.Marks // // // pie1.Marks.Symbol // // // pie1.Marks.Symbol.Shadow // this.pie1.Marks.Symbol.Shadow.Height = 1; this.pie1.Marks.Symbol.Shadow.Visible = true; this.pie1.Marks.Symbol.Shadow.Width = 1; // // pie1.Shadow // this.pie1.Shadow.Height = 20; this.pie1.Shadow.Width = 20; this.pie1.Title = "pie1"; // // pie1.XValues // this.pie1.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; // // PanelImageBevel // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(440, 317); this.Name = "PanelImageBevel"; 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.pieSeries1 = new Steema.TeeChart.Styles.Pie(); this.pieSeries2 = new Steema.TeeChart.Styles.Pie(); this.pieSeries3 = new Steema.TeeChart.Styles.Pie(); this.pieSeries4 = new Steema.TeeChart.Styles.Pie(); this.SuspendLayout(); // // textBox1 // this.textBox1.Name = "textBox1"; this.textBox1.Size = new System.Drawing.Size(466, 63); this.textBox1.Text = "Multiple Pie series can be aligned using the BeforeDrawValues event and the Chart" + "Rect property.\r\n\r\nExample: tChart1.Chart.ChartRect = new Rectangle( 20, 20, 200," + "200 );"; // // panel1 // this.panel1.Location = new System.Drawing.Point(0, 63); this.panel1.Name = "panel1"; this.panel1.Size = new System.Drawing.Size(466, 27); this.panel1.Visible = false; // // tChart1 // // // tChart1.Aspect // this.tChart1.Aspect.Elevation = 315; this.tChart1.Aspect.Orthogonal = false; this.tChart1.Aspect.Perspective = 0; this.tChart1.Aspect.Rotation = 360; this.tChart1.Aspect.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.HighQuality; this.tChart1.Aspect.TextRenderingHint = System.Drawing.Text.TextRenderingHint.ClearTypeGridFit; // // tChart1.Header // this.tChart1.Header.Lines = new string[] { "Multiple pies per chart" }; // // tChart1.Legend // this.tChart1.Legend.Visible = false; this.tChart1.Location = new System.Drawing.Point(0, 90); 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.pieSeries1); this.tChart1.Series.Add(this.pieSeries2); this.tChart1.Series.Add(this.pieSeries3); this.tChart1.Series.Add(this.pieSeries4); this.tChart1.Size = new System.Drawing.Size(466, 196); // // pieSeries1 // // // pieSeries1.Brush // this.pieSeries1.Brush.Color = System.Drawing.Color.Red; this.pieSeries1.LabelMember = "Labels"; // // pieSeries1.Marks // // // pieSeries1.Marks.Symbol // // // pieSeries1.Marks.Symbol.Shadow // this.pieSeries1.Marks.Symbol.Shadow.Height = 1; this.pieSeries1.Marks.Symbol.Shadow.Visible = true; this.pieSeries1.Marks.Symbol.Shadow.Width = 1; // // pieSeries1.Pen // this.pieSeries1.Pen.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(128)), ((System.Byte)(128)), ((System.Byte)(128))); // // pieSeries1.Shadow // this.pieSeries1.Shadow.Height = 20; this.pieSeries1.Shadow.Width = 20; this.pieSeries1.Title = "pieSeries1"; // // pieSeries1.XValues // this.pieSeries1.XValues.DataMember = "Angle"; this.pieSeries1.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; // // pieSeries1.YValues // this.pieSeries1.YValues.DataMember = "Pie"; this.pieSeries1.BeforeDrawValues += new Steema.TeeChart.PaintChartEventHandler(this.pieSeries1_BeforeDrawValues); // // pieSeries2 // // // pieSeries2.Brush // this.pieSeries2.Brush.Color = System.Drawing.Color.Green; this.pieSeries2.LabelMember = "Labels"; // // pieSeries2.Marks // // // pieSeries2.Marks.Symbol // // // pieSeries2.Marks.Symbol.Shadow // this.pieSeries2.Marks.Symbol.Shadow.Height = 1; this.pieSeries2.Marks.Symbol.Shadow.Visible = true; this.pieSeries2.Marks.Symbol.Shadow.Width = 1; // // pieSeries2.Pen // this.pieSeries2.Pen.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(128)), ((System.Byte)(128)), ((System.Byte)(128))); // // pieSeries2.Shadow // this.pieSeries2.Shadow.Height = 20; this.pieSeries2.Shadow.Width = 20; this.pieSeries2.Title = "pieSeries2"; // // pieSeries2.XValues // this.pieSeries2.XValues.DataMember = "Angle"; this.pieSeries2.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; // // pieSeries2.YValues // this.pieSeries2.YValues.DataMember = "Pie"; this.pieSeries2.BeforeDrawValues += new Steema.TeeChart.PaintChartEventHandler(this.pieSeries2_BeforeDrawValues); // // pieSeries3 // // // pieSeries3.Brush // this.pieSeries3.Brush.Color = System.Drawing.Color.Yellow; this.pieSeries3.LabelMember = "Labels"; // // pieSeries3.Marks // // // pieSeries3.Marks.Symbol // // // pieSeries3.Marks.Symbol.Shadow // this.pieSeries3.Marks.Symbol.Shadow.Height = 1; this.pieSeries3.Marks.Symbol.Shadow.Visible = true; this.pieSeries3.Marks.Symbol.Shadow.Width = 1; // // pieSeries3.Pen // this.pieSeries3.Pen.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(128)), ((System.Byte)(128)), ((System.Byte)(128))); // // pieSeries3.Shadow // this.pieSeries3.Shadow.Height = 20; this.pieSeries3.Shadow.Width = 20; this.pieSeries3.Title = "pieSeries3"; // // pieSeries3.XValues // this.pieSeries3.XValues.DataMember = "Angle"; this.pieSeries3.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; // // pieSeries3.YValues // this.pieSeries3.YValues.DataMember = "Pie"; this.pieSeries3.BeforeDrawValues += new Steema.TeeChart.PaintChartEventHandler(this.pieSeries3_BeforeDrawValues); // // pieSeries4 // // // pieSeries4.Brush // this.pieSeries4.Brush.Color = System.Drawing.Color.Blue; this.pieSeries4.LabelMember = "Labels"; // // pieSeries4.Marks // // // pieSeries4.Marks.Symbol // // // pieSeries4.Marks.Symbol.Shadow // this.pieSeries4.Marks.Symbol.Shadow.Height = 1; this.pieSeries4.Marks.Symbol.Shadow.Visible = true; this.pieSeries4.Marks.Symbol.Shadow.Width = 1; // // pieSeries4.Pen // this.pieSeries4.Pen.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(128)), ((System.Byte)(128)), ((System.Byte)(128))); // // pieSeries4.Shadow // this.pieSeries4.Shadow.Height = 20; this.pieSeries4.Shadow.Width = 20; this.pieSeries4.Title = "pieSeries4"; // // pieSeries4.XValues // this.pieSeries4.XValues.DataMember = "Angle"; this.pieSeries4.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; // // pieSeries4.YValues // this.pieSeries4.YValues.DataMember = "Pie"; this.pieSeries4.BeforeDrawValues += new Steema.TeeChart.PaintChartEventHandler(this.pieSeries4_BeforeDrawValues); // // Pie_Multi // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(466, 286); this.Name = "Pie_Multi"; 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.pie1 = new Steema.TeeChart.Styles.Pie(); this.checkBox1 = new System.Windows.Forms.CheckBox(); this.button1 = new System.Windows.Forms.Button(); this.panel1.SuspendLayout(); this.SuspendLayout(); // // textBox1 // this.textBox1.Name = "textBox1"; this.textBox1.Text = "New Pie series Legend property to display a sub-legend for Pie \"Other\" grouped sl" + "ices. \r\n\r\npie1.OtherSlice.Legend.Visible = true;"; // // panel1 // this.panel1.Controls.Add(this.button1); this.panel1.Controls.Add(this.checkBox1); this.panel1.Name = "panel1"; // // tChart1 // // // tChart1.Aspect // this.tChart1.Aspect.Elevation = 315; this.tChart1.Aspect.Orthogonal = false; this.tChart1.Aspect.Perspective = 0; this.tChart1.Aspect.Rotation = 360; this.tChart1.Aspect.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.HighQuality; this.tChart1.Aspect.TextRenderingHint = System.Drawing.Text.TextRenderingHint.ClearTypeGridFit; // // tChart1.Header // this.tChart1.Header.Lines = new string[] { "tChart1" }; this.tChart1.Name = "tChart1"; // // tChart1.Panel // // // tChart1.Panel.Brush // this.tChart1.Panel.Brush.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(255))); this.tChart1.Series.Add(this.pie1); this.tChart1.AfterDraw += new Steema.TeeChart.PaintChartEventHandler(this.tChart1_AfterDraw); // // pie1 // // // pie1.Brush // this.pie1.Brush.Color = System.Drawing.Color.Red; this.pie1.LabelMember = "Labels"; // // pie1.Marks // // // pie1.Marks.Symbol // // // pie1.Marks.Symbol.Shadow // this.pie1.Marks.Symbol.Shadow.Height = 1; this.pie1.Marks.Symbol.Shadow.Visible = true; this.pie1.Marks.Symbol.Shadow.Width = 1; // // pie1.Pen // this.pie1.Pen.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(128)), ((System.Byte)(128)), ((System.Byte)(128))); // // pie1.Shadow // this.pie1.Shadow.Height = 20; this.pie1.Shadow.Width = 20; this.pie1.Title = "pie1"; // // pie1.XValues // this.pie1.XValues.DataMember = "Angle"; this.pie1.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; // // pie1.YValues // this.pie1.YValues.DataMember = "Pie"; // // checkBox1 // this.checkBox1.Checked = true; this.checkBox1.CheckState = System.Windows.Forms.CheckState.Checked; this.checkBox1.Location = new System.Drawing.Point(8, 8); this.checkBox1.Name = "checkBox1"; this.checkBox1.Size = new System.Drawing.Size(136, 24); this.checkBox1.TabIndex = 0; this.checkBox1.Text = "Show \"other\" Legend"; this.checkBox1.Click += new System.EventHandler(this.checkBox1_Click); // // button1 // this.button1.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.button1.Location = new System.Drawing.Point(203, 10); this.button1.Name = "button1"; this.button1.Size = new System.Drawing.Size(84, 23); this.button1.TabIndex = 1; this.button1.Text = "Edit Legend..."; this.button1.Click += new System.EventHandler(this.button1_Click); // // Pie_OtherLegend // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(440, 317); this.Name = "Pie_OtherLegend"; this.panel1.ResumeLayout(false); this.ResumeLayout(false); }
/// <summary> /// Method to draw frequency pie graph from the datatable /// </summary> /// <param name="dataTable">DataTable with the source data</param> /// <param name="chart">Chart to insert pie into</param> private void DrawPieFromDataTable(ArrayList categoriesFrequency, Steema.TeeChart.TChart chart) { chart.Series.RemoveAllSeries(); Steema.TeeChart.Styles.Pie pieSeries; pieSeries = new Steema.TeeChart.Styles.Pie(); pieSeries.ColorEach = true; pieSeries.Marks.Style = Steema.TeeChart.Styles.MarksStyles.LabelValue; if (this.ToolStripMenuItemToggleMarks.Checked) { pieSeries.Marks.Visible = true; } else { pieSeries.Marks.Visible = false; } foreach (CategoryFrequency catFrequency in categoriesFrequency) { double temp; try { temp = Convert.ToDouble(catFrequency.count); } catch { temp = 0; } if (this.ToolStripMenuItemAbsolute.Checked) { pieSeries.Add(temp, catFrequency.key); } else { if ((temp != 0) && (this.rowCount != 0)) { temp = Math.Round(((temp / (double)this.rowCount) * 100), 2); pieSeries.Add(temp, catFrequency.key); } else { pieSeries.Add(0, catFrequency.key); } } chart.Series.Add(pieSeries); } }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.components = new System.ComponentModel.Container(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(LegendSymbolFlags)); this.checkBox1 = new System.Windows.Forms.CheckBox(); this.buttonPen1 = new Steema.TeeChart.ButtonPen(); this.pie1 = new Steema.TeeChart.Styles.Pie(); this.imageList1 = new System.Windows.Forms.ImageList(this.components); this.panel1.SuspendLayout(); this.chartContainer.SuspendLayout(); this.SuspendLayout(); // // textBox1 // this.textBox1.Text = "The Legend.Symbol \"OnSymbolDraw\" event can be used to customize the display\r\nof l" + "egend symbols, for example to show country flags like this example."; // // panel1 // this.panel1.Controls.Add(this.buttonPen1); this.panel1.Controls.Add(this.checkBox1); // // tChart1 // // // // this.tChart1.Aspect.Elevation = 315; this.tChart1.Aspect.ElevationFloat = 315; this.tChart1.Aspect.Orthogonal = false; this.tChart1.Aspect.Perspective = 0; this.tChart1.Aspect.Rotation = 360; this.tChart1.Aspect.RotationFloat = 360; this.tChart1.Aspect.ThemeIndex = 4; this.tChart1.Aspect.ZOffset = 0; // // // // // // // // // this.tChart1.Axes.Bottom.Grid.Color = System.Drawing.Color.FromArgb(((int)(((byte)(196)))), ((int)(((byte)(196)))), ((int)(((byte)(196))))); this.tChart1.Axes.Bottom.Grid.Style = System.Drawing.Drawing2D.DashStyle.Solid; this.tChart1.Axes.Bottom.Grid.Visible = false; // // // // // // 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; this.tChart1.Axes.Bottom.Labels.Font.SizeFloat = 10F; // // // this.tChart1.Axes.Bottom.MinorGrid.Color = System.Drawing.Color.FromArgb(((int)(((byte)(229)))), ((int)(((byte)(229)))), ((int)(((byte)(229))))); // // // this.tChart1.Axes.Bottom.MinorTicks.Color = System.Drawing.Color.Black; this.tChart1.Axes.Bottom.MinorTicks.Length = -3; // // // this.tChart1.Axes.Bottom.Ticks.Color = System.Drawing.Color.Black; this.tChart1.Axes.Bottom.Ticks.Length = 0; // // // this.tChart1.Axes.Bottom.TicksInner.Color = System.Drawing.Color.Black; this.tChart1.Axes.Bottom.TicksInner.Length = 6; // // // // // // this.tChart1.Axes.Depth.Grid.Color = System.Drawing.Color.FromArgb(((int)(((byte)(196)))), ((int)(((byte)(196)))), ((int)(((byte)(196))))); this.tChart1.Axes.Depth.Grid.Style = System.Drawing.Drawing2D.DashStyle.Solid; // // // // // // this.tChart1.Axes.Depth.Labels.Font.Name = "Lucida Console"; this.tChart1.Axes.Depth.Labels.Font.Size = 10; this.tChart1.Axes.Depth.Labels.Font.SizeFloat = 10F; // // // this.tChart1.Axes.Depth.MinorTicks.Color = System.Drawing.Color.Black; this.tChart1.Axes.Depth.MinorTicks.Length = -3; // // // this.tChart1.Axes.Depth.Ticks.Color = System.Drawing.Color.Black; this.tChart1.Axes.Depth.Ticks.Length = 0; // // // this.tChart1.Axes.Depth.TicksInner.Color = System.Drawing.Color.Black; this.tChart1.Axes.Depth.TicksInner.Length = 6; // // // // // // this.tChart1.Axes.Left.Grid.Color = System.Drawing.Color.FromArgb(((int)(((byte)(196)))), ((int)(((byte)(196)))), ((int)(((byte)(196))))); this.tChart1.Axes.Left.Grid.Style = System.Drawing.Drawing2D.DashStyle.Solid; // // // // // // 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; this.tChart1.Axes.Left.Labels.Font.SizeFloat = 10F; // // // this.tChart1.Axes.Left.MinorTicks.Color = System.Drawing.Color.Black; this.tChart1.Axes.Left.MinorTicks.Length = -3; // // // this.tChart1.Axes.Left.Ticks.Color = System.Drawing.Color.Black; this.tChart1.Axes.Left.Ticks.Length = 0; // // // this.tChart1.Axes.Left.TicksInner.Color = System.Drawing.Color.Black; this.tChart1.Axes.Left.TicksInner.Length = 6; // // // // // // this.tChart1.Axes.Right.Grid.Color = System.Drawing.Color.FromArgb(((int)(((byte)(196)))), ((int)(((byte)(196)))), ((int)(((byte)(196))))); this.tChart1.Axes.Right.Grid.Style = System.Drawing.Drawing2D.DashStyle.Solid; // // // // // // this.tChart1.Axes.Right.Labels.Font.Name = "Lucida Console"; this.tChart1.Axes.Right.Labels.Font.Size = 10; this.tChart1.Axes.Right.Labels.Font.SizeFloat = 10F; // // // this.tChart1.Axes.Right.MinorTicks.Color = System.Drawing.Color.Black; this.tChart1.Axes.Right.MinorTicks.Length = -3; // // // this.tChart1.Axes.Right.Ticks.Color = System.Drawing.Color.Black; this.tChart1.Axes.Right.Ticks.Length = 0; // // // this.tChart1.Axes.Right.TicksInner.Color = System.Drawing.Color.Black; this.tChart1.Axes.Right.TicksInner.Length = 6; // // // // // // this.tChart1.Axes.Top.Grid.Color = System.Drawing.Color.FromArgb(((int)(((byte)(196)))), ((int)(((byte)(196)))), ((int)(((byte)(196))))); this.tChart1.Axes.Top.Grid.Style = System.Drawing.Drawing2D.DashStyle.Solid; this.tChart1.Axes.Top.Grid.Visible = false; // // // // // // this.tChart1.Axes.Top.Labels.Font.Name = "Lucida Console"; this.tChart1.Axes.Top.Labels.Font.Size = 10; this.tChart1.Axes.Top.Labels.Font.SizeFloat = 10F; // // // this.tChart1.Axes.Top.MinorTicks.Color = System.Drawing.Color.Black; this.tChart1.Axes.Top.MinorTicks.Length = -3; // // // this.tChart1.Axes.Top.Ticks.Color = System.Drawing.Color.Black; this.tChart1.Axes.Top.Ticks.Length = 0; // // // this.tChart1.Axes.Top.TicksInner.Color = System.Drawing.Color.Black; this.tChart1.Axes.Top.TicksInner.Length = 6; this.tChart1.BackColor = System.Drawing.Color.Transparent; // // // // // // this.tChart1.Header.Brush.Color = System.Drawing.Color.White; // // // 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; // // // this.tChart1.Header.Font.Bold = true; // // // this.tChart1.Header.Font.Brush.Color = System.Drawing.Color.Black; this.tChart1.Header.Font.Name = "Lucida Console"; this.tChart1.Header.Font.Size = 10; this.tChart1.Header.Font.SizeFloat = 10F; // // // this.tChart1.Header.Pen.Width = 2; // // // // // // this.tChart1.Header.Shadow.Brush.Color = System.Drawing.Color.FromArgb(((int)(((byte)(76)))), ((int)(((byte)(169)))), ((int)(((byte)(169)))), ((int)(((byte)(169))))); this.tChart1.Header.Shadow.Height = 4; this.tChart1.Header.Shadow.Width = 4; this.tChart1.Header.Visible = false; // // // // // // // // // 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; // // // this.tChart1.Legend.DividingLines.Color = System.Drawing.Color.Silver; // // // // // // this.tChart1.Legend.Font.Brush.Color = System.Drawing.Color.FromArgb(((int)(((byte)(100)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); this.tChart1.Legend.Font.Name = "Lucida Console"; this.tChart1.Legend.Font.Size = 9; this.tChart1.Legend.Font.SizeFloat = 9F; // // // // // // this.tChart1.Legend.Shadow.Brush.Color = System.Drawing.Color.DarkGray; // // // this.tChart1.Legend.Symbol.Squared = true; this.tChart1.Legend.Transparent = true; // // // // // // this.tChart1.Panel.Bevel.Outer = Steema.TeeChart.Drawing.BevelStyles.None; // // // 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.Angle = 270; 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; this.tChart1.Panel.Brush.Gradient.UseMiddle = false; // // // this.tChart1.Panel.Pen.Visible = true; // // // // // // this.tChart1.Panel.Shadow.Brush.Color = System.Drawing.Color.Black; this.tChart1.Panel.Shadow.Visible = true; this.tChart1.Series.Add(this.pie1); this.tChart1.Size = new System.Drawing.Size(440, 205); // // // // // // // // // this.tChart1.Walls.Back.Brush.Color = System.Drawing.Color.White; // // // this.tChart1.Walls.Back.Brush.Gradient.EndColor = System.Drawing.Color.FromArgb(((int)(((byte)(223)))), ((int)(((byte)(122)))), ((int)(((byte)(41))))); this.tChart1.Walls.Back.Brush.Gradient.StartColor = System.Drawing.Color.White; // // // // // // // // // this.tChart1.Walls.Bottom.Brush.Gradient.EndColor = System.Drawing.Color.FromArgb(((int)(((byte)(252)))), ((int)(((byte)(254)))), ((int)(((byte)(253))))); this.tChart1.Walls.Bottom.Brush.Gradient.StartColor = System.Drawing.Color.FromArgb(((int)(((byte)(47)))), ((int)(((byte)(133)))), ((int)(((byte)(253))))); // // // // // // this.tChart1.Walls.Left.Brush.Color = System.Drawing.Color.White; // // // this.tChart1.Walls.Left.Brush.Gradient.EndColor = System.Drawing.Color.FromArgb(((int)(((byte)(36)))), ((int)(((byte)(209)))), ((int)(((byte)(252))))); this.tChart1.Walls.Left.Brush.Gradient.StartColor = System.Drawing.Color.FromArgb(((int)(((byte)(13)))), ((int)(((byte)(188)))), ((int)(((byte)(124))))); // // // // // // this.tChart1.Walls.Right.Brush.Color = System.Drawing.Color.White; // // checkBox1 // this.checkBox1.Checked = true; this.checkBox1.CheckState = System.Windows.Forms.CheckState.Checked; this.checkBox1.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.checkBox1.Location = new System.Drawing.Point(16, 8); this.checkBox1.Name = "checkBox1"; this.checkBox1.Size = new System.Drawing.Size(96, 24); this.checkBox1.TabIndex = 0; this.checkBox1.Text = "Draw Flags"; this.checkBox1.Click += new System.EventHandler(this.checkBox1_Click); // // buttonPen1 // this.buttonPen1.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.buttonPen1.Location = new System.Drawing.Point(176, 8); this.buttonPen1.Name = "buttonPen1"; this.buttonPen1.Size = new System.Drawing.Size(80, 23); this.buttonPen1.TabIndex = 1; this.buttonPen1.Text = "Border..."; this.buttonPen1.Click += new System.EventHandler(this.buttonPen1_Click); // // pie1 // // // // this.pie1.Brush.Color = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(153)))), ((int)(((byte)(153))))); this.pie1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(204)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); this.pie1.LabelMember = "Labels"; // // // // // // this.pie1.Marks.Arrow.Color = System.Drawing.Color.White; // // // // // // this.pie1.Marks.Brush.Gradient.StartColor = System.Drawing.Color.FromArgb(((int)(((byte)(254)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); this.pie1.Marks.Brush.Gradient.Visible = true; // // // this.pie1.Marks.Callout.ArrowHead = Steema.TeeChart.Styles.ArrowHeadStyles.None; this.pie1.Marks.Callout.ArrowHeadSize = 8; // // // this.pie1.Marks.Callout.Brush.Color = System.Drawing.Color.Black; this.pie1.Marks.Callout.Distance = 0; this.pie1.Marks.Callout.Draw3D = false; this.pie1.Marks.Callout.Length = 8; this.pie1.Marks.Callout.Style = Steema.TeeChart.Styles.PointerStyles.Rectangle; this.pie1.Marks.Callout.Visible = false; // // // this.pie1.Marks.Font.Name = "Microsoft Sans Serif"; // // // this.pie1.Marks.Pen.Color = System.Drawing.Color.FromArgb(((int)(((byte)(254)))), ((int)(((byte)(128)))), ((int)(((byte)(128)))), ((int)(((byte)(128))))); // // // this.pie1.MarksPie.LegSize = 0; this.pie1.MarksPie.VertCenter = false; this.pie1.MultiPie = Steema.TeeChart.Styles.MultiPies.Automatic; // // // this.pie1.OtherSlice.Color = System.Drawing.Color.Empty; this.pie1.OtherSlice.Style = Steema.TeeChart.Styles.PieOtherStyles.None; this.pie1.OtherSlice.Text = ""; this.pie1.OtherSlice.Value = 0; // // // this.pie1.Pen.Color = System.Drawing.Color.FromArgb(((int)(((byte)(254)))), ((int)(((byte)(128)))), ((int)(((byte)(128)))), ((int)(((byte)(128))))); // // // this.pie1.Shadow.Height = 20; this.pie1.Shadow.Width = 20; this.pie1.Title = "pie1"; this.pie1.Transparency = 0; // // // this.pie1.XValues.DataMember = "Angle"; this.pie1.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; // // // this.pie1.YValues.DataMember = "Pie"; // // imageList1 // this.imageList1.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageList1.ImageStream"))); this.imageList1.TransparentColor = System.Drawing.Color.Transparent; #if VS2005 this.imageList1.Images.SetKeyName(0, ""); this.imageList1.Images.SetKeyName(1, ""); this.imageList1.Images.SetKeyName(2, ""); this.imageList1.Images.SetKeyName(3, ""); this.imageList1.Images.SetKeyName(4, ""); this.imageList1.Images.SetKeyName(5, ""); this.imageList1.Images.SetKeyName(6, ""); this.imageList1.Images.SetKeyName(7, ""); #endif // // LegendSymbolFlags // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(440, 317); this.Name = "LegendSymbolFlags"; this.Load += new System.EventHandler(this.LegendSymbolFlags_Load); this.panel1.ResumeLayout(false); this.chartContainer.ResumeLayout(false); this.ResumeLayout(false); this.PerformLayout(); }
public MultiPies() { this.tChart6 = new Steema.TeeChart.Chart(); this.bar3 = new Steema.TeeChart.Styles.Bar(); this.tChart5 = new Steema.TeeChart.Chart(); this.bar2 = new Steema.TeeChart.Styles.Bar(); this.tChart4 = new Steema.TeeChart.Chart(); this.tChart3 = new Steema.TeeChart.Chart(); this.pie3 = new Steema.TeeChart.Styles.Pie(); this.tChart2 = new Steema.TeeChart.Chart(); this.pie2 = new Steema.TeeChart.Styles.Pie(); this.tChart1 = new Steema.TeeChart.Chart(); this.pie1 = new Steema.TeeChart.Styles.Pie(); this.tChart7 = new Steema.TeeChart.Chart(); this.bar4 = new Steema.TeeChart.Styles.Bar(); this.bar5 = new Steema.TeeChart.Styles.Bar(); this.label1 = new Label(); this.bar1 = new Steema.TeeChart.Styles.Bar(); // tChart6 this.tChart6.Aspect.Elevation = 315; this.tChart6.Aspect.ElevationFloat = 315D; this.tChart6.Aspect.Orthogonal = false; this.tChart6.Aspect.Perspective = 0; this.tChart6.Aspect.Rotation = 360; this.tChart6.Aspect.RotationFloat = 360D; this.tChart6.Aspect.View3D = false; this.tChart6.Axes.Bottom.Visible = false; this.tChart6.Axes.Left.AxisPen.Color = Color.FromRgb(((int)(((byte)(192)))), ((int)(((byte)(191)))), ((int)(((byte)(191))))); this.tChart6.Axes.Left.AxisPen.Width = 1; this.tChart6.Axes.Left.Grid.Visible = false; this.tChart6.Axes.Left.Increment = 20D; this.tChart6.Axes.Left.Labels.Font.Brush.Color = Color.FromRgb(((int)(((byte)(128)))), ((int)(((byte)(127)))), ((int)(((byte)(127))))); this.tChart6.Axes.Left.MinorTicks.Visible = false; this.tChart6.Footer.Font.Brush.Color = Color.Gray; this.tChart6.Header.Font.Brush.Color = Color.Gray; this.tChart6.Header.Lines = new string[] { "Evening Class" }; this.tChart6.Header.Visible = false; this.tChart6.Legend.Visible = false; this.tChart6.Panel.Brush.Color = Color.White; this.tChart6.Panel.Brush.Gradient.EndColor = Color.White; this.tChart6.Panel.MarginBottom = 6D; this.tChart6.Series.Add(this.bar3); this.tChart6.Walls.Back.Brush.Gradient.EndColor = Color.White; this.tChart6.Walls.Visible = false; // bar3 this.bar3.BarRound = Steema.TeeChart.Styles.BarRounding.AtValue; this.bar3.Brush.Color = Color.FromRgb(((int)(((byte)(68)))), ((int)(((byte)(102)))), ((int)(((byte)(163))))); this.bar3.Color = Color.FromRgb(((int)(((byte)(68)))), ((int)(((byte)(102)))), ((int)(((byte)(163))))); this.bar3.ColorEach = true; this.bar3.Marks.Arrow.Visible = false; this.bar3.Marks.ArrowLength = -24; this.bar3.Marks.Pen.Visible = false; this.bar3.Marks.Shadow.Visible = false; this.bar3.Marks.Style = Steema.TeeChart.Styles.MarksStyles.Value; this.bar3.Pen.Color = Color.FromRgb(((int)(((byte)(41)))), ((int)(((byte)(61)))), ((int)(((byte)(98))))); this.bar3.Title = "bar1"; this.bar3.XValues.DataMember = "X"; this.bar3.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; this.bar3.YValues.DataMember = "Bar"; // tChart5 this.tChart5.Aspect.Elevation = 315; this.tChart5.Aspect.ElevationFloat = 315D; this.tChart5.Aspect.Orthogonal = false; this.tChart5.Aspect.Perspective = 0; this.tChart5.Aspect.Rotation = 360; this.tChart5.Aspect.RotationFloat = 360D; this.tChart5.Aspect.View3D = false; this.tChart5.Axes.Bottom.Visible = false; this.tChart5.Axes.Left.AxisPen.Color = Color.FromRgb(((int)(((byte)(192)))), ((int)(((byte)(191)))), ((int)(((byte)(191))))); this.tChart5.Axes.Left.AxisPen.Width = 1; this.tChart5.Axes.Left.Grid.Visible = false; this.tChart5.Axes.Left.Increment = 20D; this.tChart5.Axes.Left.Labels.Font.Brush.Color = Color.FromRgb(((int)(((byte)(128)))), ((int)(((byte)(127)))), ((int)(((byte)(127))))); this.tChart5.Axes.Left.MinorTicks.Visible = false; this.tChart5.Footer.Font.Brush.Color = Color.Gray; this.tChart5.Header.Font.Brush.Color = Color.Gray; this.tChart5.Header.Lines = new string[] { "Afternoon Class" }; 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.Panel.MarginBottom = 6D; this.tChart5.Series.Add(this.bar2); this.tChart5.Walls.Back.Brush.Gradient.EndColor = Color.White; this.tChart5.Walls.Visible = false; // bar2 this.bar2.BarRound = Steema.TeeChart.Styles.BarRounding.AtValue; this.bar2.Brush.Color = Color.FromRgb(((int)(((byte)(68)))), ((int)(((byte)(102)))), ((int)(((byte)(163))))); this.bar2.Color = Color.FromRgb(((int)(((byte)(68)))), ((int)(((byte)(102)))), ((int)(((byte)(163))))); this.bar2.ColorEach = true; this.bar2.Marks.Arrow.Visible = false; this.bar2.Marks.ArrowLength = -24; this.bar2.Marks.Pen.Visible = false; this.bar2.Marks.Shadow.Visible = false; this.bar2.Marks.Style = Steema.TeeChart.Styles.MarksStyles.Value; this.bar2.Pen.Color = Color.FromRgb(((int)(((byte)(41)))), ((int)(((byte)(61)))), ((int)(((byte)(98))))); this.bar2.Title = "bar1"; this.bar2.XValues.DataMember = "X"; this.bar2.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; this.bar2.YValues.DataMember = "Bar"; // tChart4 this.tChart4.Aspect.Elevation = 315; this.tChart4.Aspect.ElevationFloat = 315D; this.tChart4.Aspect.Orthogonal = false; this.tChart4.Aspect.Perspective = 0; this.tChart4.Aspect.Rotation = 360; this.tChart4.Aspect.RotationFloat = 360D; this.tChart4.Aspect.View3D = false; this.tChart4.Axes.Bottom.Visible = false; this.tChart4.Axes.Left.AxisPen.Width = 1; this.tChart4.Axes.Left.Grid.Visible = false; this.tChart4.Axes.Left.Increment = 20D; this.tChart4.Axes.Left.Labels.Font.Brush.Color = Color.Gray; this.tChart4.Axes.Left.MinorTicks.Visible = false; this.tChart4.Footer.Font.Brush.Color = Color.Gray; this.tChart4.Header.Font.Brush.Color = Color.Gray; this.tChart4.Header.Lines = new string[] { "Morning Class" }; this.tChart4.Header.Visible = false; this.tChart4.Legend.Visible = false; this.tChart4.Panel.Brush.Color = Color.White; this.tChart4.Panel.Brush.Gradient.EndColor = Color.White; this.tChart4.Panel.MarginBottom = 6D; this.tChart4.Series.Add(this.bar1); this.tChart4.Walls.Back.Brush.Gradient.EndColor = Color.White; this.tChart4.Walls.Visible = false; // tChart3 this.tChart3.Aspect.Elevation = 315; this.tChart3.Aspect.ElevationFloat = 315D; 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.Brush.Color = Color.Blue; this.tChart3.Header.Font.Brush.Color = Color.Gray; this.tChart3.Header.Lines = new string[] { "Evening Class" }; this.tChart3.Legend.Visible = false; this.tChart3.Panel.Brush.Color = Color.White; this.tChart3.Panel.Brush.Gradient.EndColor = Color.White; this.tChart3.Series.Add(this.pie3); this.tChart3.Walls.Back.Brush.Gradient.EndColor = Color.White; // pie3 this.pie3.Brush.Color = Color.FromRgb(((int)(((byte)(243)))), ((int)(((byte)(156)))), ((int)(((byte)(53))))); this.pie3.Circled = true; this.pie3.Color = Color.FromRgb(((int)(((byte)(68)))), ((int)(((byte)(102)))), ((int)(((byte)(163))))); this.pie3.ExplodeBiggest = 5; this.pie3.ExplodedSlice.Add(0); this.pie3.ExplodedSlice.Add(5); this.pie3.Frame.Circled = true; this.pie3.Frame.FrameElementPercents = new double[] { 25D, 60D, 15D }; this.pie3.Frame.OuterBand.Gradient.UseMiddle = false; this.pie3.LabelMember = "Labels"; this.pie3.Marks.Visible = false; this.pie3.MarksPie.LegSize = 0; this.pie3.MarksPie.VertCenter = false; this.pie3.MultiPie = Steema.TeeChart.Styles.MultiPies.Automatic; this.pie3.OtherSlice.Style = Steema.TeeChart.Styles.PieOtherStyles.None; this.pie3.OtherSlice.Text = ""; this.pie3.OtherSlice.Value = 0D; this.pie3.RotationAngle = 91; pie3.FillSampleValues(2); this.pie3.Title = "pie1"; this.pie3.UniqueCustomRadius = true; this.pie3.XValues.DataMember = "Angle"; this.pie3.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; this.pie3.YValues.DataMember = "Pie"; // tChart2 this.tChart2.Aspect.Elevation = 315; this.tChart2.Aspect.ElevationFloat = 315D; 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.Brush.Color = Color.Blue; this.tChart2.Header.Font.Brush.Color = Color.Gray; this.tChart2.Header.Lines = new string[] { "Afternoon Class" }; this.tChart2.Legend.Visible = false; this.tChart2.Panel.Brush.Color = Color.White; this.tChart2.Panel.Brush.Gradient.EndColor = Color.White; this.tChart2.Series.Add(this.pie2); this.tChart2.Walls.Back.Brush.Gradient.EndColor = Color.White; // pie2 this.pie2.Brush.Color = Color.FromRgb(((int)(((byte)(243)))), ((int)(((byte)(156)))), ((int)(((byte)(53))))); this.pie2.Circled = true; this.pie2.Color = Color.FromRgb(((int)(((byte)(68)))), ((int)(((byte)(102)))), ((int)(((byte)(163))))); this.pie2.ExplodeBiggest = 5; this.pie2.ExplodedSlice.Add(5); this.pie2.Frame.Circled = true; this.pie2.Frame.FrameElementPercents = new double[] { 25D, 60D, 15D }; this.pie2.Frame.OuterBand.Gradient.UseMiddle = false; this.pie2.LabelMember = "Labels"; this.pie2.Marks.Visible = false; this.pie2.MarksPie.LegSize = 0; this.pie2.MarksPie.VertCenter = false; this.pie2.MultiPie = Steema.TeeChart.Styles.MultiPies.Automatic; this.pie2.OtherSlice.Style = Steema.TeeChart.Styles.PieOtherStyles.None; this.pie2.OtherSlice.Text = ""; this.pie2.OtherSlice.Value = 0D; this.pie2.RotationAngle = 91; pie2.FillSampleValues(2); this.pie2.Title = "pie1"; this.pie2.UniqueCustomRadius = true; this.pie2.XValues.DataMember = "Angle"; this.pie2.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; this.pie2.YValues.DataMember = "Pie"; // tChart1 this.tChart1.Aspect.Elevation = 315; this.tChart1.Aspect.ElevationFloat = 315D; 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.Brush.Color = Color.Blue; this.tChart1.Header.Font.Brush.Color = Color.Gray; this.tChart1.Header.Lines = new string[] { "Morning Class" }; this.tChart1.Legend.Visible = false; this.tChart1.Panel.Brush.Color = Color.White; this.tChart1.Panel.Brush.Gradient.EndColor = Color.White; this.tChart1.Series.Add(this.pie1); this.tChart1.Walls.Back.Brush.Gradient.EndColor = Color.White; // pie1 this.pie1.Brush.Color = Color.FromRgb(((int)(((byte)(243)))), ((int)(((byte)(156)))), ((int)(((byte)(53))))); this.pie1.Circled = true; this.pie1.Color = Color.FromRgb(((int)(((byte)(68)))), ((int)(((byte)(102)))), ((int)(((byte)(163))))); this.pie1.ExplodeBiggest = 5; this.pie1.ExplodedSlice.Add(5); this.pie1.Frame.Circled = true; this.pie1.Frame.FrameElementPercents = new double[] { 25D, 60D, 15D }; this.pie1.Frame.OuterBand.Gradient.UseMiddle = false; this.pie1.LabelMember = "Labels"; this.pie1.Marks.Visible = false; this.pie1.MarksPie.LegSize = 0; this.pie1.MarksPie.VertCenter = false; this.pie1.MultiPie = Steema.TeeChart.Styles.MultiPies.Automatic; this.pie1.OtherSlice.Style = Steema.TeeChart.Styles.PieOtherStyles.None; this.pie1.OtherSlice.Text = ""; this.pie1.OtherSlice.Value = 0D; this.pie1.RotationAngle = 91; pie1.FillSampleValues(2); this.pie1.Title = "pie1"; this.pie1.UniqueCustomRadius = true; this.pie1.XValues.DataMember = "Angle"; this.pie1.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; this.pie1.YValues.DataMember = "Pie"; // tChart7 this.tChart7.Footer.Font.Brush.Color = Color.Blue; this.tChart7.Header.Visible = false; this.tChart7.Legend.Alignment = Steema.TeeChart.LegendAlignments.Top; this.tChart7.Legend.Font.Brush.Color = Color.Gray; this.tChart7.Legend.Font.Name = "Segoe UI"; this.tChart7.Legend.Font.Size = 14; this.tChart7.Legend.Pen.Visible = false; this.tChart7.Legend.Transparent = true; this.tChart7.Panel.Bevel.Outer = Steema.TeeChart.Drawing.BevelStyles.None; this.tChart7.Panel.Brush.Color = Color.White; this.tChart7.Panel.Brush.Gradient.EndColor = Color.White; this.tChart7.Panel.MarginBottom = 0D; this.tChart7.Panel.MarginTop = 6D; this.tChart7.Series.Add(this.bar4); this.tChart7.Series.Add(this.bar5); this.tChart7.Walls.Back.Brush.Gradient.EndColor = Color.White; // bar4 this.bar4.BarRound = Steema.TeeChart.Styles.BarRounding.AtValue; this.bar4.Brush.Color = Color.FromRgb(((int)(((byte)(68)))), ((int)(((byte)(102)))), ((int)(((byte)(163))))); this.bar4.Color = Color.FromRgb(((int)(((byte)(68)))), ((int)(((byte)(102)))), ((int)(((byte)(163))))); this.bar4.ColorEach = false; this.bar4.Marks.Visible = false; this.bar4.Pen.Color = Color.FromRgb(((int)(((byte)(41)))), ((int)(((byte)(61)))), ((int)(((byte)(98))))); this.bar4.Pen.Visible = false; this.bar4.Title = "Women"; this.bar4.XValues.DataMember = "X"; this.bar4.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; this.bar4.YValues.DataMember = "Bar"; // bar5 this.bar5.BarRound = Steema.TeeChart.Styles.BarRounding.AtValue; this.bar5.Brush.Color = Color.FromRgb(((int)(((byte)(243)))), ((int)(((byte)(156)))), ((int)(((byte)(53))))); this.bar5.Color = Color.FromRgb(((int)(((byte)(243)))), ((int)(((byte)(156)))), ((int)(((byte)(53))))); this.bar5.ColorEach = false; this.bar5.Marks.Visible = false; this.bar5.Pen.Color = Color.FromRgb(((int)(((byte)(146)))), ((int)(((byte)(94)))), ((int)(((byte)(32))))); this.bar5.Pen.Visible = false; this.bar5.Title = "Men"; this.bar5.XValues.DataMember = "X"; this.bar5.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; this.bar5.YValues.DataMember = "Bar"; // label1 this.label1.Text = "Women are more likely to attend the day classes while men are more commonly found" + " in the evening class"; // bar1 this.bar1.BarRound = Steema.TeeChart.Styles.BarRounding.AtValue; this.bar1.Brush.Color = Color.FromRgb(((int)(((byte)(68)))), ((int)(((byte)(102)))), ((int)(((byte)(163))))); this.bar1.Color = Color.FromRgb(((int)(((byte)(68)))), ((int)(((byte)(102)))), ((int)(((byte)(163))))); this.bar1.ColorEach = true; this.bar1.Marks.Arrow.Visible = false; this.bar1.Marks.ArrowLength = -24; this.bar1.Marks.Pen.Visible = false; this.bar1.Marks.Shadow.Visible = false; this.bar1.Marks.Style = Steema.TeeChart.Styles.MarksStyles.Value; this.bar1.Pen.Color = Color.FromRgb(((int)(((byte)(41)))), ((int)(((byte)(61)))), ((int)(((byte)(98))))); this.bar1.Title = "bar1"; this.bar1.XValues.DataMember = "X"; this.bar1.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; this.bar1.YValues.DataMember = "Bar"; bar1.Add(pie1.YValues[0]); bar1.Add(pie1.YValues[1]); bar2.Add(pie2.YValues[0]); bar2.Add(pie2.YValues[1]); bar3.Add(pie3.YValues[0]); bar3.Add(pie3.YValues[1]); 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; tChart6.Panel.Gradient.Visible = false; tChart7.Panel.Gradient.Visible = false; tChart4[0].Marks.FontSeriesColor = true; tChart5[0].Marks.FontSeriesColor = true; tChart6[0].Marks.FontSeriesColor = 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; chartView5 = new ChartView { VerticalOptions = LayoutOptions.FillAndExpand, HorizontalOptions = LayoutOptions.FillAndExpand, WidthRequest = 25, HeightRequest = 25 }; chartView5.Model = tChart5; chartView6 = new ChartView { VerticalOptions = LayoutOptions.FillAndExpand, HorizontalOptions = LayoutOptions.FillAndExpand, WidthRequest = 25, HeightRequest = 25 }; chartView6.Model = tChart6; chartView7 = new ChartView { VerticalOptions = LayoutOptions.FillAndExpand, HorizontalOptions = LayoutOptions.FillAndExpand, WidthRequest = 25, HeightRequest = 25 }; chartView7.Model = tChart7; 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(chartView7, 0, 3, 0, 1); grid.Children.Add(chartView1, 0, 0); grid.Children.Add(chartView2, 1, 0); grid.Children.Add(chartView3, 2, 0); grid.Children.Add(chartView4, 0, 1); grid.Children.Add(chartView5, 1, 1); grid.Children.Add(chartView6, 2, 1); // Build the page. this.Content = grid; }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.pieSeries1 = new Steema.TeeChart.Styles.Pie(); this.checkBox1 = new System.Windows.Forms.CheckBox(); this.button1 = new System.Windows.Forms.Button(); this.panel1.SuspendLayout(); this.SuspendLayout(); // // textBox1 // this.textBox1.Name = "textBox1"; this.textBox1.Size = new System.Drawing.Size(466, 63); this.textBox1.Text = "Pie series has a subproperty to display a \"shadow\" under it.\r\nShadow\'s color and " + "size can be customized.\r\n\r\nExample: \r\npieSeries1.Shadow.Color = Color.Silver;\r\np" + "ieSeries1.Shadow.Height = 50 ;"; // // panel1 // this.panel1.Controls.Add(this.button1); this.panel1.Controls.Add(this.checkBox1); this.panel1.Location = new System.Drawing.Point(0, 63); this.panel1.Name = "panel1"; this.panel1.Size = new System.Drawing.Size(466, 41); // // tChart1 // // // tChart1.Aspect // this.tChart1.Aspect.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.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.pieSeries1); this.tChart1.Size = new System.Drawing.Size(466, 182); // // pieSeries1 // // // pieSeries1.Brush // this.pieSeries1.Brush.Color = System.Drawing.Color.Red; this.pieSeries1.LabelMember = "Labels"; // // pieSeries1.Marks // // // pieSeries1.Marks.Symbol // // // pieSeries1.Marks.Symbol.Shadow // this.pieSeries1.Marks.Symbol.Shadow.Height = 1; this.pieSeries1.Marks.Symbol.Shadow.Visible = true; this.pieSeries1.Marks.Symbol.Shadow.Width = 1; // // pieSeries1.Pen // this.pieSeries1.Pen.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(128)), ((System.Byte)(128)), ((System.Byte)(128))); // // pieSeries1.Shadow // this.pieSeries1.Shadow.Height = 20; this.pieSeries1.Shadow.Width = 20; this.pieSeries1.Title = "pieSeries1"; // // pieSeries1.XValues // this.pieSeries1.XValues.DataMember = "Angle"; this.pieSeries1.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; // // pieSeries1.YValues // this.pieSeries1.YValues.DataMember = "Pie"; // // checkBox1 // this.checkBox1.Checked = true; this.checkBox1.CheckState = System.Windows.Forms.CheckState.Checked; this.checkBox1.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.checkBox1.Location = new System.Drawing.Point(24, 6); this.checkBox1.Name = "checkBox1"; this.checkBox1.Size = new System.Drawing.Size(128, 21); this.checkBox1.TabIndex = 0; this.checkBox1.Text = "&Draw pie shadow"; this.checkBox1.CheckedChanged += new System.EventHandler(this.checkBox1_CheckedChanged); // // button1 // this.button1.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.button1.Location = new System.Drawing.Point(168, 6); this.button1.Name = "button1"; this.button1.TabIndex = 1; this.button1.Text = "&Shadow..."; this.button1.Click += new System.EventHandler(this.button1_Click); // // Pie_Shadow // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(466, 286); this.Name = "Pie_Shadow"; 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(Pie_MarksLegSize)); this.pie1 = new Steema.TeeChart.Styles.Pie(); this.label1 = new System.Windows.Forms.Label(); this.trackBar1 = new System.Windows.Forms.TrackBar(); this.panel1.SuspendLayout(); this.chartContainer.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.trackBar1)).BeginInit(); this.SuspendLayout(); // // textBox1 // this.textBox1.Text = "Pie series marks can optionally display lines from the mark rectangle to the Pie " + "slice with a \"L\" shape of predefined size:\r\n\r\npie1.MarksPie.LegSize = 25;"; // // panel1 // this.panel1.Controls.Add(this.trackBar1); this.panel1.Controls.Add(this.label1); this.panel1.Size = new System.Drawing.Size(440, 52); // // tChart1 // // // // this.tChart1.Aspect.Elevation = 315; this.tChart1.Aspect.ElevationFloat = 315; this.tChart1.Aspect.Orthogonal = false; this.tChart1.Aspect.Perspective = 0; this.tChart1.Aspect.Rotation = 360; this.tChart1.Aspect.RotationFloat = 360; this.tChart1.Aspect.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.AntiAlias; // // // // // // // // // this.tChart1.Legend.Title.Pen.Visible = false; // // // // // // // // // this.tChart1.Panel.Brush.Gradient.EndColor = System.Drawing.Color.FromArgb(((int)(((byte)(254)))), ((int)(((byte)(21)))), ((int)(((byte)(60)))), ((int)(((byte)(89))))); this.tChart1.Panel.Brush.Gradient.MiddleColor = System.Drawing.Color.FromArgb(((int)(((byte)(254)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); this.tChart1.Panel.Brush.Gradient.Sigma = true; this.tChart1.Panel.Brush.Gradient.SigmaFocus = 1F; this.tChart1.Panel.Brush.Gradient.SigmaScale = 0.8F; this.tChart1.Panel.Brush.Gradient.StartColor = System.Drawing.Color.FromArgb(((int)(((byte)(254)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); this.tChart1.Series.Add(this.pie1); this.tChart1.Size = new System.Drawing.Size(440, 192); // // chartContainer // this.chartContainer.Location = new System.Drawing.Point(0, 125); this.chartContainer.Size = new System.Drawing.Size(440, 192); // // pie1 // // // // this.pie1.Brush.Color = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(96)))), ((int)(((byte)(0))))); this.pie1.Circled = true; this.pie1.LabelMember = "Labels"; // // // // // // this.pie1.Marks.Callout.ArrowHead = Steema.TeeChart.Styles.ArrowHeadStyles.None; this.pie1.Marks.Callout.ArrowHeadSize = 8; // // // this.pie1.Marks.Callout.Brush.Color = System.Drawing.Color.Black; this.pie1.Marks.Callout.Distance = 0; this.pie1.Marks.Callout.Draw3D = false; this.pie1.Marks.Callout.Length = 8; this.pie1.Marks.Callout.Style = Steema.TeeChart.Styles.PointerStyles.Rectangle; // // // this.pie1.MarksPie.LegSize = 0; this.pie1.MarksPie.VertCenter = false; this.pie1.MultiPie = Steema.TeeChart.Styles.MultiPies.Automatic; // // // this.pie1.Shadow.Height = 20; this.pie1.Shadow.Width = 20; this.pie1.Title = "pie1"; // // // this.pie1.XValues.DataMember = "Angle"; this.pie1.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; // // // this.pie1.YValues.DataMember = "Pie"; // // label1 // this.label1.AutoSize = true; this.label1.Location = new System.Drawing.Point(12, 17); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(49, 13); this.label1.TabIndex = 0; this.label1.Text = "Leg size:"; // // trackBar1 // this.trackBar1.AutoSize = false; this.trackBar1.Location = new System.Drawing.Point(67, 17); this.trackBar1.Maximum = 100; this.trackBar1.Name = "trackBar1"; this.trackBar1.Size = new System.Drawing.Size(173, 29); this.trackBar1.TabIndex = 1; this.trackBar1.TickStyle = System.Windows.Forms.TickStyle.None; this.trackBar1.Value = 10; this.trackBar1.Scroll += new System.EventHandler(this.trackBar1_Scroll); // // Pie_MarksLegSize // this.ClientSize = new System.Drawing.Size(440, 317); this.Name = "Pie_MarksLegSize"; this.panel1.ResumeLayout(false); this.panel1.PerformLayout(); this.chartContainer.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.trackBar1)).EndInit(); this.ResumeLayout(false); this.PerformLayout(); }
/// <summary> /// Method to draw frequency pie chart from the datatable /// </summary> /// <param name="dataTable">DataTable with the source data</param> /// <param name="chart">Chart to insert pie into</param> private void DrawPieFromDataTable(DataTable dataTable, Steema.TeeChart.TChart chart) { chart.Series.RemoveAllSeries(); Steema.TeeChart.Styles.Pie pieSeries = new Steema.TeeChart.Styles.Pie(); pieSeries.ColorEach = true; pieSeries.Marks.Style = Steema.TeeChart.Styles.MarksStyles.LabelValue; if (this.ToolStripMenuToggleMarks.Checked) { pieSeries.Marks.Visible = true; } else { pieSeries.Marks.Visible = false; } foreach (DataRow dataRow in dataTable.Rows) { double temp; try { temp = Convert.ToDouble(dataRow[1]); } catch { temp = 0; } if (this.ToolStripMenuItemAbsolute.Checked) { pieSeries.Add(temp, dataRow[0].ToString()); } else { if ((temp != 0) && (this.rowCount != 0)) { temp = Math.Round(((temp / (double)this.rowCount) * 100), 2); pieSeries.Add(temp, dataRow[0].ToString()); } else { pieSeries.Add(0, dataRow[0].ToString()); } } chart.Series.Add(pieSeries); } }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.checkBox1 = new System.Windows.Forms.CheckBox(); this.checkBox2 = new System.Windows.Forms.CheckBox(); this.checkBox3 = new System.Windows.Forms.CheckBox(); this.checkBox4 = new System.Windows.Forms.CheckBox(); this.checkBox5 = new System.Windows.Forms.CheckBox(); this.button1 = new System.Windows.Forms.Button(); this.pie1 = new Steema.TeeChart.Styles.Pie(); this.panel1.SuspendLayout(); this.SuspendLayout(); // // textBox1 // this.textBox1.Name = "textBox1"; this.textBox1.Size = new System.Drawing.Size(466, 56); this.textBox1.Text = "Pie series draw values as portions (slices) of a full solid circle.\r\nSlices can b" + "e \"exploded\" and grouped if they are very small.\r\nOther options include formatti" + "ng, shadow, marks and semi-pie styles."; // // panel1 // this.panel1.Controls.Add(this.checkBox5); this.panel1.Controls.Add(this.checkBox4); this.panel1.Controls.Add(this.checkBox3); this.panel1.Controls.Add(this.checkBox2); this.panel1.Controls.Add(this.checkBox1); this.panel1.Location = new System.Drawing.Point(0, 56); this.panel1.Name = "panel1"; this.panel1.Size = new System.Drawing.Size(466, 40); // // tChart1 // // // tChart1.Aspect // this.tChart1.Aspect.Elevation = 315; this.tChart1.Aspect.Orthogonal = false; this.tChart1.Aspect.Perspective = 0; this.tChart1.Aspect.Rotation = 360; this.tChart1.Aspect.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.HighQuality; this.tChart1.Aspect.TextRenderingHint = System.Drawing.Text.TextRenderingHint.ClearTypeGridFit; // // tChart1.Header // this.tChart1.Header.Lines = new string[] { "tChart1" }; // // tChart1.Legend // // // tChart1.Legend.Brush // this.tChart1.Legend.Brush.Color = System.Drawing.Color.FromArgb(((System.Byte)(127)), ((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(255))); // // tChart1.Legend.Gradient // this.tChart1.Legend.Brush.Gradient.Transparency = 50; // // tChart1.Legend.Gradient // this.tChart1.Legend.Gradient.Transparency = 50; // // tChart1.Legend.Shadow // // // tChart1.Legend.Shadow.Brush // this.tChart1.Legend.Shadow.Brush.Color = System.Drawing.Color.FromArgb(((System.Byte)(127)), ((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))); this.tChart1.Series.Add(this.pie1); this.tChart1.Size = new System.Drawing.Size(466, 190); // // 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(40, 21); this.checkBox1.TabIndex = 0; this.checkBox1.Text = "&3D"; 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(53, 8); this.checkBox2.Name = "checkBox2"; this.checkBox2.Size = new System.Drawing.Size(75, 21); this.checkBox2.TabIndex = 1; this.checkBox2.Text = "&Exploded"; this.checkBox2.CheckedChanged += new System.EventHandler(this.checkBox2_CheckedChanged); // // checkBox3 // this.checkBox3.Checked = true; this.checkBox3.CheckState = System.Windows.Forms.CheckState.Checked; this.checkBox3.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.checkBox3.Location = new System.Drawing.Point(127, 8); this.checkBox3.Name = "checkBox3"; this.checkBox3.Size = new System.Drawing.Size(53, 21); this.checkBox3.TabIndex = 2; this.checkBox3.Text = "&Marks"; this.checkBox3.CheckedChanged += new System.EventHandler(this.checkBox3_CheckedChanged); // // checkBox4 // this.checkBox4.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.checkBox4.Location = new System.Drawing.Point(187, 8); this.checkBox4.Name = "checkBox4"; this.checkBox4.Size = new System.Drawing.Size(61, 21); this.checkBox4.TabIndex = 3; this.checkBox4.Text = "&Shadow"; this.checkBox4.CheckedChanged += new System.EventHandler(this.checkBox4_CheckedChanged); // // checkBox5 // this.checkBox5.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.checkBox5.Location = new System.Drawing.Point(253, 8); this.checkBox5.Name = "checkBox5"; this.checkBox5.Size = new System.Drawing.Size(54, 21); this.checkBox5.TabIndex = 4; this.checkBox5.Text = "&Partial"; this.checkBox5.CheckedChanged += new System.EventHandler(this.checkBox5_CheckedChanged); // // button1 // this.button1.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.button1.Location = new System.Drawing.Point(392, 24); this.button1.Name = "button1"; this.button1.Size = new System.Drawing.Size(72, 24); this.button1.TabIndex = 6; this.button1.Text = "&Edit"; this.button1.Click += new System.EventHandler(this.button1_Click); // // pie1 // // // pie1.Brush // this.pie1.Brush.Color = System.Drawing.Color.Red; this.pie1.LabelMember = "Labels"; // // pie1.Marks // // // pie1.Marks.Symbol // // // pie1.Marks.Symbol.Shadow // this.pie1.Marks.Symbol.Shadow.Height = 1; this.pie1.Marks.Symbol.Shadow.Visible = true; this.pie1.Marks.Symbol.Shadow.Width = 1; // // pie1.Pen // this.pie1.Pen.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(128)), ((System.Byte)(128)), ((System.Byte)(128))); // // pie1.Shadow // this.pie1.Shadow.Height = 20; this.pie1.Shadow.Width = 20; this.pie1.Title = "pie1"; // // pie1.XValues // this.pie1.XValues.DataMember = "Angle"; this.pie1.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; // // pie1.YValues // this.pie1.YValues.DataMember = "Pie"; // // SeriesType_Pie // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(466, 286); this.Name = "SeriesType_Pie"; this.panel1.ResumeLayout(false); this.ResumeLayout(false); }
public PieSalesFigures() { this.tChart3 = new Steema.TeeChart.Chart(); this.numericGauge2 = new Steema.TeeChart.Styles.NumericGauge(); this.tChart2 = new Steema.TeeChart.Chart(); this.numericGauge1 = new Steema.TeeChart.Styles.NumericGauge(); this.tChart1 = new Steema.TeeChart.Chart(); this.pie1 = new Steema.TeeChart.Styles.Pie(); // tChart3 this.tChart3.Aspect.ColorPaletteIndex = 19; this.tChart3.Aspect.Elevation = 350; this.tChart3.Aspect.ElevationFloat = 350D; this.tChart3.Aspect.Perspective = 55; this.tChart3.Aspect.View3D = false; this.tChart3.Axes.Bottom.AxisPen.Visible = false; this.tChart3.Axes.Bottom.AxisPen.Width = 0; this.tChart3.Axes.Bottom.Grid.Color = Color.FromRgb(((int)(((byte)(221)))), ((int)(((byte)(221)))), ((int)(((byte)(221))))); this.tChart3.Axes.Bottom.Grid.Visible = false; this.tChart3.Axes.Bottom.Labels.Font.Brush.Color = Color.Gray; this.tChart3.Axes.Bottom.Labels.Font.Name = "Verdana"; this.tChart3.Axes.Bottom.Labels.Font.Size = 24; this.tChart3.Axes.Bottom.MinorTicks.Length = 1; this.tChart3.Axes.Bottom.MinorTicks.Visible = false; this.tChart3.Axes.Bottom.Ticks.Color = Color.FromRgb(((int)(((byte)(128)))), ((int)(((byte)(128)))), ((int)(((byte)(128))))); this.tChart3.Axes.Bottom.Ticks.Length = 20; this.tChart3.Axes.Bottom.Title.Font.Name = "Verdana"; this.tChart3.Axes.Depth.Title.Font.Name = "Verdana"; this.tChart3.Axes.Depth.Title.Font.Size = 13; this.tChart3.Axes.DepthTop.Title.Font.Name = "Verdana"; this.tChart3.Axes.DepthTop.Title.Font.Size = 13; this.tChart3.Axes.Left.AxisPen.Visible = false; this.tChart3.Axes.Left.AxisPen.Width = 0; this.tChart3.Axes.Left.Grid.Color = Color.FromRgb(((int)(((byte)(221)))), ((int)(((byte)(221)))), ((int)(((byte)(221))))); this.tChart3.Axes.Left.Labels.Font.Brush.Color = Color.Gray; this.tChart3.Axes.Left.Labels.Font.Name = "Verdana"; this.tChart3.Axes.Left.Labels.Font.Size = 24; this.tChart3.Axes.Left.MinorTicks.Visible = false; this.tChart3.Axes.Left.Ticks.Color = Color.FromRgb(((int)(((byte)(128)))), ((int)(((byte)(128)))), ((int)(((byte)(128))))); this.tChart3.Axes.Left.Ticks.Length = 7; this.tChart3.Axes.Left.Title.Font.Name = "Verdana"; this.tChart3.Axes.Right.AxisPen.Width = 0; this.tChart3.Axes.Right.Grid.Visible = false; this.tChart3.Axes.Right.Labels.Font.Brush.Color = Color.Gray; this.tChart3.Axes.Right.Labels.Font.Name = "Verdana"; this.tChart3.Axes.Right.Labels.Font.Size = 31; this.tChart3.Axes.Right.MinorTicks.Visible = false; this.tChart3.Axes.Right.Ticks.Visible = false; this.tChart3.Axes.Right.Title.Font.Name = "Verdana"; this.tChart3.Axes.Top.Title.Font.Name = "Verdana"; this.tChart3.Footer.Font.Brush.Color = Color.Blue; this.tChart3.Header.Alignment = TextAlignment.Start; this.tChart3.Header.Font.Bold = true; this.tChart3.Header.Font.Brush.Color = Color.Black; this.tChart3.Header.Font.Name = "Verdana"; this.tChart3.Header.Font.Shadow.Brush.Color = Color.Gray; this.tChart3.Header.Font.Shadow.SmoothBlur = 2; this.tChart3.Header.Font.Size = 47; this.tChart3.Header.Lines = new string[] { "" }; this.tChart3.Header.Visible = false; this.tChart3.Legend.Font.Name = "Verdana"; this.tChart3.Legend.Font.Size = 19; this.tChart3.Legend.Pen.Visible = false; this.tChart3.Legend.Shadow.Visible = false; this.tChart3.Legend.Visible = false; this.tChart3.Panel.Bevel.Outer = Steema.TeeChart.Drawing.BevelStyles.None; this.tChart3.Panel.Bevel.Width = 2; this.tChart3.Panel.BevelWidth = 2; this.tChart3.Panel.Brush.Color = Color.FromRgb(((int)(((byte)(255)))), ((int)(((byte)(68)))), ((int)(((byte)(68))))); this.tChart3.Panel.Brush.Gradient.EndColor = Color.White; this.tChart3.Panel.Brush.Gradient.StartColor = Color.Silver; this.tChart3.Panel.Brush.Gradient.Visible = false; this.tChart3.Series.Add(this.numericGauge2); this.tChart3.Walls.Back.Brush.Gradient.EndColor = Color.White; this.tChart3.Walls.Back.Pen.Visible = false; this.tChart3.Walls.Bottom.Brush.Gradient.EndColor = Color.Silver; this.tChart3.Walls.Bottom.Brush.Gradient.StartColor = Color.Gray; this.tChart3.Walls.Bottom.Brush.Gradient.Visible = true; this.tChart3.Walls.Bottom.Pen.Color = Color.Gray; this.tChart3.Walls.Bottom.Transparent = true; this.tChart3.Walls.Left.Brush.Color = Color.White; this.tChart3.Walls.Left.Brush.Gradient.EndColor = Color.Silver; this.tChart3.Walls.Left.Brush.Gradient.StartColor = Color.Gray; this.tChart3.Walls.Left.Brush.Gradient.Visible = true; this.tChart3.Walls.Left.Pen.Color = Color.Gray; this.tChart3.Walls.Left.Transparent = true; this.tChart3.Walls.Right.Transparent = true; // numericGauge2 this.numericGauge2.Color = Color.FromRgb(((int)(((byte)(229)))), ((int)(((byte)(181)))), ((int)(((byte)(51))))); this.numericGauge2.ColorEach = false; this.numericGauge2.ColorLineEndValues.Add(0D); this.numericGauge2.ColorLineEndValues.Add(0D); this.numericGauge2.ColorLineStartValues.Add(0D); this.numericGauge2.ColorLineStartValues.Add(0D); this.numericGauge2.Frame.Circled = false; this.numericGauge2.GaugeColorPalette = new Color[] { Color.FromRgb(((int)(((byte)(40)))), ((int)(((byte)(40)))), ((int)(((byte)(40))))), Color.FromRgb(((int)(((byte)(50)))), ((int)(((byte)(50)))), ((int)(((byte)(50))))), Color.FromRgb(((int)(((byte)(100)))), ((int)(((byte)(100)))), ((int)(((byte)(100))))), Color.FromRgb(((int)(((byte)(170)))), ((int)(((byte)(170)))), ((int)(((byte)(130))))), Color.FromRgb(((int)(((byte)(170)))), ((int)(((byte)(170)))), ((int)(((byte)(130))))), Color.FromRgb(((int)(((byte)(170)))), ((int)(((byte)(170)))), ((int)(((byte)(130))))), Color.FromRgb(((int)(((byte)(100)))), ((int)(((byte)(40)))), ((int)(((byte)(40))))), Color.Transparent, Color.FromRgb(((int)(((byte)(100)))), ((int)(((byte)(100)))), ((int)(((byte)(100))))), Color.FromRgb(((int)(((byte)(100)))), ((int)(((byte)(100)))), ((int)(((byte)(100))))), Color.Transparent, Color.FromRgb(((int)(((byte)(30)))), ((int)(((byte)(200)))), ((int)(((byte)(30))))), Color.FromRgb(((int)(((byte)(200)))), ((int)(((byte)(115)))), ((int)(((byte)(60))))), Color.FromRgb(((int)(((byte)(200)))), ((int)(((byte)(115)))), ((int)(((byte)(60))))), Color.FromRgb(((int)(((byte)(200)))), ((int)(((byte)(115)))), ((int)(((byte)(60))))), Color.FromRgb(((int)(((byte)(150)))), ((int)(((byte)(50)))), ((int)(((byte)(10))))), Color.FromRgb(((int)(((byte)(130)))), ((int)(((byte)(130)))), ((int)(((byte)(130))))), Color.FromRgb(((int)(((byte)(130)))), ((int)(((byte)(130)))), ((int)(((byte)(130))))), Color.Transparent, Color.FromRgb(((int)(((byte)(30)))), ((int)(((byte)(30)))), ((int)(((byte)(30))))), Color.FromRgb(((int)(((byte)(40)))), ((int)(((byte)(40)))), ((int)(((byte)(40))))), Color.FromRgb(((int)(((byte)(100)))), ((int)(((byte)(100)))), ((int)(((byte)(100))))), Color.FromRgb(((int)(((byte)(100)))), ((int)(((byte)(100)))), ((int)(((byte)(100))))), Color.FromRgb(((int)(((byte)(100)))), ((int)(((byte)(100)))), ((int)(((byte)(100))))) }; this.numericGauge2.GreenLine.Brush.Gradient.UseMiddle = false; this.numericGauge2.GreenLine.Position = 0; this.numericGauge2.GreenLine.SizeDouble = 0D; this.numericGauge2.GreenLine.SizeUnits = Steema.TeeChart.Styles.PointerSizeUnits.Pixels; this.numericGauge2.GreenLine.Spiralled = false; this.numericGauge2.GreenLine.VertSize = 5; this.numericGauge2.GreenLine.Visible = true; this.numericGauge2.GreenLineEndValue = 0D; this.numericGauge2.GreenLineStartValue = 0D; this.numericGauge2.Hand.Brush.Color = Color.FromRgba(((int)(((byte)(255)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(76))))); this.numericGauge2.Hand.Position = 0; this.numericGauge2.Hand.SizeDouble = 0D; this.numericGauge2.Hand.SizeUnits = Steema.TeeChart.Styles.PointerSizeUnits.Pixels; this.numericGauge2.Hand.Spiralled = false; this.numericGauge2.Hand.Visible = true; this.numericGauge2.Legend.Visible = false; this.numericGauge2.Maximum = double.PositiveInfinity; this.numericGauge2.Minimum = 0D; this.numericGauge2.MinorTicks.Brush.Color = Color.Transparent; this.numericGauge2.MinorTicks.HorizSize = 1; this.numericGauge2.MinorTicks.Position = 0; this.numericGauge2.MinorTicks.SizeDouble = 0D; this.numericGauge2.MinorTicks.SizeUnits = Steema.TeeChart.Styles.PointerSizeUnits.Pixels; this.numericGauge2.MinorTicks.Spiralled = false; this.numericGauge2.MinorTicks.VertSize = 1; this.numericGauge2.MinorTicks.Visible = true; this.numericGauge2.RedLine.Position = 0; this.numericGauge2.RedLine.SizeDouble = 0D; this.numericGauge2.RedLine.SizeUnits = Steema.TeeChart.Styles.PointerSizeUnits.Pixels; this.numericGauge2.RedLine.Spiralled = false; this.numericGauge2.RedLine.VertSize = 5; this.numericGauge2.RedLine.Visible = true; this.numericGauge2.RedLineEndValue = 0D; this.numericGauge2.RedLineStartValue = 0D; this.numericGauge2.ShowInLegend = false; this.numericGauge2.Ticks.Brush.Color = Color.Transparent; this.numericGauge2.Ticks.Position = 0; this.numericGauge2.Ticks.SizeDouble = 0D; this.numericGauge2.Ticks.SizeUnits = Steema.TeeChart.Styles.PointerSizeUnits.Pixels; this.numericGauge2.Ticks.Spiralled = false; this.numericGauge2.Ticks.VertSize = 20; this.numericGauge2.Ticks.Visible = true; this.numericGauge2.Title = "numericGauge1"; this.numericGauge2.Value = 980.18847917215362D; this.numericGauge2.ValueFormat = "N"; this.numericGauge2.XValues.DataMember = "X"; this.numericGauge2.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; this.numericGauge2.YValues.DataMember = "Y"; // tChart2 this.tChart2.Aspect.Chart3DPercent = 0; this.tChart2.Aspect.ClipPoints = false; this.tChart2.Aspect.ColorPaletteIndex = 19; this.tChart2.Aspect.Elevation = 350; this.tChart2.Aspect.ElevationFloat = 350D; this.tChart2.Aspect.Orthogonal = false; this.tChart2.Aspect.Perspective = 55; this.tChart2.Aspect.View3D = false; this.tChart2.Aspect.Zoom = 293; this.tChart2.Aspect.ZoomFloat = 293D; this.tChart2.Axes.Bottom.AxisPen.Visible = false; this.tChart2.Axes.Bottom.AxisPen.Width = 0; this.tChart2.Axes.Bottom.Grid.Color = Color.FromRgb(((int)(((byte)(221)))), ((int)(((byte)(221)))), ((int)(((byte)(221))))); this.tChart2.Axes.Bottom.Grid.Visible = false; this.tChart2.Axes.Bottom.Labels.Font.Brush.Color = Color.Gray; this.tChart2.Axes.Bottom.Labels.Font.Name = "Verdana"; this.tChart2.Axes.Bottom.Labels.Font.Size = 24; this.tChart2.Axes.Bottom.MinorTicks.Length = 1; this.tChart2.Axes.Bottom.MinorTicks.Visible = false; this.tChart2.Axes.Bottom.Ticks.Color = Color.FromRgb(((int)(((byte)(128)))), ((int)(((byte)(128)))), ((int)(((byte)(128))))); this.tChart2.Axes.Bottom.Ticks.Length = 20; this.tChart2.Axes.Bottom.Title.Font.Name = "Verdana"; this.tChart2.Axes.Depth.Title.Font.Name = "Verdana"; this.tChart2.Axes.Depth.Title.Font.Size = 13; this.tChart2.Axes.DepthTop.Title.Font.Name = "Verdana"; this.tChart2.Axes.DepthTop.Title.Font.Size = 13; this.tChart2.Axes.Left.AxisPen.Visible = false; this.tChart2.Axes.Left.AxisPen.Width = 0; this.tChart2.Axes.Left.Grid.Color = Color.FromRgb(((int)(((byte)(221)))), ((int)(((byte)(221)))), ((int)(((byte)(221))))); this.tChart2.Axes.Left.Labels.Font.Brush.Color = Color.Gray; this.tChart2.Axes.Left.Labels.Font.Name = "Verdana"; this.tChart2.Axes.Left.Labels.Font.Size = 24; this.tChart2.Axes.Left.MinorTicks.Visible = false; this.tChart2.Axes.Left.Ticks.Color = Color.FromRgb(((int)(((byte)(128)))), ((int)(((byte)(128)))), ((int)(((byte)(128))))); this.tChart2.Axes.Left.Ticks.Length = 7; this.tChart2.Axes.Left.Title.Font.Name = "Verdana"; this.tChart2.Axes.Right.AxisPen.Width = 0; this.tChart2.Axes.Right.Grid.Visible = false; this.tChart2.Axes.Right.Labels.Font.Brush.Color = Color.Gray; this.tChart2.Axes.Right.Labels.Font.Name = "Verdana"; this.tChart2.Axes.Right.Labels.Font.Size = 31; this.tChart2.Axes.Right.MinorTicks.Visible = false; this.tChart2.Axes.Right.Ticks.Visible = false; this.tChart2.Axes.Right.Title.Font.Name = "Verdana"; this.tChart2.Axes.Top.Title.Font.Name = "Verdana"; this.tChart2.Axes.Visible = false; this.tChart2.Footer.Font.Brush.Color = Color.Blue; this.tChart2.Header.Alignment = TextAlignment.Start; this.tChart2.Header.Font.Bold = true; this.tChart2.Header.Font.Brush.Color = Color.Black; this.tChart2.Header.Font.Name = "Verdana"; this.tChart2.Header.Font.Shadow.Brush.Color = Color.Gray; this.tChart2.Header.Font.Shadow.SmoothBlur = 2; this.tChart2.Header.Font.Size = 47; this.tChart2.Header.Lines = new string[] { "" }; this.tChart2.Header.Visible = false; this.tChart2.Legend.Font.Name = "Verdana"; this.tChart2.Legend.Font.Size = 19; this.tChart2.Legend.Pen.Visible = false; this.tChart2.Legend.Shadow.Visible = false; this.tChart2.Legend.Visible = false; this.tChart2.Panel.Bevel.Outer = Steema.TeeChart.Drawing.BevelStyles.None; this.tChart2.Panel.Bevel.Width = 2; this.tChart2.Panel.BevelWidth = 2; this.tChart2.Panel.Brush.Color = Color.FromRgb(((int)(((byte)(51)))), ((int)(((byte)(181)))), ((int)(((byte)(229))))); this.tChart2.Panel.Brush.Gradient.EndColor = Color.White; this.tChart2.Panel.Brush.Gradient.StartColor = Color.Silver; this.tChart2.Panel.Brush.Gradient.Visible = false; this.tChart2.Panel.MarginBottom = 0D; this.tChart2.Panel.MarginLeft = 0D; this.tChart2.Panel.MarginRight = 0D; this.tChart2.Panel.MarginTop = 0D; this.tChart2.Series.Add(this.numericGauge1); this.tChart2.Walls.Back.Brush.Gradient.EndColor = Color.White; this.tChart2.Walls.Back.Pen.Visible = false; this.tChart2.Walls.Bottom.Brush.Gradient.EndColor = Color.Silver; this.tChart2.Walls.Bottom.Brush.Gradient.StartColor = Color.Gray; this.tChart2.Walls.Bottom.Brush.Gradient.Visible = true; this.tChart2.Walls.Bottom.Pen.Color = Color.Gray; this.tChart2.Walls.Bottom.Transparent = true; this.tChart2.Walls.Left.Brush.Color = Color.White; this.tChart2.Walls.Left.Brush.Gradient.EndColor = Color.Silver; this.tChart2.Walls.Left.Brush.Gradient.StartColor = Color.Gray; this.tChart2.Walls.Left.Brush.Gradient.Visible = true; this.tChart2.Walls.Left.Pen.Color = Color.Gray; this.tChart2.Walls.Left.Transparent = true; this.tChart2.Walls.Right.Transparent = true; this.tChart2.Walls.Visible = false; // numericGauge1 this.numericGauge1.Color = Color.FromRgb(((int)(((byte)(229)))), ((int)(((byte)(181)))), ((int)(((byte)(51))))); this.numericGauge1.ColorEach = false; this.numericGauge1.ColorLineEndValues.Add(0D); this.numericGauge1.ColorLineEndValues.Add(0D); this.numericGauge1.ColorLineStartValues.Add(0D); this.numericGauge1.ColorLineStartValues.Add(0D); this.numericGauge1.Frame.Circled = false; this.numericGauge1.GaugeColorPalette = new Color[] { Color.FromRgb(((int)(((byte)(40)))), ((int)(((byte)(40)))), ((int)(((byte)(40))))), Color.FromRgb(((int)(((byte)(50)))), ((int)(((byte)(50)))), ((int)(((byte)(50))))), Color.FromRgb(((int)(((byte)(100)))), ((int)(((byte)(100)))), ((int)(((byte)(100))))), Color.FromRgb(((int)(((byte)(170)))), ((int)(((byte)(170)))), ((int)(((byte)(130))))), Color.FromRgb(((int)(((byte)(170)))), ((int)(((byte)(170)))), ((int)(((byte)(130))))), Color.FromRgb(((int)(((byte)(170)))), ((int)(((byte)(170)))), ((int)(((byte)(130))))), Color.FromRgb(((int)(((byte)(100)))), ((int)(((byte)(40)))), ((int)(((byte)(40))))), Color.Transparent, Color.FromRgb(((int)(((byte)(100)))), ((int)(((byte)(100)))), ((int)(((byte)(100))))), Color.FromRgb(((int)(((byte)(100)))), ((int)(((byte)(100)))), ((int)(((byte)(100))))), Color.Transparent, Color.FromRgb(((int)(((byte)(30)))), ((int)(((byte)(200)))), ((int)(((byte)(30))))), Color.FromRgb(((int)(((byte)(200)))), ((int)(((byte)(115)))), ((int)(((byte)(60))))), Color.FromRgb(((int)(((byte)(200)))), ((int)(((byte)(115)))), ((int)(((byte)(60))))), Color.FromRgb(((int)(((byte)(200)))), ((int)(((byte)(115)))), ((int)(((byte)(60))))), Color.FromRgb(((int)(((byte)(150)))), ((int)(((byte)(50)))), ((int)(((byte)(10))))), Color.FromRgb(((int)(((byte)(130)))), ((int)(((byte)(130)))), ((int)(((byte)(130))))), Color.FromRgb(((int)(((byte)(130)))), ((int)(((byte)(130)))), ((int)(((byte)(130))))), Color.Transparent, Color.FromRgb(((int)(((byte)(30)))), ((int)(((byte)(30)))), ((int)(((byte)(30))))), Color.FromRgb(((int)(((byte)(40)))), ((int)(((byte)(40)))), ((int)(((byte)(40))))), Color.FromRgb(((int)(((byte)(100)))), ((int)(((byte)(100)))), ((int)(((byte)(100))))), Color.FromRgb(((int)(((byte)(100)))), ((int)(((byte)(100)))), ((int)(((byte)(100))))), Color.FromRgb(((int)(((byte)(100)))), ((int)(((byte)(100)))), ((int)(((byte)(100))))) }; //this.numericGauge1.GreenLine.Brush.Gradient.Sigma = true; //this.numericGauge1.GreenLine.Brush.Gradient.SigmaFocus = 0F; this.numericGauge1.GreenLine.Brush.Gradient.UseMiddle = false; this.numericGauge1.GreenLine.Position = 0; this.numericGauge1.GreenLine.SizeDouble = 0D; this.numericGauge1.GreenLine.SizeUnits = Steema.TeeChart.Styles.PointerSizeUnits.Pixels; this.numericGauge1.GreenLine.Spiralled = false; this.numericGauge1.GreenLine.VertSize = 5; this.numericGauge1.GreenLine.Visible = true; this.numericGauge1.GreenLineEndValue = 0D; this.numericGauge1.GreenLineStartValue = 0D; this.numericGauge1.Hand.Brush.Color = Color.FromRgba(((int)(((byte)(255)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(76))))); this.numericGauge1.Hand.Position = 0; this.numericGauge1.Hand.SizeDouble = 0D; this.numericGauge1.Hand.SizeUnits = Steema.TeeChart.Styles.PointerSizeUnits.Pixels; this.numericGauge1.Hand.Spiralled = false; this.numericGauge1.Hand.Visible = true; this.numericGauge1.Legend.Visible = false; this.numericGauge1.Maximum = double.PositiveInfinity; this.numericGauge1.Minimum = 0D; this.numericGauge1.MinorTicks.Brush.Color = Color.Transparent; this.numericGauge1.MinorTicks.HorizSize = 1; this.numericGauge1.MinorTicks.Position = 0; this.numericGauge1.MinorTicks.SizeDouble = 0D; this.numericGauge1.MinorTicks.SizeUnits = Steema.TeeChart.Styles.PointerSizeUnits.Pixels; this.numericGauge1.MinorTicks.Spiralled = false; this.numericGauge1.MinorTicks.VertSize = 1; this.numericGauge1.MinorTicks.Visible = true; this.numericGauge1.RedLine.Position = 0; this.numericGauge1.RedLine.SizeDouble = 0D; this.numericGauge1.RedLine.SizeUnits = Steema.TeeChart.Styles.PointerSizeUnits.Pixels; this.numericGauge1.RedLine.Spiralled = false; this.numericGauge1.RedLine.VertSize = 5; this.numericGauge1.RedLine.Visible = true; this.numericGauge1.RedLineEndValue = 0D; this.numericGauge1.RedLineStartValue = 0D; this.numericGauge1.ShowInLegend = false; this.numericGauge1.Ticks.Brush.Color = Color.Transparent; this.numericGauge1.Ticks.Position = 0; this.numericGauge1.Ticks.SizeDouble = 0D; this.numericGauge1.Ticks.SizeUnits = Steema.TeeChart.Styles.PointerSizeUnits.Pixels; this.numericGauge1.Ticks.Spiralled = false; this.numericGauge1.Ticks.VertSize = 20; this.numericGauge1.Ticks.Visible = true; this.numericGauge1.Title = "numericGauge1"; this.numericGauge1.Value = 478.53749267688835D; this.numericGauge1.ValueFormat = "N"; this.numericGauge1.XValues.DataMember = "X"; this.numericGauge1.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; this.numericGauge1.YValues.DataMember = "Y"; // tChart1 this.tChart1.Aspect.ColorPaletteIndex = 19; this.tChart1.Aspect.Elevation = 315; this.tChart1.Aspect.ElevationFloat = 315D; 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.Axes.Bottom.AxisPen.Visible = false; this.tChart1.Axes.Bottom.AxisPen.Width = 0; this.tChart1.Axes.Bottom.Grid.Color = Color.FromRgb(((int)(((byte)(221)))), ((int)(((byte)(221)))), ((int)(((byte)(221))))); this.tChart1.Axes.Bottom.Grid.Visible = false; this.tChart1.Axes.Bottom.Labels.Font.Brush.Color = Color.Gray; this.tChart1.Axes.Bottom.Labels.Font.Name = "Verdana"; this.tChart1.Axes.Bottom.Labels.Font.Size = 24; this.tChart1.Axes.Bottom.MinorTicks.Visible = false; this.tChart1.Axes.Bottom.Ticks.Color = Color.FromRgb(((int)(((byte)(128)))), ((int)(((byte)(128)))), ((int)(((byte)(128))))); this.tChart1.Axes.Bottom.Title.Font.Name = "Verdana"; this.tChart1.Axes.Depth.Title.Font.Name = "Verdana"; this.tChart1.Axes.Depth.Title.Font.Size = 13; this.tChart1.Axes.DepthTop.Title.Font.Name = "Verdana"; this.tChart1.Axes.DepthTop.Title.Font.Size = 13; this.tChart1.Axes.Left.AxisPen.Visible = false; this.tChart1.Axes.Left.AxisPen.Width = 0; this.tChart1.Axes.Left.Grid.Color = Color.FromRgb(((int)(((byte)(221)))), ((int)(((byte)(221)))), ((int)(((byte)(221))))); this.tChart1.Axes.Left.Labels.Font.Brush.Color = Color.Gray; this.tChart1.Axes.Left.Labels.Font.Name = "Verdana"; this.tChart1.Axes.Left.Labels.Font.Size = 24; this.tChart1.Axes.Left.MinorTicks.Visible = false; this.tChart1.Axes.Left.Ticks.Color = Color.FromRgb(((int)(((byte)(128)))), ((int)(((byte)(128)))), ((int)(((byte)(128))))); this.tChart1.Axes.Left.Ticks.Length = 7; this.tChart1.Axes.Left.Title.Font.Name = "Verdana"; this.tChart1.Axes.Right.AxisPen.Width = 0; this.tChart1.Axes.Right.Grid.Visible = false; this.tChart1.Axes.Right.Labels.Font.Brush.Color = Color.Gray; this.tChart1.Axes.Right.Labels.Font.Name = "Verdana"; this.tChart1.Axes.Right.Labels.Font.Size = 31; this.tChart1.Axes.Right.MinorTicks.Visible = false; this.tChart1.Axes.Right.Ticks.Visible = false; this.tChart1.Axes.Right.Title.Font.Name = "Verdana"; this.tChart1.Axes.Top.Title.Font.Name = "Verdana"; this.tChart1.Footer.Font.Brush.Color = Color.Blue; this.tChart1.Header.Font.Brush.Color = Color.Silver; this.tChart1.Header.Font.Name = "Segoe UI"; this.tChart1.Header.Font.Shadow.Brush.Color = Color.FromRgb(((int)(((byte)(131)))), ((int)(((byte)(131)))), ((int)(((byte)(131))))); this.tChart1.Header.Font.Shadow.SmoothBlur = 2; this.tChart1.Header.Font.Size = 23; this.tChart1.Header.Lines = new string[] { "Percentage of world population" }; this.tChart1.Legend.Alignment = Steema.TeeChart.LegendAlignments.Bottom; this.tChart1.Legend.Font.Brush.Color = Color.Silver; this.tChart1.Legend.Font.Name = "Segoe UI"; this.tChart1.Legend.Font.Size = 19; this.tChart1.Legend.Pen.Visible = false; this.tChart1.Legend.Shadow.Visible = false; this.tChart1.Legend.Transparent = true; this.tChart1.Panel.Bevel.Outer = Steema.TeeChart.Drawing.BevelStyles.None; this.tChart1.Panel.Bevel.Width = 2; this.tChart1.Panel.BevelWidth = 2; this.tChart1.Panel.Brush.Color = Color.White; this.tChart1.Panel.Brush.Gradient.EndColor = Color.White; this.tChart1.Panel.Brush.Gradient.StartColor = Color.Silver; this.tChart1.Panel.Brush.Gradient.Visible = false; this.tChart1.Panel.MarginRight = 18D; this.tChart1.Series.Add(this.pie1); this.tChart1.SubHeader.Font.Brush.Color = Color.Silver; this.tChart1.SubHeader.Font.Name = "Segoe UI"; this.tChart1.SubHeader.Font.Shadow.Brush.Color = Color.Gray; this.tChart1.SubHeader.Font.Size = 14; this.tChart1.SubHeader.Lines = new string[] { "actively using social media" }; this.tChart1.SubHeader.Visible = true; this.tChart1.Walls.Back.Brush.Gradient.EndColor = Color.White; this.tChart1.Walls.Back.Pen.Visible = false; this.tChart1.Walls.Bottom.Brush.Gradient.EndColor = Color.Silver; this.tChart1.Walls.Bottom.Brush.Gradient.StartColor = Color.Gray; this.tChart1.Walls.Bottom.Brush.Gradient.Visible = true; this.tChart1.Walls.Bottom.Pen.Color = Color.Gray; this.tChart1.Walls.Bottom.Transparent = true; this.tChart1.Walls.Left.Brush.Color = Color.White; this.tChart1.Walls.Left.Brush.Gradient.EndColor = Color.Silver; this.tChart1.Walls.Left.Brush.Gradient.StartColor = Color.Gray; this.tChart1.Walls.Left.Brush.Gradient.Visible = true; this.tChart1.Walls.Left.Pen.Color = Color.Gray; this.tChart1.Walls.Left.Transparent = true; this.tChart1.Walls.Right.Transparent = true; // pie1 this.pie1.Brush.Color = Color.FromRgb(((int)(((byte)(0)))), ((int)(((byte)(153)))), ((int)(((byte)(102))))); this.pie1.Circled = true; this.pie1.Color = Color.FromRgb(((int)(((byte)(229)))), ((int)(((byte)(181)))), ((int)(((byte)(51))))); this.pie1.Frame.Circled = true; this.pie1.Frame.FrameElementPercents = new double[] { 25D, 60D, 15D }; this.pie1.Frame.OuterBand.Gradient.UseMiddle = false; this.pie1.LabelMember = "Labels"; this.pie1.Marks.Arrow.Color = Color.FromRgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); this.pie1.Marks.Brush.Color = Color.FromRgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(128))))); this.pie1.Marks.Font.Brush.Color = Color.FromRgb(((int)(((byte)(0)))), ((int)(((byte)(153)))), ((int)(((byte)(102))))); this.pie1.Marks.Font.Name = "Segoe UI"; this.pie1.Marks.Font.Size = 14; this.pie1.Marks.FontSeriesColor = true; this.pie1.Marks.Pen.Visible = false; this.pie1.Marks.Shadow.Visible = false; this.pie1.Marks.ShapeStyle = Steema.TeeChart.Drawing.TextShapeStyle.RoundRectangle; this.pie1.MarksPie.LegSize = 0; this.pie1.MarksPie.VertCenter = false; this.pie1.MultiPie = Steema.TeeChart.Styles.MultiPies.Automatic; this.pie1.OtherSlice.Color = Color.Transparent; this.pie1.OtherSlice.Style = Steema.TeeChart.Styles.PieOtherStyles.None; this.pie1.OtherSlice.Text = ""; this.pie1.OtherSlice.Value = 0D; this.pie1.Title = "pie1"; this.pie1.UniqueCustomRadius = true; this.pie1.XValues.DataMember = "Angle"; this.pie1.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; this.pie1.YValues.DataMember = "Pie"; this.tChart1.Panel.Color = Color.FromRgb(0, 0, 230); pie1.Add(19, "Facebook"); pie1.Add(14, "Tencent"); pie1.Add(9, "WhatsApp"); pie1.Add(5, "LinkedIn"); pie1.Add(4, "Twitter"); pie1.MarksPie.LegSize = 20; pie1.Marks.FontSeriesColor = true; tChart2.Panel.Gradient.Visible = false; tChart3.Panel.Gradient.Visible = false; //numericGauges setGauge(numericGauge1); numericGauge1.Markers[1].Text = "Highest"; numericGauge1.Markers[2].Text = "Facebook"; setGauge(numericGauge2); numericGauge2.Markers[1].Text = "Lowest"; numericGauge2.Markers[2].Text = "Twitter"; this.tChart1.Aspect.ZoomText = true; this.tChart2.Aspect.ZoomText = true; this.tChart3.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; Content = new StackLayout { Children = { chartView1 } }; }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.pieSeries1 = new Steema.TeeChart.Styles.Pie(); this.pieTool1 = new Steema.TeeChart.Tools.PieTool(); this.label1 = new System.Windows.Forms.Label(); this.label2 = new System.Windows.Forms.Label(); this.buttonPen1 = new Steema.TeeChart.ButtonPen(); this.button1 = new System.Windows.Forms.Button(); this.panelColor = new System.Windows.Forms.Panel(); this.panel1.SuspendLayout(); this.SuspendLayout(); // // textBox1 // this.textBox1.Name = "textBox1"; this.textBox1.Size = new System.Drawing.Size(440, 63); this.textBox1.Text = "Use PieTool to focus pie slices when passing the mouse over them.\r\nMove the mouse" + " over pie slices..."; // // panel1 // this.panel1.Controls.Add(this.panelColor); this.panel1.Controls.Add(this.button1); this.panel1.Controls.Add(this.buttonPen1); this.panel1.Controls.Add(this.label2); 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(440, 41); // // tChart1 // // // tChart1.Aspect // this.tChart1.Aspect.Elevation = 315; this.tChart1.Aspect.Orthogonal = false; this.tChart1.Aspect.Perspective = 0; this.tChart1.Aspect.Rotation = 360; this.tChart1.Aspect.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.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))); // // tChart1.Panel.Gradient // this.tChart1.Panel.Brush.Gradient.EndColor = System.Drawing.Color.FromArgb(((System.Byte)(0)), ((System.Byte)(0)), ((System.Byte)(128))); this.tChart1.Panel.Brush.Gradient.StartColor = System.Drawing.Color.FromArgb(((System.Byte)(128)), ((System.Byte)(255)), ((System.Byte)(255))); this.tChart1.Panel.Brush.Gradient.Visible = true; // // tChart1.Panel.Gradient // this.tChart1.Panel.Gradient.EndColor = System.Drawing.Color.FromArgb(((System.Byte)(0)), ((System.Byte)(0)), ((System.Byte)(128))); this.tChart1.Panel.Gradient.StartColor = System.Drawing.Color.FromArgb(((System.Byte)(128)), ((System.Byte)(255)), ((System.Byte)(255))); this.tChart1.Panel.Gradient.Visible = true; this.tChart1.Series.Add(this.pieSeries1); this.tChart1.Size = new System.Drawing.Size(440, 237); this.tChart1.Tools.Add(this.pieTool1); this.tChart1.MouseMove += new System.Windows.Forms.MouseEventHandler(this.tChart1_MouseMove); // // pieSeries1 // // // pieSeries1.Brush // this.pieSeries1.Brush.Color = System.Drawing.Color.Red; this.pieSeries1.LabelMember = "Labels"; // // pieSeries1.Marks // // // pieSeries1.Marks.Symbol // // // pieSeries1.Marks.Symbol.Shadow // this.pieSeries1.Marks.Symbol.Shadow.Height = 1; this.pieSeries1.Marks.Symbol.Shadow.Visible = true; this.pieSeries1.Marks.Symbol.Shadow.Width = 1; // // pieSeries1.Pen // this.pieSeries1.Pen.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(128)), ((System.Byte)(128)), ((System.Byte)(128))); // // pieSeries1.Shadow // this.pieSeries1.Shadow.Height = 20; this.pieSeries1.Shadow.Width = 20; this.pieSeries1.Title = "pieSeries1"; // // pieSeries1.XValues // this.pieSeries1.XValues.DataMember = "Angle"; this.pieSeries1.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; // // pieSeries1.YValues // this.pieSeries1.YValues.DataMember = "Pie"; // // pieTool1 // // // pieTool1.Pen // this.pieTool1.Pen.Width = 4; this.pieTool1.Series = this.pieSeries1; // // 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(32, 16); this.label1.TabIndex = 0; this.label1.Text = "Slice:"; this.label1.UseMnemonic = false; // // label2 // this.label2.AutoSize = true; this.label2.Location = new System.Drawing.Point(47, 11); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(14, 16); this.label2.TabIndex = 1; this.label2.Text = "..."; this.label2.UseMnemonic = false; // // buttonPen1 // this.buttonPen1.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.buttonPen1.Location = new System.Drawing.Point(167, 8); this.buttonPen1.Name = "buttonPen1"; this.buttonPen1.TabIndex = 2; this.buttonPen1.Text = "&Pen..."; // // button1 // this.button1.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.button1.Location = new System.Drawing.Point(264, 8); this.button1.Name = "button1"; this.button1.TabIndex = 3; this.button1.Text = "&Edit..."; this.button1.Click += new System.EventHandler(this.button1_Click); // // panelColor // this.panelColor.Location = new System.Drawing.Point(127, 5); this.panelColor.Name = "panelColor"; this.panelColor.Size = new System.Drawing.Size(26, 28); this.panelColor.TabIndex = 4; // // Tool_PieTool // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(440, 341); this.Name = "Tool_PieTool"; 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.button1 = new System.Windows.Forms.Button(); this.button2 = new System.Windows.Forms.Button(); this.button3 = new System.Windows.Forms.Button(); this.saveFileDialog1 = new System.Windows.Forms.SaveFileDialog(); this.pieSeries1 = new Steema.TeeChart.Styles.Pie(); this.panel1.SuspendLayout(); this.SuspendLayout(); // // textBox1 // this.textBox1.Name = "textBox1"; this.textBox1.Size = new System.Drawing.Size(466, 48); this.textBox1.Text = "Exporting to Metafile and Enhanced Metafile graphic formats is available using th" + "e Export Dialog or by code at run-time. "; // // panel1 // this.panel1.Controls.Add(this.button3); this.panel1.Controls.Add(this.button2); this.panel1.Controls.Add(this.button1); this.panel1.Location = new System.Drawing.Point(0, 48); this.panel1.Name = "panel1"; this.panel1.Size = new System.Drawing.Size(466, 41); // // tChart1 // // // tChart1.Aspect // this.tChart1.Aspect.Elevation = 315; this.tChart1.Aspect.Orthogonal = false; this.tChart1.Aspect.Perspective = 0; this.tChart1.Aspect.Rotation = 360; this.tChart1.Aspect.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.HighQuality; this.tChart1.Aspect.TextRenderingHint = System.Drawing.Text.TextRenderingHint.ClearTypeGridFit; this.tChart1.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(255))); // // tChart1.Header // this.tChart1.Header.Lines = new string[] { "Exporting to Metafile and Enhanced Metafile" }; this.tChart1.Location = new System.Drawing.Point(0, 89); 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)(255)), ((System.Byte)(255)), ((System.Byte)(255))); this.tChart1.Series.Add(this.pieSeries1); this.tChart1.Size = new System.Drawing.Size(466, 197); // // button1 // this.button1.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.button1.Location = new System.Drawing.Point(13, 9); this.button1.Name = "button1"; this.button1.Size = new System.Drawing.Size(107, 23); this.button1.TabIndex = 0; this.button1.Text = "&Copy to Clipboard"; 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(133, 9); this.button2.Name = "button2"; this.button2.Size = new System.Drawing.Size(107, 23); this.button2.TabIndex = 1; this.button2.Text = "&Save to file..."; this.button2.Click += new System.EventHandler(this.button2_Click); // // button3 // this.button3.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.button3.Location = new System.Drawing.Point(256, 9); this.button3.Name = "button3"; this.button3.Size = new System.Drawing.Size(139, 23); this.button3.TabIndex = 2; this.button3.Text = "Show &Export Dialog..."; this.button3.Click += new System.EventHandler(this.button3_Click); // // saveFileDialog1 // this.saveFileDialog1.FileName = "doc1"; this.saveFileDialog1.Title = "Save Image (Metafile)"; // // pieSeries1 // // // pieSeries1.Brush // this.pieSeries1.Brush.Color = System.Drawing.Color.White; this.pieSeries1.LabelMember = "Labels"; // // pieSeries1.Marks // // // pieSeries1.Marks.Symbol // // // pieSeries1.Marks.Symbol.Shadow // this.pieSeries1.Marks.Symbol.Shadow.Height = 1; this.pieSeries1.Marks.Symbol.Shadow.Visible = true; this.pieSeries1.Marks.Symbol.Shadow.Width = 1; // // pieSeries1.Shadow // this.pieSeries1.Shadow.Height = 20; this.pieSeries1.Shadow.Width = 20; this.pieSeries1.Title = "pieSeries1"; // // pieSeries1.XValues // this.pieSeries1.XValues.DataMember = "Angle"; this.pieSeries1.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; // // pieSeries1.YValues // this.pieSeries1.YValues.DataMember = "Pie"; // // Export_Metafile // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(466, 286); this.Name = "Export_Metafile"; this.panel1.ResumeLayout(false); this.ResumeLayout(false); }