private void SetupAnnotations() { int tmp = area1.CalcXPos(area1.Count - 2) + ((area1.CalcXPos(area1.Count - 1) - area1.CalcXPos(area1.Count - 2)) / 2); Rectangle chartRect = tChart1.Chart.ChartRect; if (annotation1 == null) { annotation1 = new Steema.TeeChart.Tools.Annotation(tChart1.Chart); } annotation1.Text = "Total = " + area1.MaxXValue().ToString() + " consoles sold"; annotation1.Shape.Font.Bold = true; annotation1.Shape.Transparent = true; annotation1.Shape.CustomPosition = true; annotation1.Shape.Left = tmp - 80; annotation1.Shape.Top = chartRect.Top + 20; if (annotation2 == null) { annotation2 = new Steema.TeeChart.Tools.Annotation(tChart1.Chart); } annotation2.Text = "Average price " + average.MaxYValue().ToString() + " €"; annotation2.Shape.Font.Bold = true; annotation2.Shape.Font.Color = Color.Red; annotation2.Shape.Transparent = true; annotation2.Shape.CustomPosition = true; annotation2.Shape.Left = tmp; annotation2.Shape.Top = average.CalcYPos(0) - 15; }
public CustomPolar_GetPointerStyle() { InitializeComponent(); polar1.FillSampleValues(); anno1 = new Steema.TeeChart.Tools.Annotation(tChart1.Chart); anno1.Shape.CustomPosition = true; anno1.Active = false; }
public TimeSeriesHydrographEditor(TimeInterval db) { InitializeComponent(); #if SpreadsheetGear var uc = new TimeSeriesSpreadsheetSG(); #else var uc = new TimeSeriesSpreadsheet(); #endif uc.Parent = this.panelGraphTable; uc.Dock = DockStyle.Fill; uc.BringToFront(); timeSeriesSpreadsheet1 = uc; m_db = db; //SetupTimeSelector(db); this.checkBoxShowPoints.Checked = UserPreference.Lookup("ShowPoints") == "True"; annotation1 = new Steema.TeeChart.Tools.Annotation(tChart1.Chart); originalDataXmlFilename = Path.Combine(FileUtility.GetTempPath(), db.ToString() + DateTime.Now.Ticks + "_download.xml"); checkBoxShowBadData.Visible = false; Logger.WriteLine(m_db.ToString(), "ui"); if (m_db == TimeInterval.Daily) { BackColor = Color.Lavender; } dragPoint1 = new Steema.TeeChart.Tools.DragPoint(); this.dragPoint1.Style = Steema.TeeChart.Tools.DragPointStyles.Y; this.tChart1.Tools.Add(this.dragPoint1); this.dragPoint1.Drag += new Steema.TeeChart.Tools.DragPointEventHandler(this.dragPoint1_Drag); tChart1.MouseMove += new MouseEventHandler(tChart1_MouseMove); var nearest = new Steema.TeeChart.Tools.NearestPoint(tChart1.Chart); LoadSiteList(); this.comboBoxInputs.Text = UserPreference.Lookup("Inputs" + m_db.ToString()); this.dragPoint1.Active = false; this.dragPoint1.Series = null; // HydrometEdits.Progress += new ProgressEventHandler(HydrometEdits_Progress); timeSeriesSpreadsheet1.UpdateCompleted += new EventHandler <EventArgs>(timeSeriesSpreadsheet1_UpdateCompleted); }
public TimeSeriesTeeChartGraph() { InitializeComponent(); seriesList = new SeriesList(); analysisType = AnalysisType.TimeSeries; _missingDataValue = Point.MissingValueFlag; dragPoint1 = new Steema.TeeChart.Tools.DragPoint(); this.dragPoint1.Style = Steema.TeeChart.Tools.DragPointStyles.Y; this.tChart1.Tools.Add(this.dragPoint1); this.dragPoint1.Drag += new Steema.TeeChart.Tools.DragPointEventHandler(dragPoint1_Drag); annotation1 = new Steema.TeeChart.Tools.Annotation(tChart1.Chart); annotation1.Active = false; }
public TimeSeriesTeeChartGraph() { InitializeComponent(); seriesList = new SeriesList(); analysisType = AnalysisType.TimeSeries; _missingDataValue = Point.MissingValueFlag; dragPoint1 = new Steema.TeeChart.Tools.DragPoint(); this.dragPoint1.Style = Steema.TeeChart.Tools.DragPointStyles.Y; this.tChart1.Tools.Add(this.dragPoint1); this.dragPoint1.Drag += new Steema.TeeChart.Tools.DragPointEventHandler(dragPoint1_Drag); annotation1 = new Steema.TeeChart.Tools.Annotation(tChart1.Chart); annotation1.Position = Steema.TeeChart.Tools.AnnotationPositions.LeftTop; annotation1.Shape.Shadow.Visible = false; annotation1.Shape.Pen.Visible = false; //annotation1. .forma.Callout = Steema.TeeChart.Tools.AnnotationCallout. annotation1.Active = true; this.toolStripComboBoxZoomType.SelectedIndex = 0; }
public ScrollerChart() { this.tChart1 = new Steema.TeeChart.Chart(); this.line1 = new Steema.TeeChart.Styles.Line(); this.annotation1 = new Steema.TeeChart.Tools.Annotation(); this.annotation2 = new Steema.TeeChart.Tools.Annotation(); //this.marksTip1 = new Steema.TeeChart.Tools.MarksTip(); //this.scrollPager1 = new Steema.TeeChart.Tools.ScrollPager(); // tChart1 this.tChart1.Aspect.ColorPaletteIndex = 21; this.tChart1.Aspect.View3D = false; this.tChart1.Axes.Bottom.Automatic = false; this.tChart1.Axes.Bottom.AutomaticMaximum = false; this.tChart1.Axes.Bottom.AutomaticMinimum = false; this.tChart1.Axes.Bottom.AxisPen.Color = Color.Gray; this.tChart1.Axes.Bottom.AxisPen.Width = 1; this.tChart1.Axes.Bottom.Grid.Visible = false; this.tChart1.Axes.Bottom.Labels.DateTimeFormat = "HH:mm"; this.tChart1.Axes.Bottom.Maximum = 0D; this.tChart1.Axes.Bottom.Minimum = 0D; this.tChart1.Axes.Bottom.MinorTicks.Visible = false; this.tChart1.Axes.Bottom.Title.Caption = "Bottom Axis"; this.tChart1.Axes.Bottom.Title.Lines = new string[] { "Bottom Axis" }; this.tChart1.Axes.Bottom.Title.Visible = false; this.tChart1.Axes.Left.Automatic = false; this.tChart1.Axes.Left.AutomaticMaximum = false; this.tChart1.Axes.Left.AutomaticMinimum = false; this.tChart1.Axes.Left.AxisPen.Color = Color.Gray; this.tChart1.Axes.Left.AxisPen.Width = 1; this.tChart1.Axes.Left.Labels.Separation = 100; this.tChart1.Axes.Left.Maximum = 1.41D; this.tChart1.Axes.Left.Minimum = 1.2D; this.tChart1.Axes.Left.MinorTicks.Visible = false; this.tChart1.Axes.Left.Title.Caption = "$ 000s"; this.tChart1.Axes.Left.Title.Lines = new string[] { "$ 000s" }; this.tChart1.Axes.Left.Title.Visible = false; this.tChart1.Footer.Font.Brush.Color = Color.Blue; this.tChart1.Header.Font.Brush.Color = Color.Gray; this.tChart1.Header.Font.Size = 16; this.tChart1.Header.Lines = new string[] { "Sales figures" }; this.tChart1.Header.Visible = false; this.tChart1.Legend.Visible = false; this.tChart1.Panel.Brush.Color = Color.White; this.tChart1.Panel.Brush.Gradient.EndColor = Color.White; this.tChart1.Panel.Brush.Gradient.Visible = false; this.tChart1.Panel.MarginTop = 12D; this.tChart1.Panning.Allow = Steema.TeeChart.ScrollModes.Horizontal; this.tChart1.Series.Add(this.line1); this.tChart1.Tools.Add(this.annotation1); this.tChart1.Tools.Add(this.annotation2); //this.tChart1.Tools.Add(this.marksTip1); //this.tChart1.Tools.Add(this.scrollPager1); this.tChart1.Walls.Back.Brush.Gradient.EndColor = Color.White; this.tChart1.Walls.Back.Visible = false; this.tChart1.Zoom.Direction = Steema.TeeChart.ZoomDirections.None; this.tChart1.AfterDraw += tChart1_AfterDraw; // line1 this.line1.Brush.Color = Color.FromRgb(((int)(((byte)(220)))), ((int)(((byte)(92)))), ((int)(((byte)(5))))); this.line1.Color = Color.FromRgb(((int)(((byte)(220)))), ((int)(((byte)(92)))), ((int)(((byte)(5))))); this.line1.ColorEach = false; this.line1.LinePen.Color = Color.FromRgb(((int)(((byte)(132)))), ((int)(((byte)(55)))), ((int)(((byte)(3))))); this.line1.LinePen.Width = 2; this.line1.Pointer.SizeDouble = 0D; this.line1.Pointer.SizeUnits = Steema.TeeChart.Styles.PointerSizeUnits.Pixels; this.line1.Title = "USD to Euro"; this.line1.XValues.DateTime = true; this.line1.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; // annotation1 this.annotation1.AutoSize = true; this.annotation1.Callout.ArrowHead = Steema.TeeChart.Styles.ArrowHeadStyles.None; this.annotation1.Callout.ArrowHeadDirection = Steema.TeeChart.Styles.ArrowHeadDirection.FromPoint; this.annotation1.Callout.ArrowHeadSize = 8; this.annotation1.Callout.Brush.Color = Color.Black; this.annotation1.Callout.Distance = 0; this.annotation1.Callout.Draw3D = false; this.annotation1.Callout.SizeDouble = 0D; this.annotation1.Callout.SizeUnits = Steema.TeeChart.Styles.PointerSizeUnits.Pixels; this.annotation1.Callout.XPosition = 0; this.annotation1.Callout.YPosition = 0; this.annotation1.Callout.ZPosition = 0; this.annotation1.Left = 61; this.annotation1.Shape.Bottom = 45; this.annotation1.Shape.CustomPosition = true; this.annotation1.Shape.Font.Size = 18; this.annotation1.Shape.Left = 61; this.annotation1.Shape.Right = 408; this.annotation1.Shape.Top = 8; this.annotation1.Shape.Transparent = true; this.annotation1.Text = "US Dollar against the Euro"; this.annotation1.Top = 8; // annotation2 this.annotation2.AutoSize = true; this.annotation2.Callout.ArrowHead = Steema.TeeChart.Styles.ArrowHeadStyles.None; this.annotation2.Callout.ArrowHeadDirection = Steema.TeeChart.Styles.ArrowHeadDirection.FromPoint; this.annotation2.Callout.ArrowHeadSize = 8; this.annotation2.Callout.Brush.Color = Color.Black; this.annotation2.Callout.Distance = 0; this.annotation2.Callout.Draw3D = false; this.annotation2.Callout.SizeDouble = 0D; this.annotation2.Callout.SizeUnits = Steema.TeeChart.Styles.PointerSizeUnits.Pixels; this.annotation2.Callout.XPosition = 0; this.annotation2.Callout.YPosition = 0; this.annotation2.Callout.ZPosition = 0; this.annotation2.Left = 56; this.annotation2.Shape.Bottom = 62; this.annotation2.Shape.CustomPosition = true; this.annotation2.Shape.Left = 56; this.annotation2.Shape.Right = 308; this.annotation2.Shape.Top = 43; this.annotation2.Shape.Transparent = true; this.annotation2.Shape.Font.Color = Color.FromRgb(0, 51, 102); this.annotation2.Text = " 2012 - 2013 Source: Steema Software SL"; this.annotation2.Top = 43; // scrollPager1 //this.scrollPager1.DivisionRatio = 8D; //this.SizeChanged += new System.EventHandler(this.Tools_ScrollPager_SizeChanged); tChart1.Panel.Gradient.Visible = false; tChart1.Panel.MarginTop = 12; double[] vals = { 1.234, 1.233, 1.235, 1.241, 1.241, 1.244, 1.239, 1.220, 1.222, 1.224, 1.228, 1.242, 1.241, 1.239, 1.244, 1.238, 1.233, 1.250, 1.253, 1.250, 1.249, 1.240, 1.241, 1.248, 1.240, 1.247, 1.246, 1.247, 1.257, 1.268, 1.265, 1.263, 1.262, 1.268, 1.267, 1.264, 1.271, 1.274, 1.265, 1.275, 1.279, 1.285, 1.292, 1.301, 1.304, 1.317, 1.325, 1.323, 1.321, 1.309, 1.312, 1.308, 1.303, 1.300, 1.301, 1.306, 1.298, 1.302, 1.301, 1.306, 1.314, 1.312, 1.308, 1.300, 1.300, 1.305, 1.312, 1.330, 1.321, 1.319, 1.317, 1.316, 1.312, 1.313, 1.307, 1.306, 1.309, 1.302, 1.297, 1.290, 1.300, 1.290, 1.289, 1.284, 1.282, 1.286, 1.288, 1.289, 1.290, 1.292, 1.290, 1.297, 1.304, 1.310, 1.311, 1.306, 1.308, 1.315, 1.316, 1.321, 1.325, 1.306, 1.302, 1.308, 1.314, 1.323, 1.324, 1.330, 1.330, 1.338, 1.335, 1.334, 1.335, 1.341, 1.338, 1.333, 1.342, 1.328, 1.316, 1.316, 1.324, 1.321, 1.320, 1.340, 1.351, 1.348, 1.342, 1.342, 1.352, 1.345, 1.350, 1.345, 1.347, 1.355, 1.358, 1.357, 1.365, 1.369, 1.376, 1.377, 1.362, 1.367, 1.366, 1.354, 1.350, 1.351, 1.360, 1.353, 1.351, 1.348, 1.348, 1.356, 1.341, 1.337, 1.335, 1.318, 1.322, 1.328, 1.322, 1.314, 1.317, 1.319, 1.313, 1.322, 1.314, 1.315, 1.319, 1.310, 1.317, 1.304, 1.308, 1.303, 1.307, 1.304, 1.320, 1.303, 1.295, 1.293, 1.298, 1.293, 1.296, 1.305, 1.311, 1.316, 1.321, 1.320, 1.323, 1.321, 1.318, 1.331, 1.319, 1.321, 1.319, 1.318, 1.314, 1.317, 1.316, 1.320, 1.320, 1.329, 1.323, 1.324, 1.321, 1.325, 1.329, 1.317, 1.312, 1.314, 1.303, 1.300, 1.300, 1.298, 1.302, 1.304, 1.297, 1.307, 1.307, 1.305, 1.299, 1.309, 1.318, 1.316, 1.319, 1.323, 1.323, 1.338, 1.334, 1.341, 1.344, 1.351, 1.347, 1.347, 1.347, 1.353, 1.337, 1.338, 1.327, 1.321, 1.315, 1.319, 1.319, 1.319, 1.310, 1.313, 1.303, 1.296, 1.302, 1.293, 1.320, 1.321, 1.321, 1.321, 1.327, 1.323, 1.327, 1.328, 1.332, 1.330, 1.341, 1.340, 1.340, 1.338, 1.341, 1.335, 1.341, 1.355, 1.360, 1.363, 1.350, 1.345, 1.344, 1.339, 1.346, 1.346, 1.346, 1.353, 1.347, 1.347, 1.350, 1.350, 1.350, 1.339, 1.336, 1.351, 1.346, 1.346, 1.330, 1.325, 1.382, 1.338, 1.343, 1.340, 1.352, 1.350, 1.351, 1.367, 1.367, 1.368, 1.364, 1.361 }; long[] dates = { 13420512, 13421376, 13423968, 13424832, 13425696, 13426560, 13427424, 13428288, 13430016, 13430880, 13432608, 13433472, 13436064, 13436928, 13437792, 13438656, 13439520, 13442112, 13442976, 13443840, 13444704, 13445568, 13448160, 13449024, 13450752, 13451616, 13454208, 13455072, 13455936, 13456800, 13457664, 13460256, 13461120, 13461984, 13462848, 13463712, 13466304, 13467168, 13468032, 13468896, 13469760, 13470624, 13472352, 13474080, 13474944, 13475808, 13478400, 13479264, 13480128, 13480992, 13481856, 13484448, 13485312, 13486176, 13487040, 13487904, 13490496, 13491360, 13492224, 13493088, 13493952, 13496544, 13497408, 13498272, 13499136, 13502592, 13503456, 13504320, 13505184, 13506048, 13508640, 13509504, 13510368, 13511232, 13512096, 13515552, 13516416, 13518144, 13520736, 13521600, 13522464, 13523328, 13524192, 13526784, 13527648, 13528512, 13529376, 13530240, 13532832, 13533696, 13534560, 13535424, 13536288, 13538880, 13539744, 13540608, 13541472, 13542336, 13544928, 13545792, 13546656, 13548384, 13550976, 13551840, 13552704, 13553568, 13554432, 13557024, 13557888, 13558752, 13559616, 13560480, 13563072, 13565664, 13566528, 13569120, 13570848, 13571712, 13572576, 13575168, 13576032, 13576896, 13577760, 13578624, 13581216, 13582080, 13582944, 13583808, 13584672, 13587264, 13588128, 13588992, 13589856, 13590720, 13593312, 13594176, 13595040, 13595904, 13596768, 13599360, 13600224, 13601088, 13601952, 13602816, 13605408, 13606272, 13607136, 13608000, 13608864, 13611456, 13612320, 13613184, 13614048, 13614912, 13617504, 13618368, 13619232, 13620096, 13620960, 13623552, 13624416, 13625280, 13626144, 13627008, 13629600, 13630464, 13631328, 13632192, 13633056, 13635648, 13636512, 13637376, 13638240, 13639104, 13641696, 13642560, 13643424, 13644288, 13648608, 13649472, 13650336, 13651200, 13653792, 13654656, 13655520, 13656384, 13657248, 13659840, 13660704, 13661568, 13662432, 13663296, 13665888, 13666752, 13667616, 13668480, 13669344, 13671936, 13672800, 13674528, 13675392, 13677984, 13678848, 13679712, 13680576, 13681440, 13684032, 13684896, 13685760, 13686624, 13687488, 13690080, 13690944, 13691808, 13692672, 13693536, 13696128, 13696992, 13697856, 13698720, 13699584, 13702176, 13703040, 13703904, 13704768, 13705632, 13708224, 13709088, 13709952, 13710816, 13711680, 13714272, 13715136, 13716000, 13716864, 13717728, 13721184, 13722048, 13722912, 13723776, 13726368, 13727232, 13728096, 13728960, 13729824, 13732416, 13733280, 13734144, 13735008, 13735872, 13738464, 13739328, 13740192, 13741056, 13741920, 13744512, 13745376, 13746240, 13747968, 13750560, 13751424, 13752288, 13753152, 13754016, 13756608, 13757472, 13758336, 13759200, 13760064, 13762656, 13763520, 13764384, 13766112, 13768704, 13769568, 13770432, 13771296, 13772160, 13774752, 13775616, 13776480, 13777344, 13778208, 13780800, 13781664, 13782528, 13783392, 13784256, 13786848, 13787712, 13789440, 13790304, 13792896, 13793760, 13794624, 13795488, 13796352, 13798944, 13799808, 13800672 }; tChart1[0].Title = "USD to Euro"; tChart1[0].Add(vals); double[] avgDates = new double[tChart1.Series[0].Count]; for (int t = 0; t < tChart1.Series[0].Count; t++) { System.DateTime dtDateTime = new DateTime(1970, 1, 1, 0, 0, 0, 0, System.DateTimeKind.Utc); dtDateTime = dtDateTime.AddSeconds(dates[t] * 100).ToLocalTime(); double tmpVal = dtDateTime.Millisecond; // dtDateTime.ToFileTimeUtc(); avgDates[t] = tmpVal; tChart1.Series[0].XValues.Value[t] = avgDates[t]; } //config some series appearance characteristics //for (int i = 0; i < 1; i++) //{ //tChart1.Series(i).asLine.Pointer.Visible = true; //tChart1.Series(i).asLine.Pointer.HorizontalSize = 4; //tChart1.Series(i).asLine.Pointer.VerticalSize = 4; //tChart1.Series(i).asLine.Pointer.Style = TeeChart.EPointerStyle.psCircle; //tChart1.Series(i).asLine.Pointer.Pen.Width = 2; //tChart1.Series(i).asLine.Pointer.Shadow.Visible=false; //line1.LinePen.Width = 2; //} //Axes tChart1.Axes.Left.Title.Caption = "$ 000s"; tChart1.Axes.Left.Labels.RoundFirstLabel = true; tChart1.Axes.Left.Title.Visible = false; tChart1.Axes.Bottom.Labels.RoundFirstLabel = true; tChart1.Axes.Bottom.Title.Caption = "Bottom Axis"; tChart1.Axes.Bottom.Title.Font.Size = 20; tChart1.Axes.Bottom.Title.Visible = false; tChart1.Axes.Bottom.Labels.DateTimeFormat = "dd/MM/yy"; tChart1.Axes.Left.SetMinMax(1.2, 1.41); tChart1.Axes.Left.Grid.Width = 1; tChart1.Axes.Bottom.AxisPen.Width = 1; tChart1.Axes.Bottom.SetMinMax(tChart1[0].XValues.Value[50], tChart1[0].XValues.Value[250]); tChart1.Axes.Bottom.Grid.Visible = false; tChart1.Series[0].XValues.DateTime = true; tChart1.Axes.Left.Labels.Separation = 100; //Title tChart1.Header.Visible = false; //Legend tChart1.Legend.Visible = false; tChart1.Axes.Left.StartPosition = 10; /*// annotation (alternative title) // * Steema.TeeChart.Tools.Annotation ann1 = new Steema.TeeChart.Tools.Annotation(); * tChart1.Tools.Add(ann1); // TeeChart.EToolClass.tcAnnotate); * ann1.Shape.Font.Size =20; * ann1.Text = "US Dollar against the Euro"; * ann1.Shape.Transparent = true; * * // annotation (alternative title) * Steema.TeeChart.Tools.Annotation ann2 = new Steema.TeeChart.Tools.Annotation(); * tChart1.Tools.Add(ann2); * ann2.Text = " 2012 - 2013 Source: Steema Software SL"; * ann2.Shape.Transparent = true; * * tChart1.Draw(); //get positions * * ann1.Left = tChart1.Axes.Bottom.CalcXPosValue(tChart1.Axes.Bottom.Minimum); * ann1.Top = 8; * ann2.Left = tChart1.Axes.Bottom.CalcXPosValue(tChart1.Axes.Bottom.Minimum); * ann2.Top = 38;*/ //tooltip Steema.TeeChart.Tools.MarksTip marks = new Steema.TeeChart.Tools.MarksTip(); tChart1.Tools.Add(marks); tChart1.Zoom.Active = false; tChart1.Panning.Allow = Steema.TeeChart.ScrollModes.Horizontal; //scroller /* * scroller = new Steema.TeeChart.Tools.ScrollPager(); * tChart1.Tools.Add(scroller); * scroller.Series = line1; * scroller.SubChartTChart.Panel.Gradient.Visible = false; * scroller.SubChartTChart.Walls.Back.Visible = false; * scroller.SubChartTChart.Axes.Left.Visible = false; * scroller.SubChartTChart.Axes.Bottom.Labels.DateTimeFormat = "MM/yy"; * * axStartValue = tChart1.Series[0].XValues[70]; * axEndValue = tChart1.Series[0].XValues[tChart1.Series[0].Count - 70]; * * scroller.SubChartTChart.Footer.Font.Italic = true; * scroller.SubChartTChart.Footer.Text = " Showing data from " + DateTime.FromOADate(axStartValue).ToLongDateString() + " to " + DateTime.FromOADate(axEndValue).ToLongDateString(); + scroller.SubChartTChart.Footer.Visible = true; + scroller.SubChartTChart.Panel.Color = Color.White; + scroller.SubChartTChart.Footer.Alignment = TextAlignment.Start; + scroller.DivisionRatio = 8; + scroller.StartLinePointer.Visible = false; + scroller.EndLinePointer.Visible = false; */ this.tChart1.Aspect.ZoomText = true; chartView = new ChartView { VerticalOptions = LayoutOptions.FillAndExpand, HorizontalOptions = LayoutOptions.FillAndExpand, WidthRequest = 25, HeightRequest = 25 }; chartView.Model = tChart1; Content = new StackLayout { Children = { chartView } }; }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.annotation1 = new Steema.TeeChart.Tools.Annotation(); this.numericUpDown1 = new System.Windows.Forms.NumericUpDown(); this.trackBar1 = new System.Windows.Forms.TrackBar(); this.label1 = new System.Windows.Forms.Label(); this.label2 = new System.Windows.Forms.Label(); this.label3 = new System.Windows.Forms.Label(); this.label4 = new System.Windows.Forms.Label(); this.label5 = new System.Windows.Forms.Label(); this.trackBar2 = new System.Windows.Forms.TrackBar(); this.panel1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.numericUpDown1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.trackBar1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.trackBar2)).BeginInit(); this.SuspendLayout(); // // textBox1 // this.textBox1.Name = "textBox1"; this.textBox1.ReadOnly = true; this.textBox1.Size = new System.Drawing.Size(528, 56); this.textBox1.Text = "An example of a new Bar series that can display individual \r\nbars with different " + "sizes (widths)."; // // panel1 // this.panel1.Controls.Add(this.trackBar2); this.panel1.Controls.Add(this.label5); this.panel1.Controls.Add(this.label4); this.panel1.Controls.Add(this.label3); this.panel1.Controls.Add(this.label2); this.panel1.Controls.Add(this.label1); this.panel1.Controls.Add(this.trackBar1); this.panel1.Controls.Add(this.numericUpDown1); this.panel1.Location = new System.Drawing.Point(0, 56); this.panel1.Name = "panel1"; this.panel1.Size = new System.Drawing.Size(528, 40); this.panel1.Paint += new System.Windows.Forms.PaintEventHandler(this.panel1_Paint); // // 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 Size Series example" }; this.tChart1.Location = new System.Drawing.Point(0, 96); this.tChart1.Name = "tChart1"; // // tChart1.Panel // // // tChart1.Panel.Brush // this.tChart1.Panel.Brush.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(255))); // // tChart1.Panel.Gradient // this.tChart1.Panel.Brush.Gradient.MiddleColor = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(192))); this.tChart1.Panel.Brush.Gradient.StartColor = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(192)), ((System.Byte)(192)), ((System.Byte)(0))); this.tChart1.Panel.Brush.Gradient.UseMiddle = true; this.tChart1.Panel.Brush.Gradient.Visible = true; // // tChart1.Panel.Gradient // this.tChart1.Panel.Gradient.MiddleColor = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(192))); this.tChart1.Panel.Gradient.StartColor = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(192)), ((System.Byte)(192)), ((System.Byte)(0))); this.tChart1.Panel.Gradient.UseMiddle = true; this.tChart1.Panel.Gradient.Visible = true; this.tChart1.Size = new System.Drawing.Size(528, 261); this.tChart1.Tools.Add(this.annotation1); this.tChart1.ClickSeries += new Steema.TeeChart.TChart.SeriesEventHandler(this.tChart1_ClickSeries); // // annotation1 // this.annotation1.Cursor = System.Windows.Forms.Cursors.Default; this.annotation1.Left = 6; // // annotation1.Shape // this.annotation1.Shape.Bottom = 25; // // annotation1.Shape.Brush // // // annotation1.Shape.Gradient // this.annotation1.Shape.Brush.Gradient.Direction = System.Drawing.Drawing2D.LinearGradientMode.Horizontal; this.annotation1.Shape.Brush.Gradient.EndColor = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(224)), ((System.Byte)(224)), ((System.Byte)(224))); this.annotation1.Shape.Brush.Gradient.StartColor = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(255))); this.annotation1.Shape.Brush.Gradient.Visible = true; this.annotation1.Shape.CustomPosition = true; // // annotation1.Shape.Gradient // this.annotation1.Shape.Gradient.Direction = System.Drawing.Drawing2D.LinearGradientMode.Horizontal; this.annotation1.Shape.Gradient.EndColor = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(224)), ((System.Byte)(224)), ((System.Byte)(224))); this.annotation1.Shape.Gradient.StartColor = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(255))); this.annotation1.Shape.Gradient.Visible = true; this.annotation1.Shape.Left = 6; this.annotation1.Shape.Right = 15; // // annotation1.Shape.Shadow // this.annotation1.Shape.Shadow.Height = 1; this.annotation1.Shape.Shadow.Visible = true; this.annotation1.Shape.Shadow.Width = 1; this.annotation1.Shape.Top = 8; this.annotation1.Top = 8; // // numericUpDown1 // this.numericUpDown1.Location = new System.Drawing.Point(64, 8); this.numericUpDown1.Name = "numericUpDown1"; this.numericUpDown1.Size = new System.Drawing.Size(56, 20); this.numericUpDown1.TabIndex = 0; this.numericUpDown1.ValueChanged += new System.EventHandler(this.numericUpDown1_ValueChanged); // // trackBar1 // this.trackBar1.AutoSize = false; this.trackBar1.Location = new System.Drawing.Point(187, 8); this.trackBar1.Maximum = 100; this.trackBar1.Name = "trackBar1"; this.trackBar1.Size = new System.Drawing.Size(88, 21); this.trackBar1.TabIndex = 1; this.trackBar1.TickFrequency = 10; this.trackBar1.Scroll += new System.EventHandler(this.trackBar1_Scroll); // // label1 // this.label1.AutoSize = true; this.label1.Location = new System.Drawing.Point(40, 10); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(25, 16); this.label1.TabIndex = 2; this.label1.Text = "Bar:"; this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // label2 // this.label2.AutoSize = true; this.label2.Location = new System.Drawing.Point(144, 11); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(48, 16); this.label2.TabIndex = 3; this.label2.Text = "Position:"; this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // label3 // this.label3.AutoSize = true; this.label3.Location = new System.Drawing.Point(320, 10); this.label3.Name = "label3"; this.label3.Size = new System.Drawing.Size(29, 16); this.label3.TabIndex = 4; this.label3.Text = "Size:"; this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // label4 // this.label4.AutoSize = true; this.label4.Location = new System.Drawing.Point(272, 11); this.label4.Name = "label4"; this.label4.Size = new System.Drawing.Size(10, 16); this.label4.TabIndex = 6; this.label4.Text = "0"; this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // label5 // this.label5.AutoSize = true; this.label5.Location = new System.Drawing.Point(432, 10); this.label5.Name = "label5"; this.label5.Size = new System.Drawing.Size(10, 16); this.label5.TabIndex = 7; this.label5.Text = "1"; this.label5.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // trackBar2 // this.trackBar2.AutoSize = false; this.trackBar2.BackColor = System.Drawing.SystemColors.Control; this.trackBar2.Location = new System.Drawing.Point(344, 8); this.trackBar2.Maximum = 300; this.trackBar2.Name = "trackBar2"; this.trackBar2.Size = new System.Drawing.Size(88, 21); this.trackBar2.TabIndex = 8; this.trackBar2.TickFrequency = 20; this.trackBar2.Value = 100; this.trackBar2.Scroll += new System.EventHandler(this.trackBar2_Scroll); // // Bar_Size_Example // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(528, 357); this.Name = "Bar_Size_Example"; this.Load += new System.EventHandler(this.Bar_Size_Example_Load); this.panel1.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.numericUpDown1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.trackBar1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.trackBar2)).EndInit(); this.ResumeLayout(false); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.annotation1 = new Steema.TeeChart.Tools.Annotation(); this.annotation2 = new Steema.TeeChart.Tools.Annotation(); this.annotation3 = new Steema.TeeChart.Tools.Annotation(); this.label1 = new System.Windows.Forms.Label(); this.panel1.SuspendLayout(); this.chartContainer.SuspendLayout(); this.SuspendLayout(); // // textBox1 // this.textBox1.Size = new System.Drawing.Size(456, 48); this.textBox1.Text = "Annotation tools include a Cursor property and Click event\'.\r\nMove the mouse over" + " annotations and click them..."; // // panel1 // this.panel1.Controls.Add(this.label1); this.panel1.Location = new System.Drawing.Point(0, 48); this.panel1.Size = new System.Drawing.Size(456, 44); // // tChart1 // // // // this.tChart1.Aspect.ZOffset = 0; // // // this.tChart1.Header.Lines = new string[] { "Annotation tool : Click and cursor example" }; // // // // // // this.tChart1.Panel.Brush.Color = System.Drawing.Color.FromArgb(((int)(((byte)(254)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); this.tChart1.Size = new System.Drawing.Size(456, 241); this.tChart1.Tools.Add(this.annotation1); this.tChart1.Tools.Add(this.annotation2); this.tChart1.Tools.Add(this.annotation3); // // // // // // // // // 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; this.tChart1.MouseMove += new System.Windows.Forms.MouseEventHandler(this.tChart1_MouseMove); // // chartContainer // this.chartContainer.Location = new System.Drawing.Point(0, 92); this.chartContainer.Size = new System.Drawing.Size(456, 241); // // annotation1 // this.annotation1.AutoSize = true; this.annotation1.Cursor = System.Windows.Forms.Cursors.Default; this.annotation1.Position = Steema.TeeChart.Tools.AnnotationPositions.LeftBottom; // // // this.annotation1.Shape.Lines = new string[] { "ABCD" }; // // // // // // this.annotation1.Shape.Shadow.Brush.Color = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(128)))), ((int)(((byte)(128))))); this.annotation1.Shape.Shadow.Visible = true; this.annotation1.Text = "ABCD"; this.annotation1.Click += new System.Windows.Forms.MouseEventHandler(this.annotation1_onClick); // // annotation2 // this.annotation2.AutoSize = true; this.annotation2.Cursor = System.Windows.Forms.Cursors.Default; // // // // // // this.annotation2.Shape.Brush.Color = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(0))))); // // // // // // this.annotation2.Shape.Font.Shadow.Visible = true; this.annotation2.Shape.Font.Size = 9; this.annotation2.Shape.Font.SizeFloat = 9F; this.annotation2.Shape.Lines = new string[] { "Hello\r\nWorld" }; // // // this.annotation2.Shape.Shadow.Visible = true; this.annotation2.Text = "Hello\r\nWorld"; this.annotation2.Click += new System.Windows.Forms.MouseEventHandler(this.annotation1_onClick); // // annotation3 // this.annotation3.AutoSize = true; this.annotation3.Cursor = System.Windows.Forms.Cursors.Default; this.annotation3.Position = Steema.TeeChart.Tools.AnnotationPositions.RightTop; // // // // // // this.annotation3.Shape.Brush.Color = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(192)))), ((int)(((byte)(128))))); // // // // // // this.annotation3.Shape.Font.Brush.Color = System.Drawing.Color.Navy; // // // // // // this.annotation3.Shape.Font.Shadow.Brush.Color = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(128))))); this.annotation3.Shape.Font.Shadow.Visible = true; this.annotation3.Shape.Font.Size = 12; this.annotation3.Shape.Font.SizeFloat = 12F; this.annotation3.Shape.Lines = new string[] { "1234567" }; // // // this.annotation3.Shape.Shadow.Visible = true; this.annotation3.Text = "1234567"; this.annotation3.Click += new System.Windows.Forms.MouseEventHandler(this.annotation1_onClick); // // label1 // this.label1.AutoSize = true; this.label1.Location = new System.Drawing.Point(20, 10); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(35, 13); this.label1.TabIndex = 0; this.label1.Text = "label1"; this.label1.UseMnemonic = false; // // Tool_AnnotationClick // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(456, 333); this.Name = "Tool_AnnotationClick"; 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.buttonPen1 = new Steema.TeeChart.ButtonPen(); this.checkBox1 = new System.Windows.Forms.CheckBox(); this.button1 = new System.Windows.Forms.Button(); this.points1 = new Steema.TeeChart.Styles.Points(); this.annotation1 = new Steema.TeeChart.Tools.Annotation(); this.panel1.SuspendLayout(); this.SuspendLayout(); // // textBox1 // this.textBox1.Name = "textBox1"; this.textBox1.Size = new System.Drawing.Size(360, 73); this.textBox1.Text = "Annotations include a Callout object.\r\n\r\nThis object is used to draw a line from " + "the annotation to any position in the chart."; // // panel1 // this.panel1.Controls.Add(this.button1); this.panel1.Controls.Add(this.checkBox1); this.panel1.Controls.Add(this.buttonPen1); this.panel1.Name = "panel1"; this.panel1.Size = new System.Drawing.Size(360, 39); // // 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; this.tChart1.Aspect.ZoomText = false; this.tChart1.Cursor = System.Windows.Forms.Cursors.Default; // // tChart1.Header // this.tChart1.Header.Lines = new string[] { "Annotation callout" }; this.tChart1.Name = "tChart1"; // // tChart1.Panel // // // tChart1.Panel.Brush // this.tChart1.Panel.Brush.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(255))); // // tChart1.Panel.Gradient // this.tChart1.Panel.Brush.Gradient.StartColor = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(224)), ((System.Byte)(224)), ((System.Byte)(224))); this.tChart1.Panel.Brush.Gradient.Visible = true; // // tChart1.Panel.Gradient // this.tChart1.Panel.Gradient.StartColor = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(224)), ((System.Byte)(224)), ((System.Byte)(224))); this.tChart1.Panel.Gradient.Visible = true; this.tChart1.Series.Add(this.points1); this.tChart1.Size = new System.Drawing.Size(360, 189); this.tChart1.Tools.Add(this.annotation1); // // tChart1.Walls // // // tChart1.Walls.Back // // // tChart1.Walls.Back.Brush // this.tChart1.Walls.Back.Brush.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(192)), ((System.Byte)(192)), ((System.Byte)(192))); // // tChart1.Walls.Bottom // // // tChart1.Walls.Bottom.Pen // this.tChart1.Walls.Bottom.Pen.Visible = false; this.tChart1.Walls.Bottom.Size = 5; // // tChart1.Walls.Left // // // tChart1.Walls.Left.Brush // this.tChart1.Walls.Left.Brush.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(128))); // // tChart1.Walls.Left.Pen // this.tChart1.Walls.Left.Pen.Visible = false; this.tChart1.Walls.Left.Size = 5; // // tChart1.Walls.Right // // // tChart1.Walls.Right.Brush // this.tChart1.Walls.Right.Brush.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(224)), ((System.Byte)(224)), ((System.Byte)(224))); this.tChart1.ClickSeries += this.tChart1_ClickSeries; this.tChart1.MouseMove += new System.Windows.Forms.MouseEventHandler(this.tChart1_MouseMove); // // buttonPen1 // this.buttonPen1.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.buttonPen1.Location = new System.Drawing.Point(116, 8); this.buttonPen1.Name = "buttonPen1"; this.buttonPen1.Size = new System.Drawing.Size(64, 24); this.buttonPen1.TabIndex = 2; this.buttonPen1.Text = "Border..."; // // 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(196, 12); this.checkBox1.Name = "checkBox1"; this.checkBox1.Size = new System.Drawing.Size(92, 16); this.checkBox1.TabIndex = 3; this.checkBox1.Text = "Follow mouse"; this.checkBox1.CheckedChanged += new System.EventHandler(this.checkBox1_CheckedChanged); // // button1 // this.button1.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.button1.Location = new System.Drawing.Point(32, 8); this.button1.Name = "button1"; this.button1.Size = new System.Drawing.Size(64, 24); this.button1.TabIndex = 1; this.button1.Text = "Edit..."; this.button1.Click += new System.EventHandler(this.button1_Click); // // points1 // this.points1.ColorEach = true; // // points1.Marks // // // points1.Marks.Symbol // // // points1.Marks.Symbol.Shadow // this.points1.Marks.Symbol.Shadow.Height = 1; this.points1.Marks.Symbol.Shadow.Visible = true; this.points1.Marks.Symbol.Shadow.Width = 1; // // points1.Pointer // // // points1.Pointer.Brush // this.points1.Pointer.Brush.Color = System.Drawing.Color.FromArgb(((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(204))); this.points1.Pointer.Brush.ForegroundColor = System.Drawing.Color.Empty; this.points1.Pointer.Style = Steema.TeeChart.Styles.PointerStyles.Rectangle; this.points1.Title = "points1"; // // points1.XValues // this.points1.XValues.DataMember = "X"; this.points1.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; // // points1.YValues // this.points1.YValues.DataMember = "Y"; // // annotation1 // this.annotation1.Cursor = System.Windows.Forms.Cursors.Default; this.annotation1.Left = 180; // // annotation1.Shape // this.annotation1.Shape.Bottom = 42; this.annotation1.Shape.CustomPosition = true; this.annotation1.Shape.Left = 180; this.annotation1.Shape.Lines = new string[] { " Move the mouse ! " }; // // annotation1.Shape.Pen // this.annotation1.Shape.Pen.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(0)), ((System.Byte)(0)), ((System.Byte)(255))); this.annotation1.Shape.Right = 279; // // annotation1.Shape.Shadow // this.annotation1.Shape.Shadow.Visible = true; this.annotation1.Shape.Top = 25; this.annotation1.Text = " Move the mouse ! "; this.annotation1.Top = 25; // // AnnotationCallout // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(360, 301); this.Name = "AnnotationCallout"; this.Load += new System.EventHandler(this.AnnotationCallout_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.lineSeries1 = new Steema.TeeChart.Styles.Line(); this.annotation1 = new Steema.TeeChart.Tools.Annotation(); this.annotation2 = new Steema.TeeChart.Tools.Annotation(); this.annotation3 = new Steema.TeeChart.Tools.Annotation(); 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, 63); this.textBox1.Text = "The Annotation tool is a general purpose component to show text over Chart panels" + ". It includes formatting properties and custom positioning."; // // panel1 // this.panel1.Controls.Add(this.checkBox1); 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(466, 41); // // 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[] { "Annotation tool example" }; // // tChart1.Legend // this.tChart1.Legend.Alignment = Steema.TeeChart.LegendAlignments.Top; 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)(254)), ((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(255))); this.tChart1.Series.Add(this.lineSeries1); this.tChart1.Size = new System.Drawing.Size(466, 182); this.tChart1.Tools.Add(this.annotation1); this.tChart1.Tools.Add(this.annotation2); this.tChart1.Tools.Add(this.annotation3); // // lineSeries1 // // // lineSeries1.Brush // this.lineSeries1.Brush.Color = System.Drawing.Color.Red; // // lineSeries1.Marks // // // lineSeries1.Marks.Symbol // // // lineSeries1.Marks.Symbol.Shadow // this.lineSeries1.Marks.Symbol.Shadow.Height = 1; this.lineSeries1.Marks.Symbol.Shadow.Visible = true; this.lineSeries1.Marks.Symbol.Shadow.Width = 1; // // lineSeries1.Pointer // this.lineSeries1.Pointer.Style = Steema.TeeChart.Styles.PointerStyles.Rectangle; this.lineSeries1.Title = "line1"; // // lineSeries1.XValues // this.lineSeries1.XValues.DataMember = "X"; this.lineSeries1.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; // // lineSeries1.YValues // this.lineSeries1.YValues.DataMember = "Y"; // // annotation1 // this.annotation1.Cursor = System.Windows.Forms.Cursors.Default; this.annotation1.Left = 65; // // annotation1.Shape // this.annotation1.Shape.Bottom = 142; this.annotation1.Shape.CustomPosition = true; this.annotation1.Shape.Left = 65; this.annotation1.Shape.Lines = new string[] { "Annotation1" }; this.annotation1.Shape.Right = 133; // // annotation1.Shape.Shadow // // // annotation1.Shape.Shadow.Brush // this.annotation1.Shape.Shadow.Brush.Color = System.Drawing.Color.Gray; this.annotation1.Shape.Shadow.Visible = true; this.annotation1.Shape.Top = 125; this.annotation1.Text = "Annotation1"; this.annotation1.Top = 125; // // annotation2 // this.annotation2.Cursor = System.Windows.Forms.Cursors.Default; this.annotation2.Left = 130; // // annotation2.Shape // this.annotation2.Shape.Bottom = 87; // // annotation2.Shape.Brush // this.annotation2.Shape.Brush.Color = System.Drawing.Color.FromArgb(((System.Byte)(255)), ((System.Byte)(128)), ((System.Byte)(255))); this.annotation2.Shape.CustomPosition = true; this.annotation2.Shape.Left = 130; this.annotation2.Shape.Lines = new string[] { "Annotation 2" }; this.annotation2.Shape.Right = 201; // // annotation2.Shape.Shadow // // // annotation2.Shape.Shadow.Brush // this.annotation2.Shape.Shadow.Brush.Color = System.Drawing.Color.Black; this.annotation2.Shape.Shadow.Visible = true; this.annotation2.Shape.Top = 70; this.annotation2.Text = "Annotation 2"; this.annotation2.Top = 70; // // annotation3 // this.annotation3.Cursor = System.Windows.Forms.Cursors.Default; this.annotation3.Position = Steema.TeeChart.Tools.AnnotationPositions.RightTop; // // annotation3.Shape // // // annotation3.Shape.Bevel // this.annotation3.Shape.Bevel.Inner = Steema.TeeChart.Drawing.BevelStyles.Raised; // // annotation3.Shape.Brush // this.annotation3.Shape.Brush.Color = System.Drawing.Color.FromArgb(((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(128))); this.annotation3.Shape.Lines = new string[] { "Another one" }; // // annotation3.Shape.Shadow // this.annotation3.Shape.Shadow.Visible = true; this.annotation3.Text = "Another one"; // // button1 // this.button1.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.button1.Location = new System.Drawing.Point(13, 7); this.button1.Name = "button1"; this.button1.Size = new System.Drawing.Size(115, 23); this.button1.TabIndex = 0; this.button1.Text = "&Edit annotation..."; this.button1.Click += new System.EventHandler(this.button1_Click); // // checkBox1 // this.checkBox1.Checked = true; this.checkBox1.CheckState = System.Windows.Forms.CheckState.Checked; this.checkBox1.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.checkBox1.Location = new System.Drawing.Point(147, 7); this.checkBox1.Name = "checkBox1"; this.checkBox1.Size = new System.Drawing.Size(93, 21); this.checkBox1.TabIndex = 1; this.checkBox1.Text = "&Visible"; this.checkBox1.CheckedChanged += new System.EventHandler(this.checkBox1_CheckedChanged); // // Tool_Annotation // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(466, 286); this.Name = "Tool_Annotation"; this.panel1.ResumeLayout(false); this.ResumeLayout(false); }
public MainPage() { InitializeComponent(); AreaLineChart = new ChartView(); area1 = new Steema.TeeChart.Styles.Area(); AreaLineChart.Chart.Series.Add(area1); colorLine1 = new Steema.TeeChart.Tools.ColorLine(); annotation1 = new Steema.TeeChart.Tools.Annotation(); AreaLineChart.Chart.Panning.Allow = ScrollModes.None; AreaLineChart.Chart.Panel.Gradient.Visible = false; AreaLineChart.Chart.Panel.Color = Color.White; AreaLineChart.Chart.Walls.Back.Visible = false; AreaLineChart.Chart.Header.Visible = false; AreaLineChart.Chart.Legend.Visible = false; AreaLineChart.Chart.Aspect.View3D = false; area1.AreaBrush.Color = Color.FromRgb(192, 192, 255); AreaLineChart.Chart.Axes.Bottom.Labels.Font.Brush.Color = Color.FromRgb(128, 128, 128); AreaLineChart.Chart.Axes.Bottom.Labels.Font.Size = 18; AreaLineChart.Chart.Axes.Left.Labels.Font.Brush.Color = Color.FromRgb(128, 128, 128); AreaLineChart.Chart.Axes.Left.Labels.Font.Size = 18; AreaLineChart.Chart.Axes.Left.AxisPen.Visible = false; AreaLineChart.Chart.Axes.Left.MaximumOffset = 5; AreaLineChart.Chart.Axes.Left.MinimumOffset = 5; area1.AreaBrush.Color = Color.FromRgb(192, 192, 255); area1.AreaBrush.Solid = true; area1.AreaBrush.Visible = true; area1.AreaLines.Visible = false; area1.Brush.Color = Color.FromRgb(192, 192, 255); area1.Brush.Solid = true; area1.Color = Color.FromRgb(192, 192, 255); area1.LinePen.Width = 6; area1.LinePen.Color = Color.Navy; AreaLineChart.Chart.Axes.Left.Ticks.Length = 10; AreaLineChart.Chart.Axes.Bottom.Ticks.Length = 10; AreaLineChart.Chart.Axes.Left.Increment = 100; // // colorLine1 // AreaLineChart.Chart.Tools.Add(colorLine1); colorLine1.Axis = AreaLineChart.Chart.Axes.Bottom; colorLine1.Pen.Color = Color.Navy; colorLine1.Pen.Width = 6; colorLine1.Pen.Style = Steema.TeeChart.Drawing.DashStyle.Dot; colorLine1.Value = 10D; colorLine1.DragLine += ColorLine1_DragLine; colorLine1.DrawBehind = false; colorLine1.ColorLineClickTolerance = 15; annotation1.Shape.Color = Color.Navy; annotation1.Shape.Font.Color = Color.White; annotation1.Shape.Font.Size = 25; annotation1.Shape.Pen.Visible = false; annotation1.Shape.BorderRound = 15; annotation1.Shape.BevelInner = Steema.TeeChart.Drawing.BevelStyles.None; annotation1.Shape.BevelOuter = Steema.TeeChart.Drawing.BevelStyles.None; annotation1.Shape.Shadow.Visible = false; annotation1.TextAlign = TextAlignment.Center; annotation1.Shape.TextAlign = TextAlignment.Center; AreaLineChart.WidthRequest = 650; AreaLineChart.HeightRequest = 350; AreaLineChart.Chart.AfterDraw += Chart_AfterDraw; AreaLineChart.Chart.Panel.Brush.Solid = true; area1.Marks.Visible = false; AreaLineChart.Chart.Tools.Add(annotation1); annotation1.Active = false; area1.FillSampleValues(100); Content = new StackLayout { Children = { AreaLineChart }, VerticalOptions = LayoutOptions.CenterAndExpand, HorizontalOptions = LayoutOptions.CenterAndExpand, }; }
void InitChart() { // Theme settings chartView.Chart.setTheme(ThemeType.Flat); chartView.Chart.Header.Visible = true; // Values to Series _points.FillSampleValues(); chartView.Chart.Series.Add(_points); // Chart settings chartView.Chart.Aspect.View3D = false; chartView.Chart.Panel.Gradient.Visible = false; chartView.Chart.Legend.Visible = false; chartView.Chart.Panel.Color = Color.White; chartView.Chart.Walls.Back.Transparent = true; chartView.Chart.Axes.Bottom.Labels.DateTimeFormat = "yyyy-MM-dd"; _points.XValues.DateTime = true; chartView.Chart.Axes.Bottom.Labels.Angle = 90; // Use of the Chart events: //tChart1.Chart.ClickBackground += TChart1_ClickBackground; //tChart1.Chart.ScrollMod += TChart1_ScrollMod; //series.ClickPointer += Series_ClickPointer; //tChart1.Chart.Scroll += Chart_Scroll; _points.ClickTolerance = 10; _points.Pointer.Pen.Visible = false; _points.Pointer.Style = PointerStyles.Circle; _points.Pointer.HorizSize = 4; _points.Pointer.VertSize = 4; _points.ColorEachPoint = true; // Panning and Scroll modes chartView.Chart.Zoom.Active = true; chartView.Chart.Zoom.Allow = true; chartView.Chart.chart.Zoom.Active = true; chartView.Chart.Chart.Zoom.Allow = true; chartView.Chart.Zoom.Direction = ZoomDirections.Both; chartView.Chart.Panning.Active = true; chartView.Chart.Panning.Allow = ScrollModes.Horizontal; AddCursorTool(); // Use of Annotation Tool _annotation = new Steema.TeeChart.Tools.Annotation(chartView.Chart.chart); _annotation.Active = true; _annotation.Shape.Font.Size = 10; _annotation.TextAlign = TextAlignment.Center; _annotation.Left = 30; _annotation.Top = 50; // Axes settings chartView.Chart.Axes.Left.Increment = chartView.Chart.Axes.Left.Maximum / 10; chartView.Chart.Axes.Left.Labels.Font.Size = 10; chartView.Chart.Axes.Bottom.Labels.Font.Size = 10; // Header settings chartView.Chart.Header.Font.Size = 11; // Controlling zoom in and zoom out chartView.Chart.Zoomed += Chart_Zoomed;; }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Export_SVG)); this.line1 = new Steema.TeeChart.Styles.Line(); this.area1 = new Steema.TeeChart.Styles.Area(); this.button1 = new System.Windows.Forms.Button(); this.saveFileDialog1 = new System.Windows.Forms.SaveFileDialog(); this.button2 = new System.Windows.Forms.Button(); this.annotation1 = new Steema.TeeChart.Tools.Annotation(); this.panel1.SuspendLayout(); this.chartContainer.SuspendLayout(); this.SuspendLayout(); // // textBox1 // this.textBox1.Size = new System.Drawing.Size(440, 56); this.textBox1.Text = "Exporting to SVG (Scalable Vector Graphics) graphic format is available using the" + " Export Dialog or by code at run-time. "; // // panel1 // this.panel1.Controls.Add(this.button2); this.panel1.Controls.Add(this.button1); this.panel1.Location = new System.Drawing.Point(0, 56); // // tChart1 // // // // this.tChart1.Aspect.Chart3DPercent = 10; this.tChart1.Aspect.Perspective = 0; this.tChart1.Aspect.Rotation = 348; this.tChart1.Aspect.RotationFloat = 348; this.tChart1.Aspect.ZOffset = 0; // // // // // // // // // this.tChart1.Axes.Bottom.AxisPen.Color = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(192))))); this.tChart1.Axes.Bottom.MaximumOffset = 3; this.tChart1.Axes.Bottom.MinimumOffset = 3; // // // // // // this.tChart1.Axes.Left.AxisPen.Color = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(192))))); // // // // // // this.tChart1.Axes.Right.AxisPen.Color = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(192))))); this.tChart1.Axes.Right.MaximumOffset = 3; this.tChart1.Axes.Right.MinimumOffset = 3; // // // this.tChart1.Axes.Top.Visible = false; // // // this.tChart1.Header.Lines = new string[] { "tChart1" }; this.tChart1.Header.Visible = false; // // // this.tChart1.Legend.Visible = false; // // // // // // this.tChart1.Panel.Brush.Color = System.Drawing.Color.FromArgb(((int)(((byte)(254)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); this.tChart1.Series.Add(this.line1); this.tChart1.Series.Add(this.area1); this.tChart1.Size = new System.Drawing.Size(440, 222); this.tChart1.Tools.Add(this.annotation1); // // // // // // // // // this.tChart1.Walls.Back.Pen.Color = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(192))))); // // // // // // this.tChart1.Walls.Bottom.Brush.Color = System.Drawing.Color.FromArgb(((int)(((byte)(178)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); // // // this.tChart1.Walls.Bottom.Brush.Gradient.Transparency = 30; // // // this.tChart1.Walls.Bottom.Pen.Visible = false; this.tChart1.Walls.Bottom.Size = 5; // // // // // // this.tChart1.Walls.Left.Brush.Color = System.Drawing.Color.FromArgb(((int)(((byte)(178)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(224))))); // // // this.tChart1.Walls.Left.Brush.Gradient.Transparency = 30; // // // this.tChart1.Walls.Left.Pen.Visible = false; // // // // // // this.tChart1.Walls.Left.Shadow.Brush.Color = System.Drawing.Color.FromArgb(((int)(((byte)(178)))), ((int)(((byte)(169)))), ((int)(((byte)(169)))), ((int)(((byte)(169))))); this.tChart1.Walls.Left.Size = 5; // // // // // // this.tChart1.Walls.Right.Pen.Color = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(192))))); // // chartContainer // this.chartContainer.Location = new System.Drawing.Point(0, 95); this.chartContainer.Size = new System.Drawing.Size(440, 222); // // line1 // // // // this.line1.Brush.Color = System.Drawing.Color.FromArgb(((int)(((byte)(68)))), ((int)(((byte)(102)))), ((int)(((byte)(163))))); this.line1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(68)))), ((int)(((byte)(102)))), ((int)(((byte)(163))))); this.line1.ColorEach = true; // // // this.line1.LinePen.Color = System.Drawing.Color.FromArgb(((int)(((byte)(41)))), ((int)(((byte)(61)))), ((int)(((byte)(98))))); // // // // // // this.line1.Marks.Callout.ArrowHead = Steema.TeeChart.Styles.ArrowHeadStyles.None; this.line1.Marks.Callout.ArrowHeadSize = 8; // // // this.line1.Marks.Callout.Brush.Color = System.Drawing.Color.Black; this.line1.Marks.Callout.Distance = 0; this.line1.Marks.Callout.Draw3D = false; this.line1.Marks.Callout.Length = 10; this.line1.Marks.Callout.Style = Steema.TeeChart.Styles.PointerStyles.Rectangle; this.line1.Marks.Callout.Visible = false; // // line1.Marks.Symbol.Shadow // this.line1.Marks.Symbol.Shadow.Height = 1; this.line1.Marks.Symbol.Shadow.Visible = true; this.line1.Marks.Symbol.Shadow.Width = 1; // // line1.Pointer // this.line1.Pointer.HorizSize = 2; this.line1.Pointer.Style = Steema.TeeChart.Styles.PointerStyles.Rectangle; this.line1.Pointer.VertSize = 2; this.line1.Pointer.Visible = true; this.line1.Title = "line1"; this.line1.VertAxis = Steema.TeeChart.Styles.VerticalAxis.Right; // // // line1.XValues // this.line1.XValues.DataMember = "X"; this.line1.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; // // line1.YValues // this.line1.YValues.DataMember = "Y"; // // area1 // // // // this.area1.AreaBrush.Color = System.Drawing.Color.FromArgb(((int)(((byte)(243)))), ((int)(((byte)(156)))), ((int)(((byte)(53))))); // // // this.area1.Gradient.StartColor = System.Drawing.Color.FromArgb(((int)(((byte)(243)))), ((int)(((byte)(156)))), ((int)(((byte)(53))))); this.area1.Gradient.Transparency = 50; // // this.area1.AreaBrush.Color = System.Drawing.Color.FromArgb(((System.Byte)(127)), ((System.Byte)(0)), ((System.Byte)(128)), ((System.Byte)(0))); // this.area1.AreaLines.Color = System.Drawing.Color.FromArgb(((int)(((byte)(146)))), ((int)(((byte)(94)))), ((int)(((byte)(32))))); // this.area1.AreaBrush.Gradient.Transparency = 50; // // area1.Brush // this.area1.Brush.Color = System.Drawing.Color.FromArgb(((System.Byte)(127)), ((System.Byte)(255)), ((System.Byte)(0)), ((System.Byte)(0))); this.area1.ColorEach = true; // // // this.area1.LinePen.Color = System.Drawing.Color.FromArgb(((int)(((byte)(146)))), ((int)(((byte)(94)))), ((int)(((byte)(32))))); // // // // // // this.area1.Marks.Callout.ArrowHead = Steema.TeeChart.Styles.ArrowHeadStyles.None; this.area1.Marks.Callout.ArrowHeadSize = 8; // // this.area1.Gradient.Transparency = 50; // this.area1.Marks.Callout.Brush.Color = System.Drawing.Color.Black; this.area1.Marks.Callout.Distance = 0; this.area1.Marks.Callout.Draw3D = false; this.area1.Marks.Callout.Length = 10; this.area1.Marks.Callout.Style = Steema.TeeChart.Styles.PointerStyles.Rectangle; this.area1.Marks.Callout.Visible = false; // // // // // this.area1.Marks.Symbol.Shadow.Height = 1; this.area1.Marks.Symbol.Shadow.Visible = true; this.area1.Marks.Symbol.Shadow.Width = 1; // this.area1.Pointer.Brush.Color = System.Drawing.Color.FromArgb(((int)(((byte)(127)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); // // // this.area1.Pointer.Style = Steema.TeeChart.Styles.PointerStyles.Rectangle; this.area1.Title = "area1"; // // // this.area1.XValues.DataMember = "X"; this.area1.XValues.DateTime = true; this.area1.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; // // // this.area1.YValues.DataMember = "Y"; // // button1 // this.button1.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.button1.Location = new System.Drawing.Point(8, 8); this.button1.Name = "button1"; this.button1.Size = new System.Drawing.Size(104, 23); this.button1.TabIndex = 1; this.button1.Text = "Save to SVG"; this.button1.Click += new System.EventHandler(this.button1_Click); // // button2 // this.button2.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.button2.Location = new System.Drawing.Point(160, 8); this.button2.Name = "button2"; this.button2.Size = new System.Drawing.Size(120, 23); this.button2.TabIndex = 2; this.button2.Text = "Show export dialog"; this.button2.Click += new System.EventHandler(this.button2_Click); // // annotation1 // this.annotation1.AutoSize = true; this.annotation1.Cursor = System.Windows.Forms.Cursors.Default; this.annotation1.Left = 100; // // // this.annotation1.Shape.BorderRound = 8; this.annotation1.Shape.Bottom = 41; // // // this.annotation1.Shape.Brush.Color = System.Drawing.Color.FromArgb(((int)(((byte)(102)))), ((int)(((byte)(255)))), ((int)(((byte)(128)))), ((int)(((byte)(0))))); // // // this.annotation1.Shape.Brush.Gradient.Transparency = 60; this.annotation1.Shape.CustomPosition = true; // // // // // // this.annotation1.Shape.Font.Brush.Color = System.Drawing.Color.FromArgb(((int)(((byte)(254)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); this.annotation1.Shape.Font.Name = "Arial Black"; this.annotation1.Shape.Left = 100; this.annotation1.Shape.Lines = new string[] { "SVG example" }; this.annotation1.Shape.Right = 193; // // // this.annotation1.Shape.Shadow.Visible = true; this.annotation1.Shape.ShapeStyle = Steema.TeeChart.Drawing.TextShapeStyle.RoundRectangle; this.annotation1.Shape.Top = 20; this.annotation1.Text = "SVG example"; this.annotation1.Top = 20; // // Export_SVG // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(440, 317); this.Name = "Export_SVG"; this.panel1.ResumeLayout(false); this.chartContainer.ResumeLayout(false); this.ResumeLayout(false); this.PerformLayout(); }
private void InitChart() { // Create the Chart Chart1 = new TChart(); // Assign a Rect frame Chart1.Frame = this.View.Frame; // Creates the AfterDraw Event call Chart1.AfterDraw += new Steema.TeeChart.PaintChartEventHandler(chart_AfterDraw); Chart1.GetAxisLabel += Chart1_GetAxisLabel; // Adds the Chart view to the Root view this.View.AddSubview(Chart1); Chart1.Aspect.View3D = false; this.Chart1.Axes.Bottom.AxisPen.Visible = false; this.Chart1.Axes.Bottom.Grid.Color = Color.FromArgb(255, 20, 44, 80); this.Chart1.Axes.Bottom.Grid.Style = Steema.TeeChart.Drawing.DashStyle.Solid; this.Chart1.Axes.Bottom.Grid.Width = 2; this.Chart1.Axes.Bottom.Labels.Font.Brush.Color = Color.FromArgb(255, 255, 255, 255); this.Chart1.Axes.Bottom.MinorTicks.Visible = false; this.Chart1.Axes.Bottom.TickOnLabelsOnly = false; this.Chart1.Axes.Bottom.Ticks.Visible = false; this.Chart1.Axes.Left.AxisPen.Visible = false; this.Chart1.Axes.Left.Grid.Visible = false; this.Chart1.Axes.Left.Increment = 5D; this.Chart1.Axes.Left.Labels.Font.Brush.Color = Color.FromArgb(255, 128, 128, 255); this.Chart1.Axes.Left.Labels.Font.Size = 9; this.Chart1.Axes.Left.Labels.Font.SizeFloat = 9F; this.Chart1.Axes.Left.MinorTicks.Visible = false; this.Chart1.Axes.Left.TickOnLabelsOnly = false; this.Chart1.Axes.Left.Ticks.Visible = false; this.Chart1.Header.Font.Brush.Color = Color.FromArgb(255, 255, 255, 255); this.Chart1.Header.Font.Size = 21; this.Chart1.Header.Font.SizeFloat = 21F; this.Chart1.Header.Lines = new string[] { "Custom drawing on Chart" }; this.Chart1.Legend.Visible = false; this.Chart1.Panel.Brush.Color = Color.FromArgb(255, 29, 56, 109); this.Chart1.Panel.Brush.Gradient.Visible = false; this.Chart1.Panel.MarginLeft = 22D; line1 = new Steema.TeeChart.Styles.Line(); bar3D1 = new Steema.TeeChart.Styles.Bar3D(); line2 = new Steema.TeeChart.Styles.Line(); this.Chart1.Series.Add(this.line1); this.Chart1.Series.Add(this.bar3D1); this.Chart1.Series.Add(this.line2); annotation1 = new Steema.TeeChart.Tools.Annotation(); annotation2 = new Steema.TeeChart.Tools.Annotation(); this.Chart1.Tools.Add(this.annotation1); this.Chart1.Tools.Add(this.annotation2); this.Chart1.Walls.Visible = false; // line1 this.line1.Brush.Color = Color.FromArgb(255, 255, 255, 255); this.line1.Color = Color.FromArgb(255, 255, 255, 255); this.line1.ColorEach = false; this.line1.LinePen.Color = Color.FromArgb(255, 255, 255, 255); this.line1.Pointer.Pen.Color = Color.FromArgb(255, 29, 56, 109); this.line1.Pointer.SizeDouble = 0D; this.line1.Pointer.SizeUnits = Steema.TeeChart.Styles.PointerSizeUnits.Pixels; this.line1.Pointer.Style = Steema.TeeChart.Styles.PointerStyles.Circle; this.line1.Pointer.Visible = true; this.line1.Title = "line1"; this.line1.XValues.DataMember = "X"; this.line1.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; this.line1.YValues.DataMember = "Y"; // // bar3D1 this.bar3D1.Brush.Color = Color.FromArgb(255, 88, 130, 214); this.bar3D1.Color = Color.FromArgb(255, 88, 130, 214); this.bar3D1.ColorEach = false; this.bar3D1.Marks.Visible = false; this.bar3D1.Pen.Color = Color.FromArgb(255, 146, 94, 32); this.bar3D1.Pen.Visible = false; this.bar3D1.Title = "bar3D1"; this.bar3D1.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; // // line2 this.line2.Brush.Color = Color.FromArgb(255, 255, 255, 255); this.line2.Color = Color.FromArgb(255, 255, 255, 255); this.line2.ColorEach = false; this.line2.LinePen.Color = Color.FromArgb(255, 255, 255, 255); this.line2.Pointer.Pen.Color = Color.FromArgb(255, 29, 56, 109); this.line2.Pointer.SizeDouble = 0D; this.line2.Pointer.SizeUnits = Steema.TeeChart.Styles.PointerSizeUnits.Pixels; this.line2.Pointer.Style = Steema.TeeChart.Styles.PointerStyles.Circle; this.line2.Pointer.Visible = true; this.line2.Title = "line2"; this.line2.XValues.DataMember = "X"; this.line2.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; this.line2.YValues.DataMember = "Y"; // // annotation1 // this.annotation1.AutoSize = true; this.annotation1.Callout.ArrowHead = Steema.TeeChart.Styles.ArrowHeadStyles.None; this.annotation1.Callout.ArrowHeadDirection = Steema.TeeChart.Styles.ArrowHeadDirection.FromPoint; this.annotation1.Callout.ArrowHeadSize = 8; this.annotation1.Callout.Brush.Color = Color.Black; this.annotation1.Callout.Distance = 0; this.annotation1.Callout.Draw3D = false; this.annotation1.Callout.SizeDouble = 0D; this.annotation1.Callout.SizeUnits = Steema.TeeChart.Styles.PointerSizeUnits.Pixels; this.annotation1.Callout.XPosition = 0; this.annotation1.Callout.YPosition = 0; this.annotation1.Callout.ZPosition = 0; this.annotation1.Left = 2; this.annotation1.Shape.Bottom = 373; this.annotation1.Shape.CustomPosition = true; this.annotation1.Shape.Font.Brush.Color = Color.FromArgb(255, 255, 255, 255); this.annotation1.Shape.Font.Size = 40; this.annotation1.Shape.Font.SizeFloat = 40F; this.annotation1.Shape.Left = 2; this.annotation1.Shape.Lines = new string[] { "40%" }; this.annotation1.Shape.Right = 207; this.annotation1.Shape.Top = 25; this.annotation1.Shape.Transparent = true; this.annotation1.Text = "40%"; this.annotation1.Top = 70; // // annotation2 // this.annotation2.AutoSize = true; this.annotation2.Callout.ArrowHead = Steema.TeeChart.Styles.ArrowHeadStyles.None; this.annotation2.Callout.ArrowHeadDirection = Steema.TeeChart.Styles.ArrowHeadDirection.FromPoint; this.annotation2.Callout.ArrowHeadSize = 8; this.annotation2.Callout.Brush.Color = Color.Black; this.annotation2.Callout.Distance = 0; this.annotation2.Callout.Draw3D = false; this.annotation2.Callout.SizeDouble = 0D; this.annotation2.Callout.SizeUnits = Steema.TeeChart.Styles.PointerSizeUnits.Pixels; this.annotation2.Callout.XPosition = 0; this.annotation2.Callout.YPosition = 0; this.annotation2.Callout.ZPosition = 0; this.annotation2.Left = 0; this.annotation2.Shape.Bottom = 280; this.annotation2.Shape.CustomPosition = true; this.annotation2.Shape.Font.Brush.Color = Color.FromArgb(255, 128, 128, 255); this.annotation2.Shape.Font.Size = 9; this.annotation2.Shape.Font.SizeFloat = 9F; this.annotation2.Shape.Left = 6; this.annotation2.Shape.Lines = new string[] { "Percentage", "sample data" }; this.annotation2.Shape.Right = 166; this.annotation2.Shape.Top = 243; this.annotation2.Shape.Transparent = true; this.annotation2.Text = "Sample\r\ndata"; this.annotation2.Top = 120; Chart1.Axes.Left.SetMinMax(-20, 33); Chart1.Axes.Bottom.SetMinMax(-1, 16); bar3D1.Add(0, 26, -11); bar3D1.Add(1, 19, -5); bar3D1.Add(2, 18.5, -3); bar3D1.Add(3, 19, -1); bar3D1.Add(4, 17.5, -0.5, "5 jaar"); bar3D1.Add(5, 15, 2); bar3D1.Add(6, 15, 1); bar3D1.Add(7, 15, 0.5); bar3D1.Add(8, 14.5, 0.5); bar3D1.Add(9, 13, 1, "10 jaar"); bar3D1.Add(10, 12.5, 1.5); bar3D1.Add(11, 12.2, 1.5); bar3D1.Add(12, 9, 2.2); bar3D1.Add(13, 9, 3); bar3D1.Add(14, 7, 3.3, "15 jaar"); double[] xses = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14 }; double[] firstLine = { 31, 23, 22, 22.5, 20.5, 19, 18, 17, 16.5, 15.5, 14.9, 13.9, 13, 13.5, 13.2 }; double[] secondLine = { -19.5, -13, -8, -3, -2, -0.5, -0.6, -1.5, -1, 0, 0.4, 0.2, 1.7, 2.2, 2.7 }; line1.Add(xses, firstLine); line2.Add(xses, secondLine); }
public WebAnalytics() { this.tChart3 = new Steema.TeeChart.Chart(); this.donut3 = new Steema.TeeChart.Styles.Donut(); this.annotation3 = new Steema.TeeChart.Tools.Annotation(); this.tChart2 = new Steema.TeeChart.Chart(); this.donut2 = new Steema.TeeChart.Styles.Donut(); this.annotation2 = new Steema.TeeChart.Tools.Annotation(); this.tChart4 = new Steema.TeeChart.Chart(); this.line1 = new Steema.TeeChart.Styles.Line(); this.line2 = new Steema.TeeChart.Styles.Line(); this.line3 = new Steema.TeeChart.Styles.Line(); this.cursorTool1 = new Steema.TeeChart.Tools.CursorTool(); this.annotation4 = new Steema.TeeChart.Tools.Annotation(); this.cursorTool2 = new Steema.TeeChart.Tools.CursorTool(); this.annotation6 = new Steema.TeeChart.Tools.Annotation(); this.cursorTool3 = new Steema.TeeChart.Tools.CursorTool(); this.annotation8 = new Steema.TeeChart.Tools.Annotation(); this.tChart1 = new Steema.TeeChart.Chart(); this.donut1 = new Steema.TeeChart.Styles.Donut(); this.annotation1 = new Steema.TeeChart.Tools.Annotation(); this.textSource1 = new Steema.TeeChart.Data.TextSource(); // tChart3 this.tChart3.Aspect.Elevation = 315; this.tChart3.Aspect.Orthogonal = false; this.tChart3.Aspect.Perspective = 0; this.tChart3.Aspect.Rotation = 360; this.tChart3.Aspect.View3D = false; this.tChart3.Footer.Font.Brush.Color = Color.Gray; this.tChart3.Header.Visible = false; this.tChart3.Legend.Visible = false; this.tChart3.Panel.Bevel.Outer = Steema.TeeChart.Drawing.BevelStyles.None; this.tChart3.Panel.Brush.Color = Color.White; this.tChart3.Panel.Brush.Gradient.EndColor = Color.White; this.tChart3.Panel.Brush.Gradient.UseMiddle = false; this.tChart3.Series.Add(this.donut3); this.tChart3.Tools.Add(this.annotation3); this.tChart3.Walls.Back.Brush.Gradient.EndColor = Color.White; // donut3 this.donut3.Brush.Color = Color.FromRgb(((int)(((byte)(243)))), ((int)(((byte)(156)))), ((int)(((byte)(53))))); this.donut3.Circled = true; this.donut3.Color = Color.FromRgb(((int)(((byte)(68)))), ((int)(((byte)(102)))), ((int)(((byte)(163))))); this.donut3.DonutPercent = 95; this.donut3.Frame.Circled = true; this.donut3.Frame.FrameElementPercents = new double[] { 25D, 60D, 15D }; this.donut3.Frame.OuterBand.Gradient.UseMiddle = false; this.donut3.LabelMember = "Labels"; this.donut3.Marks.Visible = false; this.donut3.MarksPie.LegSize = 0; this.donut3.MarksPie.VertCenter = false; this.donut3.MultiPie = Steema.TeeChart.Styles.MultiPies.Automatic; this.donut3.OtherSlice.Style = Steema.TeeChart.Styles.PieOtherStyles.None; this.donut3.OtherSlice.Text = ""; this.donut3.OtherSlice.Value = 0D; this.donut3.RotationAngle = 180; this.donut3.Shadow.Height = 3; this.donut3.Shadow.Width = 3; this.donut3.Title = "Series0"; this.donut3.UniqueCustomRadius = true; this.donut3.XValues.DataMember = "Angle"; this.donut3.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; this.donut3.YValues.DataMember = "Pie"; // annotation3 this.annotation3.AutoSize = true; this.annotation3.Callout.ArrowHead = Steema.TeeChart.Styles.ArrowHeadStyles.None; this.annotation3.Callout.ArrowHeadDirection = Steema.TeeChart.Styles.ArrowHeadDirection.FromPoint; this.annotation3.Callout.ArrowHeadSize = 8; this.annotation3.Callout.Brush.Color = Color.Black; this.annotation3.Callout.Distance = 0; this.annotation3.Callout.Draw3D = false; this.annotation3.Callout.SizeDouble = 0D; this.annotation3.Callout.SizeUnits = Steema.TeeChart.Styles.PointerSizeUnits.Pixels; this.annotation3.Callout.XPosition = 0; this.annotation3.Callout.YPosition = 0; this.annotation3.Callout.ZPosition = 0; this.annotation3.Position = Steema.TeeChart.Tools.AnnotationPositions.Center; this.annotation3.Shape.Font.Name = "Segoe UI"; this.annotation3.Shape.Font.Size = 29; this.annotation3.Shape.Lines = new string[] { "$1500" }; this.annotation3.Shape.Transparent = true; this.annotation3.Text = "$1500"; // tChart2 this.tChart2.Aspect.Elevation = 315; this.tChart2.Aspect.Orthogonal = false; this.tChart2.Aspect.Perspective = 0; this.tChart2.Aspect.Rotation = 360; this.tChart2.Aspect.View3D = false; this.tChart2.Footer.Font.Brush.Color = Color.Gray; this.tChart2.Header.Visible = false; this.tChart2.Legend.Visible = false; this.tChart2.Panel.Bevel.Outer = Steema.TeeChart.Drawing.BevelStyles.None; this.tChart2.Panel.Brush.Color = Color.White; this.tChart2.Panel.Brush.Gradient.EndColor = Color.White; this.tChart2.Panel.Brush.Gradient.UseMiddle = false; this.tChart2.Series.Add(this.donut2); this.tChart2.Tools.Add(this.annotation2); this.tChart2.Walls.Back.Brush.Gradient.EndColor = Color.White; // donut2 this.donut2.Brush.Color = Color.FromRgb(((int)(((byte)(243)))), ((int)(((byte)(156)))), ((int)(((byte)(53))))); this.donut2.Circled = true; this.donut2.Color = Color.FromRgb(((int)(((byte)(68)))), ((int)(((byte)(102)))), ((int)(((byte)(163))))); this.donut2.DonutPercent = 95; this.donut2.Frame.Circled = true; this.donut2.Frame.FrameElementPercents = new double[] { 25D, 60D, 15D }; this.donut2.Frame.OuterBand.Gradient.UseMiddle = false; this.donut2.LabelMember = "Labels"; this.donut2.Marks.Visible = false; this.donut2.MarksPie.LegSize = 0; this.donut2.MarksPie.VertCenter = false; this.donut2.MultiPie = Steema.TeeChart.Styles.MultiPies.Automatic; this.donut2.OtherSlice.Style = Steema.TeeChart.Styles.PieOtherStyles.None; this.donut2.OtherSlice.Text = ""; this.donut2.OtherSlice.Value = 0D; this.donut2.RotationAngle = 247; this.donut2.Shadow.Height = 3; this.donut2.Shadow.Width = 3; this.donut2.Title = "Series0"; this.donut2.UniqueCustomRadius = true; this.donut2.XValues.DataMember = "Angle"; this.donut2.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; this.donut2.YValues.DataMember = "Pie"; // annotation2 this.annotation2.AutoSize = true; this.annotation2.Callout.ArrowHead = Steema.TeeChart.Styles.ArrowHeadStyles.None; this.annotation2.Callout.ArrowHeadDirection = Steema.TeeChart.Styles.ArrowHeadDirection.FromPoint; this.annotation2.Callout.ArrowHeadSize = 8; this.annotation2.Callout.Brush.Color = Color.Black; this.annotation2.Callout.Distance = 0; this.annotation2.Callout.Draw3D = false; this.annotation2.Callout.SizeDouble = 0D; this.annotation2.Callout.SizeUnits = Steema.TeeChart.Styles.PointerSizeUnits.Pixels; this.annotation2.Callout.XPosition = 0; this.annotation2.Callout.YPosition = 0; this.annotation2.Callout.ZPosition = 0; this.annotation2.Position = Steema.TeeChart.Tools.AnnotationPositions.Center; this.annotation2.Shape.Font.Name = "Segoe UI"; this.annotation2.Shape.Font.Size = 29; this.annotation2.Shape.Lines = new string[] { "3390" }; this.annotation2.Shape.Transparent = true; this.annotation2.Text = "3390"; // tChart4 this.tChart4.Aspect.View3D = false; this.tChart4.Axes.Bottom.MinorTicks.Visible = false; this.tChart4.Axes.Left.Grid.Visible = false; this.tChart4.Axes.Left.Increment = 20D; this.tChart4.Axes.Left.MinorTicks.Visible = false; this.tChart4.Footer.Font.Brush.Color = Color.Blue; this.tChart4.Header.Visible = false; this.tChart4.Legend.Alignment = Steema.TeeChart.LegendAlignments.Bottom; this.tChart4.Legend.Transparent = true; this.tChart4.Panel.Bevel.Outer = Steema.TeeChart.Drawing.BevelStyles.None; this.tChart4.Panel.Brush.Color = Color.White; this.tChart4.Panel.Brush.Gradient.EndColor = Color.White; this.tChart4.Panel.Brush.Gradient.UseMiddle = false; this.tChart4.Series.Add(this.line1); this.tChart4.Series.Add(this.line2); this.tChart4.Series.Add(this.line3); this.tChart4.Tools.Add(this.cursorTool1); this.tChart4.Tools.Add(this.annotation4); this.tChart4.Tools.Add(this.cursorTool2); this.tChart4.Tools.Add(this.annotation6); this.tChart4.Tools.Add(this.cursorTool3); this.tChart4.Tools.Add(this.annotation8); this.tChart4.Walls.Back.Brush.Gradient.EndColor = Color.White; this.tChart4.Walls.Back.Visible = false; this.tChart4.AfterDraw += new Steema.TeeChart.PaintChartEventHandler(this.tChart4_AfterDraw); // line1 this.line1.Brush.Color = Color.FromRgb(((int)(((byte)(68)))), ((int)(((byte)(102)))), ((int)(((byte)(163))))); this.line1.Color = Color.FromRgb(((int)(((byte)(68)))), ((int)(((byte)(102)))), ((int)(((byte)(163))))); this.line1.ColorEach = false; this.line1.ColorMember = "Colors"; this.line1.LinePen.Color = Color.FromRgb(((int)(((byte)(41)))), ((int)(((byte)(61)))), ((int)(((byte)(98))))); this.line1.LinePen.Width = 4; this.line1.Pointer.Pen.Visible = false; this.line1.Pointer.SizeDouble = 0D; this.line1.Pointer.SizeUnits = Steema.TeeChart.Styles.PointerSizeUnits.Pixels; this.line1.Pointer.Style = Steema.TeeChart.Styles.PointerStyles.Circle; this.line1.Title = "Speed"; this.line1.XValues.DataMember = "X"; this.line1.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; this.line1.YValues.DataMember = "Y"; // line2 this.line2.Brush.Color = Color.FromRgb(((int)(((byte)(6)))), ((int)(((byte)(191)))), ((int)(((byte)(89))))); this.line2.Color = Color.FromRgb(((int)(((byte)(6)))), ((int)(((byte)(191)))), ((int)(((byte)(89))))); this.line2.ColorEach = false; this.line2.LinePen.Color = Color.FromRgb(((int)(((byte)(146)))), ((int)(((byte)(94)))), ((int)(((byte)(32))))); this.line2.LinePen.Width = 4; this.line2.Pointer.Pen.Visible = false; this.line2.Pointer.SizeDouble = 0D; this.line2.Pointer.SizeUnits = Steema.TeeChart.Styles.PointerSizeUnits.Pixels; this.line2.Pointer.Style = Steema.TeeChart.Styles.PointerStyles.Circle; this.line2.Title = "Time"; this.line2.XValues.DataMember = "X"; this.line2.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; this.line2.YValues.DataMember = "Y"; // line3 this.line3.Brush.Color = Color.FromRgb(((int)(((byte)(238)))), ((int)(((byte)(17)))), ((int)(((byte)(34))))); this.line3.Color = Color.FromRgb(((int)(((byte)(238)))), ((int)(((byte)(17)))), ((int)(((byte)(34))))); this.line3.ColorEach = false; this.line3.ColorMember = "Colors"; this.line3.LinePen.Color = Color.FromRgb(((int)(((byte)(146)))), ((int)(((byte)(94)))), ((int)(((byte)(32))))); this.line3.LinePen.Width = 4; this.line3.Pointer.Pen.Visible = false; this.line3.Pointer.SizeDouble = 0D; this.line3.Pointer.SizeUnits = Steema.TeeChart.Styles.PointerSizeUnits.Pixels; this.line3.Pointer.Style = Steema.TeeChart.Styles.PointerStyles.Circle; this.line3.Title = "Visitors"; this.line3.XValues.DataMember = "X"; this.line3.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; this.line3.YValues.DataMember = "Y"; // cursorTool1 this.cursorTool1.FollowMouse = true; this.cursorTool1.Pen.Color = Color.Gray; this.cursorTool1.Series = this.line1; this.cursorTool1.Style = Steema.TeeChart.Tools.CursorToolStyles.Vertical; this.cursorTool1.Change += new Steema.TeeChart.Tools.CursorChangeEventHandler(this.cursorTool1_Change); // annotation4 this.annotation4.AutoSize = true; this.annotation4.Callout.ArrowHead = Steema.TeeChart.Styles.ArrowHeadStyles.None; this.annotation4.Callout.ArrowHeadDirection = Steema.TeeChart.Styles.ArrowHeadDirection.FromPoint; this.annotation4.Callout.ArrowHeadSize = 8; this.annotation4.Callout.Brush.Color = Color.Black; this.annotation4.Callout.Distance = 0; this.annotation4.Callout.Draw3D = false; this.annotation4.Callout.SizeDouble = 0D; this.annotation4.Callout.SizeUnits = Steema.TeeChart.Styles.PointerSizeUnits.Pixels; this.annotation4.Callout.XPosition = 0; this.annotation4.Callout.YPosition = 0; this.annotation4.Callout.ZPosition = 0; this.annotation4.Left = 56; this.annotation4.Shape.Bottom = 212; this.annotation4.Shape.Brush.Color = Color.FromRgb(((int)(((byte)(238)))), ((int)(((byte)(17)))), ((int)(((byte)(34))))); this.annotation4.Shape.CustomPosition = true; this.annotation4.Shape.Font.Brush.Color = Color.White; this.annotation4.Shape.Left = 56; this.annotation4.Shape.Lines = new string[] { "0" }; this.annotation4.Shape.Pen.Visible = false; this.annotation4.Shape.Right = 75; this.annotation4.Shape.Shadow.Visible = false; this.annotation4.Shape.ShapeStyle = Steema.TeeChart.Drawing.TextShapeStyle.RoundRectangle; this.annotation4.Shape.Top = 194; this.annotation4.Shape.Visible = false; this.annotation4.Text = "0"; this.annotation4.Top = 194; // cursorTool2 this.cursorTool2.FollowMouse = true; this.cursorTool2.Pen.Color = Color.Gray; this.cursorTool2.Series = this.line2; this.cursorTool2.Style = Steema.TeeChart.Tools.CursorToolStyles.Vertical; // annotation6 this.annotation6.AutoSize = true; this.annotation6.Callout.ArrowHead = Steema.TeeChart.Styles.ArrowHeadStyles.None; this.annotation6.Callout.ArrowHeadDirection = Steema.TeeChart.Styles.ArrowHeadDirection.FromPoint; this.annotation6.Callout.ArrowHeadSize = 8; this.annotation6.Callout.Brush.Color = Color.Black; this.annotation6.Callout.Distance = 0; this.annotation6.Callout.Draw3D = false; this.annotation6.Callout.SizeDouble = 0D; this.annotation6.Callout.SizeUnits = Steema.TeeChart.Styles.PointerSizeUnits.Pixels; this.annotation6.Callout.XPosition = 0; this.annotation6.Callout.YPosition = 0; this.annotation6.Callout.ZPosition = 0; this.annotation6.Left = -19; this.annotation6.Shape.Bottom = 212; this.annotation6.Shape.Brush.Color = Color.FromRgb(((int)(((byte)(238)))), ((int)(((byte)(17)))), ((int)(((byte)(34))))); this.annotation6.Shape.CustomPosition = true; this.annotation6.Shape.Font.Brush.Color = Color.White; this.annotation6.Shape.Left = -19; this.annotation6.Shape.Lines = new string[] { "-0,458" }; this.annotation6.Shape.Pen.Visible = false; this.annotation6.Shape.Right = 29; this.annotation6.Shape.Shadow.Visible = false; this.annotation6.Shape.ShapeStyle = Steema.TeeChart.Drawing.TextShapeStyle.RoundRectangle; this.annotation6.Shape.Top = 194; this.annotation6.Shape.Visible = false; this.annotation6.Text = "-0,458"; this.annotation6.TextAlign = TextAlignment.Center; this.annotation6.Top = 194; // cursorTool3 this.cursorTool3.FollowMouse = true; this.cursorTool3.Pen.Color = Color.Gray; this.cursorTool3.Series = this.line3; this.cursorTool3.Style = Steema.TeeChart.Tools.CursorToolStyles.Vertical; // annotation8 this.annotation8.AutoSize = true; this.annotation8.Callout.ArrowHead = Steema.TeeChart.Styles.ArrowHeadStyles.None; this.annotation8.Callout.ArrowHeadDirection = Steema.TeeChart.Styles.ArrowHeadDirection.FromPoint; this.annotation8.Callout.ArrowHeadSize = 8; this.annotation8.Callout.Brush.Color = Color.Black; this.annotation8.Callout.Distance = 0; this.annotation8.Callout.Draw3D = false; this.annotation8.Callout.SizeDouble = 0D; this.annotation8.Callout.SizeUnits = Steema.TeeChart.Styles.PointerSizeUnits.Pixels; this.annotation8.Callout.XPosition = 0; this.annotation8.Callout.YPosition = 0; this.annotation8.Callout.ZPosition = 0; this.annotation8.Left = -19; this.annotation8.Shape.Bottom = 212; this.annotation8.Shape.Brush.Color = Color.FromRgb(((int)(((byte)(238)))), ((int)(((byte)(17)))), ((int)(((byte)(34))))); this.annotation8.Shape.CustomPosition = true; this.annotation8.Shape.Font.Brush.Color = Color.White; this.annotation8.Shape.Left = -19; this.annotation8.Shape.Lines = new string[] { "-0,458" }; this.annotation8.Shape.Pen.Visible = false; this.annotation8.Shape.Right = 29; this.annotation8.Shape.Shadow.Visible = false; this.annotation8.Shape.ShapeStyle = Steema.TeeChart.Drawing.TextShapeStyle.RoundRectangle; this.annotation8.Shape.Top = 194; this.annotation8.Shape.Visible = false; this.annotation8.Text = "-0,458"; this.annotation8.TextAlign = TextAlignment.Center; this.annotation8.Top = 194; // tChart1 this.tChart1.Aspect.Elevation = 315; this.tChart1.Aspect.Orthogonal = false; this.tChart1.Aspect.Perspective = 0; this.tChart1.Aspect.Rotation = 360; this.tChart1.Aspect.View3D = false; this.tChart1.Footer.Font.Brush.Color = Color.Gray; this.tChart1.Header.Visible = false; this.tChart1.Legend.Visible = false; this.tChart1.Panel.Bevel.Outer = Steema.TeeChart.Drawing.BevelStyles.None; this.tChart1.Panel.Brush.Color = Color.White; this.tChart1.Panel.Brush.Gradient.EndColor = Color.White; this.tChart1.Panel.Brush.Gradient.UseMiddle = false; this.tChart1.Series.Add(this.donut1); this.tChart1.Tools.Add(this.annotation1); this.tChart1.Walls.Back.Brush.Gradient.EndColor = Color.White; // donut1 this.donut1.Brush.Color = Color.FromRgb(((int)(((byte)(243)))), ((int)(((byte)(156)))), ((int)(((byte)(53))))); this.donut1.Circled = true; this.donut1.Color = Color.FromRgb(((int)(((byte)(68)))), ((int)(((byte)(102)))), ((int)(((byte)(163))))); this.donut1.DonutPercent = 95; this.donut1.Frame.Circled = true; this.donut1.Frame.FrameElementPercents = new double[] { 25D, 60D, 15D }; this.donut1.Frame.OuterBand.Gradient.UseMiddle = false; this.donut1.LabelMember = "Labels"; this.donut1.Marks.Visible = false; this.donut1.MarksPie.LegSize = 0; this.donut1.MarksPie.VertCenter = false; this.donut1.MultiPie = Steema.TeeChart.Styles.MultiPies.Automatic; this.donut1.OtherSlice.Style = Steema.TeeChart.Styles.PieOtherStyles.None; this.donut1.OtherSlice.Text = ""; this.donut1.OtherSlice.Value = 0D; this.donut1.RotationAngle = 180; this.donut1.Shadow.Height = 3; this.donut1.Shadow.Width = 3; this.donut1.Title = "Series0"; this.donut1.UniqueCustomRadius = true; this.donut1.XValues.DataMember = "Angle"; this.donut1.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; this.donut1.YValues.DataMember = "Pie"; // annotation1 this.annotation1.AutoSize = true; this.annotation1.Callout.ArrowHead = Steema.TeeChart.Styles.ArrowHeadStyles.None; this.annotation1.Callout.ArrowHeadDirection = Steema.TeeChart.Styles.ArrowHeadDirection.FromPoint; this.annotation1.Callout.ArrowHeadSize = 8; this.annotation1.Callout.Brush.Color = Color.Black; this.annotation1.Callout.Distance = 0; this.annotation1.Callout.Draw3D = false; this.annotation1.Callout.SizeDouble = 0D; this.annotation1.Callout.SizeUnits = Steema.TeeChart.Styles.PointerSizeUnits.Pixels; this.annotation1.Callout.XPosition = 0; this.annotation1.Callout.YPosition = 0; this.annotation1.Callout.ZPosition = 0; this.annotation1.Position = Steema.TeeChart.Tools.AnnotationPositions.Center; this.annotation1.Shape.Font.Name = "Segoe UI"; this.annotation1.Shape.Font.Size = 29; this.annotation1.Shape.Lines = new string[] { "$750" }; this.annotation1.Shape.Transparent = true; this.annotation1.Text = "$750"; tChart1.Panel.Gradient.Visible = false; tChart2.Panel.Gradient.Visible = false; tChart3.Panel.Gradient.Visible = false; tChart4.Panel.Gradient.Visible = false; donut1.Clear(); donut1.Add(750, Color.FromRgb(((int)(((byte)(68)))), ((int)(((byte)(102)))), ((int)(((byte)(163)))))); donut1.Add(250, Color.Transparent); donut1.Pen.Visible = false; donut2.Clear(); donut2.Add(3390, Color.Green); donut2.Add(2510, Color.Transparent); donut2.Pen.Visible = false; donut3.Clear(); donut3.Add(1500, Color.Red); donut3.Add(500, Color.Transparent); donut3.Pen.Visible = false; donut3.Pen.Color = Color.White; double[] vals1 = new double[] { 220, 150, 135, 190, 210, 200 }; double[] vals2 = new double[] { 100, 70, 100, 150, 110, 24 }; double[] vals3 = new double[] { 100, 130, 80, 130, 126, 240 }; line1.Smoothed = true; line2.Smoothed = true; line3.Smoothed = true; line1.Add(vals1); line2.Add(vals2); line3.Add(vals3); annotation4.Shape.Font.Brush.Color = line1.Color; annotation6.Shape.Font.Brush.Color = line2.Color; annotation8.Shape.Font.Brush.Color = line3.Color; cursorTool1_Change(tChart4, new Steema.TeeChart.Tools.CursorChangeEventArgs()); this.tChart1.Aspect.ZoomText = true; this.tChart2.Aspect.ZoomText = true; this.tChart3.Aspect.ZoomText = true; this.tChart4.Aspect.ZoomText = true; chartView1 = new ChartView { VerticalOptions = LayoutOptions.FillAndExpand, HorizontalOptions = LayoutOptions.FillAndExpand, WidthRequest = 25, HeightRequest = 25 }; chartView1.Model = tChart1; chartView2 = new ChartView { VerticalOptions = LayoutOptions.FillAndExpand, HorizontalOptions = LayoutOptions.FillAndExpand, WidthRequest = 25, HeightRequest = 25 }; chartView2.Model = tChart2; chartView3 = new ChartView { VerticalOptions = LayoutOptions.FillAndExpand, HorizontalOptions = LayoutOptions.FillAndExpand, WidthRequest = 25, HeightRequest = 25 }; chartView3.Model = tChart3; chartView4 = new ChartView { VerticalOptions = LayoutOptions.FillAndExpand, HorizontalOptions = LayoutOptions.FillAndExpand, WidthRequest = 25, HeightRequest = 25 }; chartView4.Model = tChart4; Grid grid = new Grid { VerticalOptions = LayoutOptions.FillAndExpand, Padding = 5, RowDefinitions = { new RowDefinition { Height = new GridLength(1, GridUnitType.Star) }, new RowDefinition { Height = new GridLength(1, GridUnitType.Star) } }, ColumnDefinitions = { new ColumnDefinition { Width = new GridLength(1, GridUnitType.Star) }, new ColumnDefinition { Width = new GridLength(1, GridUnitType.Star) }, new ColumnDefinition { Width = new GridLength(1, GridUnitType.Star) } } }; grid.Children.Add(chartView1, 0, 0); grid.Children.Add(chartView2, 1, 0); grid.Children.Add(chartView3, 2, 0); grid.Children.Add(chartView4, 0, 3, 1, 2); // Build the page. this.Content = grid; }
public ChartToolsPage(Type toolsType) { chart.HeightRequest = 300; chart.WidthRequest = 300; ToolsGalleryDemos toolsDemos = new ToolsGalleryDemos(chart.Chart, typeof(TeeChartTheme)); chart.Chart.Aspect.View3D = false; chart.Chart.Panel.Bevel.Inner = BevelStyles.None; chart.Chart.Panel.Bevel.Outer = BevelStyles.None; chart.Chart.Panel.Gradient.Visible = true; chart.Chart.Zoom.Active = false; chart.Chart.Touch.Style = Steema.TeeChart.TouchStyle.InChart; toolsDemos.CreateGallery(toolsType); ReportTheme theme = new ReportTheme(chart.Chart); Steema.TeeChart.Themes.Theme.ApplyChartTheme(theme, chart.Chart); Steema.TeeChart.Themes.ColorPalettes.ApplyPalette(chart.Chart, Theme.OnBlackPalette); chart.Chart.Header.Font.Color = Color.Gray; chart.Chart.Axes.Left.AxisPen.Color = Color.Gray; chart.Chart.Axes.Bottom.AxisPen.Color = Color.Gray; chart.Chart.Axes.Left.Labels.Font.Color = Color.Gray; chart.Chart.Axes.Bottom.Labels.Font.Color = Color.Gray; if (chart.Chart.Series.Count > 0) { if (chart.Chart.Series[0] is Steema.TeeChart.Styles.Pie) { Steema.TeeChart.Styles.Pie pie = ((Steema.TeeChart.Styles.Pie)(chart.Chart.Series[0])); pie.Circled = true; pie.CircleGradient.Visible = false; } } if (chart.Chart.Tools.Count > 0) { foreach (Steema.TeeChart.Tools.Tool s in chart.Chart.Tools) { if (s is Steema.TeeChart.Tools.Annotation) { Steema.TeeChart.Tools.Annotation annotation = ((Steema.TeeChart.Tools.Annotation)(s)); annotation.Shape.Font.Size = 12; annotation.TextAlign = TextAlignment.Center; annotation.Shape.Gradient.StartColor = Color.FromRgb(120, 120, 120); } if (s is Steema.TeeChart.Tools.GridBand) { Steema.TeeChart.Tools.GridBand gridband = ((Steema.TeeChart.Tools.GridBand)(s)); gridband.Band1.Color = Color.FromRgb(192, 192, 192); gridband.Band2.Color = Color.FromRgb(225, 225, 225); chart.Chart.Axes.Left.Labels.RoundFirstLabel = true; chart.Chart.Axes.Left.Labels.Separation = 100; } } } chart.InvalidateDisplay(); chart.Chart.Invalidate(); Content = new StackLayout { Children = { chart }, VerticalOptions = LayoutOptions.CenterAndExpand, HorizontalOptions = LayoutOptions.CenterAndExpand, }; }