private void InitHorizontLine(decimal?v, string Label, int SerieNumber, int ValuesCount) { Telerik.Charting.ChartSeries l = rcMetricOrgLocation.Series[SerieNumber]; if (v == null) { l.Visible = false; return; } l.Visible = true; Telerik.Charting.ChartSeriesItem it; it = new Telerik.Charting.ChartSeriesItem((double)v); it.XValue = -0.5; it.Label.TextBlock.Visible = false; l.Items.Add(it); it = new Telerik.Charting.ChartSeriesItem((double)v); it.XValue = ValuesCount - 0.5; if (String.IsNullOrEmpty(Label)) { it.Label.TextBlock.Visible = false; } else { it.Label.TextBlock.Text = Label; } l.Items.Add(it); }
/// <summary> /// Required designer variable. /// </summary> //private System.ComponentModel.IContainer components = null; #region Windows Form Designer generated code /// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { Telerik.Charting.Styles.Corners corners1 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners2 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners3 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners4 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners5 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners6 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners7 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners8 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners9 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners10 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners11 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Unit unit1 = new Telerik.Charting.Styles.Unit(); Telerik.Charting.Styles.Unit unit2 = new Telerik.Charting.Styles.Unit(); Telerik.Charting.Styles.Unit unit3 = new Telerik.Charting.Styles.Unit(); Telerik.Charting.Styles.Unit unit4 = new Telerik.Charting.Styles.Unit(); Telerik.Charting.Styles.Corners corners12 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners13 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners14 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners15 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners16 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners17 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners18 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners19 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners20 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners21 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners22 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners23 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners24 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners25 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners26 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners27 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.ChartSeries chartSeries1 = new Telerik.Charting.ChartSeries(); Telerik.Charting.Styles.Corners corners28 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners29 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners30 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners31 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners32 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.ChartSeriesItem chartSeriesItem1 = new Telerik.Charting.ChartSeriesItem(); Telerik.Charting.Styles.Corners corners33 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners34 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners35 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners36 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners37 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.ChartSeriesItem chartSeriesItem2 = new Telerik.Charting.ChartSeriesItem(); Telerik.Charting.Styles.Corners corners38 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners39 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners40 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners41 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners42 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.ChartSeriesItem chartSeriesItem3 = new Telerik.Charting.ChartSeriesItem(); Telerik.Charting.Styles.Corners corners43 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners44 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners45 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners46 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners47 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.ChartSeriesItem chartSeriesItem4 = new Telerik.Charting.ChartSeriesItem(); Telerik.Charting.Styles.Corners corners48 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners49 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners50 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners51 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners52 = new Telerik.Charting.Styles.Corners(); #pragma warning disable 618 this.radChart1 = new Telerik.WinControls.UI.RadChart(); this.radChart1.Skin = "Default2006"; ((System.ComponentModel.ISupportInitialize)(this.radChart1)).BeginInit(); this.SuspendLayout(); // // radChart1 // this.radChart1.Appearance.Border.Color = System.Drawing.Color.FromArgb(((int)(((byte)(131)))), ((int)(((byte)(171)))), ((int)(((byte)(184))))); this.radChart1.Appearance.Corners = corners1; this.radChart1.Appearance.FillStyle.FillType = Telerik.Charting.Styles.FillType.Hatch; this.radChart1.Appearance.FillStyle.MainColor = System.Drawing.Color.FromArgb(((int)(((byte)(225)))), ((int)(((byte)(235)))), ((int)(((byte)(239))))); this.radChart1.Appearance.FillStyle.SecondColor = System.Drawing.Color.FromArgb(((int)(((byte)(207)))), ((int)(((byte)(223)))), ((int)(((byte)(229))))); this.radChart1.ChartTitle.Appearance.Border.Visible = false; this.radChart1.ChartTitle.Appearance.Corners = corners2; this.radChart1.ChartTitle.Appearance.FillStyle.MainColor = System.Drawing.Color.Empty; this.radChart1.ChartTitle.Appearance.Position.AlignedPosition = Telerik.Charting.Styles.AlignedPositions.TopLeft; this.radChart1.ChartTitle.Marker.Appearance.Corners = corners3; this.radChart1.ChartTitle.TextBlock.Appearance.Corners = corners4; this.radChart1.ChartTitle.TextBlock.Appearance.TextProperties.Color = System.Drawing.Color.FromArgb(((int)(((byte)(81)))), ((int)(((byte)(103)))), ((int)(((byte)(114))))); this.radChart1.ChartTitle.TextBlock.Appearance.TextProperties.Font = new System.Drawing.Font("Arial", 21.75F); this.radChart1.DataGroupColumn = null; this.radChart1.DefaultType = Telerik.Charting.ChartSeriesType.Line; this.radChart1.Legend.Appearance.Border.Color = System.Drawing.Color.FromArgb(((int)(((byte)(193)))), ((int)(((byte)(214)))), ((int)(((byte)(221))))); this.radChart1.Legend.Appearance.Corners = corners5; this.radChart1.Legend.Appearance.FillStyle.MainColor = System.Drawing.Color.FromArgb(((int)(((byte)(241)))), ((int)(((byte)(253)))), ((int)(((byte)(255))))); this.radChart1.Legend.Appearance.ItemAppearance.Corners = corners6; this.radChart1.Legend.Appearance.ItemMarkerAppearance.Corners = corners7; this.radChart1.Legend.Appearance.ItemTextAppearance.Corners = corners8; this.radChart1.Legend.Marker.Appearance.Corners = corners9; this.radChart1.Legend.TextBlock.Appearance.Corners = corners10; this.radChart1.Location = new System.Drawing.Point(12, 12); this.radChart1.Name = "radChart1"; this.radChart1.PlotArea.Appearance.Border.Color = System.Drawing.Color.FromArgb(((int)(((byte)(193)))), ((int)(((byte)(214)))), ((int)(((byte)(221))))); this.radChart1.PlotArea.Appearance.Corners = corners11; unit1.Type = Telerik.Charting.Styles.UnitType.Percentage; unit1.Value = 24F; unit2.Value = 80F; unit3.Value = 50F; unit4.Value = 50F; this.radChart1.PlotArea.Appearance.Dimensions.Margins = new Telerik.Charting.Styles.ChartMargins(unit1, unit2, unit3, unit4); this.radChart1.PlotArea.Appearance.FillStyle.MainColor = System.Drawing.Color.FromArgb(((int)(((byte)(241)))), ((int)(((byte)(253)))), ((int)(((byte)(255))))); this.radChart1.SkinsOverrideStyles = true; this.radChart1.Skin = "Apple"; this.radChart1.PlotArea.XAxis.Appearance.Color = System.Drawing.Color.FromArgb(((int)(((byte)(193)))), ((int)(((byte)(214)))), ((int)(((byte)(221))))); this.radChart1.PlotArea.XAxis.Appearance.LabelAppearance.Corners = corners13; this.radChart1.PlotArea.XAxis.Appearance.MajorGridLines.Color = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(232)))), ((int)(((byte)(227))))); this.radChart1.PlotArea.XAxis.Appearance.MajorGridLines.PenStyle = System.Drawing.Drawing2D.DashStyle.Solid; this.radChart1.PlotArea.XAxis.Appearance.MajorTick.Color = System.Drawing.Color.FromArgb(((int)(((byte)(154)))), ((int)(((byte)(153)))), ((int)(((byte)(129))))); this.radChart1.PlotArea.XAxis.Appearance.TextAppearance.Corners = corners14; this.radChart1.PlotArea.XAxis.Appearance.TextAppearance.TextProperties.Color = System.Drawing.Color.FromArgb(((int)(((byte)(96)))), ((int)(((byte)(96)))), ((int)(((byte)(78))))); this.radChart1.PlotArea.XAxis.AxisLabel.Appearance.Corners = corners15; this.radChart1.PlotArea.XAxis.AxisLabel.Marker.Appearance.Corners = corners16; this.radChart1.PlotArea.XAxis.AxisLabel.TextBlock.Appearance.Corners = corners17; this.radChart1.PlotArea.XAxis.AxisLabel.TextBlock.Text = "Month"; this.radChart1.PlotArea.XAxis.MaxValue = 4; this.radChart1.PlotArea.XAxis.MinValue = 1; this.radChart1.PlotArea.XAxis.Step = 1; this.radChart1.PlotArea.YAxis.Appearance.Color = System.Drawing.Color.FromArgb(((int)(((byte)(193)))), ((int)(((byte)(214)))), ((int)(((byte)(221))))); this.radChart1.PlotArea.YAxis.Appearance.LabelAppearance.Corners = corners18; this.radChart1.PlotArea.YAxis.Appearance.MajorGridLines.Color = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(232)))), ((int)(((byte)(227))))); this.radChart1.PlotArea.YAxis.Appearance.MajorGridLines.PenStyle = System.Drawing.Drawing2D.DashStyle.Solid; this.radChart1.PlotArea.YAxis.Appearance.MajorTick.Color = System.Drawing.Color.FromArgb(((int)(((byte)(154)))), ((int)(((byte)(153)))), ((int)(((byte)(129))))); this.radChart1.PlotArea.YAxis.Appearance.MinorGridLines.Color = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(232)))), ((int)(((byte)(227))))); this.radChart1.PlotArea.YAxis.Appearance.MinorGridLines.Visible = false; this.radChart1.PlotArea.YAxis.Appearance.MinorTick.Color = System.Drawing.Color.FromArgb(((int)(((byte)(154)))), ((int)(((byte)(153)))), ((int)(((byte)(129))))); this.radChart1.PlotArea.YAxis.Appearance.MinorTick.Visible = false; this.radChart1.PlotArea.YAxis.Appearance.TextAppearance.Corners = corners19; this.radChart1.PlotArea.YAxis.Appearance.TextAppearance.TextProperties.Color = System.Drawing.Color.FromArgb(((int)(((byte)(96)))), ((int)(((byte)(96)))), ((int)(((byte)(78))))); this.radChart1.PlotArea.YAxis.AxisLabel.Appearance.Corners = corners20; this.radChart1.PlotArea.YAxis.AxisLabel.Marker.Appearance.Corners = corners21; this.radChart1.PlotArea.YAxis.AxisLabel.TextBlock.Appearance.Corners = corners22; this.radChart1.PlotArea.YAxis.AxisLabel.TextBlock.Text = "Sales"; this.radChart1.PlotArea.YAxis.MaxValue = 4; this.radChart1.PlotArea.YAxis.Step = 0.5; this.radChart1.PlotArea.YAxis2.Appearance.LabelAppearance.Corners = corners23; this.radChart1.PlotArea.YAxis2.Appearance.TextAppearance.Corners = corners24; this.radChart1.PlotArea.YAxis2.AxisLabel.Appearance.Corners = corners25; this.radChart1.PlotArea.YAxis2.AxisLabel.Marker.Appearance.Corners = corners26; this.radChart1.PlotArea.YAxis2.AxisLabel.TextBlock.Appearance.Corners = corners27; this.radChart1.PlotArea.YAxis2.MaxValue = 4; this.radChart1.PlotArea.YAxis2.MinValue = 1; this.radChart1.PlotArea.YAxis2.Step = 1; chartSeries1.Appearance.Corners = corners28; chartSeries1.Appearance.EmptyValue.PointMark.Corners = corners29; chartSeries1.Appearance.LabelAppearance.Corners = corners30; chartSeries1.Appearance.PointMark.Corners = corners31; chartSeries1.Appearance.TextAppearance.Corners = corners32; chartSeriesItem1.Appearance.Corners = corners33; chartSeriesItem1.Label.Appearance.Corners = corners34; chartSeriesItem1.Label.Marker.Appearance.Corners = corners35; chartSeriesItem1.Label.TextBlock.Appearance.Corners = corners36; chartSeriesItem1.PointAppearance.Corners = corners37; chartSeriesItem1.YValue = 1; chartSeriesItem2.Appearance.Corners = corners38; chartSeriesItem2.Label.Appearance.Corners = corners39; chartSeriesItem2.Label.Marker.Appearance.Corners = corners40; chartSeriesItem2.Label.TextBlock.Appearance.Corners = corners41; chartSeriesItem2.PointAppearance.Corners = corners42; chartSeriesItem2.YValue = 2; chartSeriesItem3.Appearance.Corners = corners43; chartSeriesItem3.Label.Appearance.Corners = corners44; chartSeriesItem3.Label.Marker.Appearance.Corners = corners45; chartSeriesItem3.Label.TextBlock.Appearance.Corners = corners46; chartSeriesItem3.PointAppearance.Corners = corners47; chartSeriesItem3.YValue = 3; chartSeriesItem4.Appearance.Corners = corners48; chartSeriesItem4.Label.Appearance.Corners = corners49; chartSeriesItem4.Label.Marker.Appearance.Corners = corners50; chartSeriesItem4.Label.TextBlock.Appearance.Corners = corners51; chartSeriesItem4.PointAppearance.Corners = corners52; chartSeriesItem4.YValue = 4; chartSeries1.Items.AddRange(new Telerik.Charting.ChartSeriesItem[] { chartSeriesItem1, chartSeriesItem2, chartSeriesItem3, chartSeriesItem4 }); chartSeries1.Name = "Series 1"; chartSeries1.Type = Telerik.Charting.ChartSeriesType.Line; this.radChart1.Series.Add(chartSeries1); this.radChart1.Size = new System.Drawing.Size(400, 300); this.radChart1.TabIndex = 0; // // Form1 // this.Controls.Add(this.radChart1); this.Name = "Form1"; this.Size = new System.Drawing.Size(1232, 822); ((System.ComponentModel.ISupportInitialize)(this.radChart1)).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() { Telerik.Charting.Styles.Corners corners1 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners2 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.ChartMargins chartMargins1 = new Telerik.Charting.Styles.ChartMargins(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form1)); Telerik.Charting.Styles.Corners corners3 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.ChartMargins chartMargins2 = new Telerik.Charting.Styles.ChartMargins(); Telerik.Charting.ChartSeries chartSeries1 = new Telerik.Charting.ChartSeries(); Telerik.Charting.ChartSeriesItem chartSeriesItem1 = new Telerik.Charting.ChartSeriesItem(); Telerik.Charting.ChartSeriesItem chartSeriesItem2 = new Telerik.Charting.ChartSeriesItem(); Telerik.Charting.ChartSeriesItem chartSeriesItem3 = new Telerik.Charting.ChartSeriesItem(); Telerik.Charting.ChartSeriesItem chartSeriesItem4 = new Telerik.Charting.ChartSeriesItem(); Telerik.Charting.ChartSeriesItem chartSeriesItem5 = new Telerik.Charting.ChartSeriesItem(); Telerik.Charting.ChartSeries chartSeries2 = new Telerik.Charting.ChartSeries(); Telerik.Charting.ChartSeriesItem chartSeriesItem6 = new Telerik.Charting.ChartSeriesItem(); Telerik.Charting.ChartSeriesItem chartSeriesItem7 = new Telerik.Charting.ChartSeriesItem(); Telerik.Charting.ChartSeriesItem chartSeriesItem8 = new Telerik.Charting.ChartSeriesItem(); Telerik.Charting.ChartSeriesItem chartSeriesItem9 = new Telerik.Charting.ChartSeriesItem(); Telerik.Charting.ChartSeriesItem chartSeriesItem10 = new Telerik.Charting.ChartSeriesItem(); #pragma warning disable 618 this.radChart1 = new Telerik.WinControls.UI.RadChart(); ((System.ComponentModel.ISupportInitialize)(this.radChart1)).BeginInit(); this.SuspendLayout(); // // radChart1 // this.radChart1.Appearance.Border.Color = System.Drawing.Color.FromArgb(((int)(((byte)(117)))), ((int)(((byte)(117)))), ((int)(((byte)(117))))); this.radChart1.Appearance.FillStyle.FillType = Telerik.Charting.Styles.FillType.Gradient; this.radChart1.Appearance.FillStyle.MainColor = System.Drawing.Color.FromArgb(((int)(((byte)(244)))), ((int)(((byte)(244)))), ((int)(((byte)(234))))); this.radChart1.Appearance.FillStyle.SecondColor = System.Drawing.Color.FromArgb(((int)(((byte)(167)))), ((int)(((byte)(172)))), ((int)(((byte)(137))))); this.radChart1.ChartTitle.Appearance.Border.Color = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); corners1.BottomLeft = Telerik.Charting.Styles.CornerType.Round; corners1.BottomRight = Telerik.Charting.Styles.CornerType.Round; corners1.TopLeft = Telerik.Charting.Styles.CornerType.Round; corners1.TopRight = Telerik.Charting.Styles.CornerType.Round; this.radChart1.ChartTitle.Appearance.Corners = corners1; this.radChart1.ChartTitle.Appearance.FillStyle.MainColor = System.Drawing.Color.FromArgb(((int)(((byte)(177)))), ((int)(((byte)(183)))), ((int)(((byte)(144))))); this.radChart1.ChartTitle.Appearance.Position.AlignedPosition = Telerik.Charting.Styles.AlignedPositions.Top; this.radChart1.ChartTitle.TextBlock.Appearance.TextProperties.Color = System.Drawing.Color.White; this.radChart1.ChartTitle.TextBlock.Appearance.TextProperties.Font = new System.Drawing.Font("Arial", 14.25F, System.Drawing.FontStyle.Bold); this.radChart1.ChartTitle.TextBlock.Text = "Area"; this.radChart1.DefaultType = Telerik.Charting.ChartSeriesType.Area; this.radChart1.Legend.Appearance.Border.Color = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); corners2.BottomLeft = Telerik.Charting.Styles.CornerType.Round; corners2.BottomRight = Telerik.Charting.Styles.CornerType.Round; corners2.TopLeft = Telerik.Charting.Styles.CornerType.Round; corners2.TopRight = Telerik.Charting.Styles.CornerType.Round; this.radChart1.Legend.Appearance.Corners = corners2; chartMargins1.Right = ((Telerik.Charting.Styles.Unit)(resources.GetObject("chartMargins1.Right"))); chartMargins1.Top = ((Telerik.Charting.Styles.Unit)(resources.GetObject("chartMargins1.Top"))); this.radChart1.Legend.Appearance.Dimensions.Margins = chartMargins1; this.radChart1.Legend.Appearance.FillStyle.MainColor = System.Drawing.Color.FromArgb(((int)(((byte)(177)))), ((int)(((byte)(183)))), ((int)(((byte)(144))))); this.radChart1.Legend.Appearance.ItemTextAppearance.TextProperties.Font = new System.Drawing.Font("Arial", 9.75F); this.radChart1.Location = new System.Drawing.Point(12, 12); this.radChart1.Name = "radChart1"; this.radChart1.PlotArea.Appearance.Border.Color = System.Drawing.Color.FromArgb(((int)(((byte)(94)))), ((int)(((byte)(94)))), ((int)(((byte)(93))))); corners3.BottomLeft = Telerik.Charting.Styles.CornerType.Round; corners3.BottomRight = Telerik.Charting.Styles.CornerType.Round; corners3.RoundSize = 6; corners3.TopLeft = Telerik.Charting.Styles.CornerType.Round; corners3.TopRight = Telerik.Charting.Styles.CornerType.Round; this.radChart1.PlotArea.Appearance.Corners = corners3; chartMargins2.Bottom = ((Telerik.Charting.Styles.Unit)(resources.GetObject("chartMargins2.Bottom"))); chartMargins2.Left = ((Telerik.Charting.Styles.Unit)(resources.GetObject("chartMargins2.Left"))); chartMargins2.Right = ((Telerik.Charting.Styles.Unit)(resources.GetObject("chartMargins2.Right"))); chartMargins2.Top = ((Telerik.Charting.Styles.Unit)(resources.GetObject("chartMargins2.Top"))); this.radChart1.PlotArea.Appearance.Dimensions.Margins = chartMargins2; this.radChart1.PlotArea.Appearance.FillStyle.MainColor = System.Drawing.Color.FromArgb(((int)(((byte)(65)))), ((int)(((byte)(201)))), ((int)(((byte)(254))))); this.radChart1.PlotArea.Appearance.FillStyle.SecondColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(107)))), ((int)(((byte)(186))))); this.radChart1.PlotArea.XAxis.Appearance.MajorGridLines.Color = System.Drawing.Color.DimGray; this.radChart1.PlotArea.XAxis.Appearance.MajorGridLines.Visible = false; this.radChart1.PlotArea.XAxis.Appearance.MajorTick.Color = System.Drawing.Color.Black; this.radChart1.PlotArea.XAxis.Appearance.TextAppearance.TextProperties.Color = System.Drawing.Color.Black; this.radChart1.PlotArea.XAxis.AxisLabel.TextBlock.Appearance.TextProperties.Font = new System.Drawing.Font("Verdana", 9.75F, System.Drawing.FontStyle.Bold); this.radChart1.PlotArea.XAxis.LayoutMode = Telerik.Charting.Styles.ChartAxisLayoutMode.Inside; this.radChart1.PlotArea.XAxis.MaxValue = 5; this.radChart1.PlotArea.XAxis.MinValue = 1; this.radChart1.PlotArea.YAxis.Appearance.Color = System.Drawing.Color.Silver; this.radChart1.PlotArea.YAxis.Appearance.MajorGridLines.Color = System.Drawing.Color.Black; this.radChart1.PlotArea.YAxis.Appearance.MajorTick.Color = System.Drawing.Color.Silver; this.radChart1.PlotArea.YAxis.Appearance.MinorGridLines.Color = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); this.radChart1.PlotArea.YAxis.Appearance.MinorGridLines.Visible = false; this.radChart1.PlotArea.YAxis.Appearance.MinorTick.Color = System.Drawing.Color.Silver; this.radChart1.PlotArea.YAxis.Appearance.MinorTick.Visible = false; this.radChart1.PlotArea.YAxis.Appearance.Visible = Telerik.Charting.Styles.ChartAxisVisibility.False; this.radChart1.PlotArea.YAxis.AxisLabel.TextBlock.Appearance.TextProperties.Font = new System.Drawing.Font("Verdana", 9.75F, System.Drawing.FontStyle.Bold); this.radChart1.PlotArea.YAxis.MaxValue = 100; this.radChart1.PlotArea.YAxis.Step = 10; this.radChart1.PlotArea.YAxis.Visible = Telerik.Charting.Styles.ChartAxisVisibility.False; this.radChart1.PlotArea.YAxis2.AxisLabel.TextBlock.Appearance.TextProperties.Font = new System.Drawing.Font("Verdana", 9.75F, System.Drawing.FontStyle.Bold); chartSeries1.Appearance.Border.Color = System.Drawing.Color.Black; chartSeries1.Appearance.TextAppearance.TextProperties.Color = System.Drawing.Color.Black; chartSeriesItem1.YValue = 73; chartSeriesItem1.YValue2 = 52; chartSeriesItem2.YValue = 23; chartSeriesItem2.YValue2 = 76; chartSeriesItem3.YValue = 22; chartSeriesItem3.YValue2 = 25; chartSeriesItem4.YValue = 24; chartSeriesItem4.YValue2 = 93; chartSeriesItem5.YValue = 75; chartSeriesItem5.YValue2 = 55; chartSeries1.Items.AddRange(new Telerik.Charting.ChartSeriesItem[] { chartSeriesItem1, chartSeriesItem2, chartSeriesItem3, chartSeriesItem4, chartSeriesItem5 }); chartSeries1.Name = "Product A"; chartSeries1.Type = Telerik.Charting.ChartSeriesType.Area; chartSeries2.Appearance.Border.Color = System.Drawing.Color.Black; chartSeries2.Appearance.TextAppearance.TextProperties.Color = System.Drawing.Color.Black; chartSeriesItem6.YValue = 6; chartSeriesItem6.YValue2 = 53; chartSeriesItem7.YValue = 24; chartSeriesItem7.YValue2 = 22; chartSeriesItem8.YValue = 51; chartSeriesItem8.YValue2 = 78; chartSeriesItem9.YValue = 95; chartSeriesItem9.YValue2 = 10; chartSeriesItem10.YValue = 18; chartSeriesItem10.YValue2 = 60; chartSeries2.Items.AddRange(new Telerik.Charting.ChartSeriesItem[] { chartSeriesItem6, chartSeriesItem7, chartSeriesItem8, chartSeriesItem9, chartSeriesItem10 }); chartSeries2.Name = "Product B"; chartSeries2.Type = Telerik.Charting.ChartSeriesType.Area; this.radChart1.Series.AddRange(new Telerik.Charting.ChartSeries[] { chartSeries1, chartSeries2 }); this.radChart1.Size = new System.Drawing.Size(400, 300); this.radChart1.Skin = "Apple"; this.radChart1.SkinsOverrideStyles = true; this.radChart1.TabIndex = 0; // // Form1 // this.Controls.Add(this.radChart1); this.Name = "Form1"; this.Size = new System.Drawing.Size(1230, 606); ((System.ComponentModel.ISupportInitialize)(this.radChart1)).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() { Telerik.Charting.Styles.Unit unit1 = new Telerik.Charting.Styles.Unit(); Telerik.Charting.Styles.Unit unit2 = new Telerik.Charting.Styles.Unit(); Telerik.Charting.Styles.Corners corners1 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.ChartAxisItem chartAxisItem1 = new Telerik.Charting.ChartAxisItem(); Telerik.Charting.ChartAxisItem chartAxisItem2 = new Telerik.Charting.ChartAxisItem(); Telerik.Charting.ChartAxisItem chartAxisItem3 = new Telerik.Charting.ChartAxisItem(); Telerik.Charting.ChartAxisItem chartAxisItem4 = new Telerik.Charting.ChartAxisItem(); Telerik.Charting.ChartAxisItem chartAxisItem5 = new Telerik.Charting.ChartAxisItem(); Telerik.Charting.ChartAxisItem chartAxisItem6 = new Telerik.Charting.ChartAxisItem(); Telerik.Charting.ChartAxisItem chartAxisItem7 = new Telerik.Charting.ChartAxisItem(); Telerik.Charting.ChartAxisItem chartAxisItem8 = new Telerik.Charting.ChartAxisItem(); Telerik.Charting.ChartAxisItem chartAxisItem9 = new Telerik.Charting.ChartAxisItem(); Telerik.Charting.ChartAxisItem chartAxisItem10 = new Telerik.Charting.ChartAxisItem(); Telerik.Charting.ChartAxisItem chartAxisItem11 = new Telerik.Charting.ChartAxisItem(); Telerik.Charting.ChartAxisItem chartAxisItem12 = new Telerik.Charting.ChartAxisItem(); Telerik.Charting.ChartAxisItem chartAxisItem13 = new Telerik.Charting.ChartAxisItem(); Telerik.Charting.ChartAxisItem chartAxisItem14 = new Telerik.Charting.ChartAxisItem(); Telerik.Charting.ChartAxisItem chartAxisItem15 = new Telerik.Charting.ChartAxisItem(); Telerik.Charting.ChartAxisItem chartAxisItem16 = new Telerik.Charting.ChartAxisItem(); Telerik.Charting.ChartAxisItem chartAxisItem17 = new Telerik.Charting.ChartAxisItem(); Telerik.Charting.ChartAxisItem chartAxisItem18 = new Telerik.Charting.ChartAxisItem(); Telerik.Charting.ChartSeries chartSeries1 = new Telerik.Charting.ChartSeries(); Telerik.Charting.ChartSeriesItem chartSeriesItem1 = new Telerik.Charting.ChartSeriesItem(); Telerik.Charting.ChartSeriesItem chartSeriesItem2 = new Telerik.Charting.ChartSeriesItem(); Telerik.Charting.ChartSeriesItem chartSeriesItem3 = new Telerik.Charting.ChartSeriesItem(); Telerik.Charting.ChartSeriesItem chartSeriesItem4 = new Telerik.Charting.ChartSeriesItem(); Telerik.Charting.ChartSeriesItem chartSeriesItem5 = new Telerik.Charting.ChartSeriesItem(); #pragma warning disable 618 this.radChart1 = new Telerik.WinControls.UI.RadChart(); this.radChart1.Skin = "Default2006"; this.radComboBox1 = new Telerik.WinControls.UI.RadDropDownList(); this.radComboBoxItem1 = new Telerik.WinControls.UI.RadListDataItem(); this.radComboBoxItem2 = new Telerik.WinControls.UI.RadListDataItem(); this.radComboBoxItem4 = new Telerik.WinControls.UI.RadListDataItem(); this.radComboBoxItem3 = new Telerik.WinControls.UI.RadListDataItem(); this.label1 = new System.Windows.Forms.Label(); ((System.ComponentModel.ISupportInitialize)(this.radChart1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.radComboBox1)).BeginInit(); this.SuspendLayout(); // // radChart1 // unit1.Value = 384; this.radChart1.Appearance.Dimensions.Height = unit1; unit2.Value = 621; this.radChart1.Appearance.Dimensions.Width = unit2; this.radChart1.ChartTitle.TextBlock.Text = "Consumption by Month"; this.radChart1.DataGroupColumn = null; this.radChart1.DefaultType = Telerik.Charting.ChartSeriesType.Pie; this.radChart1.Legend.Appearance.Border.Color = System.Drawing.Color.FromArgb(((int)(((byte)(227)))), ((int)(((byte)(227)))), ((int)(((byte)(227))))); this.radChart1.Location = new System.Drawing.Point(12, 50); this.radChart1.Name = "radChart1"; corners1.BottomLeft = Telerik.Charting.Styles.CornerType.Round; corners1.BottomRight = Telerik.Charting.Styles.CornerType.Round; corners1.RoundSize = 6; corners1.TopLeft = Telerik.Charting.Styles.CornerType.Round; corners1.TopRight = Telerik.Charting.Styles.CornerType.Round; this.radChart1.PlotArea.Appearance.Corners = corners1; this.radChart1.SkinsOverrideStyles = true; this.radChart1.Skin = "Apple"; this.radChart1.PlotArea.XAxis.Appearance.MajorGridLines.Visible = false; this.radChart1.PlotArea.XAxis.AxisLabel.TextBlock.Appearance.TextProperties.Font = new System.Drawing.Font("Arial", 10F); chartAxisItem1.Value = new decimal(new int[] { 1, 0, 0, 0 }); chartAxisItem2.Value = new decimal(new int[] { 2, 0, 0, 0 }); chartAxisItem3.Value = new decimal(new int[] { 3, 0, 0, 0 }); chartAxisItem4.Value = new decimal(new int[] { 4, 0, 0, 0 }); chartAxisItem5.Value = new decimal(new int[] { 5, 0, 0, 0 }); this.radChart1.PlotArea.XAxis.Items.AddRange(new Telerik.Charting.ChartAxisItem[] { chartAxisItem1, chartAxisItem2, chartAxisItem3, chartAxisItem4, chartAxisItem5 }); this.radChart1.PlotArea.XAxis.MaxValue = 5; this.radChart1.PlotArea.XAxis.MinValue = 1; this.radChart1.PlotArea.XAxis.Step = 1; this.radChart1.PlotArea.YAxis.AxisLabel.TextBlock.Appearance.TextProperties.Font = new System.Drawing.Font("Arial", 10F); chartAxisItem7.Value = new decimal(new int[] { 5, 0, 0, 0 }); chartAxisItem8.Value = new decimal(new int[] { 10, 0, 0, 0 }); chartAxisItem9.Value = new decimal(new int[] { 15, 0, 0, 0 }); chartAxisItem10.Value = new decimal(new int[] { 20, 0, 0, 0 }); chartAxisItem11.Value = new decimal(new int[] { 25, 0, 0, 0 }); chartAxisItem12.Value = new decimal(new int[] { 30, 0, 0, 0 }); chartAxisItem13.Value = new decimal(new int[] { 35, 0, 0, 0 }); this.radChart1.PlotArea.YAxis.Items.AddRange(new Telerik.Charting.ChartAxisItem[] { chartAxisItem6, chartAxisItem7, chartAxisItem8, chartAxisItem9, chartAxisItem10, chartAxisItem11, chartAxisItem12, chartAxisItem13 }); this.radChart1.PlotArea.YAxis.MaxValue = 35; this.radChart1.PlotArea.YAxis.Step = 5; this.radChart1.PlotArea.YAxis2.AxisLabel.TextBlock.Appearance.TextProperties.Font = new System.Drawing.Font("Arial", 10F); chartAxisItem14.Value = new decimal(new int[] { 1, 0, 0, 0 }); chartAxisItem15.Value = new decimal(new int[] { 2, 0, 0, 0 }); chartAxisItem16.Value = new decimal(new int[] { 3, 0, 0, 0 }); chartAxisItem17.Value = new decimal(new int[] { 4, 0, 0, 0 }); chartAxisItem18.Value = new decimal(new int[] { 5, 0, 0, 0 }); this.radChart1.PlotArea.YAxis2.Items.AddRange(new Telerik.Charting.ChartAxisItem[] { chartAxisItem14, chartAxisItem15, chartAxisItem16, chartAxisItem17, chartAxisItem18 }); this.radChart1.PlotArea.YAxis2.MaxValue = 5; this.radChart1.PlotArea.YAxis2.MinValue = 1; this.radChart1.PlotArea.YAxis2.Step = 1; chartSeriesItem1.Label.TextBlock.Text = "English"; chartSeriesItem1.YValue = 35; chartSeriesItem2.Label.TextBlock.Text = "Spanish"; chartSeriesItem2.YValue = 20; chartSeriesItem3.Label.TextBlock.Text = "French"; chartSeriesItem3.YValue = 20; chartSeriesItem4.Label.TextBlock.Text = "German"; chartSeriesItem4.YValue = 20; chartSeriesItem5.Label.TextBlock.Text = "Chinese"; chartSeriesItem5.YValue = 20; chartSeries1.Items.AddRange(new Telerik.Charting.ChartSeriesItem[] { chartSeriesItem1, chartSeriesItem2, chartSeriesItem3, chartSeriesItem4, chartSeriesItem5 }); chartSeries1.Name = "Series 1"; chartSeries1.Type = Telerik.Charting.ChartSeriesType.Pie; this.radChart1.Series.Add(chartSeries1); this.radChart1.Size = new System.Drawing.Size(400, 300); this.radChart1.TabIndex = 0; // // radComboBox1 // this.radComboBox1.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.None; this.radComboBox1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(248)))), ((int)(((byte)(248)))), ((int)(((byte)(248))))); this.radComboBox1.DropDownSizingMode = ((Telerik.WinControls.UI.SizingMode)((Telerik.WinControls.UI.SizingMode.RightBottom | Telerik.WinControls.UI.SizingMode.UpDown))); this.radComboBox1.DropDownStyle = Telerik.WinControls.RadDropDownStyle.DropDownList; this.radComboBox1.Items.AddRange(new List <RadListDataItem>(new RadListDataItem[] { this.radComboBoxItem1, this.radComboBoxItem2, this.radComboBoxItem4, this.radComboBoxItem3 })); this.radComboBox1.Location = new System.Drawing.Point(120, 12); this.radComboBox1.MaxLength = 32767; this.radComboBox1.Name = "radComboBox1"; this.radComboBox1.NullText = ""; // // radComboBox1.RootElement // this.radComboBox1.RootElement.AccessibleDescription = ""; this.radComboBox1.RootElement.AutoSizeMode = Telerik.WinControls.RadAutoSizeMode.WrapAroundChildren; this.radComboBox1.RootElement.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(248)))), ((int)(((byte)(248)))), ((int)(((byte)(248))))); this.radComboBox1.Size = new System.Drawing.Size(106, 19); this.radComboBox1.MaxDropDownItems = 6; this.radComboBox1.SmallImageList = null; this.radComboBox1.TabIndex = 1; this.radComboBox1.Text = "radComboBox1"; this.radComboBox1.SelectedIndexChanged += new Telerik.WinControls.UI.Data.PositionChangedEventHandler(this.radComboBox1_SelectedIndexChanged); // // radComboBoxItem1 // this.radComboBoxItem1.Text = "English"; // // radComboBoxItem2 // this.radComboBoxItem2.Text = "German"; // // radComboBoxItem4 // this.radComboBoxItem4.Text = "Spanish"; // // radComboBoxItem3 // this.radComboBoxItem3.Text = "French"; // // label1 // this.label1.AutoSize = true; this.label1.Location = new System.Drawing.Point(12, 12); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(91, 13); this.label1.TabIndex = 2; this.label1.Text = "Select Language:"; // // Form1 // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.Controls.Add(this.label1); this.Controls.Add(this.radComboBox1); this.Controls.Add(this.radChart1); this.Name = "Form1"; this.Size = new System.Drawing.Size(450, 350); ((System.ComponentModel.ISupportInitialize)(this.radChart1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.radComboBox1)).EndInit(); this.ResumeLayout(false); this.PerformLayout(); }
protected void Page_Prerender(object sender, EventArgs e) { var mo = MetricTrac.Bll.MetricValue.List(6, DateBegin, ScoreCardMetricID); if (mo == null) { return; } Telerik.Charting.ChartSeries l = rcMetricOrgLocation.Series[3]; lbTitle.Text = mo.Name + "<br>" + mo.OrgLocationFullName; for (int NumVal = 0; NumVal < mo.MetricValues.Count; NumVal++) { var v = mo.MetricValues[NumVal]; Telerik.Charting.ChartSeriesItem it; if (v == null || v.DValue == null) { it = new Telerik.Charting.ChartSeriesItem(0); it.Empty = true; it.Label.Visible = false; } else { string ItemLabel = ((double)v.DValue).ToString("N" + mo.NODecPlaces); it = new Telerik.Charting.ChartSeriesItem((double)v.DValue, ItemLabel); } it.XValue = NumVal; rcMetricOrgLocation.PlotArea.XAxis.Items[NumVal].TextBlock.Text = v.Period; l.Items.Add(it); } if (mo.UnitOfMeasureID != null) { string name = MetricTrac.Bll.Mc_UnitsOfMeasure.GetSingularAbbreviation((Guid)mo.UnitOfMeasureID); if (!string.IsNullOrEmpty(name)) { rcMetricOrgLocation.PlotArea.Appearance.Dimensions.Margins.Top = 15; rcMetricOrgLocation.PlotArea.Appearance.Dimensions.Margins.Right = 7; rcMetricOrgLocation.PlotArea.YAxis.AxisLabel.TextBlock.Text = name; rcMetricOrgLocation.PlotArea.YAxis.AxisLabel.Visible = true; } } var scm = MetricTrac.Bll.ScoreCardMetric.Get(ScoreCardMetricID); if (scm.MaxValue != null) { rcMetricOrgLocation.PlotArea.YAxis.AutoScale = false; rcMetricOrgLocation.PlotArea.YAxis.MaxValue = (double)scm.MaxValue; double min = 0; if (scm.MinValue != null) { min = (double)scm.MinValue; } rcMetricOrgLocation.PlotArea.YAxis.MinValue = min; double Step = ((double)scm.MaxValue - min) / 10; double Pow = Math.Pow(10, ((int)(Math.Log10(Step)))); double Base = (int)(Step / Pow); if (Base < 2) { Step = Pow; } else if (Base < 5) { Step = 2 * Pow; } else { Step = 10 * Pow; } rcMetricOrgLocation.PlotArea.YAxis.Step = Step; } InitHorizontLine(scm.BaselineValue, scm.BaselineValueLabel, 0, mo.MetricValues.Count); InitHorizontLine(scm.Breakpoint1Value, scm.Breakpoint1ValueLabel, 1, mo.MetricValues.Count); InitHorizontLine(scm.Breakpoint2Value, scm.Breakpoint2ValueLabel, 2, mo.MetricValues.Count); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { Telerik.Charting.Styles.ChartMargins chartMargins1 = new Telerik.Charting.Styles.ChartMargins(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form1)); Telerik.Charting.Styles.ChartMargins chartMargins2 = new Telerik.Charting.Styles.ChartMargins(); Telerik.Charting.Styles.ChartPaddings chartPaddings1 = new Telerik.Charting.Styles.ChartPaddings(); Telerik.Charting.Styles.ChartMargins chartMargins3 = new Telerik.Charting.Styles.ChartMargins(); Telerik.Charting.ChartSeries chartSeries1 = new Telerik.Charting.ChartSeries(); Telerik.Charting.ChartSeriesItem chartSeriesItem1 = new Telerik.Charting.ChartSeriesItem(); Telerik.Charting.ChartSeriesItem chartSeriesItem2 = new Telerik.Charting.ChartSeriesItem(); Telerik.Charting.ChartSeriesItem chartSeriesItem3 = new Telerik.Charting.ChartSeriesItem(); Telerik.Charting.ChartSeriesItem chartSeriesItem4 = new Telerik.Charting.ChartSeriesItem(); Telerik.Charting.ChartSeriesItem chartSeriesItem5 = new Telerik.Charting.ChartSeriesItem(); #pragma warning disable 618 this.radChart1 = new Telerik.WinControls.UI.RadChart(); ((System.ComponentModel.ISupportInitialize)(this.radChart1)).BeginInit(); this.SuspendLayout(); // // radChart1 // this.radChart1.Appearance.Border.Color = System.Drawing.Color.Silver; this.radChart1.Appearance.FillStyle.FillSettings.GradientMode = Telerik.Charting.Styles.GradientFillStyle.Center; this.radChart1.Appearance.FillStyle.FillType = Telerik.Charting.Styles.FillType.Gradient; this.radChart1.Appearance.FillStyle.MainColor = System.Drawing.Color.FromArgb(((int)(((byte)(65)))), ((int)(((byte)(192)))), ((int)(((byte)(247))))); this.radChart1.Appearance.FillStyle.SecondColor = System.Drawing.Color.FromArgb(((int)(((byte)(26)))), ((int)(((byte)(120)))), ((int)(((byte)(176))))); this.radChart1.ChartTitle.Appearance.Border.Width = 0F; chartMargins1.Bottom = ((Telerik.Charting.Styles.Unit)(resources.GetObject("chartMargins1.Bottom"))); chartMargins1.Left = ((Telerik.Charting.Styles.Unit)(resources.GetObject("chartMargins1.Left"))); chartMargins1.Right = ((Telerik.Charting.Styles.Unit)(resources.GetObject("chartMargins1.Right"))); chartMargins1.Top = ((Telerik.Charting.Styles.Unit)(resources.GetObject("chartMargins1.Top"))); this.radChart1.ChartTitle.Appearance.Dimensions.Margins = chartMargins1; this.radChart1.ChartTitle.Appearance.FillStyle.MainColor = System.Drawing.Color.Transparent; this.radChart1.ChartTitle.TextBlock.Appearance.TextProperties.Color = System.Drawing.Color.White; this.radChart1.ChartTitle.TextBlock.Appearance.TextProperties.Font = new System.Drawing.Font("Microsoft Sans Serif", 14F); this.radChart1.ChartTitle.TextBlock.Text = "Intelligent Labels"; this.radChart1.DefaultType = Telerik.Charting.ChartSeriesType.SplineArea; this.radChart1.IntelligentLabelsEnabled = true; this.radChart1.Legend.Appearance.Border.Color = System.Drawing.Color.FromArgb(((int)(((byte)(96)))), ((int)(((byte)(164)))), ((int)(((byte)(205))))); chartMargins2.Right = ((Telerik.Charting.Styles.Unit)(resources.GetObject("chartMargins2.Right"))); chartMargins2.Top = ((Telerik.Charting.Styles.Unit)(resources.GetObject("chartMargins2.Top"))); this.radChart1.Legend.Appearance.Dimensions.Margins = chartMargins2; chartPaddings1.Bottom = ((Telerik.Charting.Styles.Unit)(resources.GetObject("chartPaddings1.Bottom"))); chartPaddings1.Left = ((Telerik.Charting.Styles.Unit)(resources.GetObject("chartPaddings1.Left"))); chartPaddings1.Right = ((Telerik.Charting.Styles.Unit)(resources.GetObject("chartPaddings1.Right"))); chartPaddings1.Top = ((Telerik.Charting.Styles.Unit)(resources.GetObject("chartPaddings1.Top"))); this.radChart1.Legend.Appearance.Dimensions.Paddings = chartPaddings1; this.radChart1.Legend.Appearance.FillStyle.MainColor = System.Drawing.Color.FromArgb(((int)(((byte)(50)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); this.radChart1.Legend.Appearance.ItemTextAppearance.TextProperties.Color = System.Drawing.Color.White; this.radChart1.Legend.Appearance.ItemTextAppearance.TextProperties.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); this.radChart1.Location = new System.Drawing.Point(12, 12); this.radChart1.Name = "radChart1"; this.radChart1.PlotArea.Appearance.Border.Color = System.Drawing.Color.FromArgb(((int)(((byte)(50)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); chartMargins3.Bottom = ((Telerik.Charting.Styles.Unit)(resources.GetObject("chartMargins3.Bottom"))); chartMargins3.Left = ((Telerik.Charting.Styles.Unit)(resources.GetObject("chartMargins3.Left"))); chartMargins3.Right = ((Telerik.Charting.Styles.Unit)(resources.GetObject("chartMargins3.Right"))); chartMargins3.Top = ((Telerik.Charting.Styles.Unit)(resources.GetObject("chartMargins3.Top"))); this.radChart1.PlotArea.Appearance.Dimensions.Margins = chartMargins3; this.radChart1.PlotArea.Appearance.FillStyle.FillType = Telerik.Charting.Styles.FillType.Solid; this.radChart1.PlotArea.Appearance.FillStyle.MainColor = System.Drawing.Color.Transparent; this.radChart1.PlotArea.Appearance.FillStyle.SecondColor = System.Drawing.Color.White; this.radChart1.PlotArea.XAxis.Appearance.Color = System.Drawing.Color.FromArgb(((int)(((byte)(50)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); this.radChart1.PlotArea.XAxis.Appearance.MajorGridLines.Color = System.Drawing.Color.FromArgb(((int)(((byte)(50)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); this.radChart1.PlotArea.XAxis.Appearance.MajorTick.Color = System.Drawing.Color.FromArgb(((int)(((byte)(50)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); this.radChart1.PlotArea.XAxis.Appearance.TextAppearance.TextProperties.Color = System.Drawing.Color.White; this.radChart1.PlotArea.XAxis.Appearance.TextAppearance.TextProperties.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); this.radChart1.PlotArea.XAxis.AxisLabel.TextBlock.Appearance.TextProperties.Color = System.Drawing.Color.White; this.radChart1.PlotArea.XAxis.LayoutMode = Telerik.Charting.Styles.ChartAxisLayoutMode.Inside; this.radChart1.PlotArea.XAxis.MaxValue = 5; this.radChart1.PlotArea.XAxis.MinValue = 1; this.radChart1.PlotArea.YAxis.Appearance.Color = System.Drawing.Color.FromArgb(((int)(((byte)(50)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); this.radChart1.PlotArea.YAxis.Appearance.MajorGridLines.Color = System.Drawing.Color.FromArgb(((int)(((byte)(50)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); this.radChart1.PlotArea.YAxis.Appearance.MajorTick.Color = System.Drawing.Color.FromArgb(((int)(((byte)(50)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); this.radChart1.PlotArea.YAxis.Appearance.MinorGridLines.Color = System.Drawing.Color.FromArgb(((int)(((byte)(50)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); this.radChart1.PlotArea.YAxis.Appearance.MinorTick.Color = System.Drawing.Color.FromArgb(((int)(((byte)(50)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); this.radChart1.PlotArea.YAxis.Appearance.TextAppearance.TextProperties.Color = System.Drawing.Color.White; this.radChart1.PlotArea.YAxis.Appearance.TextAppearance.TextProperties.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); this.radChart1.PlotArea.YAxis.MaxValue = 80; this.radChart1.PlotArea.YAxis.Step = 10; this.radChart1.PlotArea.YAxis2.Appearance.Color = System.Drawing.Color.FromArgb(((int)(((byte)(50)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); this.radChart1.PlotArea.YAxis2.Appearance.MajorGridLines.Color = System.Drawing.Color.FromArgb(((int)(((byte)(50)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); this.radChart1.PlotArea.YAxis2.Appearance.MajorTick.Color = System.Drawing.Color.FromArgb(((int)(((byte)(50)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); this.radChart1.PlotArea.YAxis2.Appearance.MinorGridLines.Color = System.Drawing.Color.FromArgb(((int)(((byte)(50)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); this.radChart1.PlotArea.YAxis2.Appearance.MinorTick.Color = System.Drawing.Color.FromArgb(((int)(((byte)(50)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); this.radChart1.PlotArea.YAxis2.Appearance.TextAppearance.TextProperties.Color = System.Drawing.Color.White; this.radChart1.PlotArea.YAxis2.Appearance.TextAppearance.TextProperties.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); chartSeries1.Appearance.Border.Color = System.Drawing.Color.Empty; chartSeries1.Appearance.FillStyle.MainColor = System.Drawing.Color.FromArgb(((int)(((byte)(213)))), ((int)(((byte)(247)))), ((int)(((byte)(255))))); chartSeries1.Appearance.FillStyle.SecondColor = System.Drawing.Color.FromArgb(((int)(((byte)(157)))), ((int)(((byte)(217)))), ((int)(((byte)(238))))); chartSeries1.Appearance.PointMark.FillStyle.MainColor = System.Drawing.Color.FromArgb(((int)(((byte)(213)))), ((int)(((byte)(247)))), ((int)(((byte)(255))))); chartSeries1.Appearance.PointMark.FillStyle.SecondColor = System.Drawing.Color.FromArgb(((int)(((byte)(157)))), ((int)(((byte)(217)))), ((int)(((byte)(238))))); chartSeries1.Appearance.TextAppearance.TextProperties.Color = System.Drawing.Color.White; chartSeries1.Appearance.TextAppearance.TextProperties.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); chartSeriesItem1.YValue = 73; chartSeriesItem1.YValue2 = 52; chartSeriesItem2.YValue = 23; chartSeriesItem2.YValue2 = 76; chartSeriesItem3.YValue = 22; chartSeriesItem3.YValue2 = 25; chartSeriesItem4.YValue = 24; chartSeriesItem4.YValue2 = 93; chartSeriesItem5.YValue = 75; chartSeriesItem5.YValue2 = 55; chartSeries1.Items.AddRange(new Telerik.Charting.ChartSeriesItem[] { chartSeriesItem1, chartSeriesItem2, chartSeriesItem3, chartSeriesItem4, chartSeriesItem5 }); chartSeries1.Name = "Product A"; chartSeries1.Type = Telerik.Charting.ChartSeriesType.SplineArea; this.radChart1.Series.AddRange(new Telerik.Charting.ChartSeries[] { chartSeries1 }); this.radChart1.Size = new System.Drawing.Size(400, 300); this.radChart1.Skin = "Apple"; this.radChart1.SkinsOverrideStyles = true; this.radChart1.TabIndex = 0; // // Form1 // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.Controls.Add(this.radChart1); this.Name = "Form1"; this.Size = new System.Drawing.Size(1230, 606); ((System.ComponentModel.ISupportInitialize)(this.radChart1)).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() { Telerik.Charting.Styles.Corners corners1 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Unit unit1 = new Telerik.Charting.Styles.Unit(); Telerik.Charting.Styles.Unit unit2 = new Telerik.Charting.Styles.Unit(); Telerik.Charting.Styles.Corners corners2 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners3 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners4 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners5 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners6 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners7 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners8 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners9 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners10 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners11 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Unit unit3 = new Telerik.Charting.Styles.Unit(); Telerik.Charting.Styles.Unit unit4 = new Telerik.Charting.Styles.Unit(); Telerik.Charting.Styles.Unit unit5 = new Telerik.Charting.Styles.Unit(); Telerik.Charting.Styles.Unit unit6 = new Telerik.Charting.Styles.Unit(); Telerik.Charting.Styles.Corners corners12 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners13 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners14 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners15 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners16 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners17 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners18 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners19 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners20 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners21 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners22 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners23 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners24 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners25 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners26 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners27 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.ChartSeries chartSeries1 = new Telerik.Charting.ChartSeries(); Telerik.Charting.Styles.Corners corners28 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners29 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners30 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners31 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners32 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.ChartSeries chartSeries2 = new Telerik.Charting.ChartSeries(); Telerik.Charting.Styles.Corners corners33 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners34 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners35 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners36 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners37 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.ChartSeries chartSeries3 = new Telerik.Charting.ChartSeries(); Telerik.Charting.Styles.Corners corners38 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners39 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners40 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners41 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners42 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.ChartSeriesItem chartSeriesItem1 = new Telerik.Charting.ChartSeriesItem(); Telerik.Charting.Styles.Corners corners43 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners44 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners45 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners46 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners47 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.ChartSeriesItem chartSeriesItem2 = new Telerik.Charting.ChartSeriesItem(); Telerik.Charting.Styles.Corners corners48 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners49 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners50 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners51 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners52 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.ChartSeriesItem chartSeriesItem3 = new Telerik.Charting.ChartSeriesItem(); Telerik.Charting.Styles.Corners corners53 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners54 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners55 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners56 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners57 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.ChartSeriesItem chartSeriesItem4 = new Telerik.Charting.ChartSeriesItem(); Telerik.Charting.Styles.Corners corners58 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners59 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners60 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners61 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners62 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.ChartSeriesItem chartSeriesItem5 = new Telerik.Charting.ChartSeriesItem(); Telerik.Charting.Styles.Corners corners63 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners64 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners65 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners66 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners67 = new Telerik.Charting.Styles.Corners(); #pragma warning disable 618 this.radChart1 = new Telerik.WinControls.UI.RadChart(); this.radChart1.Skin = "Default2006"; ((System.ComponentModel.ISupportInitialize)(this.radChart1)).BeginInit(); this.SuspendLayout(); // // radChart1 // this.radChart1.Skin = "Default2006"; this.radChart1.Appearance.Border.Color = System.Drawing.Color.FromArgb(((int)(((byte)(182)))), ((int)(((byte)(224)))), ((int)(((byte)(249))))); this.radChart1.Appearance.Corners = corners1; unit1.Value = 500F; this.radChart1.Appearance.Dimensions.Height = unit1; unit2.Value = 600F; this.radChart1.Appearance.Dimensions.Width = unit2; this.radChart1.Appearance.FillStyle.MainColor = System.Drawing.Color.FromArgb(((int)(((byte)(240)))), ((int)(((byte)(252)))), ((int)(((byte)(255))))); this.radChart1.ChartTitle.Appearance.Border.Visible = false; this.radChart1.ChartTitle.Appearance.Corners = corners2; this.radChart1.ChartTitle.Appearance.FillStyle.MainColor = System.Drawing.Color.Empty; this.radChart1.ChartTitle.Marker.Appearance.Corners = corners3; this.radChart1.ChartTitle.TextBlock.Appearance.Corners = corners4; this.radChart1.ChartTitle.TextBlock.Appearance.TextProperties.Color = System.Drawing.Color.FromArgb(((int)(((byte)(70)))), ((int)(((byte)(143)))), ((int)(((byte)(190))))); this.radChart1.ChartTitle.TextBlock.Text = "Database Binding"; this.radChart1.DataGroupColumn = null; this.radChart1.DefaultType = Telerik.Charting.ChartSeriesType.Pie; this.radChart1.Legend.Appearance.Border.Color = System.Drawing.Color.FromArgb(((int)(((byte)(208)))), ((int)(((byte)(237)))), ((int)(((byte)(255))))); corners5.BottomLeft = Telerik.Charting.Styles.CornerType.Round; corners5.BottomRight = Telerik.Charting.Styles.CornerType.Round; corners5.RoundSize = 6; corners5.TopLeft = Telerik.Charting.Styles.CornerType.Round; corners5.TopRight = Telerik.Charting.Styles.CornerType.Round; this.radChart1.Legend.Appearance.Corners = corners5; this.radChart1.Legend.Appearance.ItemAppearance.Corners = corners6; this.radChart1.Legend.Appearance.ItemMarkerAppearance.Corners = corners7; this.radChart1.Legend.Appearance.ItemTextAppearance.Corners = corners8; this.radChart1.Legend.Appearance.ItemTextAppearance.TextProperties.Color = System.Drawing.Color.FromArgb(((int)(((byte)(62)))), ((int)(((byte)(117)))), ((int)(((byte)(154))))); this.radChart1.Legend.Marker.Appearance.Corners = corners9; this.radChart1.Legend.TextBlock.Appearance.Corners = corners10; this.radChart1.Location = new System.Drawing.Point(13, 16); this.radChart1.Name = "radChart1"; this.radChart1.PlotArea.Appearance.Border.Color = System.Drawing.Color.FromArgb(((int)(((byte)(149)))), ((int)(((byte)(184)))), ((int)(((byte)(206))))); this.radChart1.PlotArea.Appearance.Corners = corners11; unit3.Type = Telerik.Charting.Styles.UnitType.Percentage; unit3.Value = 24F; unit4.Type = Telerik.Charting.Styles.UnitType.Percentage; unit4.Value = 22F; unit5.Type = Telerik.Charting.Styles.UnitType.Percentage; unit5.Value = 12F; unit6.Type = Telerik.Charting.Styles.UnitType.Percentage; unit6.Value = 10F; this.radChart1.PlotArea.Appearance.Dimensions.Margins = new Telerik.Charting.Styles.ChartMargins(unit3, unit4, unit5, unit6); this.radChart1.PlotArea.Appearance.FillStyle.MainColor = System.Drawing.Color.White; this.radChart1.SkinsOverrideStyles = true; this.radChart1.Skin = "Apple"; this.radChart1.PlotArea.XAxis.Appearance.Color = System.Drawing.Color.FromArgb(((int)(((byte)(149)))), ((int)(((byte)(184)))), ((int)(((byte)(206))))); this.radChart1.PlotArea.XAxis.Appearance.LabelAppearance.Corners = corners13; this.radChart1.PlotArea.XAxis.Appearance.MajorGridLines.Color = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(187)))), ((int)(((byte)(207))))); this.radChart1.PlotArea.XAxis.Appearance.MajorTick.Color = System.Drawing.Color.FromArgb(((int)(((byte)(149)))), ((int)(((byte)(184)))), ((int)(((byte)(206))))); this.radChart1.PlotArea.XAxis.Appearance.TextAppearance.Corners = corners14; this.radChart1.PlotArea.XAxis.Appearance.TextAppearance.TextProperties.Color = System.Drawing.Color.FromArgb(((int)(((byte)(62)))), ((int)(((byte)(117)))), ((int)(((byte)(154))))); this.radChart1.PlotArea.XAxis.AxisLabel.Appearance.Corners = corners15; this.radChart1.PlotArea.XAxis.AxisLabel.Marker.Appearance.Corners = corners16; this.radChart1.PlotArea.XAxis.AxisLabel.TextBlock.Appearance.Corners = corners17; this.radChart1.PlotArea.XAxis.LayoutMode = Telerik.Charting.Styles.ChartAxisLayoutMode.Inside; this.radChart1.PlotArea.XAxis.MaxValue = 7; this.radChart1.PlotArea.XAxis.MinValue = 1; this.radChart1.PlotArea.XAxis.Step = 1; this.radChart1.PlotArea.YAxis.Appearance.Color = System.Drawing.Color.FromArgb(((int)(((byte)(149)))), ((int)(((byte)(184)))), ((int)(((byte)(206))))); this.radChart1.PlotArea.YAxis.Appearance.LabelAppearance.Corners = corners18; this.radChart1.PlotArea.YAxis.Appearance.MajorGridLines.Color = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(187)))), ((int)(((byte)(207))))); this.radChart1.PlotArea.YAxis.Appearance.MajorGridLines.PenStyle = System.Drawing.Drawing2D.DashStyle.Solid; this.radChart1.PlotArea.YAxis.Appearance.MajorTick.Color = System.Drawing.Color.FromArgb(((int)(((byte)(149)))), ((int)(((byte)(184)))), ((int)(((byte)(206))))); this.radChart1.PlotArea.YAxis.Appearance.MinorGridLines.Color = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(187)))), ((int)(((byte)(207))))); this.radChart1.PlotArea.YAxis.Appearance.MinorGridLines.Visible = false; this.radChart1.PlotArea.YAxis.Appearance.MinorTick.Visible = false; this.radChart1.PlotArea.YAxis.Appearance.TextAppearance.Corners = corners19; this.radChart1.PlotArea.YAxis.Appearance.TextAppearance.TextProperties.Color = System.Drawing.Color.FromArgb(((int)(((byte)(62)))), ((int)(((byte)(117)))), ((int)(((byte)(154))))); this.radChart1.PlotArea.YAxis.AxisLabel.Appearance.Corners = corners20; this.radChart1.PlotArea.YAxis.AxisLabel.Marker.Appearance.Corners = corners21; this.radChart1.PlotArea.YAxis.AxisLabel.TextBlock.Appearance.Corners = corners22; this.radChart1.PlotArea.YAxis.MaxValue = 120; this.radChart1.PlotArea.YAxis.Step = 20; this.radChart1.PlotArea.YAxis2.Appearance.LabelAppearance.Corners = corners23; this.radChart1.PlotArea.YAxis2.Appearance.TextAppearance.Corners = corners24; this.radChart1.PlotArea.YAxis2.AxisLabel.Appearance.Corners = corners25; this.radChart1.PlotArea.YAxis2.AxisLabel.Marker.Appearance.Corners = corners26; this.radChart1.PlotArea.YAxis2.AxisLabel.TextBlock.Appearance.Corners = corners27; this.radChart1.PlotArea.YAxis2.MaxValue = 7; this.radChart1.PlotArea.YAxis2.MinValue = 1; this.radChart1.PlotArea.YAxis2.Step = 1; chartSeries1.Appearance.Border.Color = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(209)))), ((int)(((byte)(248))))); chartSeries1.Appearance.Corners = corners28; chartSeries1.Appearance.EmptyValue.PointMark.Corners = corners29; chartSeries1.Appearance.LabelAppearance.Corners = corners30; chartSeries1.Appearance.PointMark.Corners = corners31; chartSeries1.Appearance.TextAppearance.Corners = corners32; chartSeries1.Appearance.TextAppearance.TextProperties.Color = System.Drawing.Color.FromArgb(((int)(((byte)(72)))), ((int)(((byte)(124)))), ((int)(((byte)(160))))); chartSeries1.Name = "Series 1"; chartSeries1.Type = Telerik.Charting.ChartSeriesType.CandleStick; chartSeries2.Appearance.Border.Color = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(209)))), ((int)(((byte)(248))))); chartSeries2.Appearance.Corners = corners33; chartSeries2.Appearance.EmptyValue.PointMark.Corners = corners34; chartSeries2.Appearance.LabelAppearance.Corners = corners35; chartSeries2.Appearance.PointMark.Corners = corners36; chartSeries2.Appearance.TextAppearance.Corners = corners37; chartSeries2.Appearance.TextAppearance.TextProperties.Color = System.Drawing.Color.FromArgb(((int)(((byte)(72)))), ((int)(((byte)(124)))), ((int)(((byte)(160))))); chartSeries2.Name = "Series 2"; chartSeries2.Type = Telerik.Charting.ChartSeriesType.CandleStick; chartSeries3.Appearance.Border.Color = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(209)))), ((int)(((byte)(248))))); chartSeries3.Appearance.Corners = corners38; chartSeries3.Appearance.EmptyValue.PointMark.Corners = corners39; chartSeries3.Appearance.LabelAppearance.Corners = corners40; chartSeries3.Appearance.PointMark.Corners = corners41; chartSeries3.Appearance.TextAppearance.Corners = corners42; chartSeries3.Appearance.TextAppearance.TextProperties.Color = System.Drawing.Color.FromArgb(((int)(((byte)(72)))), ((int)(((byte)(124)))), ((int)(((byte)(160))))); chartSeriesItem1.Appearance.Corners = corners43; chartSeriesItem1.Label.Appearance.Corners = corners44; chartSeriesItem1.Label.Marker.Appearance.Corners = corners45; chartSeriesItem1.Label.TextBlock.Appearance.Corners = corners46; chartSeriesItem1.PointAppearance.Corners = corners47; chartSeriesItem1.YValue = 73; chartSeriesItem1.YValue2 = 52; chartSeriesItem2.Appearance.Corners = corners48; chartSeriesItem2.Label.Appearance.Corners = corners49; chartSeriesItem2.Label.Marker.Appearance.Corners = corners50; chartSeriesItem2.Label.TextBlock.Appearance.Corners = corners51; chartSeriesItem2.PointAppearance.Corners = corners52; chartSeriesItem2.YValue = 23; chartSeriesItem2.YValue2 = 76; chartSeriesItem3.Appearance.Corners = corners53; chartSeriesItem3.Label.Appearance.Corners = corners54; chartSeriesItem3.Label.Marker.Appearance.Corners = corners55; chartSeriesItem3.Label.TextBlock.Appearance.Corners = corners56; chartSeriesItem3.PointAppearance.Corners = corners57; chartSeriesItem3.YValue = 22; chartSeriesItem3.YValue2 = 25; chartSeriesItem4.Appearance.Corners = corners58; chartSeriesItem4.Label.Appearance.Corners = corners59; chartSeriesItem4.Label.Marker.Appearance.Corners = corners60; chartSeriesItem4.Label.TextBlock.Appearance.Corners = corners61; chartSeriesItem4.PointAppearance.Corners = corners62; chartSeriesItem4.YValue = 24; chartSeriesItem4.YValue2 = 93; chartSeriesItem5.Appearance.Corners = corners63; chartSeriesItem5.Label.Appearance.Corners = corners64; chartSeriesItem5.Label.Marker.Appearance.Corners = corners65; chartSeriesItem5.Label.TextBlock.Appearance.Corners = corners66; chartSeriesItem5.PointAppearance.Corners = corners67; chartSeriesItem5.YValue = 75; chartSeriesItem5.YValue2 = 55; chartSeries3.Items.AddRange(new Telerik.Charting.ChartSeriesItem[] { chartSeriesItem1, chartSeriesItem2, chartSeriesItem3, chartSeriesItem4, chartSeriesItem5 }); chartSeries3.Name = "Product A"; chartSeries3.Type = Telerik.Charting.ChartSeriesType.SplineArea; this.radChart1.Series.Add(chartSeries1); this.radChart1.Series.Add(chartSeries2); this.radChart1.Series.Add(chartSeries3); this.radChart1.SkinsOverrideStyles = true; this.radChart1.Skin = "Apple"; this.radChart1.Size = new System.Drawing.Size(600, 500); this.radChart1.TabIndex = 1; // // Form1 // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.Controls.Add(this.radChart1); this.Name = "Form1"; this.Size = new System.Drawing.Size(1232, 822); ((System.ComponentModel.ISupportInitialize)(this.radChart1)).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() { Telerik.Charting.Styles.Corners corners1 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners2 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners3 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners4 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners5 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners6 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners7 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners8 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners9 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners10 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners11 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Unit unit1 = new Telerik.Charting.Styles.Unit(); Telerik.Charting.Styles.Unit unit2 = new Telerik.Charting.Styles.Unit(); Telerik.Charting.Styles.Unit unit3 = new Telerik.Charting.Styles.Unit(); Telerik.Charting.Styles.Unit unit4 = new Telerik.Charting.Styles.Unit(); Telerik.Charting.Styles.Corners corners12 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners13 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners14 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners15 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners16 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners17 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners18 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners19 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners20 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners21 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners22 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners23 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners24 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners25 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners26 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners27 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.ChartSeries chartSeries1 = new Telerik.Charting.ChartSeries(); Telerik.Charting.Styles.Corners corners28 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners29 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners30 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners31 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners32 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.ChartSeriesItem chartSeriesItem1 = new Telerik.Charting.ChartSeriesItem(); Telerik.Charting.Styles.Corners corners33 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners34 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners35 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners36 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners37 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.ChartSeriesItem chartSeriesItem2 = new Telerik.Charting.ChartSeriesItem(); Telerik.Charting.Styles.Corners corners38 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners39 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners40 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners41 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners42 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.ChartSeriesItem chartSeriesItem3 = new Telerik.Charting.ChartSeriesItem(); Telerik.Charting.Styles.Corners corners43 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners44 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners45 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners46 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners47 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.ChartSeriesItem chartSeriesItem4 = new Telerik.Charting.ChartSeriesItem(); Telerik.Charting.Styles.Corners corners48 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners49 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners50 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners51 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners52 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.ChartSeriesItem chartSeriesItem5 = new Telerik.Charting.ChartSeriesItem(); Telerik.Charting.Styles.Corners corners53 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners54 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners55 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners56 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners57 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.ChartSeries chartSeries2 = new Telerik.Charting.ChartSeries(); Telerik.Charting.Styles.Corners corners58 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners59 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners60 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners61 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners62 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.ChartSeriesItem chartSeriesItem6 = new Telerik.Charting.ChartSeriesItem(); Telerik.Charting.Styles.Corners corners63 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners64 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners65 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners66 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners67 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.ChartSeriesItem chartSeriesItem7 = new Telerik.Charting.ChartSeriesItem(); Telerik.Charting.Styles.Corners corners68 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners69 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners70 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners71 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners72 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.ChartSeriesItem chartSeriesItem8 = new Telerik.Charting.ChartSeriesItem(); Telerik.Charting.Styles.Corners corners73 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners74 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners75 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners76 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners77 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.ChartSeriesItem chartSeriesItem9 = new Telerik.Charting.ChartSeriesItem(); Telerik.Charting.Styles.Corners corners78 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners79 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners80 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners81 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners82 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.ChartSeriesItem chartSeriesItem10 = new Telerik.Charting.ChartSeriesItem(); Telerik.Charting.Styles.Corners corners83 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners84 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners85 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners86 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners87 = new Telerik.Charting.Styles.Corners(); #pragma warning disable 618 this.radChart1 = new Telerik.WinControls.UI.RadChart(); this.radChart1.Skin = "Default2006"; ((System.ComponentModel.ISupportInitialize)(this.radChart1)).BeginInit(); this.SuspendLayout(); // // radChart1 // this.radChart1.Appearance.Border.Color = System.Drawing.Color.FromArgb(((int)(((byte)(202)))), ((int)(((byte)(201)))), ((int)(((byte)(180))))); this.radChart1.Appearance.Corners = corners1; this.radChart1.Appearance.FillStyle.FillType = Telerik.Charting.Styles.FillType.Hatch; this.radChart1.Appearance.FillStyle.MainColor = System.Drawing.Color.FromArgb(((int)(((byte)(239)))), ((int)(((byte)(236)))), ((int)(((byte)(220))))); this.radChart1.Appearance.FillStyle.SecondColor = System.Drawing.Color.FromArgb(((int)(((byte)(225)))), ((int)(((byte)(224)))), ((int)(((byte)(214))))); this.radChart1.ChartTitle.Appearance.Border.Visible = false; this.radChart1.ChartTitle.Appearance.Corners = corners2; this.radChart1.ChartTitle.Appearance.FillStyle.MainColor = System.Drawing.Color.Empty; this.radChart1.ChartTitle.Appearance.Position.AlignedPosition = Telerik.Charting.Styles.AlignedPositions.TopLeft; this.radChart1.ChartTitle.Marker.Appearance.Corners = corners3; this.radChart1.ChartTitle.TextBlock.Appearance.Corners = corners4; this.radChart1.ChartTitle.TextBlock.Appearance.TextProperties.Color = System.Drawing.Color.FromArgb(((int)(((byte)(96)))), ((int)(((byte)(96)))), ((int)(((byte)(78))))); this.radChart1.ChartTitle.TextBlock.Appearance.TextProperties.Font = new System.Drawing.Font("Arial", 21.75F); this.radChart1.ChartTitle.TextBlock.Text = "Marked Zones"; this.radChart1.DataGroupColumn = null; this.radChart1.Legend.Appearance.Border.Color = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(154)))), ((int)(((byte)(130))))); this.radChart1.Legend.Appearance.Corners = corners5; this.radChart1.Legend.Appearance.FillStyle.MainColor = System.Drawing.Color.FromArgb(((int)(((byte)(254)))), ((int)(((byte)(253)))), ((int)(((byte)(246))))); this.radChart1.Legend.Appearance.ItemAppearance.Corners = corners6; this.radChart1.Legend.Appearance.ItemMarkerAppearance.Corners = corners7; this.radChart1.Legend.Appearance.ItemTextAppearance.Corners = corners8; this.radChart1.Legend.Marker.Appearance.Corners = corners9; this.radChart1.Legend.TextBlock.Appearance.Corners = corners10; this.radChart1.Location = new System.Drawing.Point(12, 12); this.radChart1.Name = "radChart1"; this.radChart1.PlotArea.Appearance.Border.Color = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(154)))), ((int)(((byte)(130))))); this.radChart1.PlotArea.Appearance.Corners = corners11; unit1.Type = Telerik.Charting.Styles.UnitType.Percentage; unit1.Value = 24F; unit2.Type = Telerik.Charting.Styles.UnitType.Percentage; unit2.Value = 22F; unit3.Type = Telerik.Charting.Styles.UnitType.Percentage; unit3.Value = 12F; unit4.Type = Telerik.Charting.Styles.UnitType.Percentage; unit4.Value = 10F; this.radChart1.PlotArea.Appearance.Dimensions.Margins = new Telerik.Charting.Styles.ChartMargins(unit1, unit2, unit3, unit4); this.radChart1.PlotArea.Appearance.FillStyle.MainColor = System.Drawing.Color.FromArgb(((int)(((byte)(254)))), ((int)(((byte)(253)))), ((int)(((byte)(246))))); this.radChart1.SkinsOverrideStyles = true; this.radChart1.Skin = "Apple"; this.radChart1.PlotArea.XAxis.Appearance.Color = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(154)))), ((int)(((byte)(130))))); this.radChart1.PlotArea.XAxis.Appearance.LabelAppearance.Corners = corners13; this.radChart1.PlotArea.XAxis.Appearance.MajorGridLines.Color = System.Drawing.Color.FromArgb(((int)(((byte)(234)))), ((int)(((byte)(232)))), ((int)(((byte)(220))))); this.radChart1.PlotArea.XAxis.Appearance.MajorGridLines.PenStyle = System.Drawing.Drawing2D.DashStyle.Solid; this.radChart1.PlotArea.XAxis.Appearance.MajorTick.Color = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(154)))), ((int)(((byte)(130))))); this.radChart1.PlotArea.XAxis.Appearance.TextAppearance.Corners = corners14; this.radChart1.PlotArea.XAxis.Appearance.TextAppearance.TextProperties.Color = System.Drawing.Color.FromArgb(((int)(((byte)(96)))), ((int)(((byte)(96)))), ((int)(((byte)(78))))); this.radChart1.PlotArea.XAxis.AxisLabel.Appearance.Corners = corners15; this.radChart1.PlotArea.XAxis.AxisLabel.Marker.Appearance.Corners = corners16; this.radChart1.PlotArea.XAxis.AxisLabel.TextBlock.Appearance.Corners = corners17; this.radChart1.PlotArea.XAxis.LayoutMode = Telerik.Charting.Styles.ChartAxisLayoutMode.Inside; this.radChart1.PlotArea.XAxis.MaxValue = 5; this.radChart1.PlotArea.XAxis.MinValue = 1; this.radChart1.PlotArea.XAxis.Step = 1; this.radChart1.PlotArea.YAxis.Appearance.Color = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(154)))), ((int)(((byte)(130))))); this.radChart1.PlotArea.YAxis.Appearance.LabelAppearance.Corners = corners18; this.radChart1.PlotArea.YAxis.Appearance.MajorGridLines.Color = System.Drawing.Color.FromArgb(((int)(((byte)(234)))), ((int)(((byte)(232)))), ((int)(((byte)(220))))); this.radChart1.PlotArea.YAxis.Appearance.MajorGridLines.PenStyle = System.Drawing.Drawing2D.DashStyle.Solid; this.radChart1.PlotArea.YAxis.Appearance.MajorTick.Color = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(154)))), ((int)(((byte)(130))))); this.radChart1.PlotArea.YAxis.Appearance.MinorGridLines.Color = System.Drawing.Color.FromArgb(((int)(((byte)(234)))), ((int)(((byte)(232)))), ((int)(((byte)(220))))); this.radChart1.PlotArea.YAxis.Appearance.MinorGridLines.Visible = false; this.radChart1.PlotArea.YAxis.Appearance.MinorTick.Color = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(154)))), ((int)(((byte)(130))))); this.radChart1.PlotArea.YAxis.Appearance.MinorTick.Visible = false; this.radChart1.PlotArea.YAxis.Appearance.TextAppearance.Corners = corners19; this.radChart1.PlotArea.YAxis.Appearance.TextAppearance.TextProperties.Color = System.Drawing.Color.FromArgb(((int)(((byte)(96)))), ((int)(((byte)(96)))), ((int)(((byte)(78))))); this.radChart1.PlotArea.YAxis.AxisLabel.Appearance.Corners = corners20; this.radChart1.PlotArea.YAxis.AxisLabel.Marker.Appearance.Corners = corners21; this.radChart1.PlotArea.YAxis.AxisLabel.TextBlock.Appearance.Corners = corners22; this.radChart1.PlotArea.YAxis.Step = 20; this.radChart1.PlotArea.YAxis2.Appearance.LabelAppearance.Corners = corners23; this.radChart1.PlotArea.YAxis2.Appearance.TextAppearance.Corners = corners24; this.radChart1.PlotArea.YAxis2.AxisLabel.Appearance.Corners = corners25; this.radChart1.PlotArea.YAxis2.AxisLabel.Marker.Appearance.Corners = corners26; this.radChart1.PlotArea.YAxis2.AxisLabel.TextBlock.Appearance.Corners = corners27; this.radChart1.PlotArea.YAxis2.MaxValue = 5; this.radChart1.PlotArea.YAxis2.MinValue = 1; this.radChart1.PlotArea.YAxis2.Step = 1; chartSeries1.Appearance.Border.Color = System.Drawing.Color.FromArgb(((int)(((byte)(187)))), ((int)(((byte)(149)))), ((int)(((byte)(58))))); chartSeries1.Appearance.Corners = corners28; chartSeries1.Appearance.EmptyValue.PointMark.Corners = corners29; chartSeries1.Appearance.LabelAppearance.Corners = corners30; chartSeries1.Appearance.PointMark.Corners = corners31; chartSeries1.Appearance.TextAppearance.Corners = corners32; chartSeriesItem1.Appearance.Corners = corners33; chartSeriesItem1.Label.Appearance.Corners = corners34; chartSeriesItem1.Label.Marker.Appearance.Corners = corners35; chartSeriesItem1.Label.TextBlock.Appearance.Corners = corners36; chartSeriesItem1.PointAppearance.Corners = corners37; chartSeriesItem1.YValue = 73; chartSeriesItem1.YValue2 = 52; chartSeriesItem2.Appearance.Corners = corners38; chartSeriesItem2.Label.Appearance.Corners = corners39; chartSeriesItem2.Label.Marker.Appearance.Corners = corners40; chartSeriesItem2.Label.TextBlock.Appearance.Corners = corners41; chartSeriesItem2.PointAppearance.Corners = corners42; chartSeriesItem2.YValue = 23; chartSeriesItem2.YValue2 = 76; chartSeriesItem3.Appearance.Corners = corners43; chartSeriesItem3.Label.Appearance.Corners = corners44; chartSeriesItem3.Label.Marker.Appearance.Corners = corners45; chartSeriesItem3.Label.TextBlock.Appearance.Corners = corners46; chartSeriesItem3.PointAppearance.Corners = corners47; chartSeriesItem3.YValue = 22; chartSeriesItem3.YValue2 = 25; chartSeriesItem4.Appearance.Corners = corners48; chartSeriesItem4.Label.Appearance.Corners = corners49; chartSeriesItem4.Label.Marker.Appearance.Corners = corners50; chartSeriesItem4.Label.TextBlock.Appearance.Corners = corners51; chartSeriesItem4.PointAppearance.Corners = corners52; chartSeriesItem4.YValue = 24; chartSeriesItem4.YValue2 = 93; chartSeriesItem5.Appearance.Corners = corners53; chartSeriesItem5.Label.Appearance.Corners = corners54; chartSeriesItem5.Label.Marker.Appearance.Corners = corners55; chartSeriesItem5.Label.TextBlock.Appearance.Corners = corners56; chartSeriesItem5.PointAppearance.Corners = corners57; chartSeriesItem5.YValue = 75; chartSeriesItem5.YValue2 = 55; chartSeries1.Items.AddRange(new Telerik.Charting.ChartSeriesItem[] { chartSeriesItem1, chartSeriesItem2, chartSeriesItem3, chartSeriesItem4, chartSeriesItem5 }); chartSeries1.Name = "Product A"; chartSeries1.Type = Telerik.Charting.ChartSeriesType.SplineArea; chartSeries2.Appearance.Border.Color = System.Drawing.Color.FromArgb(((int)(((byte)(187)))), ((int)(((byte)(149)))), ((int)(((byte)(58))))); chartSeries2.Appearance.Corners = corners58; chartSeries2.Appearance.EmptyValue.PointMark.Corners = corners59; chartSeries2.Appearance.LabelAppearance.Corners = corners60; chartSeries2.Appearance.PointMark.Corners = corners61; chartSeries2.Appearance.TextAppearance.Corners = corners62; chartSeriesItem6.Appearance.Corners = corners63; chartSeriesItem6.Label.Appearance.Corners = corners64; chartSeriesItem6.Label.Marker.Appearance.Corners = corners65; chartSeriesItem6.Label.TextBlock.Appearance.Corners = corners66; chartSeriesItem6.PointAppearance.Corners = corners67; chartSeriesItem6.YValue = 6; chartSeriesItem6.YValue2 = 53; chartSeriesItem7.Appearance.Corners = corners68; chartSeriesItem7.Label.Appearance.Corners = corners69; chartSeriesItem7.Label.Marker.Appearance.Corners = corners70; chartSeriesItem7.Label.TextBlock.Appearance.Corners = corners71; chartSeriesItem7.PointAppearance.Corners = corners72; chartSeriesItem7.YValue = 24; chartSeriesItem7.YValue2 = 22; chartSeriesItem8.Appearance.Corners = corners73; chartSeriesItem8.Label.Appearance.Corners = corners74; chartSeriesItem8.Label.Marker.Appearance.Corners = corners75; chartSeriesItem8.Label.TextBlock.Appearance.Corners = corners76; chartSeriesItem8.PointAppearance.Corners = corners77; chartSeriesItem8.YValue = 51; chartSeriesItem8.YValue2 = 78; chartSeriesItem9.Appearance.Corners = corners78; chartSeriesItem9.Label.Appearance.Corners = corners79; chartSeriesItem9.Label.Marker.Appearance.Corners = corners80; chartSeriesItem9.Label.TextBlock.Appearance.Corners = corners81; chartSeriesItem9.PointAppearance.Corners = corners82; chartSeriesItem9.YValue = 95; chartSeriesItem9.YValue2 = 10; chartSeriesItem10.Appearance.Corners = corners83; chartSeriesItem10.Label.Appearance.Corners = corners84; chartSeriesItem10.Label.Marker.Appearance.Corners = corners85; chartSeriesItem10.Label.TextBlock.Appearance.Corners = corners86; chartSeriesItem10.PointAppearance.Corners = corners87; chartSeriesItem10.YValue = 18; chartSeriesItem10.YValue2 = 60; chartSeries2.Items.AddRange(new Telerik.Charting.ChartSeriesItem[] { chartSeriesItem6, chartSeriesItem7, chartSeriesItem8, chartSeriesItem9, chartSeriesItem10 }); chartSeries2.Name = "Product B"; chartSeries2.Type = Telerik.Charting.ChartSeriesType.SplineArea; this.radChart1.Series.Add(chartSeries1); this.radChart1.Series.Add(chartSeries2); this.radChart1.Size = new System.Drawing.Size(400, 300); this.radChart1.TabIndex = 0; // // Form1 // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.Controls.Add(this.radChart1); this.Name = "Form1"; this.Size = new System.Drawing.Size(1232, 822); ((System.ComponentModel.ISupportInitialize)(this.radChart1)).EndInit(); this.ResumeLayout(false); }
/// <summary> /// Required designer variable. /// </summary> //private System.ComponentModel.IContainer components = null; #region Windows Form Designer generated code /// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { Telerik.Charting.Styles.ChartMargins chartMargins1 = new Telerik.Charting.Styles.ChartMargins(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form1)); Telerik.Charting.Styles.ChartMargins chartMargins2 = new Telerik.Charting.Styles.ChartMargins(); Telerik.Charting.Styles.ChartPaddings chartPaddings1 = new Telerik.Charting.Styles.ChartPaddings(); Telerik.Charting.Styles.ChartMargins chartMargins3 = new Telerik.Charting.Styles.ChartMargins(); Telerik.Charting.ChartSeries chartSeries1 = new Telerik.Charting.ChartSeries(); Telerik.Charting.ChartSeriesItem chartSeriesItem1 = new Telerik.Charting.ChartSeriesItem(); Telerik.Charting.ChartSeriesItem chartSeriesItem2 = new Telerik.Charting.ChartSeriesItem(); Telerik.Charting.ChartSeriesItem chartSeriesItem3 = new Telerik.Charting.ChartSeriesItem(); Telerik.Charting.ChartSeriesItem chartSeriesItem4 = new Telerik.Charting.ChartSeriesItem(); #pragma warning disable 618 this.radChart1 = new Telerik.WinControls.UI.RadChart(); ((System.ComponentModel.ISupportInitialize)(this.radChart1)).BeginInit(); this.SuspendLayout(); // // radChart1 // this.radChart1.Appearance.Border.Color = System.Drawing.Color.Silver; this.radChart1.Appearance.FillStyle.FillSettings.GradientMode = Telerik.Charting.Styles.GradientFillStyle.Center; this.radChart1.Appearance.FillStyle.FillType = Telerik.Charting.Styles.FillType.Gradient; this.radChart1.Appearance.FillStyle.MainColor = System.Drawing.Color.FromArgb(((int)(((byte)(141)))), ((int)(((byte)(211)))), ((int)(((byte)(65))))); this.radChart1.Appearance.FillStyle.SecondColor = System.Drawing.Color.FromArgb(((int)(((byte)(61)))), ((int)(((byte)(113)))), ((int)(((byte)(0))))); this.radChart1.ChartTitle.Appearance.Border.Width = 0F; chartMargins1.Bottom = ((Telerik.Charting.Styles.Unit)(resources.GetObject("chartMargins1.Bottom"))); chartMargins1.Left = ((Telerik.Charting.Styles.Unit)(resources.GetObject("chartMargins1.Left"))); chartMargins1.Right = ((Telerik.Charting.Styles.Unit)(resources.GetObject("chartMargins1.Right"))); chartMargins1.Top = ((Telerik.Charting.Styles.Unit)(resources.GetObject("chartMargins1.Top"))); this.radChart1.ChartTitle.Appearance.Dimensions.Margins = chartMargins1; this.radChart1.ChartTitle.Appearance.FillStyle.MainColor = System.Drawing.Color.Transparent; this.radChart1.ChartTitle.TextBlock.Appearance.TextProperties.Color = System.Drawing.Color.White; this.radChart1.ChartTitle.TextBlock.Appearance.TextProperties.Font = new System.Drawing.Font("Microsoft Sans Serif", 14F); this.radChart1.DefaultType = Telerik.Charting.ChartSeriesType.Point; this.radChart1.Legend.Appearance.Border.Color = System.Drawing.Color.FromArgb(((int)(((byte)(131)))), ((int)(((byte)(171)))), ((int)(((byte)(83))))); chartMargins2.Right = ((Telerik.Charting.Styles.Unit)(resources.GetObject("chartMargins2.Right"))); chartMargins2.Top = ((Telerik.Charting.Styles.Unit)(resources.GetObject("chartMargins2.Top"))); this.radChart1.Legend.Appearance.Dimensions.Margins = chartMargins2; chartPaddings1.Bottom = ((Telerik.Charting.Styles.Unit)(resources.GetObject("chartPaddings1.Bottom"))); chartPaddings1.Left = ((Telerik.Charting.Styles.Unit)(resources.GetObject("chartPaddings1.Left"))); chartPaddings1.Right = ((Telerik.Charting.Styles.Unit)(resources.GetObject("chartPaddings1.Right"))); chartPaddings1.Top = ((Telerik.Charting.Styles.Unit)(resources.GetObject("chartPaddings1.Top"))); this.radChart1.Legend.Appearance.Dimensions.Paddings = chartPaddings1; this.radChart1.Legend.Appearance.FillStyle.MainColor = System.Drawing.Color.FromArgb(((int)(((byte)(50)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); this.radChart1.Legend.Appearance.ItemTextAppearance.TextProperties.Color = System.Drawing.Color.White; this.radChart1.Legend.Appearance.ItemTextAppearance.TextProperties.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); this.radChart1.Location = new System.Drawing.Point(12, 12); this.radChart1.Name = "radChart1"; this.radChart1.PlotArea.Appearance.Border.Color = System.Drawing.Color.FromArgb(((int)(((byte)(50)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); chartMargins3.Bottom = ((Telerik.Charting.Styles.Unit)(resources.GetObject("chartMargins3.Bottom"))); chartMargins3.Left = ((Telerik.Charting.Styles.Unit)(resources.GetObject("chartMargins3.Left"))); chartMargins3.Right = ((Telerik.Charting.Styles.Unit)(resources.GetObject("chartMargins3.Right"))); chartMargins3.Top = ((Telerik.Charting.Styles.Unit)(resources.GetObject("chartMargins3.Top"))); this.radChart1.PlotArea.Appearance.Dimensions.Margins = chartMargins3; this.radChart1.PlotArea.Appearance.FillStyle.FillType = Telerik.Charting.Styles.FillType.Solid; this.radChart1.PlotArea.Appearance.FillStyle.MainColor = System.Drawing.Color.Transparent; this.radChart1.PlotArea.Appearance.FillStyle.SecondColor = System.Drawing.Color.White; this.radChart1.PlotArea.XAxis.Appearance.Color = System.Drawing.Color.FromArgb(((int)(((byte)(50)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); this.radChart1.PlotArea.XAxis.Appearance.MajorGridLines.Color = System.Drawing.Color.FromArgb(((int)(((byte)(50)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); this.radChart1.PlotArea.XAxis.Appearance.MajorTick.Color = System.Drawing.Color.FromArgb(((int)(((byte)(50)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); this.radChart1.PlotArea.XAxis.Appearance.TextAppearance.TextProperties.Color = System.Drawing.Color.White; this.radChart1.PlotArea.XAxis.Appearance.TextAppearance.TextProperties.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); this.radChart1.PlotArea.XAxis.AxisLabel.TextBlock.Appearance.TextProperties.Color = System.Drawing.Color.White; this.radChart1.PlotArea.XAxis.MaxValue = 4; this.radChart1.PlotArea.XAxis.Step = 0.5; this.radChart1.PlotArea.YAxis.Appearance.Color = System.Drawing.Color.FromArgb(((int)(((byte)(50)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); this.radChart1.PlotArea.YAxis.Appearance.MajorGridLines.Color = System.Drawing.Color.FromArgb(((int)(((byte)(50)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); this.radChart1.PlotArea.YAxis.Appearance.MajorTick.Color = System.Drawing.Color.FromArgb(((int)(((byte)(50)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); this.radChart1.PlotArea.YAxis.Appearance.MinorGridLines.Color = System.Drawing.Color.FromArgb(((int)(((byte)(50)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); this.radChart1.PlotArea.YAxis.Appearance.MinorTick.Color = System.Drawing.Color.FromArgb(((int)(((byte)(50)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); this.radChart1.PlotArea.YAxis.Appearance.TextAppearance.TextProperties.Color = System.Drawing.Color.White; this.radChart1.PlotArea.YAxis.Appearance.TextAppearance.TextProperties.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); this.radChart1.PlotArea.YAxis.MaxValue = 9; this.radChart1.PlotArea.YAxis2.Appearance.Color = System.Drawing.Color.FromArgb(((int)(((byte)(50)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); this.radChart1.PlotArea.YAxis2.Appearance.MajorGridLines.Color = System.Drawing.Color.FromArgb(((int)(((byte)(50)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); this.radChart1.PlotArea.YAxis2.Appearance.MajorTick.Color = System.Drawing.Color.FromArgb(((int)(((byte)(50)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); this.radChart1.PlotArea.YAxis2.Appearance.MinorGridLines.Color = System.Drawing.Color.FromArgb(((int)(((byte)(50)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); this.radChart1.PlotArea.YAxis2.Appearance.MinorTick.Color = System.Drawing.Color.FromArgb(((int)(((byte)(50)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); this.radChart1.PlotArea.YAxis2.Appearance.TextAppearance.TextProperties.Color = System.Drawing.Color.White; this.radChart1.PlotArea.YAxis2.Appearance.TextAppearance.TextProperties.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); chartSeries1.Appearance.Border.Color = System.Drawing.Color.Empty; chartSeries1.Appearance.FillStyle.MainColor = System.Drawing.Color.FromArgb(((int)(((byte)(213)))), ((int)(((byte)(247)))), ((int)(((byte)(255))))); chartSeries1.Appearance.FillStyle.SecondColor = System.Drawing.Color.FromArgb(((int)(((byte)(157)))), ((int)(((byte)(217)))), ((int)(((byte)(238))))); chartSeries1.Appearance.PointMark.FillStyle.MainColor = System.Drawing.Color.FromArgb(((int)(((byte)(213)))), ((int)(((byte)(247)))), ((int)(((byte)(255))))); chartSeries1.Appearance.PointMark.FillStyle.SecondColor = System.Drawing.Color.FromArgb(((int)(((byte)(157)))), ((int)(((byte)(217)))), ((int)(((byte)(238))))); chartSeries1.Appearance.TextAppearance.TextProperties.Color = System.Drawing.Color.White; chartSeries1.Appearance.TextAppearance.TextProperties.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); chartSeriesItem1.PointAppearance.FillStyle.MainColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(186)))), ((int)(((byte)(74))))); chartSeriesItem1.PointAppearance.FillStyle.SecondColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(244)))), ((int)(((byte)(227))))); chartSeriesItem1.XValue = 1; chartSeriesItem1.YValue = 5; chartSeriesItem2.PointAppearance.FillStyle.MainColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(186)))), ((int)(((byte)(74))))); chartSeriesItem2.PointAppearance.FillStyle.SecondColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(244)))), ((int)(((byte)(227))))); chartSeriesItem2.XValue = 2; chartSeriesItem2.YValue = 6; chartSeriesItem3.PointAppearance.FillStyle.MainColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(186)))), ((int)(((byte)(74))))); chartSeriesItem3.PointAppearance.FillStyle.SecondColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(244)))), ((int)(((byte)(227))))); chartSeriesItem3.XValue = 3; chartSeriesItem3.YValue = 9; chartSeriesItem4.PointAppearance.FillStyle.MainColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(186)))), ((int)(((byte)(74))))); chartSeriesItem4.PointAppearance.FillStyle.SecondColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(244)))), ((int)(((byte)(227))))); chartSeriesItem4.XValue = 4; chartSeriesItem4.YValue = 3; chartSeries1.Items.AddRange(new Telerik.Charting.ChartSeriesItem[] { chartSeriesItem1, chartSeriesItem2, chartSeriesItem3, chartSeriesItem4 }); chartSeries1.Name = "Series 1"; chartSeries1.Type = Telerik.Charting.ChartSeriesType.Point; this.radChart1.Series.AddRange(new Telerik.Charting.ChartSeries[] { chartSeries1 }); this.radChart1.Size = new System.Drawing.Size(400, 300); this.radChart1.Skin = "Apple"; this.radChart1.SkinsOverrideStyles = true; this.radChart1.TabIndex = 0; // // Form1 // this.Controls.Add(this.radChart1); this.Name = "Form1"; this.Size = new System.Drawing.Size(1230, 606); this.Load += new System.EventHandler(this.Form1_Load); ((System.ComponentModel.ISupportInitialize)(this.radChart1)).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() { Telerik.Charting.Styles.Corners corners1 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.ChartMargins chartMargins1 = new Telerik.Charting.Styles.ChartMargins(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form1)); Telerik.Charting.Styles.ChartMargins chartMargins2 = new Telerik.Charting.Styles.ChartMargins(); Telerik.Charting.ChartSeries chartSeries1 = new Telerik.Charting.ChartSeries(); Telerik.Charting.ChartSeriesItem chartSeriesItem1 = new Telerik.Charting.ChartSeriesItem(); Telerik.Charting.ChartSeriesItem chartSeriesItem2 = new Telerik.Charting.ChartSeriesItem(); Telerik.Charting.ChartSeriesItem chartSeriesItem3 = new Telerik.Charting.ChartSeriesItem(); Telerik.Charting.ChartSeriesItem chartSeriesItem4 = new Telerik.Charting.ChartSeriesItem(); Telerik.Charting.ChartSeriesItem chartSeriesItem5 = new Telerik.Charting.ChartSeriesItem(); Telerik.Charting.ChartSeries chartSeries2 = new Telerik.Charting.ChartSeries(); Telerik.Charting.ChartSeriesItem chartSeriesItem6 = new Telerik.Charting.ChartSeriesItem(); Telerik.Charting.ChartSeriesItem chartSeriesItem7 = new Telerik.Charting.ChartSeriesItem(); Telerik.Charting.ChartSeriesItem chartSeriesItem8 = new Telerik.Charting.ChartSeriesItem(); Telerik.Charting.ChartSeriesItem chartSeriesItem9 = new Telerik.Charting.ChartSeriesItem(); Telerik.Charting.ChartSeriesItem chartSeriesItem10 = new Telerik.Charting.ChartSeriesItem(); #pragma warning disable 618 this.radChart1 = new Telerik.WinControls.UI.RadChart(); ((System.ComponentModel.ISupportInitialize)(this.radChart1)).BeginInit(); this.SuspendLayout(); // // radChart1 // this.radChart1.Appearance.Border.Color = System.Drawing.Color.FromArgb(((int)(((byte)(182)))), ((int)(((byte)(224)))), ((int)(((byte)(249))))); this.radChart1.Appearance.FillStyle.MainColor = System.Drawing.Color.FromArgb(((int)(((byte)(240)))), ((int)(((byte)(252)))), ((int)(((byte)(255))))); this.radChart1.AutoLayout = true; this.radChart1.ChartTitle.Appearance.Border.Visible = false; this.radChart1.ChartTitle.Appearance.FillStyle.MainColor = System.Drawing.Color.Empty; this.radChart1.ChartTitle.Appearance.Position.AlignedPosition = Telerik.Charting.Styles.AlignedPositions.Top; this.radChart1.ChartTitle.TextBlock.Appearance.TextProperties.Color = System.Drawing.Color.FromArgb(((int)(((byte)(70)))), ((int)(((byte)(143)))), ((int)(((byte)(190))))); this.radChart1.ChartTitle.TextBlock.Text = "Logarithmic Y-Axis"; this.radChart1.Legend.Appearance.Border.Color = System.Drawing.Color.FromArgb(((int)(((byte)(208)))), ((int)(((byte)(237)))), ((int)(((byte)(255))))); corners1.BottomLeft = Telerik.Charting.Styles.CornerType.Round; corners1.BottomRight = Telerik.Charting.Styles.CornerType.Round; corners1.RoundSize = 6; corners1.TopLeft = Telerik.Charting.Styles.CornerType.Round; corners1.TopRight = Telerik.Charting.Styles.CornerType.Round; this.radChart1.Legend.Appearance.Corners = corners1; chartMargins1.Right = ((Telerik.Charting.Styles.Unit)(resources.GetObject("chartMargins1.Right"))); chartMargins1.Top = ((Telerik.Charting.Styles.Unit)(resources.GetObject("chartMargins1.Top"))); this.radChart1.Legend.Appearance.Dimensions.Margins = chartMargins1; this.radChart1.Legend.Appearance.ItemTextAppearance.TextProperties.Color = System.Drawing.Color.FromArgb(((int)(((byte)(62)))), ((int)(((byte)(117)))), ((int)(((byte)(154))))); this.radChart1.Legend.Appearance.Visible = false; this.radChart1.Legend.Visible = false; this.radChart1.Location = new System.Drawing.Point(12, 12); this.radChart1.Name = "radChart1"; this.radChart1.PlotArea.Appearance.Border.Color = System.Drawing.Color.FromArgb(((int)(((byte)(149)))), ((int)(((byte)(184)))), ((int)(((byte)(206))))); chartMargins2.Bottom = ((Telerik.Charting.Styles.Unit)(resources.GetObject("chartMargins2.Bottom"))); chartMargins2.Left = ((Telerik.Charting.Styles.Unit)(resources.GetObject("chartMargins2.Left"))); chartMargins2.Right = ((Telerik.Charting.Styles.Unit)(resources.GetObject("chartMargins2.Right"))); chartMargins2.Top = ((Telerik.Charting.Styles.Unit)(resources.GetObject("chartMargins2.Top"))); this.radChart1.PlotArea.Appearance.Dimensions.Margins = chartMargins2; this.radChart1.PlotArea.Appearance.FillStyle.FillType = Telerik.Charting.Styles.FillType.Solid; this.radChart1.PlotArea.Appearance.FillStyle.MainColor = System.Drawing.Color.White; this.radChart1.PlotArea.Appearance.FillStyle.SecondColor = System.Drawing.Color.White; this.radChart1.PlotArea.XAxis.Appearance.Color = System.Drawing.Color.FromArgb(((int)(((byte)(149)))), ((int)(((byte)(184)))), ((int)(((byte)(206))))); this.radChart1.PlotArea.XAxis.Appearance.MajorGridLines.Color = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(187)))), ((int)(((byte)(207))))); this.radChart1.PlotArea.XAxis.Appearance.MajorTick.Color = System.Drawing.Color.FromArgb(((int)(((byte)(149)))), ((int)(((byte)(184)))), ((int)(((byte)(206))))); this.radChart1.PlotArea.XAxis.Appearance.TextAppearance.TextProperties.Color = System.Drawing.Color.FromArgb(((int)(((byte)(62)))), ((int)(((byte)(117)))), ((int)(((byte)(154))))); this.radChart1.PlotArea.XAxis.LayoutMode = Telerik.Charting.Styles.ChartAxisLayoutMode.Inside; this.radChart1.PlotArea.XAxis.MaxValue = 5; this.radChart1.PlotArea.XAxis.MinValue = 1; this.radChart1.PlotArea.YAxis.Appearance.Color = System.Drawing.Color.FromArgb(((int)(((byte)(149)))), ((int)(((byte)(184)))), ((int)(((byte)(206))))); this.radChart1.PlotArea.YAxis.Appearance.MajorGridLines.Color = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(187)))), ((int)(((byte)(207))))); this.radChart1.PlotArea.YAxis.Appearance.MajorGridLines.PenStyle = System.Drawing.Drawing2D.DashStyle.Solid; this.radChart1.PlotArea.YAxis.Appearance.MajorTick.Color = System.Drawing.Color.FromArgb(((int)(((byte)(149)))), ((int)(((byte)(184)))), ((int)(((byte)(206))))); this.radChart1.PlotArea.YAxis.Appearance.MinorGridLines.Color = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(187)))), ((int)(((byte)(207))))); this.radChart1.PlotArea.YAxis.Appearance.MinorGridLines.Visible = false; this.radChart1.PlotArea.YAxis.Appearance.MinorTick.Color = System.Drawing.Color.Silver; this.radChart1.PlotArea.YAxis.Appearance.MinorTick.Visible = false; this.radChart1.PlotArea.YAxis.Appearance.TextAppearance.TextProperties.Color = System.Drawing.Color.FromArgb(((int)(((byte)(62)))), ((int)(((byte)(117)))), ((int)(((byte)(154))))); this.radChart1.PlotArea.YAxis.MaxValue = 100; this.radChart1.PlotArea.YAxis.Step = 10; chartSeries1.Appearance.TextAppearance.TextProperties.Color = System.Drawing.Color.FromArgb(((int)(((byte)(72)))), ((int)(((byte)(124)))), ((int)(((byte)(160))))); chartSeriesItem1.YValue = 73; chartSeriesItem1.YValue2 = 52; chartSeriesItem2.YValue = 23; chartSeriesItem2.YValue2 = 76; chartSeriesItem3.YValue = 22; chartSeriesItem3.YValue2 = 25; chartSeriesItem4.YValue = 24; chartSeriesItem4.YValue2 = 93; chartSeriesItem5.YValue = 75; chartSeriesItem5.YValue2 = 55; chartSeries1.Items.AddRange(new Telerik.Charting.ChartSeriesItem[] { chartSeriesItem1, chartSeriesItem2, chartSeriesItem3, chartSeriesItem4, chartSeriesItem5 }); chartSeries1.Name = "Product A"; chartSeries1.Type = Telerik.Charting.ChartSeriesType.SplineArea; chartSeries2.Appearance.TextAppearance.TextProperties.Color = System.Drawing.Color.FromArgb(((int)(((byte)(72)))), ((int)(((byte)(124)))), ((int)(((byte)(160))))); chartSeriesItem6.YValue = 6; chartSeriesItem6.YValue2 = 53; chartSeriesItem7.YValue = 24; chartSeriesItem7.YValue2 = 22; chartSeriesItem8.YValue = 51; chartSeriesItem8.YValue2 = 78; chartSeriesItem9.YValue = 95; chartSeriesItem9.YValue2 = 10; chartSeriesItem10.YValue = 18; chartSeriesItem10.YValue2 = 60; chartSeries2.Items.AddRange(new Telerik.Charting.ChartSeriesItem[] { chartSeriesItem6, chartSeriesItem7, chartSeriesItem8, chartSeriesItem9, chartSeriesItem10 }); chartSeries2.Name = "Product B"; chartSeries2.Type = Telerik.Charting.ChartSeriesType.SplineArea; this.radChart1.Series.AddRange(new Telerik.Charting.ChartSeries[] { chartSeries1, chartSeries2 }); this.radChart1.Size = new System.Drawing.Size(400, 300); this.radChart1.Skin = "Apple"; this.radChart1.SkinsOverrideStyles = true; this.radChart1.TabIndex = 0; // // Form1 // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.Controls.Add(this.radChart1); this.Name = "Form1"; this.Size = new System.Drawing.Size(1230, 606); ((System.ComponentModel.ISupportInitialize)(this.radChart1)).EndInit(); this.ResumeLayout(false); }
public void CreateChart(int MarketId = 1) { Telerik.Web.UI.RadChart objChart = new Telerik.Web.UI.RadChart(); // the data we want to chart // setting some chart parameters objChart.Height = 480; objChart.Width = 500; /*objChart.Margins.Right = new Unit(30, UnitType.Percentage); objChart.Margins.Bottom = new Unit(1, UnitType.Percentage); objChart.Margins.Left = new Unit(1, UnitType.Percentage); objChart.Margins.Top = new Unit(1, UnitType.Percentage); objChart.Background.MainColor = Color.White; objChart.Background.BorderColor = Color.White;*/ // creating a series and adding it to the chart MarketsDBEntities dba = new MarketsDBEntities(); Market m = dba.Markets.Find(MarketId); DateTime sd = DateTime.Now.AddMonths(-6); DateTime ed = DateTime.Now; Telerik.Charting.ChartSeriesItemsCollection sc = new Telerik.Charting.ChartSeriesItemsCollection(); //m.PopulateDailyCandleList(DateTime.Now.AddYears(-4), ed); //MarketMachineClassLibrary.MarketDailyCandleList mdcl = m.mdcl; //MarketMachineClassLibrary.CandleList cl = mdcl.cl; int x = 0; double minny = 100000; double maxxy = 0; foreach (var t in m.DailyCandles.Where(i => i.Date >= sd)) { Telerik.Charting.ChartSeriesItem i = new Telerik.Charting.ChartSeriesItem(); i.XValue = t.Date.ToOADate(); i.YValue = Double.Parse(t.Open.ToString()); i.YValue2 = Double.Parse(t.Close.ToString()); i.YValue3 = Double.Parse(t.Low.ToString()); i.YValue4 = Double.Parse(t.High.ToString()); sc.Add(i); if (Double.Parse(t.High.ToString()) > maxxy) { maxxy = Double.Parse(t.High.ToString()); } if (Double.Parse(t.Low.ToString()) < minny) { minny = Double.Parse(t.Low.ToString()); } x++; } Double offset = (maxxy - minny) * .2; objChart.PlotArea.YAxis.MaxValue = maxxy + offset; objChart.PlotArea.YAxis.MinValue = Math.Round(minny - offset, MidpointRounding.AwayFromZero); objChart.PlotArea.YAxis.LabelStep = 10; objChart.PlotArea.XAxis.AddRange(sd.ToOADate(), ed.ToOADate(), 1); objChart.Skin = "LightGreen"; objChart.Legend.Appearance.Visible = false; objChart.Series.Add(new Telerik.Charting.ChartSeries()); objChart.Series[0].Items.AddRange(sc); objChart.Series[0].Name = m.Name; objChart.Series[0].Type = Telerik.Charting.ChartSeriesType.CandleStick; objChart.Series[0].Appearance.BarWidthPercent = 80; objChart.Series[0].Appearance.Border.Color = Color.Black; objChart.Series[0].Appearance.Border.Width = 1; objChart.Series[0].Appearance.LabelAppearance.Visible = false; objChart.Series[0].PlotArea.XAxis.LayoutMode = Telerik.Charting.Styles.ChartAxisLayoutMode.Between; objChart.Series[0].PlotArea.XAxis.AutoScale = false; objChart.Series[0].PlotArea.XAxis.Appearance.MajorGridLines.Width = 2; objChart.Series[0].PlotArea.XAxis.Appearance.MinorGridLines.Visible = false; objChart.Series[0].PlotArea.XAxis.LabelStep = 10; objChart.Series[0].PlotArea.XAxis.Appearance.ValueFormat = Telerik.Charting.Styles.ChartValueFormat.ShortDate; objChart.Series[0].PlotArea.XAxis.Appearance.LabelAppearance.RotationAngle = 45; objChart.Series[0].PlotArea.XAxis.Appearance.LabelAppearance.Position.AlignedPosition = Telerik.Charting.Styles.AlignedPositions.Top; objChart.Series[0].PlotArea.YAxis.AxisMode = Telerik.Charting.ChartYAxisMode.Extended; objChart.Series[0].PlotArea.YAxis.AutoScale = false; objChart.Series[0].PlotArea.YAxis.Appearance.MajorGridLines.Width = 2; objChart.Series[0].PlotArea.YAxis.Appearance.MinorGridLines.Visible = false; objChart.ChartTitle.Visible = false; objChart.Appearance.Dimensions.Margins.Top = 10; objChart.Appearance.Dimensions.Margins.Bottom = 10; objChart.Appearance.Dimensions.Margins.Left = 10; objChart.Appearance.Dimensions.Margins.Right = 10; objChart.Series[0].PlotArea.Appearance.Dimensions.AutoSize = false; objChart.Series[0].PlotArea.Appearance.Dimensions.Width = 430; objChart.Series[0].PlotArea.Appearance.Dimensions.Height = 430; objChart.Series[0].PlotArea.Appearance.Dimensions.Paddings.Top = 10; objChart.Series[0].PlotArea.Appearance.Dimensions.Margins.Top = 10; //objChart.Text = "Minny: " + minny.ToString() + ", Maxxy: " + maxxy.ToString(); // send the chart to the view engine /****************** TRADING RANGES foreach (MarketMachineClassLibrary.TradingRangeViewModel t in mdcl.cl.TheTradingRanges.Where(i => i.BeginDate >= sd).OrderBy(i => i.ActiveDate)) { Telerik.Charting.ChartMarkedZone cz = new Telerik.Charting.ChartMarkedZone(); cz.ValueStartX = t.BeginDate.ToOADate(); cz.ValueEndX = t.ActiveDate.ToOADate(); cz.ValueStartY = double.Parse(t.UpperPrice.ToString()); cz.ValueEndY = double.Parse(t.LowerPrice.ToString()); if (t.BullOrBear == "Bull") { cz.Appearance.FillStyle.MainColor = System.Drawing.Color.LightGreen; } else if (t.BullOrBear == "Bear") { cz.Appearance.FillStyle.MainColor = System.Drawing.Color.LightPink; } else { cz.Appearance.FillStyle.MainColor = System.Drawing.Color.LightBlue; } objChart.Chart.PlotArea.MarkedZones.Add(cz); } */ //return new ChartResult() { Chart = objChart }; Image image = objChart.GetBitmap(); ChartImage = image; //image.Save("c:\\temp\\test.jpg", ImageFormat.Jpeg); byte[] Ret; System.IO.MemoryStream ms = new System.IO.MemoryStream(); image.Save(ms, System.Drawing.Imaging.ImageFormat.Jpeg); Ret = ms.ToArray(); ChartData = Ret; }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { Telerik.Charting.Styles.ChartMargins chartMargins1 = new Telerik.Charting.Styles.ChartMargins(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form1)); Telerik.Charting.ChartSeries chartSeries1 = new Telerik.Charting.ChartSeries(); Telerik.Charting.ChartSeriesItem chartSeriesItem1 = new Telerik.Charting.ChartSeriesItem(); Telerik.Charting.ChartSeriesItem chartSeriesItem2 = new Telerik.Charting.ChartSeriesItem(); Telerik.Charting.ChartSeriesItem chartSeriesItem3 = new Telerik.Charting.ChartSeriesItem(); Telerik.Charting.ChartSeriesItem chartSeriesItem4 = new Telerik.Charting.ChartSeriesItem(); Telerik.Charting.ChartSeriesItem chartSeriesItem5 = new Telerik.Charting.ChartSeriesItem(); #pragma warning disable 618 this.radChart1 = new Telerik.WinControls.UI.RadChart(); ((System.ComponentModel.ISupportInitialize)(this.radChart1)).BeginInit(); this.SuspendLayout(); // // radChart1 // this.radChart1.Appearance.Border.Color = System.Drawing.Color.FromArgb(((int)(((byte)(131)))), ((int)(((byte)(171)))), ((int)(((byte)(184))))); this.radChart1.Appearance.FillStyle.FillType = Telerik.Charting.Styles.FillType.Hatch; this.radChart1.Appearance.FillStyle.MainColor = System.Drawing.Color.FromArgb(((int)(((byte)(225)))), ((int)(((byte)(235)))), ((int)(((byte)(239))))); this.radChart1.Appearance.FillStyle.SecondColor = System.Drawing.Color.FromArgb(((int)(((byte)(207)))), ((int)(((byte)(223)))), ((int)(((byte)(229))))); this.radChart1.ChartTitle.Appearance.Border.Visible = false; this.radChart1.ChartTitle.Appearance.FillStyle.MainColor = System.Drawing.Color.Empty; this.radChart1.ChartTitle.TextBlock.Appearance.TextProperties.Color = System.Drawing.Color.FromArgb(((int)(((byte)(81)))), ((int)(((byte)(103)))), ((int)(((byte)(114))))); this.radChart1.ChartTitle.TextBlock.Appearance.TextProperties.Font = new System.Drawing.Font("Arial", 21.75F); this.radChart1.ChartTitle.TextBlock.Text = "Candlestick Chart"; this.radChart1.DefaultType = Telerik.Charting.ChartSeriesType.CandleStick; this.radChart1.Legend.Appearance.Border.Color = System.Drawing.Color.FromArgb(((int)(((byte)(193)))), ((int)(((byte)(214)))), ((int)(((byte)(221))))); this.radChart1.Legend.Appearance.FillStyle.MainColor = System.Drawing.Color.FromArgb(((int)(((byte)(241)))), ((int)(((byte)(253)))), ((int)(((byte)(255))))); this.radChart1.Location = new System.Drawing.Point(12, 12); this.radChart1.Name = "radChart1"; this.radChart1.PlotArea.Appearance.Border.Color = System.Drawing.Color.FromArgb(((int)(((byte)(193)))), ((int)(((byte)(214)))), ((int)(((byte)(221))))); chartMargins1.Bottom = ((Telerik.Charting.Styles.Unit)(resources.GetObject("chartMargins1.Bottom"))); chartMargins1.Left = ((Telerik.Charting.Styles.Unit)(resources.GetObject("chartMargins1.Left"))); chartMargins1.Right = ((Telerik.Charting.Styles.Unit)(resources.GetObject("chartMargins1.Right"))); chartMargins1.Top = ((Telerik.Charting.Styles.Unit)(resources.GetObject("chartMargins1.Top"))); this.radChart1.PlotArea.Appearance.Dimensions.Margins = chartMargins1; this.radChart1.PlotArea.Appearance.FillStyle.MainColor = System.Drawing.Color.FromArgb(((int)(((byte)(241)))), ((int)(((byte)(253)))), ((int)(((byte)(255))))); this.radChart1.PlotArea.XAxis.Appearance.Color = System.Drawing.Color.FromArgb(((int)(((byte)(193)))), ((int)(((byte)(214)))), ((int)(((byte)(221))))); this.radChart1.PlotArea.XAxis.Appearance.MajorGridLines.Color = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(232)))), ((int)(((byte)(227))))); this.radChart1.PlotArea.XAxis.Appearance.MajorGridLines.PenStyle = System.Drawing.Drawing2D.DashStyle.Solid; this.radChart1.PlotArea.XAxis.Appearance.MajorTick.Color = System.Drawing.Color.FromArgb(((int)(((byte)(154)))), ((int)(((byte)(153)))), ((int)(((byte)(129))))); this.radChart1.PlotArea.XAxis.Appearance.TextAppearance.TextProperties.Color = System.Drawing.Color.FromArgb(((int)(((byte)(96)))), ((int)(((byte)(96)))), ((int)(((byte)(78))))); this.radChart1.PlotArea.XAxis.LayoutMode = Telerik.Charting.Styles.ChartAxisLayoutMode.Inside; this.radChart1.PlotArea.XAxis.MaxValue = 5; this.radChart1.PlotArea.XAxis.MinValue = 1; this.radChart1.PlotArea.YAxis.Appearance.Color = System.Drawing.Color.FromArgb(((int)(((byte)(193)))), ((int)(((byte)(214)))), ((int)(((byte)(221))))); this.radChart1.PlotArea.YAxis.Appearance.MajorGridLines.Color = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(232)))), ((int)(((byte)(227))))); this.radChart1.PlotArea.YAxis.Appearance.MajorGridLines.PenStyle = System.Drawing.Drawing2D.DashStyle.Solid; this.radChart1.PlotArea.YAxis.Appearance.MajorTick.Color = System.Drawing.Color.FromArgb(((int)(((byte)(154)))), ((int)(((byte)(153)))), ((int)(((byte)(129))))); this.radChart1.PlotArea.YAxis.Appearance.MinorGridLines.Color = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(232)))), ((int)(((byte)(227))))); this.radChart1.PlotArea.YAxis.Appearance.MinorGridLines.Visible = false; this.radChart1.PlotArea.YAxis.Appearance.MinorTick.Color = System.Drawing.Color.FromArgb(((int)(((byte)(154)))), ((int)(((byte)(153)))), ((int)(((byte)(129))))); this.radChart1.PlotArea.YAxis.Appearance.MinorTick.Visible = false; this.radChart1.PlotArea.YAxis.Appearance.TextAppearance.TextProperties.Color = System.Drawing.Color.FromArgb(((int)(((byte)(96)))), ((int)(((byte)(96)))), ((int)(((byte)(78))))); this.radChart1.PlotArea.YAxis.MaxValue = 80; this.radChart1.PlotArea.YAxis2.MaxValue = 5; this.radChart1.PlotArea.YAxis2.MinValue = 1; chartSeriesItem1.YValue = 73; chartSeriesItem1.YValue2 = 52; chartSeriesItem2.YValue = 23; chartSeriesItem2.YValue2 = 76; chartSeriesItem3.YValue = 22; chartSeriesItem3.YValue2 = 25; chartSeriesItem4.YValue = 24; chartSeriesItem4.YValue2 = 93; chartSeriesItem5.YValue = 75; chartSeriesItem5.YValue2 = 55; chartSeries1.Items.AddRange(new Telerik.Charting.ChartSeriesItem[] { chartSeriesItem1, chartSeriesItem2, chartSeriesItem3, chartSeriesItem4, chartSeriesItem5 }); chartSeries1.Name = "Product A"; chartSeries1.Type = Telerik.Charting.ChartSeriesType.SplineArea; this.radChart1.Series.AddRange(new Telerik.Charting.ChartSeries[] { chartSeries1 }); this.radChart1.Size = new System.Drawing.Size(400, 300); this.radChart1.Skin = "Apple"; this.radChart1.SkinsOverrideStyles = true; this.radChart1.TabIndex = 0; // // Form1 // this.Controls.Add(this.radChart1); this.Name = "Form1"; this.Size = new System.Drawing.Size(1230, 606); ((System.ComponentModel.ISupportInitialize)(this.radChart1)).EndInit(); this.ResumeLayout(false); }
/// <summary> /// Required designer variable. /// </summary> //private System.ComponentModel.IContainer components = null; #region Windows Form Designer generated code /// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { Telerik.Charting.Styles.Corners corners1 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners2 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Unit unit1 = new Telerik.Charting.Styles.Unit(); Telerik.Charting.Styles.Unit unit2 = new Telerik.Charting.Styles.Unit(); Telerik.Charting.Styles.Unit unit3 = new Telerik.Charting.Styles.Unit(); Telerik.Charting.Styles.Corners corners3 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners4 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners5 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Unit unit4 = new Telerik.Charting.Styles.Unit(); Telerik.Charting.Styles.Unit unit5 = new Telerik.Charting.Styles.Unit(); Telerik.Charting.Styles.Unit unit6 = new Telerik.Charting.Styles.Unit(); Telerik.Charting.Styles.Unit unit7 = new Telerik.Charting.Styles.Unit(); Telerik.Charting.Styles.Corners corners6 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners7 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners8 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners9 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners10 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners11 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Unit unit8 = new Telerik.Charting.Styles.Unit(); Telerik.Charting.Styles.Unit unit9 = new Telerik.Charting.Styles.Unit(); Telerik.Charting.Styles.Unit unit10 = new Telerik.Charting.Styles.Unit(); Telerik.Charting.Styles.Unit unit11 = new Telerik.Charting.Styles.Unit(); Telerik.Charting.Styles.Corners corners12 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners13 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners14 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners15 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners16 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners17 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners18 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners19 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners20 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners21 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners22 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners23 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners24 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners25 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners26 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners27 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.ChartSeries chartSeries1 = new Telerik.Charting.ChartSeries(); Telerik.Charting.Styles.Corners corners28 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners29 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners30 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners31 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners32 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.ChartSeriesItem chartSeriesItem1 = new Telerik.Charting.ChartSeriesItem(); Telerik.Charting.Styles.Corners corners33 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners34 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners35 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners36 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners37 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.ChartSeriesItem chartSeriesItem2 = new Telerik.Charting.ChartSeriesItem(); Telerik.Charting.Styles.Corners corners38 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners39 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners40 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners41 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners42 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.ChartSeriesItem chartSeriesItem3 = new Telerik.Charting.ChartSeriesItem(); Telerik.Charting.Styles.Corners corners43 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners44 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners45 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners46 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners47 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.ChartSeriesItem chartSeriesItem4 = new Telerik.Charting.ChartSeriesItem(); Telerik.Charting.Styles.Corners corners48 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners49 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners50 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners51 = new Telerik.Charting.Styles.Corners(); Telerik.Charting.Styles.Corners corners52 = new Telerik.Charting.Styles.Corners(); #pragma warning disable 618 this.radChart1 = new Telerik.WinControls.UI.RadChart(); this.radChart1.Skin = "Default2006"; ((System.ComponentModel.ISupportInitialize)(this.radChart1)).BeginInit(); this.SuspendLayout(); // // radChart1 // this.radChart1.Appearance.Corners = corners1; this.radChart1.Appearance.FillStyle.FillSettings.GradientMode = Telerik.Charting.Styles.GradientFillStyle.Center; this.radChart1.Appearance.FillStyle.FillType = Telerik.Charting.Styles.FillType.Gradient; this.radChart1.Appearance.FillStyle.MainColor = System.Drawing.Color.FromArgb(((int)(((byte)(141)))), ((int)(((byte)(211)))), ((int)(((byte)(65))))); this.radChart1.Appearance.FillStyle.SecondColor = System.Drawing.Color.FromArgb(((int)(((byte)(61)))), ((int)(((byte)(113)))), ((int)(((byte)(0))))); this.radChart1.ChartTitle.Appearance.Border.Width = 0F; this.radChart1.ChartTitle.Appearance.Corners = corners2; unit1.Type = Telerik.Charting.Styles.UnitType.Percentage; unit1.Value = 1F; unit2.Value = 10F; unit3.Value = 14F; this.radChart1.ChartTitle.Appearance.Dimensions.Margins = new Telerik.Charting.Styles.ChartMargins(unit1, unit2, unit3, unit2); this.radChart1.ChartTitle.Appearance.FillStyle.MainColor = System.Drawing.Color.Transparent; this.radChart1.ChartTitle.Appearance.Position.AlignedPosition = Telerik.Charting.Styles.AlignedPositions.TopLeft; this.radChart1.ChartTitle.Marker.Appearance.Corners = corners3; this.radChart1.ChartTitle.TextBlock.Appearance.Corners = corners4; this.radChart1.ChartTitle.TextBlock.Appearance.TextProperties.Color = System.Drawing.Color.White; this.radChart1.ChartTitle.TextBlock.Appearance.TextProperties.Font = new System.Drawing.Font("Microsoft Sans Serif", 14F); this.radChart1.DataGroupColumn = null; this.radChart1.DefaultType = Telerik.Charting.ChartSeriesType.Gantt; this.radChart1.Legend.Appearance.Border.Color = System.Drawing.Color.FromArgb(((int)(((byte)(131)))), ((int)(((byte)(171)))), ((int)(((byte)(83))))); this.radChart1.Legend.Appearance.Corners = corners5; unit4.Type = Telerik.Charting.Styles.UnitType.Percentage; unit4.Value = 1F; unit5.Type = Telerik.Charting.Styles.UnitType.Percentage; unit5.Value = 1F; unit6.Type = Telerik.Charting.Styles.UnitType.Percentage; unit6.Value = 1F; unit7.Type = Telerik.Charting.Styles.UnitType.Percentage; unit7.Value = 1F; this.radChart1.Legend.Appearance.Dimensions.Paddings = new Telerik.Charting.Styles.ChartPaddings(unit4, unit5, unit6, unit7); this.radChart1.Legend.Appearance.FillStyle.MainColor = System.Drawing.Color.FromArgb(((int)(((byte)(50)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); this.radChart1.Legend.Appearance.ItemAppearance.Corners = corners6; this.radChart1.Legend.Appearance.ItemMarkerAppearance.Corners = corners7; this.radChart1.Legend.Appearance.ItemTextAppearance.Corners = corners8; this.radChart1.Legend.Appearance.ItemTextAppearance.TextProperties.Color = System.Drawing.Color.White; this.radChart1.Legend.Appearance.ItemTextAppearance.TextProperties.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); this.radChart1.Legend.Marker.Appearance.Corners = corners9; this.radChart1.Legend.TextBlock.Appearance.Corners = corners10; this.radChart1.Location = new System.Drawing.Point(12, 12); this.radChart1.Name = "radChart1"; this.radChart1.PlotArea.Appearance.Border.Color = System.Drawing.Color.FromArgb(((int)(((byte)(50)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); this.radChart1.PlotArea.Appearance.Corners = corners11; unit8.Type = Telerik.Charting.Styles.UnitType.Percentage; unit8.Value = 24F; unit9.Type = Telerik.Charting.Styles.UnitType.Percentage; unit9.Value = 22F; unit10.Type = Telerik.Charting.Styles.UnitType.Percentage; unit10.Value = 12F; unit11.Type = Telerik.Charting.Styles.UnitType.Percentage; unit11.Value = 10F; this.radChart1.PlotArea.Appearance.Dimensions.Margins = new Telerik.Charting.Styles.ChartMargins(unit8, unit9, unit10, unit11); this.radChart1.PlotArea.Appearance.FillStyle.MainColor = System.Drawing.Color.Transparent; this.radChart1.SkinsOverrideStyles = true; this.radChart1.Skin = "Apple"; this.radChart1.SeriesOrientation = Telerik.Charting.ChartSeriesOrientation.Horizontal; this.radChart1.PlotArea.XAxis.Appearance.Color = System.Drawing.Color.FromArgb(((int)(((byte)(50)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); this.radChart1.PlotArea.XAxis.Appearance.LabelAppearance.Corners = corners13; this.radChart1.PlotArea.XAxis.Appearance.MajorGridLines.Color = System.Drawing.Color.FromArgb(((int)(((byte)(50)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); this.radChart1.PlotArea.XAxis.Appearance.MajorTick.Color = System.Drawing.Color.FromArgb(((int)(((byte)(50)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); this.radChart1.PlotArea.XAxis.Appearance.TextAppearance.Corners = corners14; this.radChart1.PlotArea.XAxis.Appearance.TextAppearance.TextProperties.Color = System.Drawing.Color.White; this.radChart1.PlotArea.XAxis.Appearance.TextAppearance.TextProperties.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); this.radChart1.PlotArea.XAxis.AxisLabel.Appearance.Corners = corners15; this.radChart1.PlotArea.XAxis.AxisLabel.Marker.Appearance.Corners = corners16; this.radChart1.PlotArea.XAxis.AxisLabel.TextBlock.Appearance.Corners = corners17; this.radChart1.PlotArea.XAxis.AxisLabel.TextBlock.Appearance.TextProperties.Color = System.Drawing.Color.White; this.radChart1.PlotArea.XAxis.MaxValue = 4; this.radChart1.PlotArea.XAxis.MinValue = 1; this.radChart1.PlotArea.XAxis.Step = 1; this.radChart1.PlotArea.YAxis.Appearance.Color = System.Drawing.Color.FromArgb(((int)(((byte)(50)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); this.radChart1.PlotArea.YAxis.Appearance.LabelAppearance.Corners = corners18; this.radChart1.PlotArea.YAxis.Appearance.MajorGridLines.Color = System.Drawing.Color.FromArgb(((int)(((byte)(50)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); this.radChart1.PlotArea.YAxis.Appearance.MajorTick.Color = System.Drawing.Color.FromArgb(((int)(((byte)(50)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); this.radChart1.PlotArea.YAxis.Appearance.MinorGridLines.Color = System.Drawing.Color.FromArgb(((int)(((byte)(50)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); this.radChart1.PlotArea.YAxis.Appearance.MinorTick.Color = System.Drawing.Color.FromArgb(((int)(((byte)(50)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); this.radChart1.PlotArea.YAxis.Appearance.TextAppearance.Corners = corners19; this.radChart1.PlotArea.YAxis.Appearance.TextAppearance.TextProperties.Color = System.Drawing.Color.White; this.radChart1.PlotArea.YAxis.Appearance.TextAppearance.TextProperties.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); this.radChart1.PlotArea.YAxis.AxisLabel.Appearance.Corners = corners20; this.radChart1.PlotArea.YAxis.AxisLabel.Marker.Appearance.Corners = corners21; this.radChart1.PlotArea.YAxis.AxisLabel.TextBlock.Appearance.Corners = corners22; this.radChart1.PlotArea.YAxis.MaxValue = 4; this.radChart1.PlotArea.YAxis.Step = 0.5; this.radChart1.PlotArea.YAxis2.Appearance.Color = System.Drawing.Color.FromArgb(((int)(((byte)(50)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); this.radChart1.PlotArea.YAxis2.Appearance.LabelAppearance.Corners = corners23; this.radChart1.PlotArea.YAxis2.Appearance.MajorGridLines.Color = System.Drawing.Color.FromArgb(((int)(((byte)(50)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); this.radChart1.PlotArea.YAxis2.Appearance.MajorTick.Color = System.Drawing.Color.FromArgb(((int)(((byte)(50)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); this.radChart1.PlotArea.YAxis2.Appearance.MinorGridLines.Color = System.Drawing.Color.FromArgb(((int)(((byte)(50)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); this.radChart1.PlotArea.YAxis2.Appearance.MinorTick.Color = System.Drawing.Color.FromArgb(((int)(((byte)(50)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); this.radChart1.PlotArea.YAxis2.Appearance.TextAppearance.Corners = corners24; this.radChart1.PlotArea.YAxis2.Appearance.TextAppearance.TextProperties.Color = System.Drawing.Color.White; this.radChart1.PlotArea.YAxis2.Appearance.TextAppearance.TextProperties.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); this.radChart1.PlotArea.YAxis2.AxisLabel.Appearance.Corners = corners25; this.radChart1.PlotArea.YAxis2.AxisLabel.Marker.Appearance.Corners = corners26; this.radChart1.PlotArea.YAxis2.AxisLabel.TextBlock.Appearance.Corners = corners27; this.radChart1.PlotArea.YAxis2.MaxValue = 4; this.radChart1.PlotArea.YAxis2.MinValue = 1; this.radChart1.PlotArea.YAxis2.Step = 1; chartSeries1.Appearance.Border.Color = System.Drawing.Color.Empty; chartSeries1.Appearance.Corners = corners28; chartSeries1.Appearance.EmptyValue.PointMark.Corners = corners29; chartSeries1.Appearance.FillStyle.MainColor = System.Drawing.Color.FromArgb(((int)(((byte)(213)))), ((int)(((byte)(247)))), ((int)(((byte)(255))))); chartSeries1.Appearance.FillStyle.SecondColor = System.Drawing.Color.FromArgb(((int)(((byte)(157)))), ((int)(((byte)(217)))), ((int)(((byte)(238))))); chartSeries1.Appearance.LabelAppearance.Corners = corners30; chartSeries1.Appearance.PointMark.Corners = corners31; chartSeries1.Appearance.PointMark.FillStyle.MainColor = System.Drawing.Color.FromArgb(((int)(((byte)(213)))), ((int)(((byte)(247)))), ((int)(((byte)(255))))); chartSeries1.Appearance.PointMark.FillStyle.SecondColor = System.Drawing.Color.FromArgb(((int)(((byte)(157)))), ((int)(((byte)(217)))), ((int)(((byte)(238))))); chartSeries1.Appearance.TextAppearance.Corners = corners32; chartSeries1.Appearance.TextAppearance.TextProperties.Color = System.Drawing.Color.White; chartSeries1.Appearance.TextAppearance.TextProperties.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); chartSeriesItem1.Appearance.Corners = corners33; chartSeriesItem1.Label.Appearance.Corners = corners34; chartSeriesItem1.Label.Marker.Appearance.Corners = corners35; chartSeriesItem1.Label.TextBlock.Appearance.Corners = corners36; chartSeriesItem1.PointAppearance.Corners = corners37; chartSeriesItem1.YValue = 1; chartSeriesItem2.Appearance.Corners = corners38; chartSeriesItem2.Label.Appearance.Corners = corners39; chartSeriesItem2.Label.Marker.Appearance.Corners = corners40; chartSeriesItem2.Label.TextBlock.Appearance.Corners = corners41; chartSeriesItem2.PointAppearance.Corners = corners42; chartSeriesItem2.YValue = 2; chartSeriesItem3.Appearance.Corners = corners43; chartSeriesItem3.Label.Appearance.Corners = corners44; chartSeriesItem3.Label.Marker.Appearance.Corners = corners45; chartSeriesItem3.Label.TextBlock.Appearance.Corners = corners46; chartSeriesItem3.PointAppearance.Corners = corners47; chartSeriesItem3.YValue = 3; chartSeriesItem4.Appearance.Corners = corners48; chartSeriesItem4.Label.Appearance.Corners = corners49; chartSeriesItem4.Label.Marker.Appearance.Corners = corners50; chartSeriesItem4.Label.TextBlock.Appearance.Corners = corners51; chartSeriesItem4.PointAppearance.Corners = corners52; chartSeriesItem4.YValue = 4; chartSeries1.Items.AddRange(new Telerik.Charting.ChartSeriesItem[] { chartSeriesItem1, chartSeriesItem2, chartSeriesItem3, chartSeriesItem4 }); chartSeries1.Name = "Series 1"; chartSeries1.Type = Telerik.Charting.ChartSeriesType.Gantt; this.radChart1.Series.Add(chartSeries1); this.radChart1.SeriesOrientation = Telerik.Charting.ChartSeriesOrientation.Horizontal; this.radChart1.Size = new System.Drawing.Size(400, 300); this.radChart1.TabIndex = 0; // // Form1 // this.Controls.Add(this.radChart1); this.Name = "Form1"; this.Size = new System.Drawing.Size(1232, 822); ((System.ComponentModel.ISupportInitialize)(this.radChart1)).EndInit(); this.ResumeLayout(false); }