private void InitializeChart() { tChart1.Tools.Add(fader = new Steema.TeeChart.Tools.FaderTool()); tChart1.Series.Add(bar = new Steema.TeeChart.Styles.Bar()); bar.FillSampleValues(); fader.Color = tChart1.Panel.Gradient.EndColor; fader.Speed = 2; fader.FaderStop += new EventHandler(fader_FaderStop); }
public Export_JScript() { // This call is required by the Windows Form Designer. InitializeComponent(); tChart1.Aspect.View3D = false; tChart1.Header.Text = "TeeChart Javascript on HTML5 Cnvas"; Steema.TeeChart.Styles.Bar bar1 = new Steema.TeeChart.Styles.Bar(tChart1.Chart); bar1.FillSampleValues(); // TODO: Add any initialization after the InitializeComponent call }
public override void ViewDidLoad() { base.ViewDidLoad(); chartview = new TChart(); chartview.Frame = new RectangleF(0, 0, 320, 460); //���ͤ��P�������Ϫ� switch (chart) { case ChartType.Bar: var Barstyle = new Steema.TeeChart.Styles.Bar(); Barstyle.FillSampleValues(samples); Barstyle.ShowInLegend = false; Barstyle.Marks.Visible = true; chartview.Series.Add(Barstyle); break; case ChartType.Candle: var Candlestyle = new Steema.TeeChart.Styles.Candle(); Candlestyle.FillSampleValues(samples); Candlestyle.ShowInLegend = false; Candlestyle.Marks.Visible = true; chartview.Series.Add(Candlestyle); break; case ChartType.Bubble: var Bubblestyle = new Steema.TeeChart.Styles.Bubble(); Bubblestyle.FillSampleValues(samples); Bubblestyle.ShowInLegend = false; Bubblestyle.Marks.Visible = true; chartview.Series.Add(Bubblestyle); break; case ChartType.Radar: var Radarstyle = new Steema.TeeChart.Styles.Radar(); Radarstyle.FillSampleValues(samples); Radarstyle.ShowInLegend = false; Radarstyle.Marks.Visible = true; chartview.Series.Add(Radarstyle); break; case ChartType.Tower: var Towerstyle = new Steema.TeeChart.Styles.Tower(); Towerstyle.FillSampleValues(samples); Towerstyle.ShowInLegend = false; Towerstyle.Marks.Visible = true; chartview.Series.Add(Towerstyle); break; } View.AddSubview(chartview); }
public override void ViewDidLoad() { base.ViewDidLoad(); chartview = new TChart(); chartview.Frame = new RectangleF(0, 0, 320, 460); //產生不同類型的圖表 switch (chart) { case ChartType.Bar: var Barstyle = new Steema.TeeChart.Styles.Bar(); Barstyle.FillSampleValues(samples); Barstyle.ShowInLegend = false; Barstyle.Marks.Visible = true; chartview.Series.Add(Barstyle); break; case ChartType.Candle: var Candlestyle = new Steema.TeeChart.Styles.Candle(); Candlestyle.FillSampleValues(samples); Candlestyle.ShowInLegend = false; Candlestyle.Marks.Visible = true; chartview.Series.Add(Candlestyle); break; case ChartType.Bubble: var Bubblestyle = new Steema.TeeChart.Styles.Bubble(); Bubblestyle.FillSampleValues(samples); Bubblestyle.ShowInLegend = false; Bubblestyle.Marks.Visible = true; chartview.Series.Add(Bubblestyle); break; case ChartType.Radar: var Radarstyle = new Steema.TeeChart.Styles.Radar(); Radarstyle.FillSampleValues(samples); Radarstyle.ShowInLegend = false; Radarstyle.Marks.Visible = true; chartview.Series.Add(Radarstyle); break; case ChartType.Tower: var Towerstyle = new Steema.TeeChart.Styles.Tower(); Towerstyle.FillSampleValues(samples); Towerstyle.ShowInLegend = false; Towerstyle.Marks.Visible = true; chartview.Series.Add(Towerstyle); break; } View.AddSubview(chartview); }
public void fillGraphs() { Steema.TeeChart.TChart tChart1 = new Steema.TeeChart.TChart(this); Steema.TeeChart.Styles.Bar bar1 = new Steema.TeeChart.Styles.Bar(); tChart1.Series.Add(bar1); bar1.Add(68, "Montag", Color.Red); bar1.Add(46, "Dienstag", Color.Blue); bar1.Add(98, "Mittwoch", Color.Green); bar1.Add(66, "Donnerstag", Color.Blue); bar1.Add(20, "Freitag", Color.Green); bar1.Add(70, "Samstag", Color.Blue); bar1.Add(0, "Sonntag", Color.Green); Steema.TeeChart.Themes.BlackIsBackTheme theme = new Steema.TeeChart.Themes.BlackIsBackTheme(tChart1.Chart); theme.Apply(); SetContentView(tChart1); }
public override void ViewDidLoad() { base.ViewDidLoad(); // Adding the UITableView and items to the View table = new UITableView(new RectangleF(0, 0, 320, 190)); tableItems = new List <ItemInfo>(); table.DataSource = new TableSource(this); table.Delegate = new TableDelegate(this); View.AddSubview(table); // Specifing a Chart dimension System.Drawing.RectangleF rect = new System.Drawing.RectangleF(0, 190, 320, 270); chart1.Frame = rect; // Setting automatic Zoom and Scroll to manual chart1.Aspect.ZoomScrollStyle = Steema.TeeChart.Drawing.Aspect.ZoomScrollStyles.Manual; // Adding series to the chart bar = new Steema.TeeChart.Styles.Bar(); // Some settings for the bar Series type bar.BarStyle = Steema.TeeChart.Styles.BarStyles.Arrow; bar.BarWidthPercent = 200; bar.Marks.Style = Steema.TeeChart.Styles.MarksStyles.Value; bar.ColorEach = true; chart1.Series.Add(bar); // Some settings for the Chart chart1.Aspect.View3D = false; chart1.Legend.Visible = false; chart1.Axes.Bottom.Title.Text = "Customer Invoices"; chart1.Axes.Left.AxisPen.Width = 1; chart1.Axes.Left.Increment = 40; chart1.Axes.Bottom.AxisPen.Width = 1; chart1.Header.Text = "TeeChart NET for iOS"; chart1.Header.Font.Color = UIColor.Black.CGColor; chart1.Panel.MarginTop = 0; chart1.Walls.Back.Visible = false; View.AddSubview(chart1); }
private void button1_Click(object sender, EventArgs e) { mystyle++; tChart1.Series.Clear(); switch (mystyle) { case 1: Steema.TeeChart.Styles.Area area = new Steema.TeeChart.Styles.Area(); area.Add(data); tChart1.Series.Add(area); break; case 2: Steema.TeeChart.Styles.Arrow arrow= new Steema.TeeChart.Styles.Arrow(); arrow.Add(data); tChart1.Series.Add(arrow); break; case 3: Steema.TeeChart.Styles.Bar Bar = new Steema.TeeChart.Styles.Bar(); Bar.Add(data); tChart1.Series.Add(Bar); break; case 4: Steema.TeeChart.Styles.Bar3D Bar3D = new Steema.TeeChart.Styles.Bar3D(); Bar3D.Add(data); tChart1.Series.Add(Bar3D); break; case 5: Steema.TeeChart.Styles.BarJoin BarJoin = new Steema.TeeChart.Styles.BarJoin(); BarJoin.Add(data); tChart1.Series.Add(BarJoin); break; case 6: Steema.TeeChart.Styles.Bezier Bezier = new Steema.TeeChart.Styles.Bezier(); Bezier.Add(data); tChart1.Series.Add(Bezier); break; } if (mystyle > 10) mystyle = 0; }
protected override void OnCreate(Bundle bundle) { base.OnCreate(bundle); var tChart1 = new Steema.TeeChart.TChart(ApplicationContext); tChart1.Panel.Transparent = true; tChart1.Header.Text = "Multiple series made with Xamarin.Android"; tChart1.Zoom.Style = Steema.TeeChart.ZoomStyles.FullChart; tChart1.Axes.Top.Visible = false; tChart1.ContentDescription = "MultiChart"; var myTheme = new Steema.TeeChart.Themes.BlackIsBackTheme(tChart1.Chart); myTheme.Apply(); var area1 = new Steema.TeeChart.Styles.Area(tChart1.Chart); area1.FillSampleValues(); area1.Gradient.Visible = true; area1.Gradient.StartColor = area1.Color; area1.Gradient.Transparency = 40; area1.Transparency = area1.Gradient.Transparency; var bar1 = new Steema.TeeChart.Styles.Bar(tChart1.Chart); bar1.FillSampleValues(); bar1.Brush.Transparency = 30; bar1.Marks.Visible = false; bar1.Color = Steema.TeeChart.Themes.Theme.OnBlackPalette[1]; bar1.HorizAxis = Steema.TeeChart.Styles.HorizontalAxis.Top; var line1 = new Steema.TeeChart.Styles.Line(tChart1.Chart); line1.FillSampleValues(); line1.Color = Steema.TeeChart.Themes.Theme.OnBlackPalette[3]; SetContentView(tChart1); }
public MainPage() { InitializeComponent(); Steema.TeeChart.Styles.Bar bar1 = new Steema.TeeChart.Styles.Bar(); bar1.FillSampleValues(5); _chartView = new ChartView() { HeightRequest = 500, WidthRequest = 500, Chart = { Series = { bar1, } } }; _chartViewExtended = new ChartViewExtended(_chartView); btnExport.Clicked += BtnExport_Clicked; stkLayout.Children.Add(_chartViewExtended); }
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() { System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Tools_SeriesAnim)); this.button1 = new System.Windows.Forms.Button(); this.hScrollBar1 = new System.Windows.Forms.HScrollBar(); this.label1 = new System.Windows.Forms.Label(); this.labelSteps = new System.Windows.Forms.Label(); this.barSeries1 = new Steema.TeeChart.Styles.Bar(); this.seriesAnimation1 = new Steema.TeeChart.Tools.SeriesAnimation(); this.checkBox1 = new System.Windows.Forms.CheckBox(); this.button2 = new System.Windows.Forms.Button(); this.panel1.SuspendLayout(); this.chartContainer.SuspendLayout(); this.SuspendLayout(); // // textBox1 // this.textBox1.Size = new System.Drawing.Size(488, 63); this.textBox1.TabIndex = 0; this.textBox1.Text = "The series animation tool displays an animated growing chart.\r\n\r\nExample: seriesA" + "nimation1.Execute(); "; // // panel1 // this.panel1.Controls.Add(this.button2); this.panel1.Controls.Add(this.checkBox1); this.panel1.Controls.Add(this.labelSteps); this.panel1.Controls.Add(this.hScrollBar1); this.panel1.Controls.Add(this.button1); this.panel1.Controls.Add(this.label1); this.panel1.Location = new System.Drawing.Point(0, 63); this.panel1.Size = new System.Drawing.Size(488, 41); this.panel1.TabIndex = 1; // // tChart1 // // // // this.tChart1.Aspect.ZOffset = 0; // // // // // // this.tChart1.Axes.Bottom.MaximumOffset = 34; this.tChart1.Axes.Bottom.MinimumOffset = 34; // // // this.tChart1.Axes.Left.MaximumOffset = 37; // // // this.tChart1.Header.Lines = new string[] { "tChart1" }; this.tChart1.Header.Visible = false; // // // // // // this.tChart1.Panel.Brush.Color = System.Drawing.Color.FromArgb(((int)(((byte)(254)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); // // // this.tChart1.Panel.Brush.Gradient.Direction = System.Drawing.Drawing2D.LinearGradientMode.ForwardDiagonal; this.tChart1.Panel.Brush.Gradient.StartColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(224)))), ((int)(((byte)(192))))); this.tChart1.Series.Add(this.barSeries1); this.tChart1.Size = new System.Drawing.Size(488, 269); this.tChart1.TabIndex = 2; this.tChart1.Tools.Add(this.seriesAnimation1); // // // // // // // // // this.tChart1.Walls.Bottom.Pen.Visible = false; this.tChart1.Walls.Bottom.Size = 5; // // // // // // this.tChart1.Walls.Left.Pen.Visible = false; this.tChart1.Walls.Left.Size = 5; // // chartContainer // this.chartContainer.Location = new System.Drawing.Point(0, 104); this.chartContainer.Size = new System.Drawing.Size(488, 269); // // button1 // this.button1.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.button1.Location = new System.Drawing.Point(13, 8); this.button1.Name = "button1"; this.button1.Size = new System.Drawing.Size(75, 23); this.button1.TabIndex = 0; this.button1.Text = "&Animate..."; this.button1.Click += new System.EventHandler(this.button1_Click); // // hScrollBar1 // this.hScrollBar1.Location = new System.Drawing.Point(140, 11); this.hScrollBar1.Maximum = 1000; this.hScrollBar1.Minimum = 1; this.hScrollBar1.Name = "hScrollBar1"; this.hScrollBar1.Size = new System.Drawing.Size(100, 17); this.hScrollBar1.TabIndex = 2; this.hScrollBar1.Value = 100; this.hScrollBar1.Scroll += new System.Windows.Forms.ScrollEventHandler(this.hScrollBar1_Scroll); // // label1 // this.label1.AutoSize = true; this.label1.Location = new System.Drawing.Point(100, 11); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(37, 13); this.label1.TabIndex = 1; this.label1.Text = "&Steps:"; this.label1.TextAlign = System.Drawing.ContentAlignment.TopRight; // // labelSteps // this.labelSteps.AutoSize = true; this.labelSteps.Location = new System.Drawing.Point(247, 11); this.labelSteps.Name = "labelSteps"; this.labelSteps.Size = new System.Drawing.Size(25, 13); this.labelSteps.TabIndex = 3; this.labelSteps.Text = "100"; this.labelSteps.UseMnemonic = false; // // barSeries1 // // // // this.barSeries1.Brush.Color = System.Drawing.Color.FromArgb(((int)(((byte)(68)))), ((int)(((byte)(102)))), ((int)(((byte)(163))))); this.barSeries1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(68)))), ((int)(((byte)(102)))), ((int)(((byte)(163))))); this.barSeries1.ColorEach = true; // // // // // // this.barSeries1.Marks.Callout.ArrowHead = Steema.TeeChart.Styles.ArrowHeadStyles.None; this.barSeries1.Marks.Callout.ArrowHeadSize = 8; // // // this.barSeries1.Marks.Callout.Brush.Color = System.Drawing.Color.Black; this.barSeries1.Marks.Callout.Distance = 0; this.barSeries1.Marks.Callout.Draw3D = false; this.barSeries1.Marks.Callout.Length = 20; this.barSeries1.Marks.Callout.Style = Steema.TeeChart.Styles.PointerStyles.Rectangle; this.barSeries1.Marks.Callout.Visible = false; this.barSeries1.Title = "barSeries1"; // // // this.barSeries1.XValues.DataMember = "X"; this.barSeries1.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; // // // this.barSeries1.YValues.DataMember = "Bar"; // // seriesAnimation1 // this.seriesAnimation1.Series = this.barSeries1; this.seriesAnimation1.StartAtMin = false; this.seriesAnimation1.StartValue = 0; // // checkBox1 // this.checkBox1.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.checkBox1.Location = new System.Drawing.Point(280, 9); this.checkBox1.Name = "checkBox1"; this.checkBox1.Size = new System.Drawing.Size(87, 21); this.checkBox1.TabIndex = 4; this.checkBox1.Text = "&One by one"; this.checkBox1.CheckedChanged += new System.EventHandler(this.checkBox1_CheckedChanged); // // button2 // this.button2.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.button2.Location = new System.Drawing.Point(387, 8); this.button2.Name = "button2"; this.button2.Size = new System.Drawing.Size(75, 23); this.button2.TabIndex = 5; this.button2.Text = "&Edit..."; this.button2.Click += new System.EventHandler(this.button2_Click); // // Tools_SeriesAnim // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(488, 373); this.Name = "Tools_SeriesAnim"; this.panel1.ResumeLayout(false); this.panel1.PerformLayout(); this.chartContainer.ResumeLayout(false); this.ResumeLayout(false); this.PerformLayout(); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.bar1 = new Steema.TeeChart.Styles.Bar(); this.groupBox1 = new System.Windows.Forms.GroupBox(); this.radioButton4 = new System.Windows.Forms.RadioButton(); this.radioButton3 = new System.Windows.Forms.RadioButton(); this.radioButton2 = new System.Windows.Forms.RadioButton(); this.radioButton1 = new System.Windows.Forms.RadioButton(); this.gridBand1 = new Steema.TeeChart.Tools.GridBand(); this.panel1.SuspendLayout(); this.groupBox1.SuspendLayout(); this.SuspendLayout(); // // textBox1 // this.textBox1.Name = "textBox1"; this.textBox1.Text = "TeeChart\'s events can be used to draw Graphics objects onto the Chart at differen" + "t times of rendering."; // // panel1 // this.panel1.Controls.Add(this.groupBox1); this.panel1.Name = "panel1"; // // tChart1 // // // tChart1.Aspect // this.tChart1.Aspect.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.HighQuality; this.tChart1.Aspect.TextRenderingHint = System.Drawing.Text.TextRenderingHint.ClearTypeGridFit; // // tChart1.Header // this.tChart1.Header.Lines = new string[] { "TeeChart Canvas Events" }; 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.bar1); this.tChart1.Tools.Add(this.gridBand1); // // tChart1.Walls // // // tChart1.Walls.Bottom // // // tChart1.Walls.Bottom.Pen // this.tChart1.Walls.Bottom.Pen.Visible = false; this.tChart1.Walls.Bottom.Size = 5; // // tChart1.Walls.Left // // // tChart1.Walls.Left.Pen // this.tChart1.Walls.Left.Pen.Visible = false; this.tChart1.Walls.Left.Size = 5; this.tChart1.BeforeDrawAxes += new Steema.TeeChart.PaintChartEventHandler(this.tChart1_BeforeDrawAxes); this.tChart1.AfterDraw += new Steema.TeeChart.PaintChartEventHandler(this.tChart1_AfterDraw); this.tChart1.BeforeDrawSeries += new Steema.TeeChart.PaintChartEventHandler(this.tChart1_BeforeDrawSeries); this.tChart1.BeforeDraw += new Steema.TeeChart.PaintChartEventHandler(this.tChart1_BeforeDraw); // // bar1 // // // bar1.Brush // this.bar1.Brush.Color = System.Drawing.Color.Red; // // bar1.Marks // // // bar1.Marks.Symbol // // // bar1.Marks.Symbol.Shadow // this.bar1.Marks.Symbol.Shadow.Height = 1; this.bar1.Marks.Symbol.Shadow.Visible = true; this.bar1.Marks.Symbol.Shadow.Width = 1; this.bar1.Title = "bar1"; // // bar1.XValues // this.bar1.XValues.DataMember = "X"; this.bar1.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; // // bar1.YValues // this.bar1.YValues.DataMember = "Bar"; // // groupBox1 // this.groupBox1.Controls.Add(this.radioButton4); 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(2, -3); this.groupBox1.Name = "groupBox1"; this.groupBox1.Size = new System.Drawing.Size(435, 41); this.groupBox1.TabIndex = 0; this.groupBox1.TabStop = false; // // radioButton4 // this.radioButton4.Location = new System.Drawing.Point(328, 16); this.radioButton4.Name = "radioButton4"; this.radioButton4.Size = new System.Drawing.Size(91, 17); this.radioButton4.TabIndex = 3; this.radioButton4.Text = "After Chart"; this.radioButton4.Click += new System.EventHandler(this.radioButtons_Click); // // radioButton3 // this.radioButton3.Location = new System.Drawing.Point(214, 16); this.radioButton3.Name = "radioButton3"; this.radioButton3.Size = new System.Drawing.Size(91, 17); this.radioButton3.TabIndex = 2; this.radioButton3.Text = "Before Series"; this.radioButton3.Click += new System.EventHandler(this.radioButtons_Click); // // radioButton2 // this.radioButton2.Location = new System.Drawing.Point(111, 17); this.radioButton2.Name = "radioButton2"; this.radioButton2.Size = new System.Drawing.Size(91, 17); this.radioButton2.TabIndex = 1; this.radioButton2.Text = "Before Axes"; this.radioButton2.Click += new System.EventHandler(this.radioButtons_Click); // // radioButton1 // this.radioButton1.Checked = true; this.radioButton1.Location = new System.Drawing.Point(8, 16); this.radioButton1.Name = "radioButton1"; this.radioButton1.Size = new System.Drawing.Size(104, 17); this.radioButton1.TabIndex = 0; this.radioButton1.TabStop = true; this.radioButton1.Text = "Before Chart"; this.radioButton1.Click += new System.EventHandler(this.radioButtons_Click); // // gridBand1 // this.gridBand1.Axis = this.tChart1.Axes.Left; // // gridBand1.Band1 // this.gridBand1.Band1.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(224)), ((System.Byte)(224)), ((System.Byte)(224))); // // gridBand1.Band2 // this.gridBand1.Band2.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(255))); // // Canvas_Events // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(440, 317); this.Name = "Canvas_Events"; this.panel1.ResumeLayout(false); this.groupBox1.ResumeLayout(false); this.ResumeLayout(false); }
public override void RowSelected(UITableView tableView, NSIndexPath indexPath) { // Clear Views if World demo has been clicked if (_controller.chartController.View.Subviews.Length>1) { _controller.chartController.View.Subviews[1].RemoveFromSuperview(); _controller.chart.Frame = _controller.chartController.mainChartFrame; } // Uncheck the previous row //if (_previousRow != null) // tableView.CellAt(_previousRow).Accessory = UITableViewCellAccessory.None; // Do something with the row var row = indexPath.Row; Settings.SelectedIndex = row; //tableView.CellAt(indexPath).Accessory = UITableViewCellAccessory.Checkmark; // Changes Series type _controller.chart.Series.Clear(); // Set some chart options to improve speed _controller.chart.Clear(); Steema.TeeChart.Themes.BlackIsBackTheme theme = new Steema.TeeChart.Themes.BlackIsBackTheme(_controller.chart.Chart); theme.Apply(); Steema.TeeChart.Themes.ColorPalettes.ApplyPalette(_controller.chart.Chart,Steema.TeeChart.Themes.Theme.OnBlackPalette); _controller.chart.Axes.Bottom.Grid.Visible = false; _controller.chart.Axes.Left.Grid.DrawEvery = 3; _controller.chart.Axes.Left.MinorTicks.Visible = false; _controller.chart.Axes.Bottom.MinorTicks.Visible = false; _controller.chart.Header.Visible = false; _controller.chart.Legend.Visible = false; _controller.chart.Aspect.View3D = true; //_controller.chart.ClickBackground += new UITouchEventArgs(chart_clickBackGround); switch (row) { case 0: Steema.TeeChart.Styles.Line line1 = new Steema.TeeChart.Styles.Line(); _controller.chart.Series.Add(line1); _controller.chart.Aspect.View3D = false; _controller.chart.Chart.Invalidate(); Random Rnd = new Random(); _controller.chart.Aspect.View3D = false; for(int t = 0; t <= 20; ++t) line1.Add(t, ((Rnd.Next(100)) + 1) - ((Rnd.Next(70)) + 1), UIColor.Yellow.CGColor); _controller.chart.Axes.Left.AxisPen.Color = UIColor.White.CGColor; _controller.chart.Axes.Bottom.AxisPen.Color = UIColor.White.CGColor; _controller.chart.Axes.Left.AxisPen.Width = 1; _controller.chart.Axes.Bottom.AxisPen.Width = 1; //line1.BeforeDrawValues += new Steema.TeeChart.Styles.Series.PaintChartEventHandler(line1_BeforeDrawValues); break; case 1: _controller.chart.Series.Add(new Steema.TeeChart.Styles.Points()); _controller.chart.Series[0].FillSampleValues(100); break; case 2: _controller.chart.Series.Add(new Steema.TeeChart.Styles.Area()); _controller.chart.Series.Add(new Steema.TeeChart.Styles.Area()); _controller.chart.Series.Add(new Steema.TeeChart.Styles.Area()); _controller.chart.Series[0].FillSampleValues(5); _controller.chart.Series[1].FillSampleValues(5); _controller.chart.Series[2].FillSampleValues(5); _controller.chart.Aspect.View3D = false; Steema.TeeChart.Styles.Area area1 = _controller.chart.Series[0] as Steema.TeeChart.Styles.Area; Steema.TeeChart.Styles.Area area2 = _controller.chart.Series[1] as Steema.TeeChart.Styles.Area; Steema.TeeChart.Styles.Area area3 = _controller.chart.Series[2] as Steema.TeeChart.Styles.Area; area1.Transparency = 40; area2.Transparency = 40; area3.Transparency = 40; break; case 3: _controller.chart.Series.Add(new Steema.TeeChart.Styles.FastLine()); _controller.chart.Aspect.View3D = false; _controller.chart.Series[0].FillSampleValues(400); break; case 4: _controller.chart.Series.Add(new Steema.TeeChart.Styles.HorizLine()); _controller.chart.Series[0].FillSampleValues(8); _controller.chart.Series.Add(new Steema.TeeChart.Styles.HorizLine()); _controller.chart.Series[1].FillSampleValues(8); _controller.chart.Series.Add(new Steema.TeeChart.Styles.HorizLine()); _controller.chart.Series[2].FillSampleValues(8); break; case 5: _controller.chart.Series.Add(new Steema.TeeChart.Styles.Bar()); _controller.chart.Series[0].Add(3,"Pears"); _controller.chart.Series[0].Add(4,"Apples"); _controller.chart.Series[0].Add(2,"Oranges"); _controller.chart.Series[0].Add(7,"Banana"); // _controller.chart.Series[0].Add(5,"Pineapple"); (_controller.chart.Series[0] as Steema.TeeChart.Styles.Bar).Pen.Visible =false; (_controller.chart.Series[0] as Steema.TeeChart.Styles.Bar).ColorEach=true; (_controller.chart.Series[0] as Steema.TeeChart.Styles.Bar).Marks.Shadow.Visible=false; _controller.chart.AfterDraw += new Steema.TeeChart.PaintChartEventHandler(chart_AfterDraw); //_controller.chart.GetAxisLabel += new Steema.TeeChart.GetAxisLabelEventHandler(_controller_GetAxisLabel); _controller.chart.Header.Font.Name = "Arial"; _controller.chart.Header.Font.Size = 20; _controller.chart.Axes.Bottom.Labels.Angle = 45; _controller.chart.ClickSeries += new Steema.TeeChart.TChart.SeriesEventHandler(series_clicked); break; case 6: _controller.chart.Series.Add(new Steema.TeeChart.Styles.HorizBar()); _controller.chart.Series[0].FillSampleValues(10); _controller.chart.Aspect.View3D=false; Steema.TeeChart.Styles.HorizBar hbar1 = _controller.chart.Series[0] as Steema.TeeChart.Styles.HorizBar; hbar1.MarksOnBar = true; hbar1.Marks.Transparent=true; hbar1.Color = UIColor.LightGray.CGColor; hbar1.Gradient.Visible = true; hbar1.CustomBarWidth= 20; _controller.chart.Axes.Left.MinimumOffset=20; _controller.chart.Axes.Left.MaximumOffset=20; _controller.chart.Aspect.ZoomScrollStyle=Steema.TeeChart.Drawing.Aspect.ZoomScrollStyles.Manual; break; case 7: _controller.chart.Series.Add(new Steema.TeeChart.Styles.Pie()); _controller.chart.Series[0].Add(30); _controller.chart.Series[0].Add(30); _controller.chart.Series[0].Add(40); _controller.chart.Series[0].Add(70); (_controller.chart.Series[0] as Steema.TeeChart.Styles.Pie).Circled = true; (_controller.chart.Series[0] as Steema.TeeChart.Styles.Pie).EdgeStyle = Steema.TeeChart.Drawing.EdgeStyles.Flat; (_controller.chart.Series[0] as Steema.TeeChart.Styles.Pie).BevelPercent=15; (_controller.chart.Series[0] as Steema.TeeChart.Styles.Pie).Marks.Font.Color = UIColor.FromRGB(255,255,255).CGColor; (_controller.chart.Series[0] as Steema.TeeChart.Styles.Pie).Marks.Font.Size = 10; (_controller.chart.Series[0] as Steema.TeeChart.Styles.Pie).ExplodeBiggest=20; (_controller.chart.Series[0] as Steema.TeeChart.Styles.Pie).RotationAngle=25; _controller.chart.Series[0].Marks.Visible=true; _controller.chart.Series[0].Marks.Transparent=true; _controller.chart.Legend.Visible = true; _controller.chart.Legend.Alignment = Steema.TeeChart.LegendAlignments.Bottom; _controller.chart.Legend.Transparent = true; _controller.chart.Legend.Font.Size = 10; _controller.chart.Aspect.Chart3DPercent=40; break; case 8: _controller.chart.Series.Add(new Steema.TeeChart.Styles.Shape()); (_controller.chart.Series[0] as Steema.TeeChart.Styles.Shape).Gradient.Visible =true; (_controller.chart.Series[0] as Steema.TeeChart.Styles.Shape).Style = Steema.TeeChart.Styles.ShapeStyles.Circle; (_controller.chart.Series[0] as Steema.TeeChart.Styles.Shape).Gradient.Visible = true; (_controller.chart.Series[0] as Steema.TeeChart.Styles.Shape).Gradient.EndColor = UIColor.FromRGB(255,0,0).CGColor; _controller.chart.Series[0].FillSampleValues(); break; case 9: _controller.chart.Series.Add(new Steema.TeeChart.Styles.Arrow()); (_controller.chart.Series[0] as Steema.TeeChart.Styles.Arrow).ColorEachPoint=true; _controller.chart.Series[0].FillSampleValues(); break; case 10: _controller.chart.Series.Add(new Steema.TeeChart.Styles.Bubble()); (_controller.chart.Series[0] as Steema.TeeChart.Styles.Bubble).Pointer.Gradient.Visible = true; (_controller.chart.Series[0] as Steema.TeeChart.Styles.Bubble).Pointer.Gradient.EndColor=UIColor.FromRGB(255,255,255).CGColor; _controller.chart.Series[0].FillSampleValues(); break; case 11: _controller.chart.Series.Add(new Steema.TeeChart.Styles.Gantt()); _controller.chart.Legend.Visible = true; _controller.chart.Legend.Alignment = Steema.TeeChart.LegendAlignments.Bottom; _controller.chart.Legend.Transparent = true; _controller.chart.Series[0].FillSampleValues(); break; case 12: _controller.chart.Series.Add(new Steema.TeeChart.Styles.Candle()); _controller.chart.Series[0].FillSampleValues(); break; case 13: _controller.chart.Series.Add(new Steema.TeeChart.Styles.Donut()); (_controller.chart.Series[0] as Steema.TeeChart.Styles.Donut).Circled = true; (_controller.chart.Series[0] as Steema.TeeChart.Styles.Donut).Pen.Visible = true; (_controller.chart.Series[0] as Steema.TeeChart.Styles.Donut).Pen.Width = 8; (_controller.chart.Series[0] as Steema.TeeChart.Styles.Donut).ExplodeBiggest = 15; _controller.chart.Series[0].Marks.Visible=false; _controller.chart.Legend.Visible = true; _controller.chart.Legend.VertSpacing = 10; _controller.chart.Legend.Title.Text = "Donut Chart"; _controller.chart.Legend.Transparent = true; _controller.chart.Legend.Alignment = Steema.TeeChart.LegendAlignments.Right; _controller.chart.Legend.Symbol.Pen.Visible = false; _controller.chart.Legend.Font.Size = 12; _controller.chart.Series[0].FillSampleValues(4); _controller.chart.Aspect.View3D=false; _controller.chart.Panel.Color = UIColor.White.CGColor; _controller.chart.Panel.Gradient.Visible = false; _controller.chart.Legend.Font.Color = UIColor.Black.CGColor; _controller.chart.Panel.MarginTop = 10; _controller.chart.Panel.MarginBottom = 10; break; case 14: _controller.chart.Series.Add(new Steema.TeeChart.Styles.Volume()); (_controller.chart.Series[0] as Steema.TeeChart.Styles.Volume).LinePen.Width = 2; _controller.chart.Series[0].FillSampleValues(); break; case 15: _controller.chart.Series.Add(new Steema.TeeChart.Styles.Bar3D()); _controller.chart.Series[0].FillSampleValues(); break; case 16: _controller.chart.Series.Add(new Steema.TeeChart.Styles.Points3D()); _controller.chart.Series[0].FillSampleValues(); break; case 17: _controller.chart.Series.Add(new Steema.TeeChart.Styles.Polar()); (_controller.chart.Series[0] as Steema.TeeChart.Styles.Polar).Circled = true; //(_controller.chart.Series[0] as Steema.TeeChart.Styles.Polar).Transparency = 10; _controller.chart.Aspect.View3D = false; _controller.chart.Series[0].FillSampleValues(); break; case 18: _controller.chart.Series.Add(new Steema.TeeChart.Styles.PolarBar()); _controller.chart.Aspect.View3D = false; _controller.chart.Series[0].FillSampleValues(); break; case 19: _controller.chart.Series.Add(new Steema.TeeChart.Styles.Radar()); _controller.chart.Aspect.View3D = false; _controller.chart.Series[0].FillSampleValues(); break; case 20: _controller.chart.Series.Add(new Steema.TeeChart.Styles.Clock()); (_controller.chart.Series[0] as Steema.TeeChart.Styles.Clock).Circled = true; _controller.chart.Series[0].FillSampleValues(); break; case 21: _controller.chart.Series.Add(new Steema.TeeChart.Styles.WindRose()); _controller.chart.Aspect.View3D = false; _controller.chart.Series[0].FillSampleValues(); break; case 22: _controller.chart.Series.Add(new Steema.TeeChart.Styles.Pyramid()); _controller.chart.Series[0].FillSampleValues(4); break; case 23: _controller.chart.Series.Add(new Steema.TeeChart.Styles.Surface()); _controller.chart.Series[0].FillSampleValues(); break; case 24: _controller.chart.Series.Add(new Steema.TeeChart.Styles.LinePoint()); _controller.chart.Aspect.View3D = false; _controller.chart.Series[0].FillSampleValues(); break; case 25: _controller.chart.Series.Add(new Steema.TeeChart.Styles.BarJoin()); _controller.chart.Aspect.View3D = false; _controller.chart.Series[0].FillSampleValues(); break; case 26: _controller.chart.Series.Add(new Steema.TeeChart.Styles.ColorGrid()); _controller.chart.Series[0].FillSampleValues(); break; case 27: _controller.chart.Series.Add(new Steema.TeeChart.Styles.Waterfall()); _controller.chart.Series[0].FillSampleValues(); break; case 28: _controller.chart.Series.Add(new Steema.TeeChart.Styles.Histogram()); _controller.chart.Aspect.View3D = false; (_controller.chart.Series[0] as Steema.TeeChart.Styles.Histogram).LinesPen.Visible=false; _controller.chart.Series[0].FillSampleValues(); break; case 29: _controller.chart.Series.Add(new Steema.TeeChart.Styles.Error()); (_controller.chart.Series[0] as Steema.TeeChart.Styles.Error).ColorEachPoint=true; (_controller.chart.Series[0] as Steema.TeeChart.Styles.Error).ErrorPen.Width = 5; _controller.chart.Series[0].FillSampleValues(); break; case 30: _controller.chart.Series.Add(new Steema.TeeChart.Styles.ErrorBar()); (_controller.chart.Series[0] as Steema.TeeChart.Styles.ErrorBar).ColorEachPoint=true; _controller.chart.Series[0].FillSampleValues(); break; case 31: _controller.chart.Series.Add(new Steema.TeeChart.Styles.Contour()); _controller.chart.Aspect.View3D = false; _controller.chart.Series[0].FillSampleValues(); break; case 32: _controller.chart.Series.Add(new Steema.TeeChart.Styles.Smith()); _controller.chart.Aspect.View3D = false; (_controller.chart.Series[0] as Steema.TeeChart.Styles.Smith).Circled=true; _controller.chart.Series[0].FillSampleValues(); break; case 33: _controller.chart.Series.Add(new Steema.TeeChart.Styles.Bezier()); _controller.chart.Aspect.View3D=false; (_controller.chart.Series[0] as Steema.TeeChart.Styles.Bezier).Pointer.Style = Steema.TeeChart.Styles.PointerStyles.Circle; (_controller.chart.Series[0] as Steema.TeeChart.Styles.Bezier).Pointer.Pen.Visible=false; (_controller.chart.Series[0] as Steema.TeeChart.Styles.Bezier).LinePen.Width = 2; (_controller.chart.Series[0] as Steema.TeeChart.Styles.Bezier).LinePen.Color = UIColor.Red.CGColor; _controller.chart.Series[0].FillSampleValues(4); break; case 34: _controller.chart.Series.Add(new Steema.TeeChart.Styles.Calendar()); _controller.chart.Series[0].FillSampleValues(); break; case 35: _controller.chart.Series.Add(new Steema.TeeChart.Styles.HighLow()); _controller.chart.Aspect.View3D=false; _controller.chart.Series[0].FillSampleValues(); break; case 36: _controller.chart.Series.Add(new Steema.TeeChart.Styles.TriSurface()); _controller.chart.Aspect.View3D=true; _controller.chart.Series[0].FillSampleValues(); break; case 37: _controller.chart.Series.Add(new Steema.TeeChart.Styles.Funnel()); _controller.chart.Aspect.View3D = false; _controller.chart.Series[0].FillSampleValues(20); break; case 38: _controller.chart.Series.Add(new Steema.TeeChart.Styles.Box()); _controller.chart.Series[0].FillSampleValues(); break; case 39: _controller.chart.Series.Add(new Steema.TeeChart.Styles.HorizBox()); _controller.chart.Series[0].FillSampleValues(); break; case 40: _controller.chart.Series.Add(new Steema.TeeChart.Styles.HorizArea()); _controller.chart.Series[0].FillSampleValues(); break; case 41: _controller.chart.Series.Add(new Steema.TeeChart.Styles.Tower()); _controller.chart.Aspect.View3D=true; _controller.chart.Series[0].FillSampleValues(5); _controller.chart.Walls.Visible = false; _controller.chart.Axes.Bottom.Ticks.Visible = false; _controller.chart.Axes.Bottom.MinorTicks.Visible =false; _controller.chart.Axes.Left.Ticks.Visible = false; _controller.chart.Axes.Left.MinorTicks.Visible =false; (_controller.chart.Series[0] as Steema.TeeChart.Styles.Tower).Pen.Visible=false; _controller.chart.Tools.Add(new Steema.TeeChart.Tools.Rotate()); _controller.chart.Aspect.Orthogonal = false; _controller.chart.Aspect.Rotation = -25; _controller.chart.Aspect.Zoom = 70; _controller.chart.Aspect.Chart3DPercent = 75; _controller.chart.Header.Text = "Drag to Rotate the Chart"; _controller.chart.Header.Visible = true; break; case 42: _controller.chart.Series.Add(new Steema.TeeChart.Styles.PointFigure()); _controller.chart.Series[0].FillSampleValues(); break; case 43: _controller.chart.Series.Add(new Steema.TeeChart.Styles.Gauges()); (_controller.chart.Series[0] as Steema.TeeChart.Styles.Gauges).GetVertAxis.Ticks.Length = 15; (_controller.chart.Series[0] as Steema.TeeChart.Styles.Gauges).GetVertAxis.AxisPen.Color = UIColor.LightGray.CGColor; _controller.chart.Series[0].FillSampleValues(); break; case 44: _controller.chart.Series.Add(new Steema.TeeChart.Styles.Vector3D()); _controller.chart.Series[0].FillSampleValues(); break; case 45: _controller.chart.Series.Add(new Steema.TeeChart.Styles.HorizHistogram()); _controller.chart.Aspect.View3D = false; (_controller.chart.Series[0] as Steema.TeeChart.Styles.HorizHistogram).LinesPen.Visible=false; _controller.chart.Series[0].FillSampleValues(); break; case 46: _controller.chart.Series.Add(new Steema.TeeChart.Styles.Map()); _controller.chart.Aspect.View3D = false; _controller.chart.Series[0].FillSampleValues(); break; case 47: _controller.chart.Series.Add(new Steema.TeeChart.Styles.ImageBar()); _controller.chart.Series[0].FillSampleValues(); UIImage img = UIImage.FromFile("bulb_on.png"); (_controller.chart.Series[0] as Steema.TeeChart.Styles.ImageBar).Image = img.CGImage; break; case 48: _controller.chart.Series.Add(new Steema.TeeChart.Styles.Kagi()); _controller.chart.Series[0].FillSampleValues(); break; case 49: _controller.chart.Series.Add(new Steema.TeeChart.Styles.Renko()); _controller.chart.Series[0].FillSampleValues(); break; case 50: _controller.chart.Series.Add(new Steema.TeeChart.Styles.IsoSurface()); _controller.chart.Aspect.View3D=true; _controller.chart.Series[0].FillSampleValues(); break; case 51: _controller.chart.Series.Add(new Steema.TeeChart.Styles.Darvas()); _controller.chart.Series[0].FillSampleValues(); break; case 52: _controller.chart.Series.Add(new Steema.TeeChart.Styles.VolumePipe()); _controller.chart.Aspect.View3D = false; _controller.chart.Legend.Visible = true; _controller.chart.Legend.Transparent = true; _controller.chart.Legend.Alignment = Steema.TeeChart.LegendAlignments.Bottom; _controller.chart.Legend.Symbol.Pen.Visible = false; _controller.chart.Legend.Font.Size = 14; _controller.chart.Series[0].FillSampleValues(4); break; case 53: _controller.chart.Series.Add(new Steema.TeeChart.Styles.ImagePoint()); _controller.chart.Series[0].FillSampleValues(5); _controller.chart.Aspect.View3D = false; UIImage img2 = UIImage.FromFile("bulb_off.png"); (_controller.chart.Series[0] as Steema.TeeChart.Styles.ImagePoint).Pointer.HorizSize = 30; (_controller.chart.Series[0] as Steema.TeeChart.Styles.ImagePoint).Pointer.VertSize = 30; (_controller.chart.Series[0] as Steema.TeeChart.Styles.ImagePoint).PointImage = img2.CGImage; break; case 54: _controller.chart.Series.Add(new Steema.TeeChart.Styles.CircularGauge()); (_controller.chart.Series[0] as Steema.TeeChart.Styles.CircularGauge).Value = 65; break; case 55: _controller.chart.Series.Add(new Steema.TeeChart.Styles.LinearGauge()); _controller.chart.Series[0].FillSampleValues(); break; case 56: _controller.chart.Series.Add(new Steema.TeeChart.Styles.VerticalLinearGauge()); (_controller.chart.Series[0] as Steema.TeeChart.Styles.VerticalLinearGauge).Axis.Ticks.Visible = true; (_controller.chart.Series[0] as Steema.TeeChart.Styles.VerticalLinearGauge).Axis.MinorTicks.Visible = true; _controller.chart.Series[0].FillSampleValues(); break; case 57: _controller.chart.Series.Add(new Steema.TeeChart.Styles.NumericGauge()); (_controller.chart.Series[0] as Steema.TeeChart.Styles.NumericGauge).Value = 123; break; case 58: _controller.chart.Series.Add(new Steema.TeeChart.Styles.OrgSeries()); _controller.chart.Series[0].FillSampleValues(); break; case 59: _controller.chart.Series.Add(new Steema.TeeChart.Styles.TagCloud()); _controller.chart.Series[0].FillSampleValues(50); break; case 60: _controller.chart.Series.Add(new Steema.TeeChart.Styles.PolarGrid()); _controller.chart.Aspect.View3D = false; _controller.chart.Series[0].FillSampleValues(); break; case 61: _controller.chart.Series.Add(new Steema.TeeChart.Styles.Ternary()); _controller.chart.Series[0].FillSampleValues(); break; case 62: _controller.chart.Series.Add(new Steema.TeeChart.Styles.KnobGauge()); (_controller.chart.Series[0] as Steema.TeeChart.Styles.KnobGauge).ActiveCenter=true; (_controller.chart.Series[0] as Steema.TeeChart.Styles.KnobGauge).Value = 50; break; case 63: _controller.chart.Aspect.ZoomScrollStyle=Steema.TeeChart.Drawing.Aspect.ZoomScrollStyles.Manual; Steema.TeeChart.Styles.World world1; _controller.chart.Series.Add(world1 = new Steema.TeeChart.Styles.World()); Steema.TeeChart.Styles.CustomBar wbar; TChart tChart2 = new TChart(this); tChart2.Aspect.View3D = false; tChart2.Legend.Visible = false; tChart2.Walls.Visible = false; if ((UIDevice.CurrentDevice.Orientation == UIDeviceOrientation.LandscapeLeft) || (UIDevice.CurrentDevice.Orientation == UIDeviceOrientation.LandscapeRight)) { System.Drawing.RectangleF midFrame = new System.Drawing.RectangleF(0,0, UIScreen.MainScreen.ApplicationFrame.Height/2, UIScreen.MainScreen.ApplicationFrame.Width-20); _controller.chart.Frame = midFrame; System.Drawing.RectangleF midFrame2 = new System.Drawing.RectangleF( UIScreen.MainScreen.ApplicationFrame.Height/2,0, UIScreen.MainScreen.ApplicationFrame.Height/2, UIScreen.MainScreen.ApplicationFrame.Width-20); tChart2.Frame = midFrame2; wbar = new Steema.TeeChart.Styles.HorizBar(tChart2.Chart); tChart2.Axes.Left.Labels.Separation = 1; _controller.chart.Footer.TextAlign = MonoTouch.CoreText.CTTextAlignment.Right; //map tChart2.Footer.Text = "to market cost index"; tChart2.Footer.Font.Color = UIColor.FromRGB(255,255,255).CGColor; tChart2.Footer.TextAlign = MonoTouch.CoreText.CTTextAlignment.Left; tChart2.Footer.Font.Size = 8; tChart2.Footer.Visible = true; tChart2.Header.Visible = false; } else { System.Drawing.RectangleF midFrame = new System.Drawing.RectangleF(0,0, UIScreen.MainScreen.ApplicationFrame.Width, _controller.chartController.chart.Bounds.Height/2); _controller.chart.Frame = midFrame; System.Drawing.RectangleF midFrame2 = new System.Drawing.RectangleF(0,_controller.chartController.chart.Bounds.Height, UIScreen.MainScreen.ApplicationFrame.Width, _controller.chartController.chart.Bounds.Height); tChart2.Frame = midFrame2; wbar = new Steema.TeeChart.Styles.Bar(tChart2.Chart); tChart2.Axes.Bottom.Labels.Angle = 90; tChart2.Axes.Bottom.Labels.Separation = 1; _controller.chart.Footer.TextAlign = MonoTouch.CoreText.CTTextAlignment.Left; //map tChart2.Header.Text = "to market cost index"; tChart2.Header.Font.Color = UIColor.FromRGB(255,255,255).CGColor; tChart2.Header.TextAlign = MonoTouch.CoreText.CTTextAlignment.Left; tChart2.Header.Font.Size = 8; tChart2.Header.Visible = true; _controller.chart.Panel.MarginLeft = 15; _controller.chart.Panel.MarginRight = 15; } wbar.Marks.Visible = false; Steema.TeeChart.Themes.BlackIsBackTheme theme2 = new Steema.TeeChart.Themes.BlackIsBackTheme(tChart2.Chart); theme2.Apply(); Steema.TeeChart.Themes.ColorPalettes.ApplyPalette(tChart2.Chart, Steema.TeeChart.Themes.OperaTheme.OperaPalette); tChart2.Aspect.ZoomScrollStyle=Steema.TeeChart.Drawing.Aspect.ZoomScrollStyles.Manual; tChart2.Panel.Gradient.Visible = false; tChart2.Panel.Color = UIColor.FromRGB(0,0,0).CGColor; tChart2.Axes.Bottom.Grid.Visible = false; world1.Map = Steema.TeeChart.Styles.WorldMapType.Europe15; _controller.chart.Walls.Visible = false; _controller.chart.Panel.Gradient.Visible = false; _controller.chart.Panel.Color = UIColor.FromRGB(0,0,0).CGColor; _controller.chart.Legend.Visible = true; _controller.chart.Legend.Font.Size = 8; _controller.chart.Legend.Symbol.Position = LegendSymbolPosition.Right; world1.ValueFormat = "0.0"; _controller.chart.Axes.Visible = false; _controller.chart.Footer.Font.Color = UIColor.FromRGB(255,255,255).CGColor; _controller.chart.Footer.Text = "index of eu15" + Utils.NewLine + "organic food consumption 2009"; _controller.chart.Footer.Font.Size = 8; _controller.chart.Footer.Visible = true; wbar.Color = UIColor.FromRGB(69,69,255).CGColor; wbar.CustomBarWidth = 10; int[] territories = new int[] { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; for (int i = 0; i < world1.Shapes.Count; i++) { if (((String)(world1.Labels[i])) == "Austria") { world1.ZValues[i] = 89; if (territories[0] == 0) { wbar.Add(4.5, (String)(world1.Labels[i])); territories[0] = 1; } } else if (((String)(world1.Labels[i]))=="Denmark") { world1.ZValues[i] = 107; if (territories[1] == 0) { wbar.Add(4, (String)(world1.Labels[i])); territories[1] = 1; } } else if (((String)(world1.Labels[i])) == ("Finland")) { world1.ZValues[i] = 78; if (territories[2] == 0) { wbar.Add(7.5, (String)(world1.Labels[i])); territories[2] = 1; } } else if (((String)(world1.Labels[i])) == ("Luxembourg")) { world1.ZValues[i] = 86; if (territories[3] == 0) { wbar.Add(4.2, (String)(world1.Labels[i])); territories[3] = 1; } } else if (((String)(world1.Labels[i])) == ("Belgium")) { world1.ZValues[i] = 71; if (territories[4] == 0) { wbar.Add(9.1, (String)(world1.Labels[i])); territories[4] = 1; } } else if (((String)(world1.Labels[i])) == ("Netherlands")) { world1.ZValues[i] = 78; if (territories[5] == 0) { wbar.Add(3.9, (String)(world1.Labels[i])); territories[5] = 1; } } else if (((String)(world1.Labels[i])) == ("Germany")) { world1.ZValues[i] = 64; if (territories[6] == 0) { wbar.Add(1.2, (String)(world1.Labels[i])); territories[6] = 1; } } else if (((String)(world1.Labels[i])) == ("Sweden")) { world1.ZValues[i] = 53; if (territories[7] == 0) { wbar.Add(6.0, (String)(world1.Labels[i])); territories[7] = 1; } } else if (((String)(world1.Labels[i])) == ("UK")) { world1.ZValues[i] = 42; if (territories[8] == 0) { wbar.Add(4.7, (String)(world1.Labels[i])); territories[8] = 1; } } else if (((String)(world1.Labels[i])) == ("Ireland")) { world1.ZValues[i] = 24; if (territories[9] == 0) { wbar.Add(-0.2, (String)(world1.Labels[i])); territories[9] = 1; } } else if (((String)(world1.Labels[i])) == ("Italy")) { world1.ZValues[i] = 32; if (territories[10] == 0) { wbar.Add(6.1, (String)(world1.Labels[i])); territories[10] = 1; } } else if (((String)(world1.Labels[i])) == ("France")) { world1.ZValues[i] = 30; if (territories[11] == 0) { wbar.Add(7.9, (String)(world1.Labels[i])); territories[11] = 1; } } else if (((String)(world1.Labels[i])) == ("Spain")) { world1.ZValues[i] = 13; if (territories[12] == 0) { wbar.Add(3.9, (String)(world1.Labels[i])); territories[12] = 1; } } else if (((String)(world1.Labels[i])) == ("Greece")) { world1.ZValues[i] = 7; if (territories[13] == 0) { wbar.Add(2.1, (String)(world1.Labels[i])); territories[13] = 1; } } else if (((String)(world1.Labels[i])) == ("Portugal")) { world1.ZValues[i] = 11; if (territories[14] == 0) { wbar.Add(0.5, (String)(world1.Labels[i])); territories[14] = 1; } } else if (((String)(world1.Labels[i])) == ("Poland")) { world1.ZValues[i] = 1; if (territories[15] == 0) { wbar.Add(1.9, (String)(world1.Labels[i])); territories[15] = 1; } } } world1.Pen.Color = UIColor.Black.CGColor; world1.Pen.Width = 1; world1.Pen.Visible = true; _controller.chartController.View.AddSubview(tChart2); break; default: break; } // This is what the Settings does under Settings>Mail>Show on an iPhone tableView.DeselectRow(indexPath,false); _controller.NavigationController.PushViewController(_controller.chartController,true); }
/// <summary> /// Drawing first contingency table to chart /// </summary> /// <param name="hypothese">Hypothese to take contingency table from</param> /// <param name="chart">Chart to draw bars into</param> private void DrawBarsFromSecondTable(HypothesisStruct hypothese, Steema.TeeChart.TChart chart) { chart.Series.Clear(); Random random = new Random(); bool fft = false; this.ContingencyTableChart.Header.Text = this.resManager.GetString("SecondContingencyTable"); //for miners with boolean antecedents and succedents - for now only 4ft foreach (BooleanLiteralStruct booleanLiteral in hypothese.booleanLiterals) { if ((booleanLiteral.cedentType == CedentEnum.Antecedent) || (booleanLiteral.cedentType == CedentEnum.Succedent)) { fft = true; break; } } // int i = 0; int j = 0; int[][] transpondedTable = FerdaResultBrowserControl.Transpose(hypothese.quantifierSetting.secondContingencyTableRows); for (int k = transpondedTable.GetUpperBound(0); k >=0; k--) { Steema.TeeChart.Styles.Bar barSeries = new Steema.TeeChart.Styles.Bar(); barSeries.Color = System.Drawing.Color.FromArgb(random.Next(255), random.Next(255), random.Next(255)); barSeries.MultiBar = Steema.TeeChart.Styles.MultiBars.None; foreach (int number in transpondedTable[k]) { if ((fft) && (j == 0)) { barSeries.Add(number, this.resManager.GetString("ColumnAntecedent")); } else { if ((fft) && (j == 1)) { barSeries.Add(number, '\u00AC' + this.resManager.GetString("ColumnAntecedent")); } else { string seriesTitle = String.Empty; foreach (LiteralStruct literal in hypothese.literals) { if (literal.cedentType == CedentEnum.Antecedent) { if (literal.categoriesNames.Length > j) { seriesTitle = literal.categoriesNames[j]; } } } barSeries.Add(number, seriesTitle); } } j++; } if (this.CheckBoxShowLabels.Checked) { barSeries.Marks.Visible = true; } else { barSeries.Marks.Visible = false; } barSeries.Marks.Style = Steema.TeeChart.Styles.MarksStyles.LabelValue; if (fft) { if (k == 0) { barSeries.Title = this.resManager.GetString("ColumnSuccedent"); } else { barSeries.Title = '\u00AC' + this.resManager.GetString("ColumnSuccedent"); } } else { string seriesTitle = String.Empty; foreach (LiteralStruct literal in hypothese.literals) { if (literal.cedentType == CedentEnum.Succedent) { if (literal.categoriesNames.Length > k) { seriesTitle = literal.categoriesNames[k]; } break; } } if (seriesTitle == String.Empty) { foreach (LiteralStruct literal in hypothese.literals) { if (literal.cedentType == CedentEnum.Antecedent) { if (literal.categoriesNames.Length > k) { seriesTitle = literal.categoriesNames[k]; } } } } barSeries.Title = seriesTitle; } chart.Series.Add(barSeries); // i++; j = 0; } }
private void SetBarChartValue(object[] FinishedBarDataSource, object[] SemimanuBarDataSource, bool isFristLoad) { #region 成品 Hashtable bigLineHashtable = new Hashtable(); //如果是刷新数据,删除先前刷新的Series if (!isFristLoad && FinishedBarDataSource != null) { int addCount = 0; //得到产线个数 foreach (NewReportDomainObject obj in FinishedBarDataSource) { if (!bigLineHashtable.ContainsValue(obj.BigSSCode)) { bigLineHashtable.Add(addCount, obj.BigSSCode); addCount += 1; } } for (int i = 0; i < bigLineHashtable.Count; i++) { this.tChartData.Series.RemoveAt(6); } } if (!isFristLoad && SemimanuBarDataSource != null) { bigLineHashtable.Clear(); int addCount = 0; foreach (NewReportDomainObject obj in SemimanuBarDataSource) { if (!bigLineHashtable.ContainsValue(obj.BigSSCode)) { bigLineHashtable.Add(addCount, obj.BigSSCode); addCount += 1; } } for (int i = 0; i < bigLineHashtable.Count; i++) { this.tChartData.Series.RemoveAt(6); } } //end //添加Series if (FinishedBarDataSource != null) { bigLineHashtable.Clear(); int addCount = 0; //得到产线个数 foreach (NewReportDomainObject obj in FinishedBarDataSource) { if (!bigLineHashtable.ContainsValue(obj.BigSSCode)) { bigLineHashtable.Add(addCount, obj.BigSSCode); addCount += 1; } } for (int i = 0; i < bigLineHashtable.Count; i++) { object[] BarDataSource = new object[objectList.Count]; for (int j = 0; j < objectList.Count; j++) { bool isHave = false; foreach (NewReportDomainObject obj in FinishedBarDataSource) { if (bigLineHashtable[i].ToString() == obj.BigSSCode) { if (objectList[j].ToString() == obj.PeriodCode) { isHave = true; BarDataSource[j] = obj; break; } } if (isHave) { break; } } if (!isHave) { NewReportDomainObject NewReportDomainObject1 = new NewReportDomainObject(); NewReportDomainObject1.PeriodCode = objectList[j].ToString(); NewReportDomainObject1.Output = 0; BarDataSource[j] = NewReportDomainObject1; } } DataTable finishedBar_DataTable = new DataTable(); finishedBar_DataTable.Columns.Add("TimePeriodCode", typeof(string)); finishedBar_DataTable.Columns.Add("OutPutQty", typeof(int)); finishedBar_DataTable.AcceptChanges(); if (FinishedBarDataSource != null) { foreach (NewReportDomainObject obj in BarDataSource) { DataRow newRow = finishedBar_DataTable.NewRow(); newRow["TimePeriodCode"] = obj.PeriodCode; newRow["OutPutQty"] = obj.Output; finishedBar_DataTable.Rows.Add(newRow); } finishedBar_DataTable.AcceptChanges(); } Steema.TeeChart.Styles.Bar FinishedDataBar1 = new Steema.TeeChart.Styles.Bar(); FinishedDataBar1.YValues.DataMember = finishedBar_DataTable.Columns["OutPutQty"].ToString(); FinishedDataBar1.LabelMember = finishedBar_DataTable.Columns["TimePeriodCode"].ToString(); FinishedDataBar1.Title = bigLineHashtable[i].ToString(); FinishedDataBar1.Marks.Visible = false; FinishedDataBar1.DataSource = finishedBar_DataTable; FinishedDataBar1.StackGroup = 1; this.tChartData.Series.Add(FinishedDataBar1); } } #endregion #region 半成品 bigLineHashtable.Clear(); if (SemimanuBarDataSource != null) { int addCount = 0; //得到产线个数 foreach (NewReportDomainObject obj in SemimanuBarDataSource) { if (!bigLineHashtable.ContainsValue(obj.BigSSCode)) { bigLineHashtable.Add(addCount, obj.BigSSCode); addCount += 1; } } //每条产线绑定Tchart for (int i = 0; i < bigLineHashtable.Count; i++) { object[] BarDataSource = new object[objectList.Count]; for (int j = 0; j < objectList.Count; j++) { bool isHave = false; foreach (NewReportDomainObject obj in SemimanuBarDataSource) { if (bigLineHashtable[i].ToString() == obj.BigSSCode) { if (objectList[j].ToString() == obj.PeriodCode) { isHave = true; BarDataSource[j] = obj; break; } } if (isHave) { break; } } if (!isHave) { NewReportDomainObject NewReportDomainObject1 = new NewReportDomainObject(); NewReportDomainObject1.PeriodCode = objectList[j].ToString(); NewReportDomainObject1.Output = 0; BarDataSource[j] = NewReportDomainObject1; } } DataTable semimanuBar_DataTable = new DataTable(); semimanuBar_DataTable.Columns.Add("TimePeriodCode", typeof(string)); semimanuBar_DataTable.Columns.Add("OutPutQty", typeof(int)); semimanuBar_DataTable.AcceptChanges(); if (SemimanuBarDataSource != null) { DataRow newRow; foreach (NewReportDomainObject obj in BarDataSource) { newRow = semimanuBar_DataTable.NewRow(); newRow["TimePeriodCode"] = obj.PeriodCode; newRow["OutPutQty"] = obj.Output; semimanuBar_DataTable.Rows.Add(newRow); } semimanuBar_DataTable.AcceptChanges(); } Steema.TeeChart.Styles.Bar FinishedDataBar2 = new Steema.TeeChart.Styles.Bar(); FinishedDataBar2.YValues.DataMember = semimanuBar_DataTable.Columns["OutPutQty"].ToString(); FinishedDataBar2.LabelMember = semimanuBar_DataTable.Columns["TimePeriodCode"].ToString(); FinishedDataBar2.Title = bigLineHashtable[i].ToString(); FinishedDataBar2.Marks.Visible = false; FinishedDataBar2.StackGroup = 2; FinishedDataBar2.DataSource = semimanuBar_DataTable; this.tChartData.Series.Add(FinishedDataBar2); } } #endregion }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Export_Excel)); this.button1 = new System.Windows.Forms.Button(); this.barSeries1 = new Steema.TeeChart.Styles.Bar(); this.barSeries2 = new Steema.TeeChart.Styles.Bar(); this.saveFileDialog1 = new System.Windows.Forms.SaveFileDialog(); this.button2 = new System.Windows.Forms.Button(); this.checkBox1 = new System.Windows.Forms.CheckBox(); this.checkBox2 = new System.Windows.Forms.CheckBox(); this.checkBox3 = new System.Windows.Forms.CheckBox(); this.panel1.SuspendLayout(); this.chartContainer.SuspendLayout(); this.SuspendLayout(); // // textBox1 // this.textBox1.Size = new System.Drawing.Size(466, 63); this.textBox1.Text = "Series data can be exported to Excel spreadsheets. There are several options when" + " exporting to Excel format, such as include labels, point\'s index, etc."; // // panel1 // this.panel1.Controls.Add(this.checkBox3); this.panel1.Controls.Add(this.checkBox2); this.panel1.Controls.Add(this.checkBox1); this.panel1.Controls.Add(this.button2); this.panel1.Controls.Add(this.button1); this.panel1.Location = new System.Drawing.Point(0, 63); this.panel1.Size = new System.Drawing.Size(466, 73); // // tChart1 // // // // this.tChart1.Aspect.ZOffset = 0; // // // // // // this.tChart1.Axes.Bottom.MaximumOffset = 28; this.tChart1.Axes.Bottom.MinimumOffset = 28; // // // this.tChart1.Axes.Left.MaximumOffset = 37; this.tChart1.Cursor = System.Windows.Forms.Cursors.Default; // // // this.tChart1.Header.Alignment = System.Drawing.StringAlignment.Near; this.tChart1.Header.Lines = new string[] { "Exporting to Excel" }; // // // // // // this.tChart1.Panel.Brush.Color = System.Drawing.Color.FromArgb(((int)(((byte)(254)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); this.tChart1.Series.Add(this.barSeries1); this.tChart1.Series.Add(this.barSeries2); this.tChart1.Size = new System.Drawing.Size(466, 150); // // // // // // // // // this.tChart1.Walls.Back.Pen.Color = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(192))))); // // // // // // this.tChart1.Walls.Bottom.Pen.Visible = false; this.tChart1.Walls.Bottom.Size = 5; // // // // // // this.tChart1.Walls.Left.Pen.Visible = false; this.tChart1.Walls.Left.Size = 5; // // chartContainer // this.chartContainer.Location = new System.Drawing.Point(0, 136); this.chartContainer.Size = new System.Drawing.Size(466, 150); // // button1 // this.button1.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.button1.Location = new System.Drawing.Point(7, 14); this.button1.Name = "button1"; this.button1.Size = new System.Drawing.Size(129, 23); this.button1.TabIndex = 4; this.button1.Text = "Save to &Excel..."; this.button1.Click += new System.EventHandler(this.button1_Click); // // barSeries1 // // // // this.barSeries1.Brush.Color = System.Drawing.Color.FromArgb(((int)(((byte)(68)))), ((int)(((byte)(102)))), ((int)(((byte)(163))))); this.barSeries1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(68)))), ((int)(((byte)(102)))), ((int)(((byte)(163))))); this.barSeries1.ColorEach = false; // // // // // // this.barSeries1.Marks.Callout.ArrowHead = Steema.TeeChart.Styles.ArrowHeadStyles.None; this.barSeries1.Marks.Callout.ArrowHeadSize = 8; // // // this.barSeries1.Marks.Callout.Brush.Color = System.Drawing.Color.Black; this.barSeries1.Marks.Callout.Distance = 0; this.barSeries1.Marks.Callout.Draw3D = false; this.barSeries1.Marks.Callout.Length = 20; this.barSeries1.Marks.Callout.Style = Steema.TeeChart.Styles.PointerStyles.Rectangle; this.barSeries1.Marks.Callout.Visible = false; // // // this.barSeries1.Pen.Color = System.Drawing.Color.FromArgb(((int)(((byte)(41)))), ((int)(((byte)(61)))), ((int)(((byte)(98))))); this.barSeries1.Title = "barSeries1"; // // // this.barSeries1.XValues.DataMember = "X"; this.barSeries1.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; // // // this.barSeries1.YValues.DataMember = "Bar"; // // barSeries2 // // // // this.barSeries2.Brush.Color = System.Drawing.Color.FromArgb(((int)(((byte)(243)))), ((int)(((byte)(156)))), ((int)(((byte)(53))))); this.barSeries2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(243)))), ((int)(((byte)(156)))), ((int)(((byte)(53))))); this.barSeries2.ColorEach = false; // // // // // // this.barSeries2.Marks.Callout.ArrowHead = Steema.TeeChart.Styles.ArrowHeadStyles.None; this.barSeries2.Marks.Callout.ArrowHeadSize = 8; // // // this.barSeries2.Marks.Callout.Brush.Color = System.Drawing.Color.Black; this.barSeries2.Marks.Callout.Distance = 0; this.barSeries2.Marks.Callout.Draw3D = false; this.barSeries2.Marks.Callout.Length = 20; this.barSeries2.Marks.Callout.Style = Steema.TeeChart.Styles.PointerStyles.Rectangle; this.barSeries2.Marks.Callout.Visible = false; // // // this.barSeries2.Pen.Color = System.Drawing.Color.FromArgb(((int)(((byte)(146)))), ((int)(((byte)(94)))), ((int)(((byte)(32))))); this.barSeries2.Title = "barSeries2"; // // // this.barSeries2.XValues.DataMember = "X"; this.barSeries2.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; // // // this.barSeries2.YValues.DataMember = "Bar"; // // saveFileDialog1 // this.saveFileDialog1.FileName = "doc1"; this.saveFileDialog1.Title = "Save Data (Excel)"; // // button2 // this.button2.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.button2.Location = new System.Drawing.Point(152, 14); this.button2.Name = "button2"; this.button2.Size = new System.Drawing.Size(147, 23); this.button2.TabIndex = 9; this.button2.Text = "Show export &dialog..."; this.button2.Click += new System.EventHandler(this.button2_Click); // // checkBox1 // this.checkBox1.Checked = true; this.checkBox1.CheckState = System.Windows.Forms.CheckState.Checked; this.checkBox1.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.checkBox1.Location = new System.Drawing.Point(327, 7); this.checkBox1.Name = "checkBox1"; this.checkBox1.Size = new System.Drawing.Size(121, 21); this.checkBox1.TabIndex = 10; this.checkBox1.Text = "Include &labels"; // // 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(327, 28); this.checkBox2.Name = "checkBox2"; this.checkBox2.Size = new System.Drawing.Size(121, 21); this.checkBox2.TabIndex = 11; this.checkBox2.Text = "Include &index"; // // 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(327, 49); this.checkBox3.Name = "checkBox3"; this.checkBox3.Size = new System.Drawing.Size(121, 20); this.checkBox3.TabIndex = 12; this.checkBox3.Text = "Include &header"; // // Export_Excel // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(466, 286); this.Name = "Export_Excel"; this.panel1.ResumeLayout(false); this.chartContainer.ResumeLayout(false); this.ResumeLayout(false); this.PerformLayout(); }
// //********************************************************************************************** // public Boolean InitializeControl(System.Windows.Forms.PictureBox aPicture, System.Windows.Forms.RichTextBox aLog, System.Windows.Forms.ProgressBar aTimeBar, System.Windows.Forms.ProgressBar aPointBar, System.Windows.Forms.Button aBackgroundButton, System.Windows.Forms.Button aTextButton, System.Windows.Forms.Button aPrecipitationButton, System.Windows.Forms.Button aIrrigationButton, String aFile, String aPrecipitationFile, Boolean aIrrigationRequired, String aIrrigationFile, String aPPTFile, Boolean aPPTRequired, String aOutputDir, Steema.TeeChart.TChart achrtPrec1) { Boolean success = false; if (!Directory.Exists(aOutputDir)) { if (MessageBox.Show("Output dir " + aOutputDir + " does not exist. Create it?", "Error", MessageBoxButtons.YesNo) == DialogResult.Yes) { Directory.CreateDirectory(aOutputDir); } } if (Directory.Exists(aOutputDir)) { try { Running = false; brTimes = aTimeBar; PrecipitationFile = aPrecipitationFile; brPoints = aPointBar; LogBox = aLog; OutputDir = aOutputDir; LogBox.Clear(); LogBox.AppendText("Started at " + DateTime.Now.ToString() + "\n"); Top = new List<TPoint>(); Bottom = new List<TPoint>(); Left = new List<TPoint>(); Right = new List<TPoint>(); IrrigationRequired = aIrrigationRequired; IrrigationFile = aIrrigationFile; PPTFile = aPPTFile; PPTRequired = aPPTRequired; chrtPrec1 = achrtPrec1; PlotToShow = new List<TPlotToShow>(); if (PPTRequired) { PPT = new TPPT(); } DataManager.SaveToIniFile(aFile, aPrecipitationFile, aIrrigationFile, aOutputDir, aIrrigationRequired, aPPTRequired, aPPTFile); DataManager.ReadExcelFile(aFile); if (DataManager.ExcelIsAvailable) { SetDateFormat(); TotalBitmap = new Bitmap(800, 600); // TotalBitmap.SetResolution(300, 300); DataManager.ReadContourSheet(Top, Right, Bottom, Left); MyDrawing = new TDrawing(BackgroundColor, TextColor); // MyDrawing.DrawContours(Top, Right, Bottom, Left); MyGraph = Graphics.FromImage(TotalBitmap); Int32 NumberOfPlots = DataManager.ReadNumberOfPlots(); AssignmentMethod = DataManager.ReadAssignmentMethod(); Plot = new List<TPlot>(); for (Int32 i = 0; i < NumberOfPlots; i++) { TPlot MyPlot = new TPlot(i); MyPlot.AddBoundaries(Top, Bottom, Left, Right); MyPlot.AssignmentMethod = AssignmentMethod; Plot.Add(MyPlot); } DataManager.ReadPlotDescription(Plot); DataManager.ReadVisualization(PlotToShow); DistributePlots(); for (Int32 i = 0; i < NumberOfPlots; i++) { DataManager.ReadNodes(Plot[i].Node, i); DataManager.ReadElements(Plot[i].Node, Plot[i].Element, i); DataManager.ReadVirtualNodes(Plot[i].VirtualNode, i); } foreach (TPlotToShow MyPlot in PlotToShow) { Plot[MyPlot.PlotId].PrepareAndDrawGrid(MyPlot.ItemToVisualize); } DefineFirstAndLastNode(); CreateTotalBitmap(false); SaveGraph(OutputDir, -100); MoistureClass = new List<TMoistureClass>(); DerivedClass = new List<TDerivedClass>(); DataManager.ReadDerivativeTables(Plot); DataManager.ReadMoistureClasses(MoistureClass, DerivedClass); MyMoistureLegend = new TLegend(Color.Black, Color.White); MyMoistureLegend.SetDrawingArea(800, 600); MyMoistureLegend.DrawLegend(MoistureClass); MyDerivedLegend = new TLegend(Color.Black, Color.White); MyDerivedLegend.SetDrawingArea(800, 600); MyDerivedLegend.DrawDerivedLegend(DerivedClass); String FileName = SaveGraph(OutputDir, -10); if (PPTRequired) { PPT.AddPictureToSlide(FileName); } FileName = SaveGraph(OutputDir, -11); if (PPTRequired) { PPT.AddPictureToSlide(FileName); } MoistureContent = DataManager.ReadMoistureContents(); FindFirstAndLastDay(); PrecipitationInterval = DataManager.ReadPInterval(); ReadColors(aBackgroundButton, aTextButton, aPrecipitationButton, aIrrigationButton); DataManager.CloseExcelFile(); Precipitation = DataManager.ReadPrecipitation(PrecipitationFile, FirstDay, LastDay); if (IrrigationRequired) { Irrigation = DataManager.ReadIrrigation(IrrigationFile); } DataManager.QuitExcel(); chrtPrec2 = new Steema.TeeChart.TChart(); // precipitation Steema.TeeChart.Styles.Bar NewSeries = new Steema.TeeChart.Styles.Bar(); NewSeries.XValues.DateTime = true; NewSeries.Color = PrecipitationColor; NewSeries.Marks.Visible = false; NewSeries.Pen.Visible = false; chrtPrec2.Series.Add(NewSeries); // irrigation NewSeries = new Steema.TeeChart.Styles.Bar(); NewSeries.XValues.DateTime = true; NewSeries.Color = IrrigationColor; NewSeries.Marks.Visible = false; NewSeries.Pen.Visible = false; chrtPrec2.Series.Add(NewSeries); // line Steema.TeeChart.Styles.Line Line = new Steema.TeeChart.Styles.Line(); Line.Color = Color.Red; Line.VertAxis = Steema.TeeChart.Styles.VerticalAxis.Right; Line.XValues.DateTime = true; chrtPrec2.Axes.Right.Automatic = false; chrtPrec2.Axes.Right.Minimum = 0.0; chrtPrec2.Axes.Right.Maximum = 1.0; chrtPrec2.Axes.Right.Visible = false; chrtPrec2.Series.Add(Line); // clear chrtPrec1.Series[0].Clear(); chrtPrec1.Series[1].Clear(); chrtPrec1.Series[2].Clear(); chrtPrec2.Series[0].Clear(); chrtPrec2.Series[1].Clear(); chrtPrec2.Series[2].Clear(); ShowPrecipitation(1); ShowPrecipitation(2); // MyDrawing.SaveGraph(OutputDir, -1); } LogBox.AppendText(@"Data read at " + DateTime.Now.ToString()); success = true; } catch (Exception e) { String ErrorMessage = @"Error in input data : " + e.Message; MessageBox.Show(ErrorMessage); LogBox.AppendText(ErrorMessage); } } return success; }
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() { this.comboBox1 = new System.Windows.Forms.ComboBox(); this.label1 = new System.Windows.Forms.Label(); this.label2 = new System.Windows.Forms.Label(); this.comboBox2 = new System.Windows.Forms.ComboBox(); this.button1 = new System.Windows.Forms.Button(); this.bar1 = new Steema.TeeChart.Styles.Bar(); this.bar2 = new Steema.TeeChart.Styles.Bar(); this.bar3 = new Steema.TeeChart.Styles.Bar(); this.gridBand1 = new Steema.TeeChart.Tools.GridBand(); this.panel1.SuspendLayout(); this.SuspendLayout(); // // textBox1 // this.textBox1.Name = "textBox1"; this.textBox1.Size = new System.Drawing.Size(466, 80); this.textBox1.TabIndex = 0; this.textBox1.Text = @"The Bar style allows single or multiple bars, with different layouts ( 3D, side-to-side, side-all, stacked, stacked 100% ). Options include 2D and 3D, color-each-bar, bar style, patterns, dark 3D, bottom origin, auto-mark positions, stacking groups, marks, border, etc."; // // panel1 // this.panel1.Controls.Add(this.button1); this.panel1.Controls.Add(this.comboBox2); this.panel1.Controls.Add(this.label2); this.panel1.Controls.Add(this.label1); this.panel1.Controls.Add(this.comboBox1); this.panel1.Location = new System.Drawing.Point(0, 80); this.panel1.Name = "panel1"; this.panel1.Size = new System.Drawing.Size(466, 40); this.panel1.TabIndex = 1; // // tChart1 // // // tChart1.Aspect // this.tChart1.Aspect.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.HighQuality; this.tChart1.Aspect.TextRenderingHint = System.Drawing.Text.TextRenderingHint.ClearTypeGridFit; // // 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[] { "TeeChart" }; // // 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.Location = new System.Drawing.Point(0, 120); this.tChart1.Name = "tChart1"; // // tChart1.Panel // // // tChart1.Panel.Brush // this.tChart1.Panel.Brush.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(255))); // // tChart1.Panel.Gradient // this.tChart1.Panel.Brush.Gradient.EndColor = System.Drawing.Color.Yellow; this.tChart1.Panel.Brush.Gradient.MiddleColor = System.Drawing.Color.Empty; this.tChart1.Panel.Brush.Gradient.StartColor = System.Drawing.Color.White; // // tChart1.Panel.Gradient // this.tChart1.Panel.Gradient.EndColor = System.Drawing.Color.Yellow; this.tChart1.Panel.Gradient.MiddleColor = System.Drawing.Color.Empty; this.tChart1.Panel.Gradient.StartColor = System.Drawing.Color.White; // // tChart1.Panel.Shadow // this.tChart1.Panel.Shadow.Height = 0; this.tChart1.Panel.Shadow.Width = 0; this.tChart1.Series.Add(this.bar1); this.tChart1.Series.Add(this.bar2); this.tChart1.Series.Add(this.bar3); this.tChart1.Size = new System.Drawing.Size(466, 166); this.tChart1.TabIndex = 2; this.tChart1.Tools.Add(this.gridBand1); // // tChart1.Walls // // // tChart1.Walls.Right // // // tChart1.Walls.Right.Brush // this.tChart1.Walls.Right.Brush.Color = System.Drawing.Color.Silver; // // comboBox1 // this.comboBox1.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.comboBox1.Items.AddRange(new object[] { "3D", "Side-to-side", "Stacked", "Stacked 100%", "Side All", "Self Stacked" }); this.comboBox1.Location = new System.Drawing.Point(53, 8); this.comboBox1.Name = "comboBox1"; this.comboBox1.Size = new System.Drawing.Size(94, 21); this.comboBox1.TabIndex = 1; this.comboBox1.SelectedIndexChanged += new System.EventHandler(this.comboBox1_SelectedIndexChanged); // // label1 // this.label1.AutoSize = true; this.label1.Location = new System.Drawing.Point(7, 10); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(44, 16); this.label1.TabIndex = 0; this.label1.Text = "&Layout :"; this.label1.TextAlign = System.Drawing.ContentAlignment.TopRight; // // label2 // this.label2.AutoSize = true; this.label2.Location = new System.Drawing.Point(160, 10); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(63, 16); this.label2.TabIndex = 2; this.label2.Text = "&Style Bar 1:"; this.label2.TextAlign = System.Drawing.ContentAlignment.TopRight; // // comboBox2 // this.comboBox2.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.comboBox2.Items.AddRange(new object[] { "Rectangle", "Pyramid", "Invert. Pyramid", "Cylinder", "Ellipse", "Arrow", "Rect. Gradient", "Cone" }); this.comboBox2.Location = new System.Drawing.Point(227, 8); this.comboBox2.Name = "comboBox2"; this.comboBox2.Size = new System.Drawing.Size(86, 21); this.comboBox2.TabIndex = 3; this.comboBox2.SelectedIndexChanged += new System.EventHandler(this.comboBox2_SelectedIndexChanged); // // button1 // this.button1.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.button1.Location = new System.Drawing.Point(333, 7); this.button1.Name = "button1"; this.button1.TabIndex = 4; this.button1.Text = "&Edit..."; this.button1.Click += new System.EventHandler(this.button1_Click); // // bar1 // // // bar1.Brush // this.bar1.Brush.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(255)), ((System.Byte)(0)), ((System.Byte)(0))); // // bar1.Marks // // // bar1.Marks.Symbol // // // bar1.Marks.Symbol.Shadow // this.bar1.Marks.Symbol.Shadow.Height = 1; this.bar1.Marks.Symbol.Shadow.Visible = true; this.bar1.Marks.Symbol.Shadow.Width = 1; // // bar1.Pen // this.bar1.Pen.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(153)), ((System.Byte)(0)), ((System.Byte)(0))); this.bar1.Title = "bar1"; // // bar1.XValues // this.bar1.XValues.DataMember = "X"; this.bar1.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; // // bar1.YValues // this.bar1.YValues.DataMember = "Bar"; // // bar2 // // // bar2.Brush // this.bar2.Brush.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(0)), ((System.Byte)(128)), ((System.Byte)(0))); // // bar2.Marks // // // bar2.Marks.Symbol // // // bar2.Marks.Symbol.Shadow // this.bar2.Marks.Symbol.Shadow.Height = 1; this.bar2.Marks.Symbol.Shadow.Visible = true; this.bar2.Marks.Symbol.Shadow.Width = 1; // // bar2.Pen // this.bar2.Pen.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(0)), ((System.Byte)(77)), ((System.Byte)(0))); this.bar2.Title = "bar2"; // // bar2.XValues // this.bar2.XValues.DataMember = "X"; this.bar2.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; // // bar2.YValues // this.bar2.YValues.DataMember = "Bar"; // // bar3 // // // bar3.Brush // this.bar3.Brush.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(0))); // // bar3.Marks // // // bar3.Marks.Symbol // // // bar3.Marks.Symbol.Shadow // this.bar3.Marks.Symbol.Shadow.Height = 1; this.bar3.Marks.Symbol.Shadow.Visible = true; this.bar3.Marks.Symbol.Shadow.Width = 1; // // bar3.Pen // this.bar3.Pen.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(153)), ((System.Byte)(153)), ((System.Byte)(0))); this.bar3.Title = "bar3"; // // bar3.XValues // this.bar3.XValues.DataMember = "X"; this.bar3.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; // // bar3.YValues // this.bar3.YValues.DataMember = "Bar"; // // gridBand1 // this.gridBand1.Axis = this.tChart1.Axes.Left; // // gridBand1.Band1 // this.gridBand1.Band1.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(255))); // // gridBand1.Band2 // this.gridBand1.Band2.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(224)), ((System.Byte)(224)), ((System.Byte)(224))); // // SeriesType_Bar // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(466, 286); this.Name = "SeriesType_Bar"; this.Load += new System.EventHandler(this.SeriesType_Bar_Load); this.panel1.ResumeLayout(false); this.ResumeLayout(false); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.checkBox1 = new System.Windows.Forms.CheckBox(); this.barSeries1 = new Steema.TeeChart.Styles.Bar(); this.count1 = new Steema.TeeChart.Functions.Count(); this.lineSeries1 = new Steema.TeeChart.Styles.Line(); this.panel1.SuspendLayout(); this.SuspendLayout(); // // textBox1 // this.textBox1.Name = "textBox1"; this.textBox1.Size = new System.Drawing.Size(466, 32); this.textBox1.Text = "The Count function calculates the number of points of the data source series."; // // panel1 // this.panel1.Controls.Add(this.checkBox1); this.panel1.Location = new System.Drawing.Point(0, 32); this.panel1.Name = "panel1"; this.panel1.Size = new System.Drawing.Size(466, 34); // // tChart1 // // // tChart1.Aspect // this.tChart1.Aspect.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.HighQuality; this.tChart1.Aspect.TextRenderingHint = System.Drawing.Text.TextRenderingHint.ClearTypeGridFit; // // tChart1.Header // this.tChart1.Header.Lines = new string[] { "tChart1" }; this.tChart1.Location = new System.Drawing.Point(0, 66); this.tChart1.Name = "tChart1"; // // tChart1.Panel // // // tChart1.Panel.Brush // this.tChart1.Panel.Brush.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(255))); this.tChart1.Series.Add(this.barSeries1); this.tChart1.Series.Add(this.lineSeries1); this.tChart1.Size = new System.Drawing.Size(466, 220); // // tChart1.Walls // // // tChart1.Walls.Bottom // // // tChart1.Walls.Bottom.Pen // this.tChart1.Walls.Bottom.Pen.Visible = false; this.tChart1.Walls.Bottom.Size = 5; // // tChart1.Walls.Left // // // tChart1.Walls.Left.Pen // this.tChart1.Walls.Left.Pen.Visible = false; this.tChart1.Walls.Left.Size = 5; // // checkBox1 // this.checkBox1.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(127, 21); this.checkBox1.TabIndex = 2; this.checkBox1.Text = "&By every 2 points"; this.checkBox1.CheckedChanged += new System.EventHandler(this.checkBox1_CheckedChanged); // // barSeries1 // // // barSeries1.Brush // //this.barSeries1.Brush.Color = System.Drawing.Color.Red; // // barSeries1.Marks // // // barSeries1.Marks.Symbol // // // barSeries1.Marks.Symbol.Shadow // this.barSeries1.Marks.Symbol.Shadow.Height = 1; this.barSeries1.Marks.Symbol.Shadow.Visible = true; this.barSeries1.Marks.Symbol.Shadow.Width = 1; this.barSeries1.Title = "Source"; // // barSeries1.XValues // this.barSeries1.XValues.DataMember = "X"; this.barSeries1.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; // // barSeries1.YValues // this.barSeries1.YValues.DataMember = "Bar"; // // lineSeries1 // // // lineSeries1.Brush // //this.lineSeries1.Brush.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(0)), ((System.Byte)(0)), ((System.Byte)(255))); this.lineSeries1.DataSource = this.barSeries1; this.lineSeries1.Function = this.count1; // // lineSeries1.LinePen // this.lineSeries1.LinePen.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(0)), ((System.Byte)(0)), ((System.Byte)(153))); // // lineSeries1.Marks // // // lineSeries1.Marks.Brush // this.lineSeries1.Marks.Brush.Color = System.Drawing.Color.FromArgb(((System.Byte)(0)), ((System.Byte)(128)), ((System.Byte)(0))); // // lineSeries1.Marks.Font // // // lineSeries1.Marks.Font.Brush // this.lineSeries1.Marks.Font.Brush.Color = System.Drawing.Color.FromArgb(((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(255))); // // lineSeries1.Marks.Symbol // // // lineSeries1.Marks.Symbol.Shadow // this.lineSeries1.Marks.Symbol.Shadow.Height = 1; this.lineSeries1.Marks.Symbol.Shadow.Visible = true; this.lineSeries1.Marks.Symbol.Shadow.Width = 1; this.lineSeries1.Marks.Visible = true; // // lineSeries1.Pointer // this.lineSeries1.Pointer.Style = Steema.TeeChart.Styles.PointerStyles.Rectangle; this.lineSeries1.Title = "Count"; // // lineSeries1.XValues // this.lineSeries1.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; // // Function_Count // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(466, 286); this.Name = "Function_Count"; 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.bar1 = new Steema.TeeChart.Styles.Bar(); this.checkBox1 = new System.Windows.Forms.CheckBox(); this.gridBand1 = new Steema.TeeChart.Tools.GridBand(); this.panel1.SuspendLayout(); this.SuspendLayout(); // // textBox1 // this.textBox1.Name = "textBox1"; this.textBox1.Text = "Bar and Horizontal Bar series provide a stacking style to display a single series" + " \"self stacked\".\r\n\r\nbar1.MultiBar = Steema.TeeChart.Styles.MultiBars.SelfStack;"; // // panel1 // this.panel1.Controls.Add(this.checkBox1); this.panel1.Name = "panel1"; // // tChart1 // // // tChart1.Aspect // this.tChart1.Aspect.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.HighQuality; this.tChart1.Aspect.TextRenderingHint = System.Drawing.Text.TextRenderingHint.ClearTypeGridFit; this.tChart1.BackColor = System.Drawing.Color.Transparent; this.tChart1.Cursor = System.Windows.Forms.Cursors.Default; // // 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.bar1); this.tChart1.Tools.Add(this.gridBand1); // // tChart1.Walls // // // tChart1.Walls.Bottom // // // tChart1.Walls.Bottom.Pen // this.tChart1.Walls.Bottom.Pen.Visible = false; this.tChart1.Walls.Bottom.Size = 3; // // tChart1.Walls.Left // // // tChart1.Walls.Left.Pen // this.tChart1.Walls.Left.Pen.Visible = false; this.tChart1.Walls.Left.Size = 3; // // bar1 // // // bar1.Brush // this.bar1.Brush.Color = System.Drawing.Color.Red; this.bar1.ColorEach = true; // // bar1.Marks // // // bar1.Marks.Symbol // // // bar1.Marks.Symbol.Shadow // this.bar1.Marks.Symbol.Shadow.Height = 1; this.bar1.Marks.Symbol.Shadow.Visible = true; this.bar1.Marks.Symbol.Shadow.Width = 1; this.bar1.MultiBar = Steema.TeeChart.Styles.MultiBars.SelfStack; this.bar1.Title = "bar1"; // // bar1.XValues // this.bar1.XValues.DataMember = "X"; this.bar1.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; // // bar1.YValues // this.bar1.YValues.DataMember = "Bar"; // // 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(144, 24); this.checkBox1.TabIndex = 0; this.checkBox1.Text = "Self stack"; this.checkBox1.CheckedChanged += new System.EventHandler(this.checkBox1_CheckedChanged); // // gridBand1 // this.gridBand1.Axis = this.tChart1.Axes.Left; // // gridBand1.Band1 // this.gridBand1.Band1.Color = System.Drawing.Color.FromArgb(((System.Byte)(127)), ((System.Byte)(64)), ((System.Byte)(64)), ((System.Byte)(0))); // // gridBand1.Band2 // this.gridBand1.Band2.Color = System.Drawing.Color.FromArgb(((System.Byte)(127)), ((System.Byte)(224)), ((System.Byte)(224)), ((System.Byte)(224))); // // Bar_Selfstack // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(440, 317); this.Name = "Bar_Selfstack"; this.panel1.ResumeLayout(false); this.ResumeLayout(false); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.barSeries1 = new Steema.TeeChart.Styles.Bar(); this.checkBox1 = new System.Windows.Forms.CheckBox(); this.checkBox2 = new System.Windows.Forms.CheckBox(); this.gridBand1 = new Steema.TeeChart.Tools.GridBand(); this.panel1.SuspendLayout(); this.SuspendLayout(); // // textBox1 // this.textBox1.Name = "textBox1"; this.textBox1.Size = new System.Drawing.Size(592, 73); this.textBox1.Text = "This example demonstrates how to connect a TeeChart XY Series to a DataTable at r" + "untime.\r\n\r\nCheck/uncheck the checkboxes to include/exclude the X value and Label" + " DataTable fields from the Series."; // // panel1 // this.panel1.Controls.Add(this.checkBox2); this.panel1.Controls.Add(this.checkBox1); this.panel1.Name = "panel1"; this.panel1.Size = new System.Drawing.Size(592, 31); // // tChart1 // // // tChart1.Aspect // this.tChart1.Aspect.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.HighQuality; this.tChart1.Aspect.TextRenderingHint = System.Drawing.Text.TextRenderingHint.ClearTypeGridFit; // // tChart1.Header // this.tChart1.Header.Lines = new string[] { "tChart1" }; this.tChart1.Location = new System.Drawing.Point(0, 104); this.tChart1.Name = "tChart1"; // // tChart1.Panel // // // tChart1.Panel.Brush // this.tChart1.Panel.Brush.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(224)), ((System.Byte)(224)), ((System.Byte)(224))); this.tChart1.Series.Add(this.barSeries1); this.tChart1.Size = new System.Drawing.Size(592, 264); this.tChart1.Tools.Add(this.gridBand1); // // tChart1.Walls // // // tChart1.Walls.Back // // // tChart1.Walls.Back.Brush // this.tChart1.Walls.Back.Brush.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(255))); this.tChart1.Walls.Back.Transparent = false; // // tChart1.Walls.Bottom // // // tChart1.Walls.Bottom.Pen // this.tChart1.Walls.Bottom.Pen.Visible = false; this.tChart1.Walls.Bottom.Size = 5; // // tChart1.Walls.Left // // // tChart1.Walls.Left.Pen // this.tChart1.Walls.Left.Pen.Visible = false; this.tChart1.Walls.Left.Size = 5; // // barSeries1 // // // barSeries1.Brush // this.barSeries1.Brush.Color = System.Drawing.Color.Red; this.barSeries1.Cursor = System.Windows.Forms.Cursors.Cross; // // barSeries1.Marks // // // barSeries1.Marks.Symbol // // // barSeries1.Marks.Symbol.Shadow // this.barSeries1.Marks.Symbol.Shadow.Height = 1; this.barSeries1.Marks.Symbol.Shadow.Visible = true; this.barSeries1.Marks.Symbol.Shadow.Width = 1; this.barSeries1.Title = "barSeries1"; // // barSeries1.XValues // this.barSeries1.XValues.DataMember = "X"; this.barSeries1.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; // // barSeries1.YValues // this.barSeries1.YValues.DataMember = "Bar"; // // 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, 6); this.checkBox1.Name = "checkBox1"; this.checkBox1.TabIndex = 0; this.checkBox1.Text = "Include &Labels"; 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, 6); this.checkBox2.Name = "checkBox2"; this.checkBox2.Size = new System.Drawing.Size(120, 24); this.checkBox2.TabIndex = 1; this.checkBox2.Text = "Include &XValues"; this.checkBox2.CheckedChanged += new System.EventHandler(this.checkBox2_CheckedChanged); // // gridBand1 // this.gridBand1.Axis = this.tChart1.Axes.Left; // // gridBand1.Band1 // this.gridBand1.Band1.Color = System.Drawing.Color.FromArgb(((System.Byte)(127)), ((System.Byte)(224)), ((System.Byte)(224)), ((System.Byte)(224))); // // gridBand1.Band2 // this.gridBand1.Band2.Color = System.Drawing.Color.FromArgb(((System.Byte)(127)), ((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(255))); // // DataConnect // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(592, 368); this.Name = "DataConnect"; this.Load += new System.EventHandler(this.DataConnect_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.label1 = new System.Windows.Forms.Label(); this.lbThemes = new System.Windows.Forms.ListBox(); this.tChart1 = new Steema.TeeChart.TChart(); this.bar1 = new Steema.TeeChart.Styles.Bar(); this.gridBand1 = new Steema.TeeChart.Tools.GridBand(); this.button1 = new System.Windows.Forms.Button(); this.button2 = new System.Windows.Forms.Button(); this.panel1.SuspendLayout(); this.panel2.SuspendLayout(); this.SuspendLayout(); // // textBox1 // this.textBox1.Name = "textBox1"; this.textBox1.Text = "TeeChart Themes enable rapid change of many chart properties with a single mouse " + "click. \r\n\r\nSeveral themes are provided through the Themes Editor and programatic" + "ally. \r\nCreating new themes by code is really simple."; // // panel1 // this.panel1.Controls.Add(this.button2); this.panel1.Controls.Add(this.button1); this.panel1.Controls.Add(this.label1); this.panel1.Name = "panel1"; // // panel2 // this.panel2.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.panel2.Controls.Add(this.tChart1); this.panel2.Controls.Add(this.lbThemes); this.panel2.Dock = System.Windows.Forms.DockStyle.None; this.panel2.Name = "panel2"; // // label1 // this.label1.Location = new System.Drawing.Point(0, 24); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(100, 16); this.label1.TabIndex = 0; this.label1.Text = "Select Theme:"; // // lbThemes // this.lbThemes.Location = new System.Drawing.Point(0, 0); this.lbThemes.Name = "lbThemes"; this.lbThemes.Size = new System.Drawing.Size(88, 160); this.lbThemes.TabIndex = 0; this.lbThemes.SelectedIndexChanged += new System.EventHandler(this.lbThemes_SelectedIndexChanged); // // tChart1 // this.tChart1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); // // tChart1.Aspect // this.tChart1.Aspect.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.HighQuality; this.tChart1.Aspect.TextRenderingHint = System.Drawing.Text.TextRenderingHint.ClearTypeGridFit; // // tChart1.Header // this.tChart1.Header.Lines = new string[] { "TeeChart" }; // // tChart1.Legend // // // tChart1.Legend.Brush // // // tChart1.Legend.Gradient // this.tChart1.Legend.Brush.Gradient.Visible = true; // // tChart1.Legend.Gradient // this.tChart1.Legend.Gradient.Visible = true; this.tChart1.Location = new System.Drawing.Point(88, 0); this.tChart1.Name = "tChart1"; this.tChart1.Series.Add(this.bar1); this.tChart1.Size = new System.Drawing.Size(344, 160); this.tChart1.TabIndex = 1; this.tChart1.Tools.Add(this.gridBand1); // // bar1 // // // bar1.Brush // this.bar1.Brush.Color = System.Drawing.Color.Red; this.bar1.ColorEach = true; // // bar1.Marks // // // bar1.Marks.Symbol // // // bar1.Marks.Symbol.Shadow // this.bar1.Marks.Symbol.Shadow.Height = 1; this.bar1.Marks.Symbol.Shadow.Visible = true; this.bar1.Marks.Symbol.Shadow.Width = 1; this.bar1.Title = "bar1"; // // bar1.XValues // this.bar1.XValues.DataMember = "X"; this.bar1.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; // // bar1.YValues // this.bar1.YValues.DataMember = "Bar"; // // gridBand1 // this.gridBand1.Axis = this.tChart1.Axes.Left; // // gridBand1.Band1 // this.gridBand1.Band1.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(224)), ((System.Byte)(224)), ((System.Byte)(224))); // // gridBand1.Band2 // this.gridBand1.Band2.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(255))); // // button1 // this.button1.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.button1.Location = new System.Drawing.Point(120, 11); this.button1.Name = "button1"; this.button1.Size = new System.Drawing.Size(96, 23); this.button1.TabIndex = 1; this.button1.Text = "Theme Editor..."; 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(256, 11); this.button2.Name = "button2"; this.button2.Size = new System.Drawing.Size(112, 23); this.button2.TabIndex = 2; this.button2.Text = "Apply by code"; this.button2.Click += new System.EventHandler(this.button2_Click); // // ChartThemes // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(426, 258); this.Name = "ChartThemes"; this.Text = "Chart Themes"; this.Load += new System.EventHandler(this.ChartThemes_Load); this.panel1.ResumeLayout(false); this.panel2.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(Function_Cumulative)); this.barSeries1 = new Steema.TeeChart.Styles.Bar(); this.cumulative1 = new Steema.TeeChart.Functions.Cumulative(); this.lineSeries1 = new Steema.TeeChart.Styles.Line(); this.chartContainer.SuspendLayout(); this.SuspendLayout(); // // textBox1 // this.textBox1.Size = new System.Drawing.Size(388, 55); this.textBox1.Text = "The Cumulative function calculates the incremental sum of the data source point v" + "alues.\r\n\r\nExample: Source is 7,5,6 - Cumulative is 7, 7+5, 7+5+6 (7,12 and 18)" + ""; // // panel1 // this.panel1.Location = new System.Drawing.Point(0, 55); this.panel1.Size = new System.Drawing.Size(388, 25); // // tChart1 // // // // this.tChart1.Aspect.ZOffset = 0; // // // // // // this.tChart1.Axes.Bottom.MaximumOffset = 18; this.tChart1.Axes.Bottom.MinimumOffset = 18; // // // this.tChart1.Axes.Left.MaximumOffset = 37; // // // this.tChart1.Header.Lines = new string[] { "Cumulative function" }; // // // // // // this.tChart1.Panel.Brush.Color = System.Drawing.Color.FromArgb(((int)(((byte)(254)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); // // // this.tChart1.Panel.Brush.Gradient.Direction = System.Drawing.Drawing2D.LinearGradientMode.ForwardDiagonal; this.tChart1.Panel.Brush.Gradient.MiddleColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(192))))); this.tChart1.Series.Add(this.barSeries1); this.tChart1.Series.Add(this.lineSeries1); this.tChart1.Size = new System.Drawing.Size(388, 175); // // // // // // // // // this.tChart1.Walls.Back.Brush.Visible = false; this.tChart1.Walls.Back.Transparent = true; // // // // // // this.tChart1.Walls.Bottom.Pen.Visible = false; this.tChart1.Walls.Bottom.Size = 5; // // // // // // this.tChart1.Walls.Left.Pen.Visible = false; this.tChart1.Walls.Left.Size = 5; // // chartContainer // this.chartContainer.Location = new System.Drawing.Point(0, 80); this.chartContainer.Size = new System.Drawing.Size(388, 175); // // barSeries1 // // // // this.barSeries1.Brush.Color = System.Drawing.Color.FromArgb(((int)(((byte)(68)))), ((int)(((byte)(102)))), ((int)(((byte)(163))))); this.barSeries1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(68)))), ((int)(((byte)(102)))), ((int)(((byte)(163))))); this.barSeries1.ColorEach = false; // // // // // // this.barSeries1.Marks.Callout.ArrowHead = Steema.TeeChart.Styles.ArrowHeadStyles.None; this.barSeries1.Marks.Callout.ArrowHeadSize = 8; // // // this.barSeries1.Marks.Callout.Brush.Color = System.Drawing.Color.Black; this.barSeries1.Marks.Callout.Distance = 0; this.barSeries1.Marks.Callout.Draw3D = false; this.barSeries1.Marks.Callout.Length = 20; this.barSeries1.Marks.Callout.Style = Steema.TeeChart.Styles.PointerStyles.Rectangle; this.barSeries1.Marks.Callout.Visible = false; // // // this.barSeries1.Pen.Color = System.Drawing.Color.FromArgb(((int)(((byte)(41)))), ((int)(((byte)(61)))), ((int)(((byte)(98))))); this.barSeries1.Title = "Source"; // // // this.barSeries1.XValues.DataMember = "X"; this.barSeries1.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; // // // this.barSeries1.YValues.DataMember = "Bar"; // // cumulative1 // this.cumulative1.Period = 1; // // lineSeries1 // // // // this.lineSeries1.Brush.Color = System.Drawing.Color.FromArgb(((int)(((byte)(243)))), ((int)(((byte)(156)))), ((int)(((byte)(53))))); this.lineSeries1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(243)))), ((int)(((byte)(156)))), ((int)(((byte)(53))))); this.lineSeries1.ColorEach = false; this.lineSeries1.DataSource = this.barSeries1; this.lineSeries1.Function = this.cumulative1; // // // this.lineSeries1.LinePen.Color = System.Drawing.Color.FromArgb(((int)(((byte)(146)))), ((int)(((byte)(94)))), ((int)(((byte)(32))))); // // // // // // this.lineSeries1.Marks.Brush.Color = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(128)))), ((int)(((byte)(0))))); // // // this.lineSeries1.Marks.Callout.ArrowHead = Steema.TeeChart.Styles.ArrowHeadStyles.None; this.lineSeries1.Marks.Callout.ArrowHeadSize = 8; // // // this.lineSeries1.Marks.Callout.Brush.Color = System.Drawing.Color.Black; this.lineSeries1.Marks.Callout.Distance = 0; this.lineSeries1.Marks.Callout.Draw3D = false; this.lineSeries1.Marks.Callout.Length = 10; this.lineSeries1.Marks.Callout.Style = Steema.TeeChart.Styles.PointerStyles.Rectangle; this.lineSeries1.Marks.Callout.Visible = false; // // // // // // this.lineSeries1.Marks.Font.Brush.Color = System.Drawing.Color.White; this.lineSeries1.Marks.Visible = true; // // // this.lineSeries1.Pointer.Style = Steema.TeeChart.Styles.PointerStyles.Rectangle; this.lineSeries1.Title = "Cumulative"; // // // this.lineSeries1.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; // // Function_Cumulative // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(388, 255); this.Name = "Function_Cumulative"; this.chartContainer.ResumeLayout(false); this.ResumeLayout(false); this.PerformLayout(); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.barSeries1 = new Steema.TeeChart.Styles.Bar(); #if VS2005 this.commander1 = new Steema.TeeChart.ChartController(); #else this.commander1 = new Steema.TeeChart.Commander(); #endif this.gridBand1 = new Steema.TeeChart.Tools.GridBand(); this.panel1.SuspendLayout(); this.SuspendLayout(); // // textBox1 // this.textBox1.Name = "textBox1"; this.textBox1.Size = new System.Drawing.Size(716, 56); this.textBox1.Text = "ChartController component is used to manipulate Charts, offering several buttons in a s" + "ingle panel. \r\nThe buttons allow zooming, scrolling, rotating, changing depth, e" + "diting, printing, copying to clipboard and saving charts."; // // panel1 // this.panel1.Controls.Add(this.commander1); this.panel1.Location = new System.Drawing.Point(0, 56); this.panel1.Name = "panel1"; this.panel1.Size = new System.Drawing.Size(716, 36); // // tChart1 // // // tChart1.Aspect // this.tChart1.Aspect.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.HighQuality; this.tChart1.Aspect.TextRenderingHint = System.Drawing.Text.TextRenderingHint.ClearTypeGridFit; // // tChart1.Header // this.tChart1.Header.Lines = new string[] { "tChart1" }; this.tChart1.Location = new System.Drawing.Point(0, 92); this.tChart1.Name = "tChart1"; // // tChart1.Panel // // // tChart1.Panel.Brush // this.tChart1.Panel.Brush.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(255))); this.tChart1.Series.Add(this.barSeries1); this.tChart1.Size = new System.Drawing.Size(716, 315); this.tChart1.Tools.Add(this.gridBand1); // // tChart1.Walls // // // tChart1.Walls.Bottom // // // tChart1.Walls.Bottom.Pen // this.tChart1.Walls.Bottom.Pen.Visible = false; this.tChart1.Walls.Bottom.Size = 5; // // tChart1.Walls.Left // // // tChart1.Walls.Left.Pen // this.tChart1.Walls.Left.Pen.Visible = false; this.tChart1.Walls.Left.Size = 5; // // barSeries1 // this.barSeries1.BarStyle = Steema.TeeChart.Styles.BarStyles.Pyramid; // // barSeries1.Brush // this.barSeries1.Brush.Color = System.Drawing.Color.Red; this.barSeries1.ColorEach = true; this.barSeries1.Cursor = System.Windows.Forms.Cursors.Cross; // // barSeries1.Marks // // // barSeries1.Marks.Symbol // // // barSeries1.Marks.Symbol.Shadow // this.barSeries1.Marks.Symbol.Shadow.Height = 1; this.barSeries1.Marks.Symbol.Shadow.Visible = true; this.barSeries1.Marks.Symbol.Shadow.Width = 1; this.barSeries1.Title = "bar1"; // // barSeries1.XValues // this.barSeries1.XValues.DataMember = "X"; this.barSeries1.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; // // barSeries1.YValues // this.barSeries1.YValues.DataMember = "Bar"; // // commander1 // this.commander1.Chart = this.tChart1; this.commander1.Dock = System.Windows.Forms.DockStyle.Fill; this.commander1.Location = new System.Drawing.Point(0, 0); this.commander1.Name = "commander1"; this.commander1.Size = new System.Drawing.Size(716, 37); this.commander1.TabIndex = 0; // // gridBand1 // this.gridBand1.Axis = this.tChart1.Axes.Left; // // gridBand1.Band1 // this.gridBand1.Band1.Color = System.Drawing.Color.FromArgb(((System.Byte)(127)), ((System.Byte)(224)), ((System.Byte)(224)), ((System.Byte)(224))); // // gridBand1.Band2 // this.gridBand1.Band2.Color = System.Drawing.Color.FromArgb(((System.Byte)(127)), ((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(255))); // // TCommander_Demo // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(716, 407); this.Name = "TCommander_Demo"; this.panel1.ResumeLayout(false); this.ResumeLayout(false); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.barSeries1 = new Steema.TeeChart.Styles.Bar(); this.label1 = new System.Windows.Forms.Label(); this.trackBar1 = new System.Windows.Forms.TrackBar(); this.label2 = new System.Windows.Forms.Label(); this.label3 = new System.Windows.Forms.Label(); this.comboBox1 = new System.Windows.Forms.ComboBox(); this.panel1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.trackBar1)).BeginInit(); this.SuspendLayout(); // // textBox1 // this.textBox1.Name = "textBox1"; this.textBox1.Size = new System.Drawing.Size(466, 63); this.textBox1.Text = "Bar series, Horizontal Bar series and the Chart Canvas can display Cone shapes wi" + "th customized \"percent\" of cone 3D effect.\r\n\r\nExample: barSeries1.BarStyle = bsC" + "one;"; // // panel1 // this.panel1.Controls.Add(this.comboBox1); this.panel1.Controls.Add(this.label3); this.panel1.Controls.Add(this.label2); this.panel1.Controls.Add(this.trackBar1); this.panel1.Controls.Add(this.label1); this.panel1.Location = new System.Drawing.Point(0, 63); this.panel1.Name = "panel1"; this.panel1.Size = new System.Drawing.Size(466, 33); // // tChart1 // // // tChart1.Aspect // this.tChart1.Aspect.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.AntiAlias; this.tChart1.Aspect.TextRenderingHint = System.Drawing.Text.TextRenderingHint.AntiAlias; // // tChart1.Axes // // // tChart1.Axes.Bottom // // // tChart1.Axes.Bottom.Labels // // // tChart1.Axes.Bottom.Labels.Font // // // tChart1.Axes.Bottom.Labels.Font.Brush // this.tChart1.Axes.Bottom.Labels.Font.Brush.Color = System.Drawing.Color.White; this.tChart1.Axes.Bottom.Labels.Font.Size = 7; // // tChart1.Axes.Left // this.tChart1.Axes.Left.LogarithmicBase = 2; // // tChart1.Header // this.tChart1.Header.Lines = new string[] { "tChart1" }; this.tChart1.Header.Visible = false; this.tChart1.Location = new System.Drawing.Point(0, 96); this.tChart1.Name = "tChart1"; // // tChart1.Panel // // // tChart1.Panel.Brush // this.tChart1.Panel.Brush.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(255))); // // tChart1.Panel.Gradient // this.tChart1.Panel.Brush.Gradient.Direction = System.Drawing.Drawing2D.LinearGradientMode.ForwardDiagonal; 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)(192)), ((System.Byte)(192)), ((System.Byte)(255))); this.tChart1.Panel.Brush.Gradient.Visible = true; // // tChart1.Panel.Gradient // this.tChart1.Panel.Gradient.Direction = System.Drawing.Drawing2D.LinearGradientMode.ForwardDiagonal; 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)(192)), ((System.Byte)(192)), ((System.Byte)(255))); this.tChart1.Panel.Gradient.Visible = true; this.tChart1.Series.Add(this.barSeries1); this.tChart1.Size = new System.Drawing.Size(466, 190); // // tChart1.Walls // // // 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)(255))); // // tChart1.Walls.Bottom.Pen // this.tChart1.Walls.Bottom.Pen.Visible = false; this.tChart1.Walls.Bottom.Size = 3; // // tChart1.Walls.Left // // // tChart1.Walls.Left.Brush // this.tChart1.Walls.Left.Brush.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(224))); // // tChart1.Walls.Left.Pen // this.tChart1.Walls.Left.Pen.Visible = false; this.tChart1.Walls.Left.Size = 3; this.tChart1.AfterDraw += new Steema.TeeChart.PaintChartEventHandler(this.tChart1_AfterDraw); // // barSeries1 // this.barSeries1.BarStyle = Steema.TeeChart.Styles.BarStyles.Cone; // // barSeries1.Brush // this.barSeries1.Brush.Color = System.Drawing.Color.Red; // // barSeries1.Marks // // // barSeries1.Marks.Symbol // // // barSeries1.Marks.Symbol.Shadow // this.barSeries1.Marks.Symbol.Shadow.Height = 1; this.barSeries1.Marks.Symbol.Shadow.Visible = true; this.barSeries1.Marks.Symbol.Shadow.Width = 1; // // barSeries1.Pen // this.barSeries1.Pen.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(128)), ((System.Byte)(0)), ((System.Byte)(0))); this.barSeries1.Title = "barSeries1"; // // barSeries1.XValues // this.barSeries1.XValues.DataMember = "X"; this.barSeries1.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; // // barSeries1.YValues // this.barSeries1.YValues.DataMember = "Bar"; // // label1 // this.label1.AutoSize = true; this.label1.Location = new System.Drawing.Point(8, 8); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(75, 16); this.label1.TabIndex = 0; this.label1.Text = "&Cone percent:"; this.label1.TextAlign = System.Drawing.ContentAlignment.TopRight; // // trackBar1 // this.trackBar1.AutoSize = false; this.trackBar1.Location = new System.Drawing.Point(93, 9); this.trackBar1.Maximum = 100; this.trackBar1.Name = "trackBar1"; this.trackBar1.Size = new System.Drawing.Size(114, 15); this.trackBar1.TabIndex = 1; this.trackBar1.TickFrequency = 5; this.trackBar1.Value = 30; this.trackBar1.ValueChanged += new System.EventHandler(this.trackBar1_ValueChanged); // // label2 // this.label2.AutoSize = true; this.label2.Location = new System.Drawing.Point(207, 8); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(27, 16); this.label2.TabIndex = 2; this.label2.Text = "30%"; this.label2.UseMnemonic = false; // // label3 // this.label3.AutoSize = true; this.label3.Location = new System.Drawing.Point(260, 8); this.label3.Name = "label3"; this.label3.Size = new System.Drawing.Size(33, 16); this.label3.TabIndex = 3; this.label3.Text = "&Style:"; this.label3.TextAlign = System.Drawing.ContentAlignment.TopRight; // // comboBox1 // this.comboBox1.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.comboBox1.Items.AddRange(new object[] { "Cone", "Pyramid" }); this.comboBox1.Location = new System.Drawing.Point(293, 6); this.comboBox1.Name = "comboBox1"; this.comboBox1.Size = new System.Drawing.Size(67, 21); this.comboBox1.TabIndex = 4; this.comboBox1.SelectedIndexChanged += new System.EventHandler(this.comboBox1_SelectedIndexChanged); // // Bar_Cone // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(466, 286); this.Name = "Bar_Cone"; this.Load += new System.EventHandler(this.Bar_Cone_Load); this.panel1.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.trackBar1)).EndInit(); this.ResumeLayout(false); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.label1 = new System.Windows.Forms.Label(); this.comboBox1 = new System.Windows.Forms.ComboBox(); this.barSeries1 = new Steema.TeeChart.Styles.Bar(); this.barSeries2 = new Steema.TeeChart.Styles.Bar(); this.barSeries3 = new Steema.TeeChart.Styles.Bar(); this.barSeries4 = new Steema.TeeChart.Styles.Bar(); this.barSeries5 = new Steema.TeeChart.Styles.Bar(); this.label2 = new System.Windows.Forms.Label(); this.gridBand1 = new Steema.TeeChart.Tools.GridBand(); this.panel1.SuspendLayout(); this.SuspendLayout(); // // textBox1 // this.textBox1.Name = "textBox1"; this.textBox1.Size = new System.Drawing.Size(466, 96); this.textBox1.Text = @"Stacked Bar and Horiz. Bar series can be grouped. The StackGroup property defines the ""group"". There is no limit on how many groups exist. barSeries1.MultiBar = Steema.TeeChart.Multibars.Stacked; barSeries1.StackGroup = 0 ; barSeries2.StackGroup = 1 ; "; // // panel1 // this.panel1.Controls.Add(this.label2); this.panel1.Controls.Add(this.label1); this.panel1.Controls.Add(this.comboBox1); this.panel1.Location = new System.Drawing.Point(0, 96); this.panel1.Name = "panel1"; this.panel1.Size = new System.Drawing.Size(466, 33); // // tChart1 // // // tChart1.Aspect // this.tChart1.Aspect.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.HighQuality; this.tChart1.Aspect.TextRenderingHint = System.Drawing.Text.TextRenderingHint.ClearTypeGridFit; // // tChart1.Header // this.tChart1.Header.Lines = new string[] { "tChart1" }; // // tChart1.Legend // // // tChart1.Legend.Brush // this.tChart1.Legend.Brush.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(244)), ((System.Byte)(244)), ((System.Byte)(255))); // // tChart1.Legend.Pen // this.tChart1.Legend.Pen.Visible = false; // // tChart1.Legend.Shadow // this.tChart1.Legend.Shadow.Visible = false; // // tChart1.Legend.Symbol // this.tChart1.Legend.Symbol.Continous = true; // // tChart1.Legend.Symbol.Pen // this.tChart1.Legend.Symbol.Pen.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(0)), ((System.Byte)(0)), ((System.Byte)(0))); this.tChart1.Legend.Symbol.Pen.Style = System.Drawing.Drawing2D.DashStyle.Dash; this.tChart1.Location = new System.Drawing.Point(0, 129); this.tChart1.Name = "tChart1"; // // tChart1.Panel // // // tChart1.Panel.Brush // this.tChart1.Panel.Brush.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(255))); this.tChart1.Series.Add(this.barSeries1); this.tChart1.Series.Add(this.barSeries2); this.tChart1.Series.Add(this.barSeries3); this.tChart1.Series.Add(this.barSeries4); this.tChart1.Series.Add(this.barSeries5); this.tChart1.Size = new System.Drawing.Size(466, 157); this.tChart1.Tools.Add(this.gridBand1); // // tChart1.Walls // // // tChart1.Walls.Back // // // tChart1.Walls.Back.Pen // this.tChart1.Walls.Back.Pen.Visible = false; // // tChart1.Walls.Bottom // // // tChart1.Walls.Bottom.Pen // this.tChart1.Walls.Bottom.Pen.Visible = false; this.tChart1.Walls.Bottom.Size = 6; // // tChart1.Walls.Left // // // tChart1.Walls.Left.Pen // this.tChart1.Walls.Left.Pen.Visible = false; this.tChart1.Walls.Left.Size = 5; // // label1 // this.label1.AutoSize = true; this.label1.Location = new System.Drawing.Point(20, 8); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(57, 16); this.label1.TabIndex = 0; this.label1.Text = "&Stack has "; this.label1.TextAlign = System.Drawing.ContentAlignment.TopRight; // // comboBox1 // this.comboBox1.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.comboBox1.Items.AddRange(new object[] { "1", "2", "3", "4", "5" }); this.comboBox1.Location = new System.Drawing.Point(80, 6); this.comboBox1.Name = "comboBox1"; this.comboBox1.Size = new System.Drawing.Size(47, 21); this.comboBox1.TabIndex = 1; this.comboBox1.SelectedIndexChanged += new System.EventHandler(this.comboBox1_SelectedIndexChanged); // // barSeries1 // // // barSeries1.Brush // this.barSeries1.Brush.Color = System.Drawing.Color.FromArgb(((System.Byte)(178)), ((System.Byte)(255)), ((System.Byte)(0)), ((System.Byte)(0))); // // barSeries1.Marks // // // barSeries1.Marks.Symbol // // // barSeries1.Marks.Symbol.Shadow // this.barSeries1.Marks.Symbol.Shadow.Height = 1; this.barSeries1.Marks.Symbol.Shadow.Visible = true; this.barSeries1.Marks.Symbol.Shadow.Width = 1; this.barSeries1.Marks.Visible = false; this.barSeries1.MultiBar = Steema.TeeChart.Styles.MultiBars.Stacked; // // barSeries1.Pen // this.barSeries1.Pen.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(128)), ((System.Byte)(0)), ((System.Byte)(0))); this.barSeries1.Title = "barSeries1"; // // barSeries1.XValues // this.barSeries1.XValues.DataMember = "X"; this.barSeries1.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; // // barSeries1.YValues // this.barSeries1.YValues.DataMember = "Bar"; // // barSeries2 // // // barSeries2.Brush // this.barSeries2.Brush.Color = System.Drawing.Color.FromArgb(((System.Byte)(178)), ((System.Byte)(0)), ((System.Byte)(128)), ((System.Byte)(0))); // // barSeries2.Marks // // // barSeries2.Marks.Symbol // // // barSeries2.Marks.Symbol.Shadow // this.barSeries2.Marks.Symbol.Shadow.Height = 1; this.barSeries2.Marks.Symbol.Shadow.Visible = true; this.barSeries2.Marks.Symbol.Shadow.Width = 1; this.barSeries2.Marks.Visible = false; this.barSeries2.MultiBar = Steema.TeeChart.Styles.MultiBars.Stacked; // // barSeries2.Pen // this.barSeries2.Pen.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(0)), ((System.Byte)(64)), ((System.Byte)(0))); this.barSeries2.Title = "barSeries2"; // // barSeries2.XValues // this.barSeries2.XValues.DataMember = "X"; this.barSeries2.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; // // barSeries2.YValues // this.barSeries2.YValues.DataMember = "Bar"; // // barSeries3 // // // barSeries3.Brush // this.barSeries3.Brush.Color = System.Drawing.Color.FromArgb(((System.Byte)(178)), ((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(0))); // // barSeries3.Marks // // // barSeries3.Marks.Symbol // // // barSeries3.Marks.Symbol.Shadow // this.barSeries3.Marks.Symbol.Shadow.Height = 1; this.barSeries3.Marks.Symbol.Shadow.Visible = true; this.barSeries3.Marks.Symbol.Shadow.Width = 1; this.barSeries3.Marks.Visible = false; this.barSeries3.MultiBar = Steema.TeeChart.Styles.MultiBars.Stacked; // // barSeries3.Pen // this.barSeries3.Pen.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(128)), ((System.Byte)(128)), ((System.Byte)(0))); this.barSeries3.Title = "barSeries3"; // // barSeries3.XValues // this.barSeries3.XValues.DataMember = "X"; this.barSeries3.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; // // barSeries3.YValues // this.barSeries3.YValues.DataMember = "Bar"; // // barSeries4 // // // barSeries4.Brush // this.barSeries4.Brush.Color = System.Drawing.Color.FromArgb(((System.Byte)(178)), ((System.Byte)(0)), ((System.Byte)(0)), ((System.Byte)(255))); // // barSeries4.Marks // // // barSeries4.Marks.Symbol // // // barSeries4.Marks.Symbol.Shadow // this.barSeries4.Marks.Symbol.Shadow.Height = 1; this.barSeries4.Marks.Symbol.Shadow.Visible = true; this.barSeries4.Marks.Symbol.Shadow.Width = 1; this.barSeries4.Marks.Visible = false; this.barSeries4.MultiBar = Steema.TeeChart.Styles.MultiBars.Stacked; // // barSeries4.Pen // this.barSeries4.Pen.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(0)), ((System.Byte)(0)), ((System.Byte)(64))); this.barSeries4.StackGroup = 1; this.barSeries4.Title = "barSeries4"; // // barSeries4.XValues // this.barSeries4.XValues.DataMember = "X"; this.barSeries4.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; // // barSeries4.YValues // this.barSeries4.YValues.DataMember = "Bar"; // // barSeries5 // // // barSeries5.Brush // this.barSeries5.Brush.Color = System.Drawing.Color.FromArgb(((System.Byte)(178)), ((System.Byte)(255)), ((System.Byte)(128)), ((System.Byte)(0))); // // barSeries5.Marks // // // barSeries5.Marks.Symbol // // // barSeries5.Marks.Symbol.Shadow // this.barSeries5.Marks.Symbol.Shadow.Height = 1; this.barSeries5.Marks.Symbol.Shadow.Visible = true; this.barSeries5.Marks.Symbol.Shadow.Width = 1; this.barSeries5.Marks.Visible = false; this.barSeries5.MultiBar = Steema.TeeChart.Styles.MultiBars.Stacked; // // barSeries5.Pen // this.barSeries5.Pen.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(128)), ((System.Byte)(128)), ((System.Byte)(128))); this.barSeries5.StackGroup = 1; this.barSeries5.Title = "barSeries5"; // // barSeries5.XValues // this.barSeries5.XValues.DataMember = "X"; this.barSeries5.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; // // barSeries5.YValues // this.barSeries5.YValues.DataMember = "Bar"; // // label2 // this.label2.AutoSize = true; this.label2.Location = new System.Drawing.Point(133, 8); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(34, 16); this.label2.TabIndex = 2; this.label2.Text = "series"; this.label2.UseMnemonic = false; // // gridBand1 // this.gridBand1.Axis = this.tChart1.Axes.Left; // // gridBand1.Band1 // this.gridBand1.Band1.Color = System.Drawing.Color.FromArgb(((System.Byte)(25)), ((System.Byte)(0)), ((System.Byte)(0)), ((System.Byte)(0))); // // gridBand1.Band2 // this.gridBand1.Band2.Color = System.Drawing.Color.FromArgb(((System.Byte)(102)), ((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(192))); // // Bar_GroupStack // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(466, 286); this.Name = "Bar_GroupStack"; this.Load += new System.EventHandler(this.Bar_GroupStack_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.barSeries1 = new Steema.TeeChart.Styles.Bar(); this.comboBox1 = new System.Windows.Forms.ComboBox(); this.label2 = new System.Windows.Forms.Label(); this.label3 = new System.Windows.Forms.Label(); this.gridBand1 = new Steema.TeeChart.Tools.GridBand(); this.panel1.SuspendLayout(); this.SuspendLayout(); // // textBox1 // this.textBox1.Name = "textBox1"; this.textBox1.Size = new System.Drawing.Size(466, 64); this.textBox1.TabIndex = 0; this.textBox1.Text = "Series data can be sorted by point\'s text, in ascending or descending order.\r\nNot" + "e: After applying text order, the \"X\" values are lost.\r\n\r\nbarSeries1.SortByLabel" + "s(ValueListOrder.Ascending);"; // // panel1 // this.panel1.Controls.Add(this.label3); this.panel1.Controls.Add(this.label2); this.panel1.Controls.Add(this.comboBox1); this.panel1.Location = new System.Drawing.Point(0, 64); this.panel1.Name = "panel1"; this.panel1.Size = new System.Drawing.Size(466, 40); this.panel1.TabIndex = 1; // // tChart1 // // // tChart1.Aspect // this.tChart1.Aspect.Chart3DPercent = 25; 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.FromArgb(((System.Byte)(254)), ((System.Byte)(0)), ((System.Byte)(0)), ((System.Byte)(0))); this.tChart1.Axes.Bottom.Grid.Style = System.Drawing.Drawing2D.DashStyle.Solid; // // tChart1.Axes.Left // // // tChart1.Axes.Left.Grid // this.tChart1.Axes.Left.Grid.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(255)), ((System.Byte)(0)), ((System.Byte)(0))); this.tChart1.Axes.Left.Grid.Style = System.Drawing.Drawing2D.DashStyle.Solid; this.tChart1.BackColor = System.Drawing.Color.Transparent; this.tChart1.Cursor = System.Windows.Forms.Cursors.Default; // // tChart1.Header // // // tChart1.Header.Brush // this.tChart1.Header.Brush.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(255))); this.tChart1.Header.Lines = new string[] { "Data sorting by labels" }; // // tChart1.Header.Shadow // // // tChart1.Header.Shadow.Brush // this.tChart1.Header.Shadow.Brush.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(0)), ((System.Byte)(0)), ((System.Byte)(0))); this.tChart1.Header.Shadow.Height = 1; this.tChart1.Header.Shadow.Visible = true; this.tChart1.Header.Shadow.Width = 1; this.tChart1.Header.Transparent = false; // // tChart1.Legend // // // tChart1.Legend.Symbol // this.tChart1.Legend.Symbol.DefaultPen = false; this.tChart1.Location = new System.Drawing.Point(0, 104); this.tChart1.Name = "tChart1"; // // tChart1.Panel // // // tChart1.Panel.Brush // this.tChart1.Panel.Brush.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(192)), ((System.Byte)(192)), ((System.Byte)(192))); // // tChart1.Panel.Gradient // this.tChart1.Panel.Brush.Gradient.StartColor = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(128)), ((System.Byte)(128)), ((System.Byte)(128))); this.tChart1.Panel.Brush.Gradient.Visible = true; // // tChart1.Panel.Gradient // this.tChart1.Panel.Gradient.StartColor = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(128)), ((System.Byte)(128)), ((System.Byte)(128))); this.tChart1.Panel.Gradient.Visible = true; this.tChart1.Series.Add(this.barSeries1); this.tChart1.Size = new System.Drawing.Size(466, 182); this.tChart1.TabIndex = 2; this.tChart1.Tools.Add(this.gridBand1); // // barSeries1 // this.barSeries1.BarStyle = Steema.TeeChart.Styles.BarStyles.Cylinder; // // barSeries1.Brush // this.barSeries1.Brush.Color = System.Drawing.Color.FromArgb(((System.Byte)(191)), ((System.Byte)(0)), ((System.Byte)(0)), ((System.Byte)(128))); // // barSeries1.Marks // // // barSeries1.Marks.Symbol // // // barSeries1.Marks.Symbol.Shadow // this.barSeries1.Marks.Symbol.Shadow.Height = 1; this.barSeries1.Marks.Symbol.Shadow.Visible = true; this.barSeries1.Marks.Symbol.Shadow.Width = 1; // // barSeries1.Pen // this.barSeries1.Pen.Color = System.Drawing.Color.FromArgb(((System.Byte)(191)), ((System.Byte)(0)), ((System.Byte)(0)), ((System.Byte)(77))); this.barSeries1.Pen.Transparency = 30; this.barSeries1.Title = "bar1"; // // barSeries1.XValues // this.barSeries1.XValues.DataMember = "X"; this.barSeries1.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; // // barSeries1.YValues // this.barSeries1.YValues.DataMember = "Bar"; // // comboBox1 // this.comboBox1.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.comboBox1.Items.AddRange(new object[] { "Ascending", "Descending" }); this.comboBox1.Location = new System.Drawing.Point(80, 8); this.comboBox1.Name = "comboBox1"; this.comboBox1.Size = new System.Drawing.Size(121, 21); this.comboBox1.TabIndex = 1; this.comboBox1.SelectedIndexChanged += new System.EventHandler(this.comboBox1_SelectedIndexChanged); // // label2 // this.label2.AutoSize = true; this.label2.Location = new System.Drawing.Point(24, 11); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(53, 16); this.label2.TabIndex = 2; this.label2.Text = "Sort type:"; // // label3 // this.label3.AutoSize = true; this.label3.Location = new System.Drawing.Point(216, 11); this.label3.Name = "label3"; this.label3.Size = new System.Drawing.Size(35, 16); this.label3.TabIndex = 3; this.label3.Text = "label3"; // // gridBand1 // this.gridBand1.Axis = this.tChart1.Axes.Left; // // gridBand1.Band1 // this.gridBand1.Band1.Color = System.Drawing.Color.FromArgb(((System.Byte)(127)), ((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(255))); // // gridBand1.Band2 // this.gridBand1.Band2.Color = System.Drawing.Color.FromArgb(((System.Byte)(127)), ((System.Byte)(224)), ((System.Byte)(224)), ((System.Byte)(224))); // // SeriesSortLabels // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(466, 286); this.Name = "SeriesSortLabels"; 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.bar1 = new Steema.TeeChart.Styles.Bar(); this.button1 = new System.Windows.Forms.Button(); this.gridBand1 = new Steema.TeeChart.Tools.GridBand(); this.panel1.SuspendLayout(); this.SuspendLayout(); // // textBox1 // this.textBox1.Name = "textBox1"; this.textBox1.Size = new System.Drawing.Size(630, 63); this.textBox1.Text = "The Print Preview dialog displays a tChart over a printer paper and allows custom" + "ization of printing parameters like choosing the printer and printer settings, c" + "hanging margins and chart position, paper orientation and detail resolution."; // // panel1 // this.panel1.Controls.Add(this.button1); this.panel1.Location = new System.Drawing.Point(0, 63); this.panel1.Name = "panel1"; this.panel1.Size = new System.Drawing.Size(630, 41); // // tChart1 // // // tChart1.Aspect // this.tChart1.Aspect.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.HighQuality; this.tChart1.Aspect.TextRenderingHint = System.Drawing.Text.TextRenderingHint.ClearTypeGridFit; // // tChart1.Header // this.tChart1.Header.Lines = new string[] { "tChart1" }; this.tChart1.Header.Visible = false; this.tChart1.Location = new System.Drawing.Point(0, 104); this.tChart1.Name = "tChart1"; // // tChart1.Panel // // // tChart1.Panel.Brush // this.tChart1.Panel.Brush.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(255))); this.tChart1.Series.Add(this.bar1); this.tChart1.Size = new System.Drawing.Size(630, 289); this.tChart1.Tools.Add(this.gridBand1); // // tChart1.Walls // // // tChart1.Walls.Bottom // // // tChart1.Walls.Bottom.Pen // this.tChart1.Walls.Bottom.Pen.Visible = false; this.tChart1.Walls.Bottom.Size = 5; // // tChart1.Walls.Left // // // tChart1.Walls.Left.Pen // this.tChart1.Walls.Left.Pen.Visible = false; this.tChart1.Walls.Left.Size = 5; // // bar1 // this.bar1.BarStyle = Steema.TeeChart.Styles.BarStyles.Cylinder; // // bar1.Brush // this.bar1.Brush.Color = System.Drawing.Color.Red; // // bar1.Marks // // // bar1.Marks.Symbol // // // bar1.Marks.Symbol.Shadow // this.bar1.Marks.Symbol.Shadow.Height = 1; this.bar1.Marks.Symbol.Shadow.Visible = true; this.bar1.Marks.Symbol.Shadow.Width = 1; this.bar1.Title = "bar1"; // // bar1.XValues // this.bar1.XValues.DataMember = "X"; this.bar1.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; // // bar1.YValues // this.bar1.YValues.DataMember = "Bar"; // // button1 // this.button1.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.button1.Location = new System.Drawing.Point(16, 8); this.button1.Name = "button1"; this.button1.Size = new System.Drawing.Size(109, 23); this.button1.TabIndex = 0; this.button1.Text = "&Print Preview..."; this.button1.Click += new System.EventHandler(this.button1_Click); // // gridBand1 // this.gridBand1.Axis = this.tChart1.Axes.Left; // // gridBand1.Band1 // this.gridBand1.Band1.Color = System.Drawing.Color.FromArgb(((System.Byte)(127)), ((System.Byte)(224)), ((System.Byte)(224)), ((System.Byte)(224))); // // gridBand1.Band2 // this.gridBand1.Band2.Color = System.Drawing.Color.FromArgb(((System.Byte)(127)), ((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(255))); // // PreviewDialog // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(630, 393); this.Name = "PreviewDialog"; this.panel1.ResumeLayout(false); this.ResumeLayout(false); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.barSeries1 = new Steema.TeeChart.Styles.Bar(); this.barSeries2 = new Steema.TeeChart.Styles.Bar(); this.checkBox1 = new System.Windows.Forms.CheckBox(); this.gridBand1 = new Steema.TeeChart.Tools.GridBand(); this.panel1.SuspendLayout(); this.SuspendLayout(); // // textBox1 // this.textBox1.Name = "textBox1"; this.textBox1.Size = new System.Drawing.Size(466, 40); this.textBox1.Text = "Multiple Legends can be displayed in the same Chart using the Chart AfterDraw eve" + "nt."; // // panel1 // this.panel1.Controls.Add(this.checkBox1); this.panel1.Location = new System.Drawing.Point(0, 40); this.panel1.Name = "panel1"; this.panel1.Size = new System.Drawing.Size(466, 34); // // tChart1 // // // tChart1.Aspect // this.tChart1.Aspect.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.HighQuality; this.tChart1.Aspect.TextRenderingHint = System.Drawing.Text.TextRenderingHint.ClearTypeGridFit; this.tChart1.Cursor = System.Windows.Forms.Cursors.Default; // // tChart1.Header // this.tChart1.Header.Lines = new string[] { "tChart1" }; this.tChart1.Header.Visible = false; // // tChart1.Legend // // // tChart1.Legend.Pen // this.tChart1.Legend.Pen.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(192)), ((System.Byte)(192)), ((System.Byte)(192))); // // tChart1.Legend.Shadow // // // tChart1.Legend.Shadow.Brush // this.tChart1.Legend.Shadow.Brush.Color = System.Drawing.Color.FromArgb(((System.Byte)(142)), ((System.Byte)(0)), ((System.Byte)(0)), ((System.Byte)(0))); this.tChart1.Location = new System.Drawing.Point(0, 74); 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.Panel.MarginTop = 6; this.tChart1.Series.Add(this.barSeries1); this.tChart1.Series.Add(this.barSeries2); this.tChart1.Size = new System.Drawing.Size(466, 212); this.tChart1.Tools.Add(this.gridBand1); // // tChart1.Walls // // // tChart1.Walls.Bottom // // // tChart1.Walls.Bottom.Pen // this.tChart1.Walls.Bottom.Pen.Visible = false; this.tChart1.Walls.Bottom.Size = 5; // // tChart1.Walls.Left // // // tChart1.Walls.Left.Pen // this.tChart1.Walls.Left.Pen.Visible = false; this.tChart1.Walls.Left.Size = 5; this.tChart1.AfterDraw += new Steema.TeeChart.PaintChartEventHandler(this.tChart1_AfterDraw); // // barSeries1 // // // barSeries1.Brush // this.barSeries1.Brush.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(255)), ((System.Byte)(192)), ((System.Byte)(128))); // // barSeries1.Marks // // // barSeries1.Marks.Pen // this.barSeries1.Marks.Pen.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(128)), ((System.Byte)(128)), ((System.Byte)(128))); // // barSeries1.Marks.Symbol // // // barSeries1.Marks.Symbol.Shadow // this.barSeries1.Marks.Symbol.Shadow.Height = 1; this.barSeries1.Marks.Symbol.Shadow.Visible = true; this.barSeries1.Marks.Symbol.Shadow.Width = 1; // // barSeries1.Pen // this.barSeries1.Pen.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(192)), ((System.Byte)(64)), ((System.Byte)(0))); this.barSeries1.Title = "barSeries1"; // // barSeries1.XValues // this.barSeries1.XValues.DataMember = "X"; this.barSeries1.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; // // barSeries1.YValues // this.barSeries1.YValues.DataMember = "Bar"; // // barSeries2 // // // barSeries2.Brush // this.barSeries2.Brush.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(128)), ((System.Byte)(255)), ((System.Byte)(128))); // // barSeries2.Marks // // // barSeries2.Marks.Pen // this.barSeries2.Marks.Pen.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(192)), ((System.Byte)(192)), ((System.Byte)(192))); // // barSeries2.Marks.Symbol // // // barSeries2.Marks.Symbol.Shadow // this.barSeries2.Marks.Symbol.Shadow.Height = 1; this.barSeries2.Marks.Symbol.Shadow.Visible = true; this.barSeries2.Marks.Symbol.Shadow.Width = 1; // // barSeries2.Pen // this.barSeries2.Pen.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(0)), ((System.Byte)(128)), ((System.Byte)(0))); this.barSeries2.Title = "barSeries2"; // // barSeries2.XValues // this.barSeries2.XValues.DataMember = "X"; this.barSeries2.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; // // barSeries2.YValues // this.barSeries2.YValues.DataMember = "Bar"; // // checkBox1 // this.checkBox1.Checked = true; this.checkBox1.CheckState = System.Windows.Forms.CheckState.Checked; this.checkBox1.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.checkBox1.Location = new System.Drawing.Point(13, 7); this.checkBox1.Name = "checkBox1"; this.checkBox1.Size = new System.Drawing.Size(140, 21); this.checkBox1.TabIndex = 0; this.checkBox1.Text = "&Show second legend"; this.checkBox1.CheckedChanged += new System.EventHandler(this.checkBox1_CheckedChanged); // // gridBand1 // this.gridBand1.Axis = this.tChart1.Axes.Left; // // gridBand1.Band1 // this.gridBand1.Band1.Color = System.Drawing.Color.FromArgb(((System.Byte)(127)), ((System.Byte)(224)), ((System.Byte)(224)), ((System.Byte)(224))); // // gridBand1.Band2 // this.gridBand1.Band2.Color = System.Drawing.Color.FromArgb(((System.Byte)(127)), ((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(255))); // // Legend_Multi // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(466, 286); this.Name = "Legend_Multi"; 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.barSeries1 = new Steema.TeeChart.Styles.Bar(); this.gridBand1 = new Steema.TeeChart.Tools.GridBand(); this.panel1.SuspendLayout(); this.SuspendLayout(); // // textBox1 // this.textBox1.Name = "textBox1"; this.textBox1.Size = new System.Drawing.Size(466, 80); this.textBox1.Text = "Bar and Horiz.Bar series can display gradients, with \"middle\" color.\r\n\r\nExample: " + "\r\nbarSeries1.Gradient.MidColor = Color.Yellow ;\r\nbarSeries1.Gradient.StartColor " + "= Color.Gray ;"; // // panel1 // this.panel1.Controls.Add(this.button1); this.panel1.Location = new System.Drawing.Point(0, 80); this.panel1.Name = "panel1"; this.panel1.Size = new System.Drawing.Size(466, 41); // // tChart1 // // // tChart1.Aspect // this.tChart1.Aspect.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.HighQuality; this.tChart1.Aspect.TextRenderingHint = System.Drawing.Text.TextRenderingHint.ClearTypeGridFit; // // tChart1.Header // this.tChart1.Header.Lines = new string[] { "Bar series gradient" }; this.tChart1.Location = new System.Drawing.Point(0, 121); this.tChart1.Name = "tChart1"; // // tChart1.Panel // // // tChart1.Panel.Brush // this.tChart1.Panel.Brush.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(255))); this.tChart1.Series.Add(this.barSeries1); this.tChart1.Size = new System.Drawing.Size(466, 165); this.tChart1.Tools.Add(this.gridBand1); // // tChart1.Walls // // // tChart1.Walls.Bottom // // // tChart1.Walls.Bottom.Pen // this.tChart1.Walls.Bottom.Pen.Visible = false; this.tChart1.Walls.Bottom.Size = 4; // // tChart1.Walls.Left // // // tChart1.Walls.Left.Pen // this.tChart1.Walls.Left.Pen.Visible = false; this.tChart1.Walls.Left.Size = 4; // // button1 // this.button1.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.button1.Location = new System.Drawing.Point(13, 8); this.button1.Name = "button1"; this.button1.Size = new System.Drawing.Size(107, 23); this.button1.TabIndex = 0; this.button1.Text = "&Edit gradient..."; this.button1.Click += new System.EventHandler(this.button1_Click); // // barSeries1 // // // barSeries1.Brush // this.barSeries1.Brush.Color = System.Drawing.Color.Red; // // barSeries1.Gradient // this.barSeries1.Brush.Gradient.EndColor = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(138)), ((System.Byte)(138)), ((System.Byte)(0))); this.barSeries1.Brush.Gradient.MiddleColor = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(236)), ((System.Byte)(236)), ((System.Byte)(0))); this.barSeries1.Brush.Gradient.StartColor = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(192))); this.barSeries1.Brush.Gradient.UseMiddle = true; this.barSeries1.Brush.Gradient.Visible = true; // // barSeries1.Gradient // this.barSeries1.Gradient.EndColor = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(138)), ((System.Byte)(138)), ((System.Byte)(0))); this.barSeries1.Gradient.MiddleColor = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(236)), ((System.Byte)(236)), ((System.Byte)(0))); this.barSeries1.Gradient.StartColor = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(192))); this.barSeries1.Gradient.UseMiddle = true; this.barSeries1.Gradient.Visible = true; // // barSeries1.Marks // // // barSeries1.Marks.Symbol // // // barSeries1.Marks.Symbol.Shadow // this.barSeries1.Marks.Symbol.Shadow.Height = 1; this.barSeries1.Marks.Symbol.Shadow.Visible = true; this.barSeries1.Marks.Symbol.Shadow.Width = 1; // // barSeries1.Pen // this.barSeries1.Pen.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(196)), ((System.Byte)(196)), ((System.Byte)(0))); this.barSeries1.Title = "barSeries1"; // // barSeries1.XValues // this.barSeries1.XValues.DataMember = "X"; this.barSeries1.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; // // barSeries1.YValues // this.barSeries1.YValues.DataMember = "Bar"; // // gridBand1 // this.gridBand1.Axis = this.tChart1.Axes.Left; // // gridBand1.Band1 // this.gridBand1.Band1.Color = System.Drawing.Color.FromArgb(((System.Byte)(127)), ((System.Byte)(192)), ((System.Byte)(192)), ((System.Byte)(192))); // // gridBand1.Band2 // this.gridBand1.Band2.Color = System.Drawing.Color.FromArgb(((System.Byte)(127)), ((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(255))); // // Bar_Gradient // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(466, 286); this.Name = "Bar_Gradient"; this.panel1.ResumeLayout(false); this.ResumeLayout(false); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.checkBox1 = new System.Windows.Forms.CheckBox(); this.bar1 = new Steema.TeeChart.Styles.Bar(); this.panel1.SuspendLayout(); this.SuspendLayout(); // // textBox1 // this.textBox1.BackColor = System.Drawing.Color.AliceBlue; this.textBox1.Name = "textBox1"; this.textBox1.Size = new System.Drawing.Size(388, 63); this.textBox1.Text = "tChart1.Axes.DrawBehind property controls if axes will be displayed in front of S" + "eries. This is useful to display Grid lines over series.\r\n\r\nExample: tChart1.Axe" + "s.DrawBehind = false;"; // // panel1 // this.panel1.BackColor = System.Drawing.SystemColors.Control; 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(388, 27); // // tChart1 // // // tChart1.Aspect // this.tChart1.Aspect.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.HighQuality; this.tChart1.Aspect.TextRenderingHint = System.Drawing.Text.TextRenderingHint.ClearTypeGridFit; this.tChart1.Aspect.View3D = false; // // tChart1.Axes // // // tChart1.Axes.Bottom // // // tChart1.Axes.Bottom.AxisPen // this.tChart1.Axes.Bottom.AxisPen.Visible = false; // // tChart1.Axes.Bottom.Grid // this.tChart1.Axes.Bottom.Grid.Color = System.Drawing.Color.Gray; // // tChart1.Axes.Bottom.MinorTicks // this.tChart1.Axes.Bottom.MinorTicks.Visible = false; // // 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; this.tChart1.Axes.DrawBehind = false; // // tChart1.Axes.Left // // // tChart1.Axes.Left.AxisPen // this.tChart1.Axes.Left.AxisPen.Visible = false; // // tChart1.Axes.Left.Grid // this.tChart1.Axes.Left.Grid.Color = System.Drawing.Color.Gray; // // tChart1.Axes.Left.Labels // // // tChart1.Axes.Left.Labels.Font // // // // tChart1.Axes.Left.MinorTicks // this.tChart1.Axes.Left.MinorTicks.Visible = false; // // tChart1.Axes.Left.Ticks // this.tChart1.Axes.Left.Ticks.Length = 2; // // tChart1.Axes.Right // // // tChart1.Axes.Right.AxisPen // this.tChart1.Axes.Right.AxisPen.Visible = false; // // 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.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.Font // // // tChart1.Header.Font.Brush // this.tChart1.Header.Font.Brush.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(0)), ((System.Byte)(0)), ((System.Byte)(128))); this.tChart1.Header.Font.Name = "Verdana"; // // tChart1.Header.Font.Shadow // // // tChart1.Header.Font.Shadow.Brush // this.tChart1.Header.Font.Shadow.Brush.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(224)), ((System.Byte)(224)), ((System.Byte)(224))); this.tChart1.Header.Font.Shadow.Visible = true; this.tChart1.Header.Lines = new string[] { "Controlling when axes are drawn" }; // // 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.Legend.Transparent = true; this.tChart1.Location = new System.Drawing.Point(0, 90); this.tChart1.Name = "tChart1"; // // tChart1.Panel // // // tChart1.Panel.Brush // // // tChart1.Panel.Gradient // this.tChart1.Panel.Brush.Gradient.EndColor = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(255))); this.tChart1.Panel.Brush.Gradient.MiddleColor = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(192)), ((System.Byte)(192)), ((System.Byte)(255))); this.tChart1.Panel.Brush.Gradient.StartColor = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(192)), ((System.Byte)(192)), ((System.Byte)(255))); this.tChart1.Panel.Brush.Gradient.UseMiddle = true; this.tChart1.Panel.Brush.Gradient.Visible = true; // // tChart1.Panel.Gradient // this.tChart1.Panel.Gradient.EndColor = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(255))); this.tChart1.Panel.Gradient.MiddleColor = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(192)), ((System.Byte)(192)), ((System.Byte)(255))); this.tChart1.Panel.Gradient.StartColor = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(192)), ((System.Byte)(192)), ((System.Byte)(255))); this.tChart1.Panel.Gradient.UseMiddle = true; this.tChart1.Panel.Gradient.Visible = true; // // tChart1.Panel.Shadow // this.tChart1.Panel.Shadow.Height = 0; this.tChart1.Panel.Shadow.Width = 0; this.tChart1.Series.Add(this.bar1); this.tChart1.Size = new System.Drawing.Size(388, 157); // // tChart1.Walls // // // tChart1.Walls.Back // // // tChart1.Walls.Back.Brush // this.tChart1.Walls.Back.Brush.Color = System.Drawing.Color.FromArgb(((System.Byte)(127)), ((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(255))); // // tChart1.Walls.Back.Gradient // this.tChart1.Walls.Back.Brush.Gradient.Transparency = 50; // // tChart1.Walls.Back.Gradient // this.tChart1.Walls.Back.Gradient.Transparency = 50; // // tChart1.Walls.Back.Pen // this.tChart1.Walls.Back.Pen.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(169)), ((System.Byte)(169)), ((System.Byte)(169))); this.tChart1.Walls.Back.Transparent = false; // // tChart1.Walls.Right // // // tChart1.Walls.Right.Brush // this.tChart1.Walls.Right.Brush.Color = System.Drawing.Color.Silver; // // checkBox1 // this.checkBox1.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.checkBox1.Location = new System.Drawing.Point(13, 7); this.checkBox1.Name = "checkBox1"; this.checkBox1.Size = new System.Drawing.Size(123, 18); this.checkBox1.TabIndex = 0; this.checkBox1.Text = "Axes &Behind"; this.checkBox1.CheckedChanged += new System.EventHandler(this.checkBox1_CheckedChanged); // // bar1 // // // bar1.Brush // this.bar1.Brush.Color = System.Drawing.Color.FromArgb(((System.Byte)(102)), ((System.Byte)(153)), ((System.Byte)(255))); // // bar1.Marks // this.bar1.Marks.Visible = false; // // bar1.Pen // this.bar1.Pen.Color = System.Drawing.Color.FromArgb(((System.Byte)(61)), ((System.Byte)(92)), ((System.Byte)(153))); this.bar1.Title = "bar1"; // // bar1.XValues // this.bar1.XValues.DataMember = "X"; this.bar1.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; // // bar1.YValues // this.bar1.YValues.DataMember = "Bar"; // // Axis_Behind // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(388, 247); this.Name = "Axis_Behind"; this.panel1.ResumeLayout(false); this.ResumeLayout(false); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.label1 = new System.Windows.Forms.Label(); this.barSeries1 = new Steema.TeeChart.Styles.Bar(); this.line1 = new Steema.TeeChart.Styles.Line(); this.gridBand1 = new Steema.TeeChart.Tools.GridBand(); this.panel1.SuspendLayout(); this.SuspendLayout(); // // textBox1 // this.textBox1.Name = "textBox1"; this.textBox1.Size = new System.Drawing.Size(466, 64); this.textBox1.TabIndex = 0; this.textBox1.Text = "All Series styles now provide OnMouseEnter and OnMouseLeave events.\r\nThese events" + " are triggered when the mouse enters and exits a series point.\r\n\r\nMove the mouse" + " over points to test..."; // // panel1 // this.panel1.Controls.Add(this.label1); this.panel1.Location = new System.Drawing.Point(0, 64); this.panel1.Name = "panel1"; this.panel1.Size = new System.Drawing.Size(466, 40); this.panel1.TabIndex = 1; // // tChart1 // // // tChart1.Aspect // this.tChart1.Aspect.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.HighQuality; this.tChart1.Aspect.TextRenderingHint = System.Drawing.Text.TextRenderingHint.ClearTypeGridFit; this.tChart1.Aspect.View3D = false; // // tChart1.Header // this.tChart1.Header.Lines = new string[] { "Bar Series example" }; this.tChart1.Header.Visible = false; this.tChart1.Location = new System.Drawing.Point(0, 104); this.tChart1.Name = "tChart1"; // // tChart1.Panel // // // tChart1.Panel.Brush // this.tChart1.Panel.Brush.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(255))); this.tChart1.Series.Add(this.barSeries1); this.tChart1.Series.Add(this.line1); this.tChart1.Size = new System.Drawing.Size(466, 182); this.tChart1.TabIndex = 2; this.tChart1.Tools.Add(this.gridBand1); // // label1 // this.label1.AutoSize = true; this.label1.Location = new System.Drawing.Point(7, 10); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(8, 16); this.label1.TabIndex = 0; this.label1.Text = "-"; this.label1.TextAlign = System.Drawing.ContentAlignment.TopRight; // // barSeries1 // // // barSeries1.Brush // this.barSeries1.Brush.Color = System.Drawing.Color.Red; // // barSeries1.Marks // // // barSeries1.Marks.Symbol // // // barSeries1.Marks.Symbol.Shadow // this.barSeries1.Marks.Symbol.Shadow.Height = 1; this.barSeries1.Marks.Symbol.Shadow.Visible = true; this.barSeries1.Marks.Symbol.Shadow.Width = 1; this.barSeries1.Title = "bar1"; // // barSeries1.XValues // this.barSeries1.XValues.DataMember = "X"; this.barSeries1.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; // // barSeries1.YValues // this.barSeries1.YValues.DataMember = "Bar"; this.barSeries1.MouseLeave += new System.EventHandler(this.barSeries1_MouseLeave); this.barSeries1.MouseEnter += new System.EventHandler(this.barSeries1_MouseEnter); // // line1 // // // line1.Brush // this.line1.Brush.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(0)), ((System.Byte)(0)), ((System.Byte)(255))); // // line1.LinePen // this.line1.LinePen.Width = 3; // // line1.Marks // // // line1.Marks.Symbol // // // line1.Marks.Symbol.Shadow // this.line1.Marks.Symbol.Shadow.Height = 1; this.line1.Marks.Symbol.Shadow.Visible = true; this.line1.Marks.Symbol.Shadow.Width = 1; // // line1.Pointer // // // line1.Pointer.Brush // this.line1.Pointer.Brush.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(0)), ((System.Byte)(128)), ((System.Byte)(0))); this.line1.Pointer.HorizSize = 3; // // line1.Pointer.Pen // this.line1.Pointer.Pen.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(128)), ((System.Byte)(255)), ((System.Byte)(128))); this.line1.Pointer.Pen.Width = 2; this.line1.Pointer.Style = Steema.TeeChart.Styles.PointerStyles.Rectangle; this.line1.Pointer.VertSize = 3; this.line1.Pointer.Visible = true; this.line1.Title = "line1"; // // line1.XValues // this.line1.XValues.DataMember = "X"; this.line1.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; // // line1.YValues // this.line1.YValues.DataMember = "Y"; this.line1.MouseLeave += new System.EventHandler(this.barSeries1_MouseLeave); this.line1.MouseEnter += new System.EventHandler(this.barSeries1_MouseEnter); // // gridBand1 // this.gridBand1.Axis = this.tChart1.Axes.Left; // // gridBand1.Band1 // this.gridBand1.Band1.Color = System.Drawing.Color.FromArgb(((System.Byte)(127)), ((System.Byte)(224)), ((System.Byte)(224)), ((System.Byte)(224))); // // gridBand1.Band2 // this.gridBand1.Band2.Color = System.Drawing.Color.FromArgb(((System.Byte)(127)), ((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(255))); // // SeriesMouseEnter // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(466, 286); this.Name = "SeriesMouseEnter"; this.panel1.ResumeLayout(false); this.ResumeLayout(false); }
public Page1() { // NavigationPage.SetHasNavigationBar(this, false); dashBoard0 = new Chart(); dashBoard0.Aspect.View3D = false; Steema.TeeChart.Styles.Bar bar1 = new Steema.TeeChart.Styles.Bar(); Steema.TeeChart.Styles.Line line1 = new Steema.TeeChart.Styles.Line(); dashBoard0.Series.Add(bar1); dashBoard0.Series.Add(line1); //barline chart bar1.Clear(); bar1.Add(20); bar1.Add(50); bar1.Add(10); bar1.Add(70); bar1.Add(46); bar1.Pen.Visible = false; bar1.BarStyle = Steema.TeeChart.Styles.BarStyles.RectGradient; bar1.Marks.Visible = false; bar1.Gradient.StartColor = Color.White; bar1.Gradient.EndColor = Color.FromRgb(102, 205, 170); bar1.Marks.Visible = true; bar1.Marks.Shadow.Visible = false; bar1.Marks.Color = Color.White; bar1.Marks.Font.Size = 10; bar1.Marks.Font.Color = Color.FromRgb(102, 205, 170); bar1.Marks.Pen.Visible = false; bar1.Marks.ArrowLength = 5; bar1.Color = Color.White; line1.Clear(); line1.Add(0, 45); line1.Add(0.444444444444444, 55); line1.Add(0.888888888888889, 75); line1.Add(1.33333333333333, 65); line1.Add(1.77777777777778, 45); line1.Add(2.22222222222222, 80); line1.Add(2.66666666666667, 85); line1.Add(3.11111111111111, 98); line1.Add(3.55555555555556, 75); line1.Add(4, 68); line1.Color = Color.FromRgb(255, 255, 240); line1.LinePen.Width = 3; line1.Smoothed = true; dashBoard0.Panel.Color = Color.FromRgb(102, 205, 170); dashBoard0.Panel.Gradient.Visible = false; dashBoard0.Walls.Back.Visible = false; dashBoard0.Title.Text = "Bars and Lines"; dashBoard0.Title.Alignment = TextAlignment.Start; dashBoard0.Title.Font.Size = 12; dashBoard0.Title.Font.Color = Color.White; //dashBoard0.Title.Font.Name = ""; dashBoard0.Axes.Left.AxisPen.Visible = false; dashBoard0.Axes.Bottom.AxisPen.Color = Color.White; dashBoard0.Legend.Visible = false; dashBoard0.Axes.Left.Grid.Color = Color.White; dashBoard0.Axes.Left.Grid.Style = Steema.TeeChart.Drawing.DashStyle.Dot; dashBoard0.Axes.Left.Labels.Font.Color = Color.White; dashBoard0.Axes.Bottom.Labels.Font.Color = Color.White; dashBoard0.Axes.Left.Increment = 25; DashView0 = new ChartView { VerticalOptions = LayoutOptions.FillAndExpand, HorizontalOptions = LayoutOptions.FillAndExpand, }; DashView0.Model = dashBoard0; Content = new StackLayout { Children = { DashView0 } }; }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.comboBox1 = new System.Windows.Forms.ComboBox(); this.label2 = new System.Windows.Forms.Label(); this.bar1 = new Steema.TeeChart.Styles.Bar(); this.button1 = new System.Windows.Forms.Button(); this.checkBox1 = new System.Windows.Forms.CheckBox(); this.panel1.SuspendLayout(); this.SuspendLayout(); // // textBox1 // this.textBox1.Name = "textBox1"; this.textBox1.Size = new System.Drawing.Size(466, 64); this.textBox1.TabIndex = 0; this.textBox1.Text = "Series Marks new CallOut property, to change the appearance of lines connecting m" + "arks to series points.\r\n\r\nNew styles: Callout, rectangle, ellipse... and new pro" + "perties: size, brush, distance."; // // panel1 // this.panel1.Controls.Add(this.checkBox1); this.panel1.Controls.Add(this.button1); this.panel1.Controls.Add(this.label2); this.panel1.Controls.Add(this.comboBox1); this.panel1.Location = new System.Drawing.Point(0, 64); this.panel1.Name = "panel1"; this.panel1.Size = new System.Drawing.Size(466, 40); this.panel1.TabIndex = 1; // // tChart1 // // // tChart1.Aspect // this.tChart1.Aspect.Chart3DPercent = 25; 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.FromArgb(((System.Byte)(254)), ((System.Byte)(192)), ((System.Byte)(192)), ((System.Byte)(192))); this.tChart1.Axes.Bottom.Grid.Style = System.Drawing.Drawing2D.DashStyle.Dash; // // tChart1.Axes.Left // // // tChart1.Axes.Left.Grid // this.tChart1.Axes.Left.Grid.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(192)), ((System.Byte)(192)), ((System.Byte)(192))); this.tChart1.Axes.Left.Grid.Style = System.Drawing.Drawing2D.DashStyle.Dash; this.tChart1.BackColor = System.Drawing.Color.Transparent; this.tChart1.Cursor = System.Windows.Forms.Cursors.Default; // // tChart1.Header // this.tChart1.Header.AdjustFrame = false; // // tChart1.Header.Brush // this.tChart1.Header.Brush.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(255))); // // 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.Size = 9; this.tChart1.Header.Lines = new string[] { "Series Marks Callout" }; // // tChart1.Header.Shadow // // // tChart1.Header.Shadow.Brush // this.tChart1.Header.Shadow.Brush.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(0)), ((System.Byte)(0)), ((System.Byte)(0))); this.tChart1.Header.Shadow.Height = 1; this.tChart1.Header.Shadow.Width = 1; // // tChart1.Legend // // // tChart1.Legend.Symbol // this.tChart1.Legend.Symbol.DefaultPen = false; this.tChart1.Legend.Visible = false; this.tChart1.Location = new System.Drawing.Point(0, 104); this.tChart1.Name = "tChart1"; // // tChart1.Panel // // // tChart1.Panel.Brush // this.tChart1.Panel.Brush.Color = System.Drawing.Color.FromArgb(((System.Byte)(224)), ((System.Byte)(223)), ((System.Byte)(227))); // // tChart1.Panel.Gradient // this.tChart1.Panel.Brush.Gradient.EndColor = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(255))); this.tChart1.Panel.Brush.Gradient.StartColor = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(244)), ((System.Byte)(244)), ((System.Byte)(255))); this.tChart1.Panel.Brush.Gradient.Visible = true; // // tChart1.Panel.Gradient // this.tChart1.Panel.Gradient.EndColor = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(255))); this.tChart1.Panel.Gradient.StartColor = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(244)), ((System.Byte)(244)), ((System.Byte)(255))); this.tChart1.Panel.Gradient.Visible = true; this.tChart1.Series.Add(this.bar1); this.tChart1.Size = new System.Drawing.Size(466, 182); this.tChart1.TabIndex = 2; // // tChart1.Walls // // // tChart1.Walls.Bottom // // // tChart1.Walls.Bottom.Pen // this.tChart1.Walls.Bottom.Pen.Visible = false; this.tChart1.Walls.Bottom.Size = 5; // // tChart1.Walls.Left // // // tChart1.Walls.Left.Pen // this.tChart1.Walls.Left.Pen.Visible = false; this.tChart1.Walls.Left.Size = 5; // // comboBox1 // this.comboBox1.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.comboBox1.Items.AddRange(new object[] { "Square", "Circle", "Triangle", "Down Triangle", "Cross", "Diagonal Cross", "Star", "Diamond", "Small Dot", "Nothing", "Left Triangle", "Right Triangle" }); this.comboBox1.Location = new System.Drawing.Point(64, 8); this.comboBox1.Name = "comboBox1"; this.comboBox1.Size = new System.Drawing.Size(121, 21); this.comboBox1.TabIndex = 1; this.comboBox1.SelectedIndexChanged += new System.EventHandler(this.comboBox1_SelectedIndexChanged); // // label2 // this.label2.AutoSize = true; this.label2.Location = new System.Drawing.Point(24, 11); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(33, 16); this.label2.TabIndex = 2; this.label2.Text = "&Style:"; // // bar1 // this.bar1.BarStyle = Steema.TeeChart.Styles.BarStyles.Cylinder; // // bar1.Brush // this.bar1.Brush.Color = System.Drawing.Color.FromArgb(((System.Byte)(178)), ((System.Byte)(255)), ((System.Byte)(0)), ((System.Byte)(0))); // // bar1.Marks // // // bar1.Marks.Symbol // // // bar1.Marks.Symbol.Shadow // this.bar1.Marks.Symbol.Shadow.Height = 1; this.bar1.Marks.Symbol.Shadow.Visible = true; this.bar1.Marks.Symbol.Shadow.Width = 1; // // bar1.Pen // this.bar1.Pen.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(128)), ((System.Byte)(0)), ((System.Byte)(0))); this.bar1.Title = "bar1"; // // bar1.XValues // this.bar1.XValues.DataMember = "X"; this.bar1.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; // // bar1.YValues // this.bar1.YValues.DataMember = "Bar"; // // button1 // this.button1.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.button1.Location = new System.Drawing.Point(200, 7); this.button1.Name = "button1"; this.button1.Size = new System.Drawing.Size(80, 24); this.button1.TabIndex = 3; this.button1.Text = "&Edit..."; this.button1.Click += new System.EventHandler(this.button1_Click); // // checkBox1 // this.checkBox1.Location = new System.Drawing.Point(296, 11); this.checkBox1.Name = "checkBox1"; this.checkBox1.Size = new System.Drawing.Size(64, 16); this.checkBox1.TabIndex = 4; this.checkBox1.Text = "&Visible"; this.checkBox1.CheckedChanged += new System.EventHandler(this.checkBox1_CheckedChanged); // // MarksCallout // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(466, 286); this.Name = "MarksCallout"; this.panel1.ResumeLayout(false); this.ResumeLayout(false); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.checkBox1 = new System.Windows.Forms.CheckBox(); this.barSeries1 = new Steema.TeeChart.Styles.Bar(); this.label1 = new System.Windows.Forms.Label(); this.panel2 = new System.Windows.Forms.Panel(); this.label2 = new System.Windows.Forms.Label(); this.numericUpDown1 = new System.Windows.Forms.NumericUpDown(); this.panel1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.numericUpDown1)).BeginInit(); this.SuspendLayout(); // // textBox1 // this.textBox1.Name = "textBox1"; this.textBox1.Size = new System.Drawing.Size(466, 80); this.textBox1.Text = @"By default Series Marks have a shadowed border. It can be turned on / off at design and run-time, and changed its color and transparency too. Example: barSeries1.Marks.Shadow.Visible = true; barSeries1.Marks.Shadow.Width = 2 ; barSeries1.Marks.Shadow.Color= Color.Black;"; // // panel1 // this.panel1.Controls.Add(this.numericUpDown1); this.panel1.Controls.Add(this.label2); this.panel1.Controls.Add(this.label1); this.panel1.Controls.Add(this.checkBox1); this.panel1.Controls.Add(this.panel2); this.panel1.Location = new System.Drawing.Point(0, 80); this.panel1.Name = "panel1"; this.panel1.Size = new System.Drawing.Size(466, 41); // // tChart1 // // // tChart1.Aspect // this.tChart1.Aspect.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.HighQuality; this.tChart1.Aspect.TextRenderingHint = System.Drawing.Text.TextRenderingHint.ClearTypeGridFit; // // tChart1.Header // this.tChart1.Header.Lines = new string[] { "Example : Mark shadow" }; this.tChart1.Location = new System.Drawing.Point(0, 121); this.tChart1.Name = "tChart1"; // // tChart1.Panel // // // tChart1.Panel.Brush // this.tChart1.Panel.Brush.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(255))); this.tChart1.Series.Add(this.barSeries1); this.tChart1.Size = new System.Drawing.Size(466, 165); // // tChart1.Walls // // // tChart1.Walls.Bottom // // // tChart1.Walls.Bottom.Pen // this.tChart1.Walls.Bottom.Pen.Visible = false; this.tChart1.Walls.Bottom.Size = 5; // // tChart1.Walls.Left // // // tChart1.Walls.Left.Pen // this.tChart1.Walls.Left.Pen.Visible = false; this.tChart1.Walls.Left.Size = 5; // // checkBox1 // this.checkBox1.Checked = true; this.checkBox1.CheckState = System.Windows.Forms.CheckState.Checked; this.checkBox1.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.checkBox1.Location = new System.Drawing.Point(13, 10); this.checkBox1.Name = "checkBox1"; this.checkBox1.Size = new System.Drawing.Size(123, 21); this.checkBox1.TabIndex = 0; this.checkBox1.Tag = ""; this.checkBox1.Text = "&Marks Shadow"; this.checkBox1.CheckedChanged += new System.EventHandler(this.checkBox1_CheckedChanged); // // barSeries1 // // // barSeries1.Brush // this.barSeries1.Brush.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(0)), ((System.Byte)(128)), ((System.Byte)(0))); // // barSeries1.Gradient // this.barSeries1.Brush.Gradient.EndColor = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(128))); this.barSeries1.Brush.Gradient.MiddleColor = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(0)), ((System.Byte)(192)), ((System.Byte)(0))); this.barSeries1.Brush.Gradient.StartColor = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(0)), ((System.Byte)(128)), ((System.Byte)(0))); this.barSeries1.Brush.Gradient.UseMiddle = true; this.barSeries1.Brush.Gradient.Visible = true; // // barSeries1.Gradient // this.barSeries1.Gradient.EndColor = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(128))); this.barSeries1.Gradient.MiddleColor = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(0)), ((System.Byte)(192)), ((System.Byte)(0))); this.barSeries1.Gradient.StartColor = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(0)), ((System.Byte)(128)), ((System.Byte)(0))); this.barSeries1.Gradient.UseMiddle = true; this.barSeries1.Gradient.Visible = true; // // barSeries1.Marks // // // barSeries1.Marks.Shadow // this.barSeries1.Marks.Shadow.Height = 3; this.barSeries1.Marks.Shadow.Width = 3; // // barSeries1.Marks.Symbol // // // barSeries1.Marks.Symbol.Shadow // this.barSeries1.Marks.Symbol.Shadow.Height = 1; this.barSeries1.Marks.Symbol.Shadow.Visible = true; this.barSeries1.Marks.Symbol.Shadow.Width = 1; // // barSeries1.Pen // this.barSeries1.Pen.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(0)), ((System.Byte)(77)), ((System.Byte)(0))); this.barSeries1.Title = "barSeries1"; // // barSeries1.XValues // this.barSeries1.XValues.DataMember = "X"; this.barSeries1.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; // // barSeries1.YValues // this.barSeries1.YValues.DataMember = "Bar"; // // label1 // this.label1.AutoSize = true; this.label1.Location = new System.Drawing.Point(133, 12); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(31, 16); this.label1.TabIndex = 1; this.label1.Text = "Color"; this.label1.UseMnemonic = false; // // panel2 // this.panel2.BackColor = System.Drawing.Color.DarkGray; this.panel2.Cursor = System.Windows.Forms.Cursors.Hand; this.panel2.Location = new System.Drawing.Point(173, 9); this.panel2.Name = "panel2"; this.panel2.Size = new System.Drawing.Size(23, 23); this.panel2.TabIndex = 2; this.panel2.MouseUp += new System.Windows.Forms.MouseEventHandler(this.panel2_MouseUp); // // label2 // this.label2.AutoSize = true; this.label2.Location = new System.Drawing.Point(231, 12); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(29, 16); this.label2.TabIndex = 3; this.label2.Text = "&Size:"; this.label2.TextAlign = System.Drawing.ContentAlignment.TopRight; // // numericUpDown1 // this.numericUpDown1.Location = new System.Drawing.Point(267, 10); this.numericUpDown1.Maximum = new System.Decimal(new int[] { 20, 0, 0, 0 }); this.numericUpDown1.Minimum = new System.Decimal(new int[] { 1, 0, 0, 0 }); this.numericUpDown1.Name = "numericUpDown1"; this.numericUpDown1.Size = new System.Drawing.Size(40, 20); this.numericUpDown1.TabIndex = 4; this.numericUpDown1.TextAlign = System.Windows.Forms.HorizontalAlignment.Right; this.numericUpDown1.Value = new System.Decimal(new int[] { 3, 0, 0, 0 }); this.numericUpDown1.TextChanged += new System.EventHandler(this.numericUpDown1_TextChanged); this.numericUpDown1.ValueChanged += new System.EventHandler(this.numericUpDown1_ValueChanged); // // Shadow // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(466, 286); this.Name = "Shadow"; this.panel1.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.numericUpDown1)).EndInit(); this.ResumeLayout(false); }