public void AddSeries(string name, Color color) { Series series = new Series(); series.ChartArea = "chartArea"; series.Legend = "legend"; series.IsVisibleInLegend = false; series.ChartType = SeriesChartType.Spline; series.Color = color; series.Name = name; series.XValueType = ChartValueType.Time; series.YValueType = ChartValueType.Int32; chart.Series.Add(series); LegendItem legendItem = new LegendItem(); legendItem.Name = name; legendItem.Color = color; legendItem.Tag = series; chart.Legends[0].CustomItems.Add(legendItem); }
private void LegendCustomItems_Load(object sender, System.EventArgs e) { // Disable legend item for the first series Chart1.Series[0].IsVisibleInLegend = false; // Add simple custom legend item Chart1.Legends["Default"].CustomItems.Add(Color.FromArgb(32, 120,147,190), "Critical Values"); // Add custom legend item with line style LegendItem legendItem = new LegendItem(); legendItem.Name = "Line Style Item"; legendItem.ImageStyle = LegendImageStyle.Line; legendItem.ShadowOffset = 1; legendItem.Color = Color.LightBlue; legendItem.MarkerStyle = MarkerStyle.Circle; Chart1.Legends["Default"].CustomItems.Add(legendItem); // Add custom legend item with marker style legendItem = new LegendItem(); legendItem.Name = "Marker Style Item"; legendItem.ImageStyle = LegendImageStyle.Marker; legendItem.ShadowOffset = 1; legendItem.Color = Color.Yellow; legendItem.MarkerStyle = MarkerStyle.Cross; legendItem.MarkerSize = 10; legendItem.MarkerBorderColor = Color.Black; Chart1.Legends["Default"].CustomItems.Add(legendItem); // Add custom legend item with image System.Windows.Forms.DataVisualization.Charting.Utilities.SampleMain.MainForm mainForm = (System.Windows.Forms.DataVisualization.Charting.Utilities.SampleMain.MainForm)this.ParentForm; string imageFileName = mainForm.CurrentSamplePath; imageFileName += "\\Flag.gif"; legendItem = new LegendItem(); legendItem.Name = "Image Style Item"; legendItem.Image = imageFileName; legendItem.BackImageTransparentColor = Color.White; Chart1.Legends["Default"].CustomItems.Add(legendItem); // Add a strip line StripLine stripLine = new StripLine(); stripLine.BackColor = Chart1.Legends["Default"].CustomItems[0].Color; stripLine.IntervalOffset = 500; stripLine.StripWidth = 300; Chart1.ChartAreas["Default"].AxisY.StripLines.Add(stripLine); }
private void Init() { // horizontal m_axisX.MajorGrid.Enabled = true; m_axisX.MajorGrid.IntervalType = DateTimeIntervalType.Number; m_axisX.Interval = 10.0; m_axisX.MajorTickMark.Enabled = true; m_axisX.MajorTickMark.Interval = 60; m_axisX.MajorTickMark.Size = 3; m_axisX.LabelStyle.Enabled = true; m_axisX.LabelStyle.Format = "RelativeTime"; m_axisX.LabelStyle.Interval = 60; // verical m_axisY.MajorGrid.Enabled = true; m_axisY.MajorGrid.IntervalType = DateTimeIntervalType.Number; m_axisY.LabelStyle.Enabled = true; m_axisY.MajorTickMark.Enabled = false; m_axisY.LabelStyle.Format = LabelFormatAuto; m_chart.FormatNumber += OnFormatNumberEvent; m_chart.MouseWheel += OnMouseWheelEvent; m_chart.MouseEnter += OnMouseEnterEvent; m_chart.MouseLeave += OnMouseLeaveEvent; m_chart.MouseClick += OnMouseClickEvent; m_chart.MouseDoubleClick += OnMouseDoubleClickEvent; m_chart.MouseMove += OnMouseMoveEvent; m_chart.ApplyPaletteColors(); m_chart.Legends.Clear(); Legend legend = new Legend(); m_chart.Legends.Add(legend); //legend.BackGradientStyle = GradientStyle.TopBottom; //legend.BackColor = Color.Red; //legend.BorderColor = Color.Black; legend.Docking = Docking.Top; m_legendItem = new LegendItem(); m_legendItem.ImageStyle = LegendImageStyle.Line; m_legendItem.BorderWidth = 2; m_legendItem.Color = m_chart.Series[0].Color; m_legendItem.Name = m_name; legend.CustomItems.Add(m_legendItem); //c.Series[0].ToolTip = "#VALX, #VALY"; // https://bitbucket.org/grumly57/mschartfriend }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { System.Windows.Forms.DataVisualization.Charting.ChartArea chartArea1 = new System.Windows.Forms.DataVisualization.Charting.ChartArea(); System.Windows.Forms.DataVisualization.Charting.Legend legend1 = new System.Windows.Forms.DataVisualization.Charting.Legend(); System.Windows.Forms.DataVisualization.Charting.LegendItem legendItem1 = new System.Windows.Forms.DataVisualization.Charting.LegendItem(); System.Windows.Forms.DataVisualization.Charting.LegendCell legendCell1 = new System.Windows.Forms.DataVisualization.Charting.LegendCell(); System.Windows.Forms.DataVisualization.Charting.Margins margins1 = new System.Windows.Forms.DataVisualization.Charting.Margins(); System.Windows.Forms.DataVisualization.Charting.LegendCell legendCell2 = new System.Windows.Forms.DataVisualization.Charting.LegendCell(); System.Windows.Forms.DataVisualization.Charting.LegendItem legendItem2 = new System.Windows.Forms.DataVisualization.Charting.LegendItem(); System.Windows.Forms.DataVisualization.Charting.LegendCell legendCell3 = new System.Windows.Forms.DataVisualization.Charting.LegendCell(); System.Windows.Forms.DataVisualization.Charting.LegendCell legendCell4 = new System.Windows.Forms.DataVisualization.Charting.LegendCell(); System.Windows.Forms.DataVisualization.Charting.LegendItem legendItem3 = new System.Windows.Forms.DataVisualization.Charting.LegendItem(); System.Windows.Forms.DataVisualization.Charting.LegendCell legendCell5 = new System.Windows.Forms.DataVisualization.Charting.LegendCell(); System.Windows.Forms.DataVisualization.Charting.LegendCell legendCell6 = new System.Windows.Forms.DataVisualization.Charting.LegendCell(); System.Windows.Forms.DataVisualization.Charting.LegendItem legendItem4 = new System.Windows.Forms.DataVisualization.Charting.LegendItem(); System.Windows.Forms.DataVisualization.Charting.LegendCell legendCell7 = new System.Windows.Forms.DataVisualization.Charting.LegendCell(); System.Windows.Forms.DataVisualization.Charting.Margins margins2 = new System.Windows.Forms.DataVisualization.Charting.Margins(); System.Windows.Forms.DataVisualization.Charting.LegendCell legendCell8 = new System.Windows.Forms.DataVisualization.Charting.LegendCell(); System.Windows.Forms.DataVisualization.Charting.LegendItem legendItem5 = new System.Windows.Forms.DataVisualization.Charting.LegendItem(); System.Windows.Forms.DataVisualization.Charting.LegendCell legendCell9 = new System.Windows.Forms.DataVisualization.Charting.LegendCell(); System.Windows.Forms.DataVisualization.Charting.LegendCell legendCell10 = new System.Windows.Forms.DataVisualization.Charting.LegendCell(); System.Windows.Forms.DataVisualization.Charting.LegendItem legendItem6 = new System.Windows.Forms.DataVisualization.Charting.LegendItem(); System.Windows.Forms.DataVisualization.Charting.LegendCell legendCell11 = new System.Windows.Forms.DataVisualization.Charting.LegendCell(); System.Windows.Forms.DataVisualization.Charting.LegendCell legendCell12 = new System.Windows.Forms.DataVisualization.Charting.LegendCell(); System.Windows.Forms.DataVisualization.Charting.Series series1 = new System.Windows.Forms.DataVisualization.Charting.Series(); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint1 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 8); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint2 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 14); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint3 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 10); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint4 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 16); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint5 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 13); System.Windows.Forms.DataVisualization.Charting.Series series2 = new System.Windows.Forms.DataVisualization.Charting.Series(); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint6 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 11); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint7 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 7); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint8 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 8); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint9 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 6); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint10 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 7); System.Windows.Forms.DataVisualization.Charting.Series series3 = new System.Windows.Forms.DataVisualization.Charting.Series(); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint11 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 4); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint12 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 3); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint13 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 6); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint14 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 5); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint15 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 3); System.Windows.Forms.DataVisualization.Charting.Series series4 = new System.Windows.Forms.DataVisualization.Charting.Series(); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint16 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 5); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint17 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 6); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint18 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 14); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint19 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 8); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint20 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 9); this.label9 = new System.Windows.Forms.Label(); this.chart2 = new System.Windows.Forms.DataVisualization.Charting.Chart(); this.panel1 = new System.Windows.Forms.Panel(); ((System.ComponentModel.ISupportInitialize)(this.chart2)).BeginInit(); this.SuspendLayout(); // // label9 // this.label9.Font = new System.Drawing.Font("Verdana", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0))); this.label9.Location = new System.Drawing.Point(16, 16); this.label9.Name = "label9"; this.label9.Size = new System.Drawing.Size(702, 32); this.label9.TabIndex = 0; this.label9.Text = "This sample demonstrates the cell span feature of the legend."; this.label9.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // chart2 // this.chart2.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(211)), ((System.Byte)(223)), ((System.Byte)(240))); this.chart2.BackSecondaryColor = System.Drawing.Color.White; this.chart2.BackGradientStyle = System.Windows.Forms.DataVisualization.Charting.GradientStyle.TopBottom; this.chart2.BorderlineColor = System.Drawing.Color.FromArgb(((System.Byte)(26)), ((System.Byte)(59)), ((System.Byte)(105))); this.chart2.BorderlineDashStyle = System.Windows.Forms.DataVisualization.Charting.ChartDashStyle.Solid; this.chart2.BorderlineWidth = 2; this.chart2.BorderSkin.SkinStyle = System.Windows.Forms.DataVisualization.Charting.BorderSkinStyle.Emboss; chartArea1.Area3DStyle.IsClustered = true; chartArea1.Area3DStyle.Enable3D = true; chartArea1.Area3DStyle.Perspective = 10; chartArea1.Area3DStyle.IsRightAngleAxes = false; chartArea1.Area3DStyle.WallWidth = 0; chartArea1.Area3DStyle.Inclination = 15; chartArea1.Area3DStyle.Rotation = 10; chartArea1.AxisX.LabelAutoFitMaxFontSize = 8; chartArea1.AxisX.LabelStyle.Font = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold); chartArea1.AxisX.LabelStyle.Format = "MMM dd"; chartArea1.AxisX.LabelStyle.IsEndLabelVisible = false; chartArea1.AxisX.LineColor = System.Drawing.Color.FromArgb(((System.Byte)(64)), ((System.Byte)(64)), ((System.Byte)(64)), ((System.Byte)(64))); chartArea1.AxisX.MajorGrid.LineColor = System.Drawing.Color.FromArgb(((System.Byte)(64)), ((System.Byte)(64)), ((System.Byte)(64)), ((System.Byte)(64))); chartArea1.AxisY.LabelAutoFitMaxFontSize = 7; chartArea1.AxisY.LabelStyle.Font = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold); chartArea1.AxisY.LineColor = System.Drawing.Color.FromArgb(((System.Byte)(64)), ((System.Byte)(64)), ((System.Byte)(64)), ((System.Byte)(64))); chartArea1.AxisY.MajorGrid.LineColor = System.Drawing.Color.FromArgb(((System.Byte)(64)), ((System.Byte)(64)), ((System.Byte)(64)), ((System.Byte)(64))); chartArea1.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(64)), ((System.Byte)(165)), ((System.Byte)(191)), ((System.Byte)(228))); chartArea1.BackSecondaryColor = System.Drawing.Color.White; chartArea1.BackGradientStyle = System.Windows.Forms.DataVisualization.Charting.GradientStyle.TopBottom; chartArea1.BorderColor = System.Drawing.Color.FromArgb(((System.Byte)(64)), ((System.Byte)(64)), ((System.Byte)(64)), ((System.Byte)(64))); chartArea1.Name = "Default"; chartArea1.ShadowColor = System.Drawing.Color.Transparent; this.chart2.ChartAreas.Add(chartArea1); legend1.Alignment = System.Drawing.StringAlignment.Center; legend1.IsTextAutoFit = false; legend1.BackColor = System.Drawing.Color.Transparent; legendCell1.Alignment = System.Drawing.ContentAlignment.MiddleLeft; legendCell1.CellSpan = 2; margins1.Bottom = 15; margins1.Left = 15; margins1.Right = 15; legendCell1.Margins = margins1; legendCell1.Name = "Cell1"; legendCell1.Text = "North America"; legendCell2.Name = "Cell2"; legendItem1.Cells.Add(legendCell1); legendItem1.Cells.Add(legendCell2); legendItem1.Name = "North America"; legendItem2.BorderColor = System.Drawing.Color.FromArgb(((System.Byte)(200)), ((System.Byte)(26)), ((System.Byte)(59)), ((System.Byte)(105))); legendCell3.Alignment = System.Drawing.ContentAlignment.MiddleLeft; legendCell3.CellType = System.Windows.Forms.DataVisualization.Charting.LegendCellType.SeriesSymbol; legendCell3.Name = "Cell1"; legendCell3.SeriesSymbolSize = new System.Drawing.Size(200, 50); legendCell4.Alignment = System.Drawing.ContentAlignment.MiddleLeft; legendCell4.Name = "Cell2"; legendCell4.SeriesSymbolSize = new System.Drawing.Size(200, 100); legendCell4.Text = "Country 1"; legendItem2.Cells.Add(legendCell3); legendItem2.Cells.Add(legendCell4); legendItem2.Color = System.Drawing.Color.FromArgb(((System.Byte)(200)), ((System.Byte)(65)), ((System.Byte)(140)), ((System.Byte)(240))); legendItem2.Name = "LightBlue"; legendItem3.BorderColor = System.Drawing.Color.FromArgb(((System.Byte)(200)), ((System.Byte)(26)), ((System.Byte)(59)), ((System.Byte)(105))); legendCell5.Alignment = System.Drawing.ContentAlignment.MiddleLeft; legendCell5.CellType = System.Windows.Forms.DataVisualization.Charting.LegendCellType.SeriesSymbol; legendCell5.Name = "Cell1"; legendCell5.SeriesSymbolSize = new System.Drawing.Size(200, 50); legendCell6.Alignment = System.Drawing.ContentAlignment.MiddleLeft; legendCell6.Name = "Cell2"; legendCell6.Text = "Country 2"; legendItem3.Cells.Add(legendCell5); legendItem3.Cells.Add(legendCell6); legendItem3.Color = System.Drawing.Color.FromArgb(((System.Byte)(200)), ((System.Byte)(252)), ((System.Byte)(180)), ((System.Byte)(65))); legendItem3.Name = "Gold"; legendCell7.Alignment = System.Drawing.ContentAlignment.MiddleLeft; legendCell7.CellSpan = 2; legendCell7.Font = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0))); margins2.Bottom = 15; margins2.Left = 15; margins2.Right = 15; margins2.Top = 200; legendCell7.Margins = margins2; legendCell7.Name = "Cell1"; legendCell7.Text = "South America"; legendCell8.Name = "Cell2"; legendItem4.Cells.Add(legendCell7); legendItem4.Cells.Add(legendCell8); legendItem4.Name = "South America"; legendItem5.BorderColor = System.Drawing.Color.FromArgb(((System.Byte)(200)), ((System.Byte)(26)), ((System.Byte)(59)), ((System.Byte)(105))); legendCell9.Alignment = System.Drawing.ContentAlignment.MiddleLeft; legendCell9.CellType = System.Windows.Forms.DataVisualization.Charting.LegendCellType.SeriesSymbol; legendCell9.Name = "Cell1"; legendCell9.SeriesSymbolSize = new System.Drawing.Size(200, 50); legendCell10.Alignment = System.Drawing.ContentAlignment.MiddleLeft; legendCell10.Name = "Cell2"; legendCell10.Text = "Country 3"; legendItem5.Cells.Add(legendCell9); legendItem5.Cells.Add(legendCell10); legendItem5.Color = System.Drawing.Color.FromArgb(((System.Byte)(224)), ((System.Byte)(64)), ((System.Byte)(10))); legendItem5.Name = "Red"; legendItem6.BorderColor = System.Drawing.Color.FromArgb(((System.Byte)(200)), ((System.Byte)(26)), ((System.Byte)(59)), ((System.Byte)(105))); legendCell11.Alignment = System.Drawing.ContentAlignment.MiddleLeft; legendCell11.CellType = System.Windows.Forms.DataVisualization.Charting.LegendCellType.SeriesSymbol; legendCell11.Name = "Cell1"; legendCell11.SeriesSymbolSize = new System.Drawing.Size(200, 50); legendCell12.Alignment = System.Drawing.ContentAlignment.MiddleLeft; legendCell12.Name = "Cell2"; legendCell12.Text = "Country 4"; legendItem6.Cells.Add(legendCell11); legendItem6.Cells.Add(legendCell12); legendItem6.Color = System.Drawing.Color.FromArgb(((System.Byte)(26)), ((System.Byte)(59)), ((System.Byte)(105))); legendItem6.Name = "DarkBlue"; legend1.CustomItems.Add(legendItem1); legend1.CustomItems.Add(legendItem2); legend1.CustomItems.Add(legendItem3); legend1.CustomItems.Add(legendItem4); legend1.CustomItems.Add(legendItem5); legend1.CustomItems.Add(legendItem6); legend1.Font = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold); legend1.Name = "Default"; legend1.TitleFont = new System.Drawing.Font("Microsoft Sans Serif", 8F, System.Drawing.FontStyle.Bold); this.chart2.Legends.Add(legend1); this.chart2.Location = new System.Drawing.Point(16, 56); this.chart2.Name = "chart2"; this.chart2.Palette = System.Windows.Forms.DataVisualization.Charting.ChartColorPalette.BrightPastel; series1.BorderColor = System.Drawing.Color.FromArgb(((System.Byte)(180)), ((System.Byte)(26)), ((System.Byte)(59)), ((System.Byte)(105))); series1.ChartArea = "Default"; series1.ChartType = SeriesChartType.StackedBar; series1.CustomProperties = "DrawingStyle=Cylinder"; series1.Name = "B-1"; series1.Points.Add(dataPoint1); series1.Points.Add(dataPoint2); series1.Points.Add(dataPoint3); series1.Points.Add(dataPoint4); series1.Points.Add(dataPoint5); series1.ShadowColor = System.Drawing.Color.FromArgb(((System.Byte)(64)), ((System.Byte)(0)), ((System.Byte)(0)), ((System.Byte)(0))); series1.IsVisibleInLegend = false; series1.XValueType = System.Windows.Forms.DataVisualization.Charting.ChartValueType.DateTime; series1.YValueType = System.Windows.Forms.DataVisualization.Charting.ChartValueType.Double; series2.BorderColor = System.Drawing.Color.FromArgb(((System.Byte)(180)), ((System.Byte)(26)), ((System.Byte)(59)), ((System.Byte)(105))); series2.ChartArea = "Default"; series2.ChartType = SeriesChartType.StackedBar; series2.CustomProperties = "DrawingStyle=Cylinder"; series2.Name = "A-1"; series2.Points.Add(dataPoint6); series2.Points.Add(dataPoint7); series2.Points.Add(dataPoint8); series2.Points.Add(dataPoint9); series2.Points.Add(dataPoint10); series2.IsVisibleInLegend = false; series2.XValueType = System.Windows.Forms.DataVisualization.Charting.ChartValueType.DateTime; series2.YValueType = System.Windows.Forms.DataVisualization.Charting.ChartValueType.Double; series3.BorderColor = System.Drawing.Color.FromArgb(((System.Byte)(180)), ((System.Byte)(26)), ((System.Byte)(59)), ((System.Byte)(105))); series3.ChartArea = "Default"; series3.ChartType = SeriesChartType.StackedBar; series3.CustomProperties = "DrawingStyle=Cylinder"; series3.Name = "A-2"; series3.Points.Add(dataPoint11); series3.Points.Add(dataPoint12); series3.Points.Add(dataPoint13); series3.Points.Add(dataPoint14); series3.Points.Add(dataPoint15); series3.IsVisibleInLegend = false; series3.XValueType = System.Windows.Forms.DataVisualization.Charting.ChartValueType.DateTime; series3.YValueType = System.Windows.Forms.DataVisualization.Charting.ChartValueType.Double; series4.BorderColor = System.Drawing.Color.FromArgb(((System.Byte)(180)), ((System.Byte)(26)), ((System.Byte)(59)), ((System.Byte)(105))); series4.ChartArea = "Default"; series4.ChartType = SeriesChartType.StackedBar; series4.Color = System.Drawing.Color.FromArgb(((System.Byte)(26)), ((System.Byte)(59)), ((System.Byte)(105))); series4.CustomProperties = "DrawingStyle=Cylinder"; series4.Name = "B-2"; series4.Points.Add(dataPoint16); series4.Points.Add(dataPoint17); series4.Points.Add(dataPoint18); series4.Points.Add(dataPoint19); series4.Points.Add(dataPoint20); series4.ShadowColor = System.Drawing.Color.FromArgb(((System.Byte)(64)), ((System.Byte)(0)), ((System.Byte)(0)), ((System.Byte)(0))); series4.IsVisibleInLegend = false; series4.XValueType = System.Windows.Forms.DataVisualization.Charting.ChartValueType.DateTime; series4.YValueType = System.Windows.Forms.DataVisualization.Charting.ChartValueType.Double; this.chart2.Series.Add(series1); this.chart2.Series.Add(series2); this.chart2.Series.Add(series3); this.chart2.Series.Add(series4); this.chart2.Size = new System.Drawing.Size(412, 296); this.chart2.TabIndex = 1; // // panel1 // this.panel1.Location = new System.Drawing.Point(432, 56); this.panel1.Name = "panel1"; this.panel1.Size = new System.Drawing.Size(292, 296); this.panel1.TabIndex = 2; // // LegendCellSpan // this.Controls.AddRange(new System.Windows.Forms.Control[] { this.panel1, this.chart2, this.label9}); this.Font = new System.Drawing.Font("Verdana", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0))); this.Name = "LegendCellSpan"; this.Size = new System.Drawing.Size(728, 392); ((System.ComponentModel.ISupportInitialize)(this.chart2)).EndInit(); this.ResumeLayout(false); }
/// <summary> /// Add a "Total #value" as the last data point. /// </summary> /// <param name="points"></param> private void AddTotal() { double total = 0; foreach (var p in tankchart.Series[0].Points) { total += p.XValue; } LegendItem item = new LegendItem(); item.Name = string.Format("Total: {0}", total); item.Color = Color.Pink; item.BorderWidth = 0; tankchart.Legends[0].CustomItems.Clear(); tankchart.Legends[0].CustomItems.Add(item); }
public Evaluation(OpenNIImageDisplay videoControl) { InitializeComponent(); // Initialize Statistics statistics = new Statistics(); statistics.ClearCumulativeConfidencePoints += clearCumulativeConfidencePoints; statistics.AddCumulativeConfidencePoint += addConfidencePoint; statistics.ClearErrorPoints += clearErrorPoints; statistics.AddErrorPoint += addErrorPoint; statistics.FinalizeErrorUpdate += finalizeMainPointUpdate; statistics.FinalizeConfidenceUpdate += finalizeCumulativeConfidenceUpdate; statistics.FrameUpdated += statistics_FrameUpdated; videoControl.NewRecordingFrameDisplayed += UpdateFrame; // Add data Bindings textBoxGlobalMean.DataBindings.Add("Text", statistics, "GlobalMean", true, DataSourceUpdateMode.Never, 0, "0.000", NUMBER_CULTURE); textBoxFrameMean.DataBindings.Add("Text", statistics, "FrameMean", true, DataSourceUpdateMode.Never, 0, "0.000", NUMBER_CULTURE); textBoxFrameValue.DataBindings.Add("Text", statistics, "FrameValue", true, DataSourceUpdateMode.Never, 0, "0.000", NUMBER_CULTURE); textBoxNumberOfPoints.DataBindings.Add("Text", statistics, "NumberOfPoints", true, DataSourceUpdateMode.Never, 0, "0", NUMBER_CULTURE); // Initialize list box and error chart area foreach (JointTranslationTuple translation in JointDictionary.JointTranslationList) { checkedListBoxBodyParts.Items.Add(translation.name); chartErrors.Series.Add(translation.name); chartErrors.Series[translation.name].Enabled = false; chartErrors.Series[translation.name].ChartType = SeriesChartType.StackedArea; chartErrors.Series[translation.name].ToolTip = translation.name; annotations[translation.joint_type] = new List<Annotation>(); } // Add always present legend items LegendItem legendItemMarkerFalsePositive = new LegendItem(); legendItemMarkerFalsePositive.Name = "False Positive"; legendItemMarkerFalsePositive.MarkerStyle = MarkerStyle.Square; legendItemMarkerFalsePositive.MarkerSize = 7; legendItemMarkerFalsePositive.ImageStyle = LegendImageStyle.Marker; legendItemMarkerFalsePositive.MarkerColor = markerColorFalseNegative; chartErrors.Legends[0].CustomItems.Add(legendItemMarkerFalsePositive); LegendItem legendItemMarkerFalseNegative = new LegendItem(); legendItemMarkerFalseNegative.Name = "False Negative"; legendItemMarkerFalseNegative.MarkerStyle = MarkerStyle.Circle; legendItemMarkerFalseNegative.ImageStyle = LegendImageStyle.Marker; legendItemMarkerFalseNegative.MarkerColor = markerColorFalsePositive; legendItemMarkerFalseNegative.MarkerSize = 7; chartErrors.Legends[0].CustomItems.Add(legendItemMarkerFalseNegative); LegendItem legendItemMarkerNA = new LegendItem(); legendItemMarkerNA.Name = "No data available"; legendItemMarkerNA.MarkerStyle = MarkerStyle.Circle; legendItemMarkerNA.ImageStyle = LegendImageStyle.Marker; legendItemMarkerNA.MarkerColor = markerColorNA; legendItemMarkerNA.MarkerSize = 7; chartErrors.Legends[0].CustomItems.Add(legendItemMarkerNA); // Add the line annotation marking the displayed frame. frame_indicator = new VerticalLineAnnotation(); frame_indicator.AxisX = chartErrors.ChartAreas[0].AxisX; frame_indicator.AxisY = chartErrors.ChartAreas[0].AxisY; frame_indicator.X = 0; frame_indicator.Height = chartErrors.Height; frame_indicator.LineColor = Color.Red; frame_indicator.LineWidth = 1; frame_indicator.LineDashStyle = ChartDashStyle.Solid; frame_indicator.Y = frame_indicator.AxisY.Minimum; chartErrors.Annotations.Add(frame_indicator); // Initialize the video source the line indicator is synced with. videoDataSource = videoControl; videoDataSource.SourceChanged += new EventHandler(videoDataSource_SourceChanged); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(LegendInteractive)); System.Windows.Forms.DataVisualization.Charting.ChartArea chartArea2 = new System.Windows.Forms.DataVisualization.Charting.ChartArea(); System.Windows.Forms.DataVisualization.Charting.Legend legend2 = new System.Windows.Forms.DataVisualization.Charting.Legend(); System.Windows.Forms.DataVisualization.Charting.LegendItem legendItem5 = new System.Windows.Forms.DataVisualization.Charting.LegendItem(); System.Windows.Forms.DataVisualization.Charting.LegendCell legendCell13 = new System.Windows.Forms.DataVisualization.Charting.LegendCell(); System.Windows.Forms.DataVisualization.Charting.LegendCell legendCell14 = new System.Windows.Forms.DataVisualization.Charting.LegendCell(); System.Windows.Forms.DataVisualization.Charting.LegendCell legendCell15 = new System.Windows.Forms.DataVisualization.Charting.LegendCell(); System.Windows.Forms.DataVisualization.Charting.LegendItem legendItem6 = new System.Windows.Forms.DataVisualization.Charting.LegendItem(); System.Windows.Forms.DataVisualization.Charting.LegendCell legendCell16 = new System.Windows.Forms.DataVisualization.Charting.LegendCell(); System.Windows.Forms.DataVisualization.Charting.LegendCell legendCell17 = new System.Windows.Forms.DataVisualization.Charting.LegendCell(); System.Windows.Forms.DataVisualization.Charting.LegendCell legendCell18 = new System.Windows.Forms.DataVisualization.Charting.LegendCell(); System.Windows.Forms.DataVisualization.Charting.LegendItem legendItem7 = new System.Windows.Forms.DataVisualization.Charting.LegendItem(); System.Windows.Forms.DataVisualization.Charting.LegendCell legendCell19 = new System.Windows.Forms.DataVisualization.Charting.LegendCell(); System.Windows.Forms.DataVisualization.Charting.LegendCell legendCell20 = new System.Windows.Forms.DataVisualization.Charting.LegendCell(); System.Windows.Forms.DataVisualization.Charting.LegendCell legendCell21 = new System.Windows.Forms.DataVisualization.Charting.LegendCell(); System.Windows.Forms.DataVisualization.Charting.LegendItem legendItem8 = new System.Windows.Forms.DataVisualization.Charting.LegendItem(); System.Windows.Forms.DataVisualization.Charting.LegendCell legendCell22 = new System.Windows.Forms.DataVisualization.Charting.LegendCell(); System.Windows.Forms.DataVisualization.Charting.LegendCell legendCell23 = new System.Windows.Forms.DataVisualization.Charting.LegendCell(); System.Windows.Forms.DataVisualization.Charting.LegendCell legendCell24 = new System.Windows.Forms.DataVisualization.Charting.LegendCell(); System.Windows.Forms.DataVisualization.Charting.Series series5 = new System.Windows.Forms.DataVisualization.Charting.Series(); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint121 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 27); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint122 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, -33); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint123 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, -22); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint124 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 45); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint125 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 38); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint126 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, -6); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint127 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, -33); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint128 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, -3); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint129 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 44); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint130 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, -50); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint131 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, -6); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint132 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 38); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint133 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 17); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint134 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, -44); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint135 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, -3); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint136 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 45); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint137 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, -23); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint138 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, -29); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint139 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 17); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint140 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, -10); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint141 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, -26); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint142 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 7); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint143 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, -35); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint144 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 47); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint145 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 39); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint146 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, -38); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint147 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 14); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint148 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, -8); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint149 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, -32); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint150 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 16); System.Windows.Forms.DataVisualization.Charting.Series series6 = new System.Windows.Forms.DataVisualization.Charting.Series(); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint151 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 44); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint152 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, -36); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint153 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, -23); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint154 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 14); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint155 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, -37); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint156 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 19); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint157 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, -41); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint158 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 4); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint159 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, -13); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint160 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, -26); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint161 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, -16); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint162 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, -20); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint163 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, -40); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint164 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, -3); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint165 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, -46); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint166 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 41); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint167 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 8); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint168 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, -36); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint169 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, -3); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint170 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 43); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint171 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 45); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint172 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 19); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint173 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, -21); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint174 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 20); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint175 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 15); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint176 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, -30); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint177 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, -49); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint178 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, -20); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint179 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, -45); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint180 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 26); System.Windows.Forms.DataVisualization.Charting.Series series7 = new System.Windows.Forms.DataVisualization.Charting.Series(); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint181 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 29); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint182 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 24); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint183 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, -21); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint184 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, -23); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint185 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, -45); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint186 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, -21); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint187 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 10); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint188 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, -47); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint189 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 43); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint190 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 28); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint191 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 35); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint192 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 23); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint193 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 33); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint194 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, -7); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint195 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, -44); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint196 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 43); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint197 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, -4); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint198 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 18); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint199 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 43); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint200 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 48); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint201 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 3); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint202 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 0); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint203 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 44); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint204 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, -26); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint205 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 21); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint206 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, -26); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint207 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 35); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint208 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 6); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint209 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 48); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint210 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 42); System.Windows.Forms.DataVisualization.Charting.Series series8 = new System.Windows.Forms.DataVisualization.Charting.Series(); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint211 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 17); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint212 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 29); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint213 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, -2); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint214 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 10); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint215 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, -6); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint216 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 9); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint217 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, -49); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint218 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 32); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint219 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, -9); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint220 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 25); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint221 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, -20); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint222 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 5); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint223 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, -30); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint224 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 19); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint225 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, -43); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint226 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, -29); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint227 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 36); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint228 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 35); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint229 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 14); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint230 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 22); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint231 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 23); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint232 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, -17); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint233 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, -13); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint234 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, -43); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint235 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, -27); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint236 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, -21); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint237 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 29); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint238 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, -45); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint239 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 6); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint240 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 31); System.Windows.Forms.DataVisualization.Charting.Title title2 = new System.Windows.Forms.DataVisualization.Charting.Title(); this.chart1 = new System.Windows.Forms.DataVisualization.Charting.Chart(); this.labelSampleComment = new System.Windows.Forms.Label(); this.panel1 = new System.Windows.Forms.Panel(); this.buttonRandomData = new System.Windows.Forms.Button(); ((System.ComponentModel.ISupportInitialize)(this.chart1)).BeginInit(); this.panel1.SuspendLayout(); this.SuspendLayout(); // // chart1 // this.chart1.AccessibleDescription = null; this.chart1.AccessibleName = null; resources.ApplyResources(this.chart1, "chart1"); this.chart1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(211)))), ((int)(((byte)(223)))), ((int)(((byte)(240))))); this.chart1.BackGradientStyle = System.Windows.Forms.DataVisualization.Charting.GradientStyle.TopBottom; this.chart1.BackSecondaryColor = System.Drawing.Color.White; this.chart1.BorderlineColor = System.Drawing.Color.FromArgb(((int)(((byte)(26)))), ((int)(((byte)(59)))), ((int)(((byte)(105))))); this.chart1.BorderlineDashStyle = System.Windows.Forms.DataVisualization.Charting.ChartDashStyle.Solid; this.chart1.BorderlineWidth = 2; this.chart1.BorderSkin.SkinStyle = System.Windows.Forms.DataVisualization.Charting.BorderSkinStyle.Emboss; chartArea2.Area3DStyle.Enable3D = true; chartArea2.Area3DStyle.Inclination = 15; chartArea2.Area3DStyle.IsClustered = true; chartArea2.Area3DStyle.Rotation = 10; chartArea2.Area3DStyle.WallWidth = 0; chartArea2.AxisX.IsInterlaced = true; chartArea2.AxisX.LabelStyle.Font = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold); chartArea2.AxisX.LabelStyle.IntervalOffset = 0; chartArea2.AxisX.LabelStyle.IntervalOffsetType = System.Windows.Forms.DataVisualization.Charting.DateTimeIntervalType.Auto; chartArea2.AxisX.LabelStyle.IntervalType = System.Windows.Forms.DataVisualization.Charting.DateTimeIntervalType.Auto; chartArea2.AxisX.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea2.AxisX.MajorGrid.Interval = 0; chartArea2.AxisX.MajorGrid.IntervalOffset = 0; chartArea2.AxisX.MajorGrid.IntervalOffsetType = System.Windows.Forms.DataVisualization.Charting.DateTimeIntervalType.Auto; chartArea2.AxisX.MajorGrid.IntervalType = System.Windows.Forms.DataVisualization.Charting.DateTimeIntervalType.Auto; chartArea2.AxisX.MajorGrid.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea2.AxisX.MajorTickMark.Interval = 0; chartArea2.AxisX.MajorTickMark.IntervalOffset = 0; chartArea2.AxisX.MajorTickMark.IntervalOffsetType = System.Windows.Forms.DataVisualization.Charting.DateTimeIntervalType.Auto; chartArea2.AxisX.MajorTickMark.IntervalType = System.Windows.Forms.DataVisualization.Charting.DateTimeIntervalType.Auto; chartArea2.AxisX2.LabelStyle.Interval = 0; chartArea2.AxisX2.LabelStyle.IntervalOffset = 0; chartArea2.AxisX2.LabelStyle.IntervalOffsetType = System.Windows.Forms.DataVisualization.Charting.DateTimeIntervalType.Auto; chartArea2.AxisX2.LabelStyle.IntervalType = System.Windows.Forms.DataVisualization.Charting.DateTimeIntervalType.Auto; chartArea2.AxisX2.MajorGrid.Interval = 0; chartArea2.AxisX2.MajorGrid.IntervalOffset = 0; chartArea2.AxisX2.MajorGrid.IntervalOffsetType = System.Windows.Forms.DataVisualization.Charting.DateTimeIntervalType.Auto; chartArea2.AxisX2.MajorGrid.IntervalType = System.Windows.Forms.DataVisualization.Charting.DateTimeIntervalType.Auto; chartArea2.AxisX2.MajorTickMark.Interval = 0; chartArea2.AxisX2.MajorTickMark.IntervalOffset = 0; chartArea2.AxisX2.MajorTickMark.IntervalOffsetType = System.Windows.Forms.DataVisualization.Charting.DateTimeIntervalType.Auto; chartArea2.AxisX2.MajorTickMark.IntervalType = System.Windows.Forms.DataVisualization.Charting.DateTimeIntervalType.Auto; chartArea2.AxisY.IsStartedFromZero = false; chartArea2.AxisY.LabelStyle.Font = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold); chartArea2.AxisY.LabelStyle.Format = "0"; chartArea2.AxisY.LabelStyle.Interval = 0; chartArea2.AxisY.LabelStyle.IntervalOffset = 0; chartArea2.AxisY.LabelStyle.IntervalOffsetType = System.Windows.Forms.DataVisualization.Charting.DateTimeIntervalType.Auto; chartArea2.AxisY.LabelStyle.IntervalType = System.Windows.Forms.DataVisualization.Charting.DateTimeIntervalType.Auto; chartArea2.AxisY.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea2.AxisY.MajorGrid.Interval = 0; chartArea2.AxisY.MajorGrid.IntervalOffset = 0; chartArea2.AxisY.MajorGrid.IntervalOffsetType = System.Windows.Forms.DataVisualization.Charting.DateTimeIntervalType.Auto; chartArea2.AxisY.MajorGrid.IntervalType = System.Windows.Forms.DataVisualization.Charting.DateTimeIntervalType.Auto; chartArea2.AxisY.MajorGrid.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea2.AxisY.MajorTickMark.Interval = 0; chartArea2.AxisY.MajorTickMark.IntervalOffset = 0; chartArea2.AxisY.MajorTickMark.IntervalOffsetType = System.Windows.Forms.DataVisualization.Charting.DateTimeIntervalType.Auto; chartArea2.AxisY.MajorTickMark.IntervalType = System.Windows.Forms.DataVisualization.Charting.DateTimeIntervalType.Auto; chartArea2.AxisY2.LabelStyle.Interval = 0; chartArea2.AxisY2.LabelStyle.IntervalOffset = 0; chartArea2.AxisY2.LabelStyle.IntervalOffsetType = System.Windows.Forms.DataVisualization.Charting.DateTimeIntervalType.Auto; chartArea2.AxisY2.LabelStyle.IntervalType = System.Windows.Forms.DataVisualization.Charting.DateTimeIntervalType.Auto; chartArea2.AxisY2.MajorGrid.Interval = 0; chartArea2.AxisY2.MajorGrid.IntervalOffset = 0; chartArea2.AxisY2.MajorGrid.IntervalOffsetType = System.Windows.Forms.DataVisualization.Charting.DateTimeIntervalType.Auto; chartArea2.AxisY2.MajorGrid.IntervalType = System.Windows.Forms.DataVisualization.Charting.DateTimeIntervalType.Auto; chartArea2.AxisY2.MajorTickMark.Interval = 0; chartArea2.AxisY2.MajorTickMark.IntervalOffset = 0; chartArea2.AxisY2.MajorTickMark.IntervalOffsetType = System.Windows.Forms.DataVisualization.Charting.DateTimeIntervalType.Auto; chartArea2.AxisY2.MajorTickMark.IntervalType = System.Windows.Forms.DataVisualization.Charting.DateTimeIntervalType.Auto; chartArea2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(165)))), ((int)(((byte)(191)))), ((int)(((byte)(228))))); chartArea2.BackGradientStyle = System.Windows.Forms.DataVisualization.Charting.GradientStyle.TopBottom; chartArea2.BackSecondaryColor = System.Drawing.Color.White; chartArea2.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea2.BorderDashStyle = System.Windows.Forms.DataVisualization.Charting.ChartDashStyle.Solid; chartArea2.Name = "Default"; chartArea2.ShadowColor = System.Drawing.Color.Transparent; this.chart1.ChartAreas.Add(chartArea2); legend2.Alignment = System.Drawing.StringAlignment.Center; legend2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(26)))), ((int)(((byte)(59)))), ((int)(((byte)(105))))); legendItem5.BorderColor = System.Drawing.Color.White; legendItem5.BorderWidth = 2; legendCell13.CellType = System.Windows.Forms.DataVisualization.Charting.LegendCellType.Image; legendCell13.ImageTransparentColor = System.Drawing.Color.Red; legendCell13.Name = "Cell1"; legendCell14.CellType = System.Windows.Forms.DataVisualization.Charting.LegendCellType.SeriesSymbol; legendCell14.Name = "Cell2"; legendCell15.Alignment = System.Drawing.ContentAlignment.MiddleLeft; legendCell15.Name = "Cell3"; legendCell15.Text = "Series 1"; legendItem5.Cells.Add(legendCell13); legendItem5.Cells.Add(legendCell14); legendItem5.Cells.Add(legendCell15); legendItem5.Color = System.Drawing.Color.FromArgb(((int)(((byte)(65)))), ((int)(((byte)(140)))), ((int)(((byte)(240))))); legendItem5.Name = "Series 1"; legendItem6.BorderColor = System.Drawing.Color.White; legendItem6.BorderWidth = 2; legendCell16.CellType = System.Windows.Forms.DataVisualization.Charting.LegendCellType.Image; legendCell16.ImageTransparentColor = System.Drawing.Color.Red; legendCell16.Name = "Cell1"; legendCell17.CellType = System.Windows.Forms.DataVisualization.Charting.LegendCellType.SeriesSymbol; legendCell17.Name = "Cell2"; legendCell18.Alignment = System.Drawing.ContentAlignment.MiddleLeft; legendCell18.Name = "Cell3"; legendCell18.Text = "Series 2"; legendItem6.Cells.Add(legendCell16); legendItem6.Cells.Add(legendCell17); legendItem6.Cells.Add(legendCell18); legendItem6.Color = System.Drawing.Color.FromArgb(((int)(((byte)(252)))), ((int)(((byte)(180)))), ((int)(((byte)(65))))); legendItem6.Name = "Series 2"; legendItem7.BorderColor = System.Drawing.Color.White; legendItem7.BorderWidth = 2; legendCell19.CellType = System.Windows.Forms.DataVisualization.Charting.LegendCellType.Image; legendCell19.ImageTransparentColor = System.Drawing.Color.Red; legendCell19.Name = "Cell1"; legendCell20.CellType = System.Windows.Forms.DataVisualization.Charting.LegendCellType.SeriesSymbol; legendCell20.Name = "Cell2"; legendCell21.Alignment = System.Drawing.ContentAlignment.MiddleLeft; legendCell21.Name = "Cell3"; legendCell21.Text = "Series 3"; legendItem7.Cells.Add(legendCell19); legendItem7.Cells.Add(legendCell20); legendItem7.Cells.Add(legendCell21); legendItem7.Color = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(64)))), ((int)(((byte)(10))))); legendItem7.Name = "Series 3"; legendItem8.BorderColor = System.Drawing.Color.White; legendItem8.BorderWidth = 2; legendCell22.CellType = System.Windows.Forms.DataVisualization.Charting.LegendCellType.Image; legendCell22.ImageTransparentColor = System.Drawing.Color.Red; legendCell22.Name = "Cell1"; legendCell23.CellType = System.Windows.Forms.DataVisualization.Charting.LegendCellType.SeriesSymbol; legendCell23.Name = "Cell2"; legendCell24.Alignment = System.Drawing.ContentAlignment.MiddleLeft; legendCell24.Name = "Cell3"; legendCell24.Text = "Series 4"; legendItem8.Cells.Add(legendCell22); legendItem8.Cells.Add(legendCell23); legendItem8.Cells.Add(legendCell24); legendItem8.Color = System.Drawing.Color.FromArgb(((int)(((byte)(5)))), ((int)(((byte)(100)))), ((int)(((byte)(146))))); legendItem8.Name = "Series 4"; legend2.CustomItems.Add(legendItem5); legend2.CustomItems.Add(legendItem6); legend2.CustomItems.Add(legendItem7); legend2.CustomItems.Add(legendItem8); legend2.Docking = System.Windows.Forms.DataVisualization.Charting.Docking.Bottom; legend2.Font = new System.Drawing.Font("Trebuchet MS", 8F, System.Drawing.FontStyle.Bold); legend2.ForeColor = System.Drawing.Color.White; legend2.HeaderSeparator = System.Windows.Forms.DataVisualization.Charting.LegendSeparatorStyle.Line; legend2.HeaderSeparatorColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); legend2.IsTextAutoFit = false; legend2.ItemColumnSeparator = System.Windows.Forms.DataVisualization.Charting.LegendSeparatorStyle.Line; legend2.ItemColumnSeparatorColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); legend2.Name = "Default"; legend2.TitleSeparatorColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.chart1.Legends.Add(legend2); this.chart1.Name = "chart1"; series5.ChartArea = "Default"; series5.ChartType = System.Windows.Forms.DataVisualization.Charting.SeriesChartType.StackedColumn; series5.CustomProperties = "DrawingStyle=LightToDark"; series5.IsVisibleInLegend = false; series5.Legend = "Default"; series5.Name = "Series1"; series5.Points.Add(dataPoint121); series5.Points.Add(dataPoint122); series5.Points.Add(dataPoint123); series5.Points.Add(dataPoint124); series5.Points.Add(dataPoint125); series5.Points.Add(dataPoint126); series5.Points.Add(dataPoint127); series5.Points.Add(dataPoint128); series5.Points.Add(dataPoint129); series5.Points.Add(dataPoint130); series5.Points.Add(dataPoint131); series5.Points.Add(dataPoint132); series5.Points.Add(dataPoint133); series5.Points.Add(dataPoint134); series5.Points.Add(dataPoint135); series5.Points.Add(dataPoint136); series5.Points.Add(dataPoint137); series5.Points.Add(dataPoint138); series5.Points.Add(dataPoint139); series5.Points.Add(dataPoint140); series5.Points.Add(dataPoint141); series5.Points.Add(dataPoint142); series5.Points.Add(dataPoint143); series5.Points.Add(dataPoint144); series5.Points.Add(dataPoint145); series5.Points.Add(dataPoint146); series5.Points.Add(dataPoint147); series5.Points.Add(dataPoint148); series5.Points.Add(dataPoint149); series5.Points.Add(dataPoint150); series5.XValueType = System.Windows.Forms.DataVisualization.Charting.ChartValueType.Double; series5.YValueType = System.Windows.Forms.DataVisualization.Charting.ChartValueType.Double; series6.ChartArea = "Default"; series6.ChartType = System.Windows.Forms.DataVisualization.Charting.SeriesChartType.StackedColumn; series6.CustomProperties = "DrawingStyle=LightToDark"; series6.IsVisibleInLegend = false; series6.Legend = "Default"; series6.MarkerBorderWidth = 2; series6.Name = "Series2"; series6.Points.Add(dataPoint151); series6.Points.Add(dataPoint152); series6.Points.Add(dataPoint153); series6.Points.Add(dataPoint154); series6.Points.Add(dataPoint155); series6.Points.Add(dataPoint156); series6.Points.Add(dataPoint157); series6.Points.Add(dataPoint158); series6.Points.Add(dataPoint159); series6.Points.Add(dataPoint160); series6.Points.Add(dataPoint161); series6.Points.Add(dataPoint162); series6.Points.Add(dataPoint163); series6.Points.Add(dataPoint164); series6.Points.Add(dataPoint165); series6.Points.Add(dataPoint166); series6.Points.Add(dataPoint167); series6.Points.Add(dataPoint168); series6.Points.Add(dataPoint169); series6.Points.Add(dataPoint170); series6.Points.Add(dataPoint171); series6.Points.Add(dataPoint172); series6.Points.Add(dataPoint173); series6.Points.Add(dataPoint174); series6.Points.Add(dataPoint175); series6.Points.Add(dataPoint176); series6.Points.Add(dataPoint177); series6.Points.Add(dataPoint178); series6.Points.Add(dataPoint179); series6.Points.Add(dataPoint180); series7.ChartArea = "Default"; series7.ChartType = System.Windows.Forms.DataVisualization.Charting.SeriesChartType.StackedColumn; series7.CustomProperties = "DrawingStyle=LightToDark"; series7.IsVisibleInLegend = false; series7.Legend = "Default"; series7.Name = "Series3"; series7.Points.Add(dataPoint181); series7.Points.Add(dataPoint182); series7.Points.Add(dataPoint183); series7.Points.Add(dataPoint184); series7.Points.Add(dataPoint185); series7.Points.Add(dataPoint186); series7.Points.Add(dataPoint187); series7.Points.Add(dataPoint188); series7.Points.Add(dataPoint189); series7.Points.Add(dataPoint190); series7.Points.Add(dataPoint191); series7.Points.Add(dataPoint192); series7.Points.Add(dataPoint193); series7.Points.Add(dataPoint194); series7.Points.Add(dataPoint195); series7.Points.Add(dataPoint196); series7.Points.Add(dataPoint197); series7.Points.Add(dataPoint198); series7.Points.Add(dataPoint199); series7.Points.Add(dataPoint200); series7.Points.Add(dataPoint201); series7.Points.Add(dataPoint202); series7.Points.Add(dataPoint203); series7.Points.Add(dataPoint204); series7.Points.Add(dataPoint205); series7.Points.Add(dataPoint206); series7.Points.Add(dataPoint207); series7.Points.Add(dataPoint208); series7.Points.Add(dataPoint209); series7.Points.Add(dataPoint210); series8.ChartArea = "Default"; series8.ChartType = System.Windows.Forms.DataVisualization.Charting.SeriesChartType.StackedColumn; series8.CustomProperties = "DrawingStyle=LightToDark"; series8.IsVisibleInLegend = false; series8.Legend = "Default"; series8.Name = "Series4"; series8.Points.Add(dataPoint211); series8.Points.Add(dataPoint212); series8.Points.Add(dataPoint213); series8.Points.Add(dataPoint214); series8.Points.Add(dataPoint215); series8.Points.Add(dataPoint216); series8.Points.Add(dataPoint217); series8.Points.Add(dataPoint218); series8.Points.Add(dataPoint219); series8.Points.Add(dataPoint220); series8.Points.Add(dataPoint221); series8.Points.Add(dataPoint222); series8.Points.Add(dataPoint223); series8.Points.Add(dataPoint224); series8.Points.Add(dataPoint225); series8.Points.Add(dataPoint226); series8.Points.Add(dataPoint227); series8.Points.Add(dataPoint228); series8.Points.Add(dataPoint229); series8.Points.Add(dataPoint230); series8.Points.Add(dataPoint231); series8.Points.Add(dataPoint232); series8.Points.Add(dataPoint233); series8.Points.Add(dataPoint234); series8.Points.Add(dataPoint235); series8.Points.Add(dataPoint236); series8.Points.Add(dataPoint237); series8.Points.Add(dataPoint238); series8.Points.Add(dataPoint239); series8.Points.Add(dataPoint240); this.chart1.Series.Add(series5); this.chart1.Series.Add(series6); this.chart1.Series.Add(series7); this.chart1.Series.Add(series8); title2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(26)))), ((int)(((byte)(59)))), ((int)(((byte)(105))))); title2.Font = new System.Drawing.Font("Trebuchet MS", 15.75F, System.Drawing.FontStyle.Bold); title2.ForeColor = System.Drawing.Color.White; title2.Name = "Title1"; title2.ShadowColor = System.Drawing.Color.Silver; title2.ShadowOffset = 2; title2.Text = "Interactive Legend"; this.chart1.Titles.Add(title2); this.chart1.MouseDown += new System.Windows.Forms.MouseEventHandler(this.chart1_MouseDown); // // labelSampleComment // this.labelSampleComment.AccessibleDescription = null; this.labelSampleComment.AccessibleName = null; resources.ApplyResources(this.labelSampleComment, "labelSampleComment"); this.labelSampleComment.Name = "labelSampleComment"; // // panel1 // this.panel1.AccessibleDescription = null; this.panel1.AccessibleName = null; resources.ApplyResources(this.panel1, "panel1"); this.panel1.BackgroundImage = null; this.panel1.Controls.Add(this.buttonRandomData); this.panel1.Font = null; this.panel1.Name = "panel1"; // // buttonRandomData // this.buttonRandomData.AccessibleDescription = null; this.buttonRandomData.AccessibleName = null; resources.ApplyResources(this.buttonRandomData, "buttonRandomData"); this.buttonRandomData.BackColor = System.Drawing.SystemColors.Control; this.buttonRandomData.BackgroundImage = null; this.buttonRandomData.Font = null; this.buttonRandomData.Name = "buttonRandomData"; this.buttonRandomData.UseVisualStyleBackColor = false; this.buttonRandomData.Click += new System.EventHandler(this.buttonRandomData_Click); // // LegendInteractive // this.AccessibleDescription = null; this.AccessibleName = null; resources.ApplyResources(this, "$this"); this.BackColor = System.Drawing.Color.White; this.BackgroundImage = null; this.Controls.Add(this.panel1); this.Controls.Add(this.labelSampleComment); this.Controls.Add(this.chart1); this.Name = "LegendInteractive"; this.Load += new System.EventHandler(this.TemplateSampleControl_Load); ((System.ComponentModel.ISupportInitialize)(this.chart1)).EndInit(); this.panel1.ResumeLayout(false); this.ResumeLayout(false); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { System.Windows.Forms.DataVisualization.Charting.ChartArea chartArea1 = new System.Windows.Forms.DataVisualization.Charting.ChartArea(); System.Windows.Forms.DataVisualization.Charting.Legend legend1 = new System.Windows.Forms.DataVisualization.Charting.Legend(); System.Windows.Forms.DataVisualization.Charting.LegendItem legendItem1 = new System.Windows.Forms.DataVisualization.Charting.LegendItem(); System.Windows.Forms.DataVisualization.Charting.LegendItem legendItem2 = new System.Windows.Forms.DataVisualization.Charting.LegendItem(); System.Windows.Forms.DataVisualization.Charting.Series series1 = new System.Windows.Forms.DataVisualization.Charting.Series(); System.Windows.Forms.DataVisualization.Charting.Series series2 = new System.Windows.Forms.DataVisualization.Charting.Series(); System.Windows.Forms.DataVisualization.Charting.Title title1 = new System.Windows.Forms.DataVisualization.Charting.Title(); this.chart1 = new System.Windows.Forms.DataVisualization.Charting.Chart(); this.labelSampleComment = new System.Windows.Forms.Label(); this.panel1 = new System.Windows.Forms.Panel(); this.Rotation = new System.Windows.Forms.NumericUpDown(); this.Inclination = new System.Windows.Forms.NumericUpDown(); this.label2 = new System.Windows.Forms.Label(); this.label1 = new System.Windows.Forms.Label(); ((System.ComponentModel.ISupportInitialize)(this.chart1)).BeginInit(); this.panel1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.Rotation)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.Inclination)).BeginInit(); this.SuspendLayout(); // // chart1 // this.chart1.BackColor = System.Drawing.Color.WhiteSmoke; this.chart1.BackGradientStyle = System.Windows.Forms.DataVisualization.Charting.GradientStyle.TopBottom; this.chart1.BackSecondaryColor = System.Drawing.Color.White; this.chart1.BorderlineColor = System.Drawing.Color.FromArgb(((int)(((byte)(26)))), ((int)(((byte)(59)))), ((int)(((byte)(105))))); this.chart1.BorderlineDashStyle = System.Windows.Forms.DataVisualization.Charting.ChartDashStyle.Solid; this.chart1.BorderlineWidth = 2; this.chart1.BorderSkin.SkinStyle = System.Windows.Forms.DataVisualization.Charting.BorderSkinStyle.Emboss; chartArea1.Area3DStyle.Enable3D = true; chartArea1.Area3DStyle.Inclination = 15; chartArea1.Area3DStyle.IsRightAngleAxes = false; chartArea1.Area3DStyle.PointDepth = 200; chartArea1.Area3DStyle.Rotation = 10; chartArea1.Area3DStyle.WallWidth = 0; chartArea1.AxisX.LabelStyle.Font = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold); chartArea1.AxisX.LabelStyle.IsEndLabelVisible = false; chartArea1.AxisX.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea1.AxisX.MajorGrid.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea1.AxisY.IsLabelAutoFit = false; chartArea1.AxisY.LabelStyle.Font = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold); chartArea1.AxisY.LabelStyle.Format = "dd MMM"; chartArea1.AxisY.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea1.AxisY.MajorGrid.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea1.BackColor = System.Drawing.Color.WhiteSmoke; chartArea1.BackSecondaryColor = System.Drawing.Color.White; chartArea1.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea1.BorderDashStyle = System.Windows.Forms.DataVisualization.Charting.ChartDashStyle.Solid; chartArea1.Name = "Default"; chartArea1.ShadowColor = System.Drawing.Color.Transparent; this.chart1.ChartAreas.Add(chartArea1); legend1.Alignment = System.Drawing.StringAlignment.Center; legend1.BackColor = System.Drawing.Color.Transparent; legendItem1.Color = System.Drawing.Color.Red; legendItem1.Name = "Completed"; legendItem2.Color = System.Drawing.Color.Gray; legendItem2.Name = "Late"; legend1.CustomItems.Add(legendItem1); legend1.CustomItems.Add(legendItem2); legend1.Docking = System.Windows.Forms.DataVisualization.Charting.Docking.Bottom; legend1.Font = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold); legend1.IsTextAutoFit = false; legend1.LegendStyle = System.Windows.Forms.DataVisualization.Charting.LegendStyle.Row; legend1.Name = "Default"; this.chart1.Legends.Add(legend1); this.chart1.Location = new System.Drawing.Point(16, 45); this.chart1.Name = "chart1"; series1.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(180)))), ((int)(((byte)(26)))), ((int)(((byte)(59)))), ((int)(((byte)(105))))); series1.ChartArea = "Default"; series1.ChartType = System.Windows.Forms.DataVisualization.Charting.SeriesChartType.RangeBar; series1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(220)))), ((int)(((byte)(65)))), ((int)(((byte)(140)))), ((int)(((byte)(240))))); series1.CustomProperties = "DrawSideBySide=True"; series1.Legend = "Default"; series1.Name = "Estimated"; series1.YValuesPerPoint = 2; series1.YValueType = System.Windows.Forms.DataVisualization.Charting.ChartValueType.DateTime; series2.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(180)))), ((int)(((byte)(26)))), ((int)(((byte)(59)))), ((int)(((byte)(105))))); series2.ChartArea = "Default"; series2.ChartType = System.Windows.Forms.DataVisualization.Charting.SeriesChartType.RangeBar; series2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(220)))), ((int)(((byte)(252)))), ((int)(((byte)(180)))), ((int)(((byte)(65))))); series2.CustomProperties = "DrawSideBySide=True, PointWidth=0.3"; series2.Legend = "Default"; series2.Name = "Actual"; series2.YValuesPerPoint = 2; series2.YValueType = System.Windows.Forms.DataVisualization.Charting.ChartValueType.DateTime; this.chart1.Series.Add(series1); this.chart1.Series.Add(series2); this.chart1.Size = new System.Drawing.Size(412, 296); this.chart1.TabIndex = 1; title1.Font = new System.Drawing.Font("Trebuchet MS", 14.25F, System.Drawing.FontStyle.Bold); title1.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(26)))), ((int)(((byte)(59)))), ((int)(((byte)(105))))); title1.Name = "Title1"; title1.ShadowColor = System.Drawing.Color.FromArgb(((int)(((byte)(32)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); title1.ShadowOffset = 3; title1.Text = "3D Range Bar Chart"; this.chart1.Titles.Add(title1); this.chart1.PostPaint += new System.EventHandler<System.Windows.Forms.DataVisualization.Charting.ChartPaintEventArgs>(this.chart1_PostPaint); // // labelSampleComment // this.labelSampleComment.Font = new System.Drawing.Font("Verdana", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.labelSampleComment.Location = new System.Drawing.Point(16, 8); this.labelSampleComment.Name = "labelSampleComment"; this.labelSampleComment.Size = new System.Drawing.Size(702, 29); this.labelSampleComment.TabIndex = 0; this.labelSampleComment.Text = "This sample demonstrates a 3D Range Bar chart."; this.labelSampleComment.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // panel1 // this.panel1.Controls.Add(this.Rotation); this.panel1.Controls.Add(this.Inclination); this.panel1.Controls.Add(this.label2); this.panel1.Controls.Add(this.label1); this.panel1.Location = new System.Drawing.Point(432, 53); this.panel1.Name = "panel1"; this.panel1.Size = new System.Drawing.Size(292, 280); this.panel1.TabIndex = 2; // // Rotation // this.Rotation.Increment = new decimal(new int[] { 10, 0, 0, 0}); this.Rotation.Location = new System.Drawing.Point(168, 56); this.Rotation.Maximum = new decimal(new int[] { 1000, 0, 0, 0}); this.Rotation.Minimum = new decimal(new int[] { 1000, 0, 0, -2147483648}); this.Rotation.Name = "Rotation"; this.Rotation.Size = new System.Drawing.Size(64, 22); this.Rotation.TabIndex = 3; this.Rotation.Value = new decimal(new int[] { 10, 0, 0, 0}); this.Rotation.ValueChanged += new System.EventHandler(this.Rotation_ValueChanged); // // Inclination // this.Inclination.Increment = new decimal(new int[] { 10, 0, 0, 0}); this.Inclination.Location = new System.Drawing.Point(168, 16); this.Inclination.Maximum = new decimal(new int[] { 1000, 0, 0, 0}); this.Inclination.Minimum = new decimal(new int[] { 1000, 0, 0, -2147483648}); this.Inclination.Name = "Inclination"; this.Inclination.Size = new System.Drawing.Size(64, 22); this.Inclination.TabIndex = 1; this.Inclination.Value = new decimal(new int[] { 15, 0, 0, 0}); this.Inclination.ValueChanged += new System.EventHandler(this.Inclination_ValueChanged); // // label2 // this.label2.Location = new System.Drawing.Point(40, 56); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(120, 23); this.label2.TabIndex = 2; this.label2.Text = "Rotate &Y:"; this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // label1 // this.label1.Location = new System.Drawing.Point(40, 15); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(120, 23); this.label1.TabIndex = 0; this.label1.Text = "Rotate &X:"; this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleRight; this.label1.Click += new System.EventHandler(this.label1_Click); // // RangeBar3D // this.BackColor = System.Drawing.Color.White; this.Controls.Add(this.panel1); this.Controls.Add(this.labelSampleComment); this.Controls.Add(this.chart1); this.Font = new System.Drawing.Font("Verdana", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.Name = "Range Bar 3D"; this.Size = new System.Drawing.Size(728, 424); this.Load += new System.EventHandler(this.RangeBar3D_Load); ((System.ComponentModel.ISupportInitialize)(this.chart1)).EndInit(); this.panel1.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.Rotation)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.Inclination)).EndInit(); this.ResumeLayout(false); }
void ChartToBeReturned_CustomizeLegend(object sender, CustomizeLegendEventArgs e) { e.LegendItems.Clear(); if (IsWellClassLegend) { foreach (var item in cGlobalInfo.ListWellClasses) { LegendItem newItem = new LegendItem(); newItem.ImageStyle = LegendImageStyle.Marker; newItem.MarkerStyle = MarkerStyle.Square; newItem.MarkerSize = 8; newItem.MarkerBorderColor = newItem.MarkerColor = item.ColourForDisplay; newItem.ShadowColor = Color.Black; newItem.ShadowOffset = 1; newItem.Cells.Add(LegendCellType.SeriesSymbol, "", ContentAlignment.MiddleLeft); newItem.Cells.Add(LegendCellType.Text, item.Name, ContentAlignment.MiddleLeft); e.LegendItems.Add(newItem); } } if (IsCellularPhenotypeLegend) { foreach (var item in cGlobalInfo.ListCellularPhenotypes) { LegendItem newItem = new LegendItem(); newItem.ImageStyle = LegendImageStyle.Marker; newItem.MarkerStyle = MarkerStyle.Square; newItem.MarkerSize = 8; newItem.MarkerBorderColor = newItem.MarkerColor = item.ColourForDisplay; newItem.ShadowColor = Color.Black; newItem.ShadowOffset = 1; newItem.Cells.Add(LegendCellType.SeriesSymbol, "", ContentAlignment.MiddleLeft); newItem.Cells.Add(LegendCellType.Text, item.Name, ContentAlignment.MiddleLeft); e.LegendItems.Add(newItem); } } //e.LegendItems.Add( }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { System.Windows.Forms.DataVisualization.Charting.ChartArea chartArea1 = new System.Windows.Forms.DataVisualization.Charting.ChartArea(); System.Windows.Forms.DataVisualization.Charting.Legend legend1 = new System.Windows.Forms.DataVisualization.Charting.Legend(); System.Windows.Forms.DataVisualization.Charting.LegendItem legendItem1 = new System.Windows.Forms.DataVisualization.Charting.LegendItem(); System.Windows.Forms.DataVisualization.Charting.Series series1 = new System.Windows.Forms.DataVisualization.Charting.Series(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FindByValue)); this.chart1 = new System.Windows.Forms.DataVisualization.Charting.Chart(); this.labelSampleComment = new System.Windows.Forms.Label(); this.panel1 = new System.Windows.Forms.Panel(); this.buttonRandomData = new System.Windows.Forms.Button(); this.label4 = new System.Windows.Forms.Label(); this.comboBoxValueToFind = new System.Windows.Forms.ComboBox(); this.comboBoxPointValueToLookFor = new System.Windows.Forms.ComboBox(); this.label1 = new System.Windows.Forms.Label(); this.label2 = new System.Windows.Forms.Label(); ((System.ComponentModel.ISupportInitialize)(this.chart1)).BeginInit(); this.panel1.SuspendLayout(); this.SuspendLayout(); // // chart1 // this.chart1.BackColor = System.Drawing.Color.WhiteSmoke; this.chart1.BackGradientStyle = System.Windows.Forms.DataVisualization.Charting.GradientStyle.TopBottom; this.chart1.BackSecondaryColor = System.Drawing.Color.White; this.chart1.BorderlineColor = System.Drawing.Color.FromArgb(((int)(((byte)(26)))), ((int)(((byte)(59)))), ((int)(((byte)(105))))); this.chart1.BorderlineDashStyle = System.Windows.Forms.DataVisualization.Charting.ChartDashStyle.Solid; this.chart1.BorderlineWidth = 2; this.chart1.BorderSkin.SkinStyle = System.Windows.Forms.DataVisualization.Charting.BorderSkinStyle.Emboss; chartArea1.Area3DStyle.Inclination = 15; chartArea1.Area3DStyle.IsRightAngleAxes = false; chartArea1.Area3DStyle.Perspective = 10; chartArea1.Area3DStyle.PointGapDepth = 0; chartArea1.Area3DStyle.Rotation = 10; chartArea1.Area3DStyle.WallWidth = 0; chartArea1.AxisX.IsLabelAutoFit = false; chartArea1.AxisX.LabelAutoFitStyle = ((System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles)((((System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles.DecreaseFont | System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles.StaggeredLabels) | System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles.LabelsAngleStep30) | System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles.WordWrap))); chartArea1.AxisX.LabelStyle.Font = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold); chartArea1.AxisX.LabelStyle.Interval = 2; chartArea1.AxisX.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea1.AxisX.MajorGrid.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea1.AxisX.Maximum = 20; chartArea1.AxisX.Minimum = 0; chartArea1.AxisY.LabelAutoFitStyle = ((System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles)((((System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles.DecreaseFont | System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles.StaggeredLabels) | System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles.LabelsAngleStep30) | System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles.WordWrap))); chartArea1.AxisY.LabelStyle.Font = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold); chartArea1.AxisY.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea1.AxisY.MajorGrid.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea1.AxisY.Maximum = 20; chartArea1.AxisY.Minimum = 0; chartArea1.BackColor = System.Drawing.Color.WhiteSmoke; chartArea1.BackSecondaryColor = System.Drawing.Color.White; chartArea1.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea1.BorderDashStyle = System.Windows.Forms.DataVisualization.Charting.ChartDashStyle.Solid; chartArea1.Name = "Default"; chartArea1.ShadowColor = System.Drawing.Color.Transparent; this.chart1.ChartAreas.Add(chartArea1); legend1.Alignment = System.Drawing.StringAlignment.Far; legend1.BackColor = System.Drawing.Color.Transparent; legendItem1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(194)))), ((int)(((byte)(224)))), ((int)(((byte)(64)))), ((int)(((byte)(10))))); legendItem1.ImageStyle = System.Windows.Forms.DataVisualization.Charting.LegendImageStyle.Marker; legendItem1.MarkerStyle = System.Windows.Forms.DataVisualization.Charting.MarkerStyle.Square; legendItem1.Name = "Found Points"; legendItem1.ShadowOffset = 2; legend1.CustomItems.Add(legendItem1); legend1.Docking = System.Windows.Forms.DataVisualization.Charting.Docking.Bottom; legend1.Font = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold); legend1.IsTextAutoFit = false; legend1.LegendStyle = System.Windows.Forms.DataVisualization.Charting.LegendStyle.Row; legend1.Name = "Default"; this.chart1.Legends.Add(legend1); this.chart1.Location = new System.Drawing.Point(16, 68); this.chart1.Name = "chart1"; series1.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(180)))), ((int)(((byte)(26)))), ((int)(((byte)(59)))), ((int)(((byte)(105))))); series1.ChartArea = "Default"; series1.ChartType = System.Windows.Forms.DataVisualization.Charting.SeriesChartType.Bubble; series1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(220)))), ((int)(((byte)(65)))), ((int)(((byte)(140)))), ((int)(((byte)(240))))); series1.CustomProperties = "BubbleMaxSize=10"; series1.Legend = "Default"; series1.Name = "Series1"; series1.ShadowOffset = 2; series1.YValuesPerPoint = 2; this.chart1.Series.Add(series1); this.chart1.Size = new System.Drawing.Size(412, 296); this.chart1.TabIndex = 1; // // labelSampleComment // this.labelSampleComment.Font = new System.Drawing.Font("Verdana", 11F); this.labelSampleComment.Location = new System.Drawing.Point(16, 0); this.labelSampleComment.Name = "labelSampleComment"; this.labelSampleComment.Size = new System.Drawing.Size(702, 61); this.labelSampleComment.TabIndex = 0; this.labelSampleComment.Text = resources.GetString("labelSampleComment.Text"); this.labelSampleComment.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // panel1 // this.panel1.Controls.Add(this.buttonRandomData); this.panel1.Controls.Add(this.label4); this.panel1.Controls.Add(this.comboBoxValueToFind); this.panel1.Controls.Add(this.comboBoxPointValueToLookFor); this.panel1.Controls.Add(this.label1); this.panel1.Location = new System.Drawing.Point(432, 76); this.panel1.Name = "panel1"; this.panel1.Size = new System.Drawing.Size(393, 288); this.panel1.TabIndex = 2; // // buttonRandomData // this.buttonRandomData.BackColor = System.Drawing.SystemColors.Control; this.buttonRandomData.Location = new System.Drawing.Point(48, 72); this.buttonRandomData.Name = "buttonRandomData"; this.buttonRandomData.Size = new System.Drawing.Size(208, 24); this.buttonRandomData.TabIndex = 4; this.buttonRandomData.Text = "Generate Random Data"; this.buttonRandomData.UseVisualStyleBackColor = false; this.buttonRandomData.Click += new System.EventHandler(this.buttonRandomData_Click); // // label4 // this.label4.Location = new System.Drawing.Point(0, 40); this.label4.Name = "label4"; this.label4.Size = new System.Drawing.Size(168, 23); this.label4.TabIndex = 2; this.label4.Text = "Value to &Find:"; this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // comboBoxValueToFind // this.comboBoxValueToFind.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.comboBoxValueToFind.Items.AddRange(new object[] { "Min", "Max", "4", "8", "12", "16"}); this.comboBoxValueToFind.Location = new System.Drawing.Point(168, 40); this.comboBoxValueToFind.Name = "comboBoxValueToFind"; this.comboBoxValueToFind.Size = new System.Drawing.Size(122, 22); this.comboBoxValueToFind.TabIndex = 3; this.comboBoxValueToFind.SelectedIndexChanged += new System.EventHandler(this.comboBoxValueToFind_SelectedIndexChanged); // // comboBoxPointValueToLookFor // this.comboBoxPointValueToLookFor.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.comboBoxPointValueToLookFor.Items.AddRange(new object[] { "First Y Value", "Second Y Value (Bubble Size)", "X value"}); this.comboBoxPointValueToLookFor.Location = new System.Drawing.Point(168, 8); this.comboBoxPointValueToLookFor.Name = "comboBoxPointValueToLookFor"; this.comboBoxPointValueToLookFor.Size = new System.Drawing.Size(188, 22); this.comboBoxPointValueToLookFor.TabIndex = 1; this.comboBoxPointValueToLookFor.SelectedIndexChanged += new System.EventHandler(this.comboBoxValueToFind_SelectedIndexChanged); // // label1 // this.label1.Location = new System.Drawing.Point(0, 8); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(168, 23); this.label1.TabIndex = 0; this.label1.Text = "Point Value to &Examine:"; this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // label2 // this.label2.Font = new System.Drawing.Font("Verdana", 11F); this.label2.Location = new System.Drawing.Point(16, 347); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(709, 64); this.label2.TabIndex = 3; this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // FindByValue // this.BackColor = System.Drawing.Color.White; this.Controls.Add(this.label2); this.Controls.Add(this.panel1); this.Controls.Add(this.labelSampleComment); this.Controls.Add(this.chart1); this.Font = new System.Drawing.Font("Verdana", 9F); this.Name = "FindByValue"; this.Size = new System.Drawing.Size(728, 480); this.Load += new System.EventHandler(this.TemplateSampleControl_Load); ((System.ComponentModel.ISupportInitialize)(this.chart1)).EndInit(); this.panel1.ResumeLayout(false); this.ResumeLayout(false); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { System.Windows.Forms.DataVisualization.Charting.ChartArea chartArea1 = new System.Windows.Forms.DataVisualization.Charting.ChartArea(); System.Windows.Forms.DataVisualization.Charting.Legend legend1 = new System.Windows.Forms.DataVisualization.Charting.Legend(); System.Windows.Forms.DataVisualization.Charting.LegendItem legendItem1 = new System.Windows.Forms.DataVisualization.Charting.LegendItem(); System.Windows.Forms.DataVisualization.Charting.LegendItem legendItem2 = new System.Windows.Forms.DataVisualization.Charting.LegendItem(); System.Windows.Forms.DataVisualization.Charting.Series series1 = new System.Windows.Forms.DataVisualization.Charting.Series(); System.Windows.Forms.DataVisualization.Charting.Series series2 = new System.Windows.Forms.DataVisualization.Charting.Series(); System.Windows.Forms.DataVisualization.Charting.Title title1 = new System.Windows.Forms.DataVisualization.Charting.Title(); this._chart1 = new System.Windows.Forms.DataVisualization.Charting.Chart(); this._labelSampleComment = new System.Windows.Forms.Label(); this._panel1 = new System.Windows.Forms.Panel(); this._rotation = new System.Windows.Forms.NumericUpDown(); this._inclination = new System.Windows.Forms.NumericUpDown(); this._label2 = new System.Windows.Forms.Label(); this._label1 = new System.Windows.Forms.Label(); ((System.ComponentModel.ISupportInitialize)(this._chart1)).BeginInit(); this._panel1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this._rotation)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this._inclination)).BeginInit(); this.SuspendLayout(); // // chart1 // this._chart1.BackColor = System.Drawing.Color.WhiteSmoke; this._chart1.BackGradientStyle = System.Windows.Forms.DataVisualization.Charting.GradientStyle.TopBottom; this._chart1.BackSecondaryColor = System.Drawing.Color.White; this._chart1.BorderlineColor = System.Drawing.Color.FromArgb(((int)(((byte)(26)))), ((int)(((byte)(59)))), ((int)(((byte)(105))))); this._chart1.BorderlineDashStyle = System.Windows.Forms.DataVisualization.Charting.ChartDashStyle.Solid; this._chart1.BorderlineWidth = 2; this._chart1.BorderSkin.SkinStyle = System.Windows.Forms.DataVisualization.Charting.BorderSkinStyle.Emboss; chartArea1.Area3DStyle.Enable3D = true; chartArea1.Area3DStyle.Inclination = 15; chartArea1.Area3DStyle.IsRightAngleAxes = false; chartArea1.Area3DStyle.PointDepth = 200; chartArea1.Area3DStyle.Rotation = 10; chartArea1.Area3DStyle.WallWidth = 0; chartArea1.AxisX.LabelStyle.Font = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold); chartArea1.AxisX.LabelStyle.IsEndLabelVisible = false; chartArea1.AxisX.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea1.AxisX.MajorGrid.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea1.AxisY.IsLabelAutoFit = false; chartArea1.AxisY.LabelStyle.Font = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold); chartArea1.AxisY.LabelStyle.Format = "dd MMM"; chartArea1.AxisY.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea1.AxisY.MajorGrid.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea1.BackColor = System.Drawing.Color.WhiteSmoke; chartArea1.BackSecondaryColor = System.Drawing.Color.White; chartArea1.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea1.BorderDashStyle = System.Windows.Forms.DataVisualization.Charting.ChartDashStyle.Solid; chartArea1.Name = "Default"; chartArea1.ShadowColor = System.Drawing.Color.Transparent; this._chart1.ChartAreas.Add(chartArea1); legend1.Alignment = System.Drawing.StringAlignment.Center; legend1.BackColor = System.Drawing.Color.Transparent; legendItem1.Color = System.Drawing.Color.Red; legendItem1.Name = "Completed"; legendItem2.Color = System.Drawing.Color.Gray; legendItem2.Name = "Late"; legend1.CustomItems.Add(legendItem1); legend1.CustomItems.Add(legendItem2); legend1.Docking = System.Windows.Forms.DataVisualization.Charting.Docking.Bottom; legend1.Font = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold); legend1.IsTextAutoFit = false; legend1.LegendStyle = System.Windows.Forms.DataVisualization.Charting.LegendStyle.Row; legend1.Name = "Default"; this._chart1.Legends.Add(legend1); this._chart1.Location = new System.Drawing.Point(16, 45); this._chart1.Name = "_chart1"; series1.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(180)))), ((int)(((byte)(26)))), ((int)(((byte)(59)))), ((int)(((byte)(105))))); series1.ChartArea = "Default"; series1.ChartType = System.Windows.Forms.DataVisualization.Charting.SeriesChartType.RangeBar; series1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(220)))), ((int)(((byte)(65)))), ((int)(((byte)(140)))), ((int)(((byte)(240))))); series1.CustomProperties = "DrawSideBySide=True"; series1.Legend = "Default"; series1.Name = "Estimated"; series1.YValuesPerPoint = 2; series1.YValueType = System.Windows.Forms.DataVisualization.Charting.ChartValueType.DateTime; series2.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(180)))), ((int)(((byte)(26)))), ((int)(((byte)(59)))), ((int)(((byte)(105))))); series2.ChartArea = "Default"; series2.ChartType = System.Windows.Forms.DataVisualization.Charting.SeriesChartType.RangeBar; series2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(220)))), ((int)(((byte)(252)))), ((int)(((byte)(180)))), ((int)(((byte)(65))))); series2.CustomProperties = "DrawSideBySide=True, PointWidth=0.3"; series2.Legend = "Default"; series2.Name = "Actual"; series2.YValuesPerPoint = 2; series2.YValueType = System.Windows.Forms.DataVisualization.Charting.ChartValueType.DateTime; this._chart1.Series.Add(series1); this._chart1.Series.Add(series2); this._chart1.Size = new System.Drawing.Size(412, 296); this._chart1.TabIndex = 1; title1.Font = new System.Drawing.Font("Trebuchet MS", 14.25F, System.Drawing.FontStyle.Bold); title1.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(26)))), ((int)(((byte)(59)))), ((int)(((byte)(105))))); title1.Name = "Title1"; title1.ShadowColor = System.Drawing.Color.FromArgb(((int)(((byte)(32)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); title1.ShadowOffset = 3; title1.Text = "3D Range Bar Chart"; this._chart1.Titles.Add(title1); this._chart1.PostPaint += new System.EventHandler <System.Windows.Forms.DataVisualization.Charting.ChartPaintEventArgs>( this.chart1_PostPaint); // // labelSampleComment // this._labelSampleComment.Font = new System.Drawing.Font("Verdana", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this._labelSampleComment.Location = new System.Drawing.Point(16, 8); this._labelSampleComment.Name = "_labelSampleComment"; this._labelSampleComment.Size = new System.Drawing.Size(702, 29); this._labelSampleComment.TabIndex = 0; this._labelSampleComment.Text = "This sample demonstrates a 3D Range Bar chart."; this._labelSampleComment.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // panel1 // this._panel1.Controls.Add(this._rotation); this._panel1.Controls.Add(this._inclination); this._panel1.Controls.Add(this._label2); this._panel1.Controls.Add(this._label1); this._panel1.Location = new System.Drawing.Point(432, 53); this._panel1.Name = "_panel1"; this._panel1.Size = new System.Drawing.Size(292, 280); this._panel1.TabIndex = 2; // // Rotation // this._rotation.Increment = new decimal(new int[] { 10, 0, 0, 0 }); this._rotation.Location = new System.Drawing.Point(168, 56); this._rotation.Maximum = new decimal(new int[] { 1000, 0, 0, 0 }); this._rotation.Minimum = new decimal(new int[] { 1000, 0, 0, -2147483648 }); this._rotation.Name = "_rotation"; this._rotation.Size = new System.Drawing.Size(64, 22); this._rotation.TabIndex = 3; this._rotation.Value = new decimal(new int[] { 10, 0, 0, 0 }); this._rotation.ValueChanged += new System.EventHandler(this.Rotation_ValueChanged); // // Inclination // this._inclination.Increment = new decimal(new int[] { 10, 0, 0, 0 }); this._inclination.Location = new System.Drawing.Point(168, 16); this._inclination.Maximum = new decimal(new int[] { 1000, 0, 0, 0 }); this._inclination.Minimum = new decimal(new int[] { 1000, 0, 0, -2147483648 }); this._inclination.Name = "_inclination"; this._inclination.Size = new System.Drawing.Size(64, 22); this._inclination.TabIndex = 1; this._inclination.Value = new decimal(new int[] { 15, 0, 0, 0 }); this._inclination.ValueChanged += new System.EventHandler(this.Inclination_ValueChanged); // // label2 // this._label2.Location = new System.Drawing.Point(40, 56); this._label2.Name = "_label2"; this._label2.Size = new System.Drawing.Size(120, 23); this._label2.TabIndex = 2; this._label2.Text = "Rotate &Y:"; this._label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // label1 // this._label1.Location = new System.Drawing.Point(40, 15); this._label1.Name = "_label1"; this._label1.Size = new System.Drawing.Size(120, 23); this._label1.TabIndex = 0; this._label1.Text = "Rotate &X:"; this._label1.TextAlign = System.Drawing.ContentAlignment.MiddleRight; this._label1.Click += new System.EventHandler(this.label1_Click); // // RangeBar3D // this.BackColor = System.Drawing.Color.White; this.Controls.Add(this._panel1); this.Controls.Add(this._labelSampleComment); this.Controls.Add(this._chart1); this.Font = new System.Drawing.Font("Verdana", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.Name = "Range Bar 3D"; this.Size = new System.Drawing.Size(728, 424); this.Load += new System.EventHandler(this.RangeBar3D_Load); ((System.ComponentModel.ISupportInitialize)(this._chart1)).EndInit(); this._panel1.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this._rotation)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this._inclination)).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() { System.Windows.Forms.DataVisualization.Charting.ChartArea chartArea1 = new System.Windows.Forms.DataVisualization.Charting.ChartArea(); System.Windows.Forms.DataVisualization.Charting.CustomLabel customLabel1 = new System.Windows.Forms.DataVisualization.Charting.CustomLabel(); System.Windows.Forms.DataVisualization.Charting.CustomLabel customLabel2 = new System.Windows.Forms.DataVisualization.Charting.CustomLabel(); System.Windows.Forms.DataVisualization.Charting.CustomLabel customLabel3 = new System.Windows.Forms.DataVisualization.Charting.CustomLabel(); System.Windows.Forms.DataVisualization.Charting.CustomLabel customLabel4 = new System.Windows.Forms.DataVisualization.Charting.CustomLabel(); System.Windows.Forms.DataVisualization.Charting.Legend legend1 = new System.Windows.Forms.DataVisualization.Charting.Legend(); System.Windows.Forms.DataVisualization.Charting.Legend legend2 = new System.Windows.Forms.DataVisualization.Charting.Legend(); System.Windows.Forms.DataVisualization.Charting.Legend legend3 = new System.Windows.Forms.DataVisualization.Charting.Legend(); System.Windows.Forms.DataVisualization.Charting.LegendItem legendItem1 = new System.Windows.Forms.DataVisualization.Charting.LegendItem(); System.Windows.Forms.DataVisualization.Charting.LegendItem legendItem2 = new System.Windows.Forms.DataVisualization.Charting.LegendItem(); System.Windows.Forms.DataVisualization.Charting.LegendItem legendItem3 = new System.Windows.Forms.DataVisualization.Charting.LegendItem(); System.Windows.Forms.DataVisualization.Charting.Series series1 = new System.Windows.Forms.DataVisualization.Charting.Series(); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint1 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(1, 70); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint2 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(2, 80); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint3 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(3, 70); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint4 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(4, 85); System.Windows.Forms.DataVisualization.Charting.Series series2 = new System.Windows.Forms.DataVisualization.Charting.Series(); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint5 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(1, 65); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint6 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(2, 70); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint7 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(3, 60); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint8 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(4, 75); System.Windows.Forms.DataVisualization.Charting.Series series3 = new System.Windows.Forms.DataVisualization.Charting.Series(); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint9 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(1, 50); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint10 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(2, 55); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint11 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(3, 40); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint12 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(4, 70); System.Windows.Forms.DataVisualization.Charting.Title title1 = new System.Windows.Forms.DataVisualization.Charting.Title(); this.label9 = new System.Windows.Forms.Label(); this.panel1 = new System.Windows.Forms.Panel(); this.comboBoxBackColor = new System.Windows.Forms.ComboBox(); this.label16 = new System.Windows.Forms.Label(); this.BorderSize = new System.Windows.Forms.ComboBox(); this.BorderColor = new System.Windows.Forms.ComboBox(); this.label13 = new System.Windows.Forms.Label(); this.label14 = new System.Windows.Forms.Label(); this.AngleList = new System.Windows.Forms.ComboBox(); this.FontColorCombo = new System.Windows.Forms.ComboBox(); this.FontNameSize = new System.Windows.Forms.ComboBox(); this.FontNameList = new System.Windows.Forms.ComboBox(); this.LabelPosition = new System.Windows.Forms.ComboBox(); this.label12 = new System.Windows.Forms.Label(); this.label11 = new System.Windows.Forms.Label(); this.label10 = new System.Windows.Forms.Label(); this.label2 = new System.Windows.Forms.Label(); this.label1 = new System.Windows.Forms.Label(); this.label8 = new System.Windows.Forms.Label(); this.label7 = new System.Windows.Forms.Label(); this.label6 = new System.Windows.Forms.Label(); this.label5 = new System.Windows.Forms.Label(); this.label4 = new System.Windows.Forms.Label(); this.label3 = new System.Windows.Forms.Label(); this.label15 = new System.Windows.Forms.Label(); this.Chart1 = new System.Windows.Forms.DataVisualization.Charting.Chart(); this.label17 = new System.Windows.Forms.Label(); this.panel1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.Chart1)).BeginInit(); this.SuspendLayout(); // // label9 // this.label9.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.label9.Font = new System.Drawing.Font("Verdana", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label9.Location = new System.Drawing.Point(16, 8); this.label9.Name = "label9"; this.label9.Size = new System.Drawing.Size(702, 34); this.label9.TabIndex = 0; this.label9.Text = "This sample shows how to set�the font,�angle, and color of data point�labels."; this.label9.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // panel1 // this.panel1.Controls.Add(this.comboBoxBackColor); this.panel1.Controls.Add(this.label16); this.panel1.Controls.Add(this.BorderSize); this.panel1.Controls.Add(this.BorderColor); this.panel1.Controls.Add(this.label13); this.panel1.Controls.Add(this.label14); this.panel1.Controls.Add(this.AngleList); this.panel1.Controls.Add(this.FontColorCombo); this.panel1.Controls.Add(this.FontNameSize); this.panel1.Controls.Add(this.FontNameList); this.panel1.Controls.Add(this.LabelPosition); this.panel1.Controls.Add(this.label12); this.panel1.Controls.Add(this.label11); this.panel1.Controls.Add(this.label10); this.panel1.Controls.Add(this.label2); this.panel1.Controls.Add(this.label1); this.panel1.Controls.Add(this.label8); this.panel1.Controls.Add(this.label7); this.panel1.Controls.Add(this.label6); this.panel1.Controls.Add(this.label5); this.panel1.Controls.Add(this.label4); this.panel1.Controls.Add(this.label3); this.panel1.Controls.Add(this.label15); this.panel1.Location = new System.Drawing.Point(432, 56); this.panel1.Name = "panel1"; this.panel1.Size = new System.Drawing.Size(292, 288); this.panel1.TabIndex = 3; // // comboBoxBackColor // this.comboBoxBackColor.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.comboBoxBackColor.Items.AddRange(new object[] { "Transparent", "Beige", "White", "AliceBlue", "Yellow" }); this.comboBoxBackColor.Location = new System.Drawing.Point(168, 136); this.comboBoxBackColor.Name = "comboBoxBackColor"; this.comboBoxBackColor.Size = new System.Drawing.Size(121, 22); this.comboBoxBackColor.TabIndex = 9; this.comboBoxBackColor.SelectedIndexChanged += new System.EventHandler(this.BackColor_SelectedIndexChanged); // // label16 // this.label16.Location = new System.Drawing.Point(64, 136); this.label16.Name = "label16"; this.label16.Size = new System.Drawing.Size(96, 23); this.label16.TabIndex = 8; this.label16.Text = "&Back Color:"; this.label16.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // BorderSize // this.BorderSize.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.BorderSize.Items.AddRange(new object[] { "1", "2", "3" }); this.BorderSize.Location = new System.Drawing.Point(168, 232); this.BorderSize.Name = "BorderSize"; this.BorderSize.Size = new System.Drawing.Size(121, 22); this.BorderSize.TabIndex = 15; this.BorderSize.SelectedIndexChanged += new System.EventHandler(this.BorderSize_SelectedIndexChanged); // // BorderColor // this.BorderColor.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.BorderColor.Items.AddRange(new object[] { "Transparent", "Black", "Blue", "Gray", "Red" }); this.BorderColor.Location = new System.Drawing.Point(168, 200); this.BorderColor.Name = "BorderColor"; this.BorderColor.Size = new System.Drawing.Size(121, 22); this.BorderColor.TabIndex = 13; this.BorderColor.SelectedIndexChanged += new System.EventHandler(this.BorderColor_SelectedIndexChanged); // // label13 // this.label13.Location = new System.Drawing.Point(64, 232); this.label13.Name = "label13"; this.label13.Size = new System.Drawing.Size(100, 23); this.label13.TabIndex = 14; this.label13.Text = "Border &Size:"; this.label13.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // label14 // this.label14.Location = new System.Drawing.Point(64, 200); this.label14.Name = "label14"; this.label14.Size = new System.Drawing.Size(100, 23); this.label14.TabIndex = 12; this.label14.Text = "Bo&rder Color:"; this.label14.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // AngleList // this.AngleList.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.AngleList.Items.AddRange(new object[] { "0", "30", "45", "60", "90", "-30", "-45", "-60", "-90" }); this.AngleList.Location = new System.Drawing.Point(168, 168); this.AngleList.Name = "AngleList"; this.AngleList.Size = new System.Drawing.Size(121, 22); this.AngleList.TabIndex = 11; this.AngleList.SelectedIndexChanged += new System.EventHandler(this.Combo_SelectedIndexChanged); // // FontColorCombo // this.FontColorCombo.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.FontColorCombo.Items.AddRange(new object[] { "Black", "Blue", "Green", "Yellow", "Magenta", "Brown" }); this.FontColorCombo.Location = new System.Drawing.Point(168, 104); this.FontColorCombo.Name = "FontColorCombo"; this.FontColorCombo.Size = new System.Drawing.Size(121, 22); this.FontColorCombo.TabIndex = 7; this.FontColorCombo.SelectedIndexChanged += new System.EventHandler(this.Combo_SelectedIndexChanged); // // FontNameSize // this.FontNameSize.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.FontNameSize.Items.AddRange(new object[] { "6", "8", "10" }); this.FontNameSize.Location = new System.Drawing.Point(168, 72); this.FontNameSize.Name = "FontNameSize"; this.FontNameSize.Size = new System.Drawing.Size(121, 22); this.FontNameSize.TabIndex = 5; this.FontNameSize.SelectedIndexChanged += new System.EventHandler(this.Combo_SelectedIndexChanged); // // FontNameList // this.FontNameList.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.FontNameList.Items.AddRange(new object[] { "Trebuchet MS", "Microsoft Sans Serif", "Times New Roman", "Verdana" }); this.FontNameList.Location = new System.Drawing.Point(168, 40); this.FontNameList.Name = "FontNameList"; this.FontNameList.Size = new System.Drawing.Size(121, 22); this.FontNameList.TabIndex = 3; this.FontNameList.SelectedIndexChanged += new System.EventHandler(this.Combo_SelectedIndexChanged); // // LabelPosition // this.LabelPosition.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.LabelPosition.Items.AddRange(new object[] { "Top", "Bottom", "Center", "Left", "Right" }); this.LabelPosition.Location = new System.Drawing.Point(168, 8); this.LabelPosition.Name = "LabelPosition"; this.LabelPosition.Size = new System.Drawing.Size(121, 22); this.LabelPosition.TabIndex = 1; this.LabelPosition.SelectedIndexChanged += new System.EventHandler(this.Combo_SelectedIndexChanged); // // label12 // this.label12.Location = new System.Drawing.Point(64, 168); this.label12.Name = "label12"; this.label12.Size = new System.Drawing.Size(100, 23); this.label12.TabIndex = 10; this.label12.Text = "Label &Angle:"; this.label12.TextAlign = System.Drawing.ContentAlignment.MiddleRight; this.label12.Click += new System.EventHandler(this.label12_Click); // // label11 // this.label11.Location = new System.Drawing.Point(64, 104); this.label11.Name = "label11"; this.label11.Size = new System.Drawing.Size(100, 23); this.label11.TabIndex = 6; this.label11.Text = "Font &Color:"; this.label11.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // label10 // this.label10.Location = new System.Drawing.Point(64, 72); this.label10.Name = "label10"; this.label10.Size = new System.Drawing.Size(100, 23); this.label10.TabIndex = 4; this.label10.Text = "F&ont Size:"; this.label10.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // label2 // this.label2.Location = new System.Drawing.Point(64, 40); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(100, 23); this.label2.TabIndex = 2; this.label2.Text = "&Font Name:"; this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // label1 // this.label1.Location = new System.Drawing.Point(64, 8); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(100, 23); this.label1.TabIndex = 0; this.label1.Text = "&Position:"; this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // label8 // this.label8.Location = new System.Drawing.Point(64, 472); this.label8.Name = "label8"; this.label8.Size = new System.Drawing.Size(100, 23); this.label8.TabIndex = 7; this.label8.Text = "Shadow Offset:"; // // label7 // this.label7.Location = new System.Drawing.Point(64, 449); this.label7.Name = "label7"; this.label7.Size = new System.Drawing.Size(100, 23); this.label7.TabIndex = 6; this.label7.Text = "Border Style:"; // // label6 // this.label6.Location = new System.Drawing.Point(64, 403); this.label6.Name = "label6"; this.label6.Size = new System.Drawing.Size(100, 23); this.label6.TabIndex = 19; this.label6.Text = "Border Size:"; // // label5 // this.label5.Location = new System.Drawing.Point(64, 380); this.label5.Name = "label5"; this.label5.Size = new System.Drawing.Size(100, 23); this.label5.TabIndex = 18; this.label5.Text = "Border Color:"; // // label4 // this.label4.Location = new System.Drawing.Point(64, 357); this.label4.Name = "label4"; this.label4.Size = new System.Drawing.Size(100, 23); this.label4.TabIndex = 17; this.label4.Text = "Hatch Style:"; // // label3 // this.label3.Location = new System.Drawing.Point(64, 334); this.label3.Name = "label3"; this.label3.Size = new System.Drawing.Size(100, 23); this.label3.TabIndex = 16; this.label3.Text = "Gradient:"; // // label15 // this.label15.Location = new System.Drawing.Point(64, 426); this.label15.Name = "label15"; this.label15.Size = new System.Drawing.Size(100, 23); this.label15.TabIndex = 5; this.label15.Text = "Border Size:"; // // Chart1 // this.Chart1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(211)))), ((int)(((byte)(223)))), ((int)(((byte)(240))))); this.Chart1.BackGradientStyle = System.Windows.Forms.DataVisualization.Charting.GradientStyle.TopBottom; this.Chart1.BackSecondaryColor = System.Drawing.Color.White; this.Chart1.BorderlineColor = System.Drawing.Color.FromArgb(((int)(((byte)(26)))), ((int)(((byte)(59)))), ((int)(((byte)(105))))); this.Chart1.BorderlineDashStyle = System.Windows.Forms.DataVisualization.Charting.ChartDashStyle.Solid; this.Chart1.BorderlineWidth = 2; this.Chart1.BorderSkin.SkinStyle = System.Windows.Forms.DataVisualization.Charting.BorderSkinStyle.Emboss; chartArea1.Area3DStyle.Inclination = 15; chartArea1.Area3DStyle.IsClustered = true; chartArea1.Area3DStyle.IsRightAngleAxes = false; chartArea1.Area3DStyle.Perspective = 10; chartArea1.Area3DStyle.PointGapDepth = 0; chartArea1.Area3DStyle.Rotation = 5; chartArea1.Area3DStyle.WallWidth = 0; customLabel1.FromPosition = 0.5; customLabel1.Text = "John"; customLabel1.ToPosition = 1.5; customLabel2.FromPosition = 1.5; customLabel2.Text = "Mary"; customLabel2.ToPosition = 2.5; customLabel3.FromPosition = 2.5; customLabel3.Text = "Jeff"; customLabel3.ToPosition = 3.5; customLabel4.FromPosition = 3.5; customLabel4.Text = "Bob"; customLabel4.ToPosition = 4.5; chartArea1.AxisX.CustomLabels.Add(customLabel1); chartArea1.AxisX.CustomLabels.Add(customLabel2); chartArea1.AxisX.CustomLabels.Add(customLabel3); chartArea1.AxisX.CustomLabels.Add(customLabel4); chartArea1.AxisX.Interval = 1; chartArea1.AxisX.IsLabelAutoFit = false; chartArea1.AxisX.LabelStyle.Font = new System.Drawing.Font("Trebuchet MS", 8.25F); chartArea1.AxisX.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea1.AxisX.MajorGrid.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea1.AxisY.IsLabelAutoFit = false; chartArea1.AxisY.LabelStyle.Font = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold); chartArea1.AxisY.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea1.AxisY.MajorGrid.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(165)))), ((int)(((byte)(191)))), ((int)(((byte)(228))))); chartArea1.BackGradientStyle = System.Windows.Forms.DataVisualization.Charting.GradientStyle.TopBottom; chartArea1.BackSecondaryColor = System.Drawing.Color.White; chartArea1.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea1.Name = "Default"; chartArea1.Position.Auto = false; chartArea1.Position.Height = 75F; chartArea1.Position.Width = 90F; chartArea1.Position.X = 2F; chartArea1.Position.Y = 13F; chartArea1.ShadowColor = System.Drawing.Color.Transparent; this.Chart1.ChartAreas.Add(chartArea1); legend1.BackColor = System.Drawing.Color.Transparent; legend1.Enabled = false; legend1.LegendStyle = System.Windows.Forms.DataVisualization.Charting.LegendStyle.Row; legend1.Name = "Default"; legend1.Position.Auto = false; legend1.Position.Height = 5F; legend1.Position.Width = 40F; legend1.Position.X = 5F; legend1.Position.Y = 85F; legend2.Enabled = false; legend2.Name = "Legend2"; legend3.BackColor = System.Drawing.Color.Transparent; legendItem1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(65)))), ((int)(((byte)(140)))), ((int)(((byte)(240))))); legendItem1.Name = "Previous Month Avg"; legendItem2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(252)))), ((int)(((byte)(180)))), ((int)(((byte)(65))))); legendItem2.Name = "Last Week"; legendItem3.Color = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(64)))), ((int)(((byte)(10))))); legendItem3.Name = "This Week"; legend3.CustomItems.Add(legendItem1); legend3.CustomItems.Add(legendItem2); legend3.CustomItems.Add(legendItem3); legend3.Font = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold); legend3.IsTextAutoFit = false; legend3.LegendStyle = System.Windows.Forms.DataVisualization.Charting.LegendStyle.Row; legend3.Name = "Legend3"; legend3.Position.Auto = false; legend3.Position.Height = 12F; legend3.Position.Width = 90F; legend3.Position.X = 5F; legend3.Position.Y = 85F; this.Chart1.Legends.Add(legend1); this.Chart1.Legends.Add(legend2); this.Chart1.Legends.Add(legend3); this.Chart1.Location = new System.Drawing.Point(16, 48); this.Chart1.Name = "Chart1"; this.Chart1.Palette = System.Windows.Forms.DataVisualization.Charting.ChartColorPalette.Pastel; series1.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(180)))), ((int)(((byte)(26)))), ((int)(((byte)(59)))), ((int)(((byte)(105))))); series1.ChartArea = "Default"; series1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(65)))), ((int)(((byte)(140)))), ((int)(((byte)(240))))); series1.CustomProperties = "DrawingStyle=Cylinder"; series1.Font = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); series1.IsValueShownAsLabel = true; series1.Legend = "Legend2"; series1.Name = "Series2"; series1.Points.Add(dataPoint1); series1.Points.Add(dataPoint2); series1.Points.Add(dataPoint3); series1.Points.Add(dataPoint4); series1.ShadowColor = System.Drawing.Color.Transparent; series1.XValueType = System.Windows.Forms.DataVisualization.Charting.ChartValueType.Double; series1.YValueType = System.Windows.Forms.DataVisualization.Charting.ChartValueType.Double; series2.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); series2.ChartArea = "Default"; series2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(252)))), ((int)(((byte)(180)))), ((int)(((byte)(65))))); series2.CustomProperties = "DrawingStyle=Cylinder"; series2.Font = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); series2.IsValueShownAsLabel = true; series2.Legend = "Default"; series2.Name = "Series3"; series2.Points.Add(dataPoint5); series2.Points.Add(dataPoint6); series2.Points.Add(dataPoint7); series2.Points.Add(dataPoint8); series3.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); series3.ChartArea = "Default"; series3.Color = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(64)))), ((int)(((byte)(10))))); series3.CustomProperties = "DrawingStyle=Cylinder"; series3.Font = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); series3.IsValueShownAsLabel = true; series3.Legend = "Default"; series3.Name = "Series4"; series3.Points.Add(dataPoint9); series3.Points.Add(dataPoint10); series3.Points.Add(dataPoint11); series3.Points.Add(dataPoint12); this.Chart1.Series.Add(series1); this.Chart1.Series.Add(series2); this.Chart1.Series.Add(series3); this.Chart1.Size = new System.Drawing.Size(412, 306); this.Chart1.TabIndex = 1; title1.Alignment = System.Drawing.ContentAlignment.TopLeft; title1.Font = new System.Drawing.Font("Trebuchet MS", 14.25F, System.Drawing.FontStyle.Bold); title1.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(26)))), ((int)(((byte)(59)))), ((int)(((byte)(105))))); title1.Name = "Title1"; title1.Position.Auto = false; title1.Position.Height = 8.738057F; title1.Position.Width = 80F; title1.Position.X = 4F; title1.Position.Y = 4F; title1.ShadowColor = System.Drawing.Color.FromArgb(((int)(((byte)(32)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); title1.ShadowOffset = 3; title1.Text = "Chart Control for .NET Framework"; this.Chart1.Titles.Add(title1); // // label17 // this.label17.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.label17.Font = new System.Drawing.Font("Verdana", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label17.Location = new System.Drawing.Point(20, 378); this.label17.Name = "label17"; this.label17.Size = new System.Drawing.Size(702, 42); this.label17.TabIndex = 0; this.label17.Text = "Note that�these properties can be applied to all�data points in a series�or�to a " + "single data point."; // // UsingLabels // this.Controls.Add(this.label17); this.Controls.Add(this.Chart1); this.Controls.Add(this.panel1); this.Controls.Add(this.label9); this.Font = new System.Drawing.Font("Verdana", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.Name = "UsingLabels"; this.Size = new System.Drawing.Size(728, 480); this.panel1.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.Chart1)).EndInit(); this.ResumeLayout(false); }
void Chart_CustomizeLegend(object sender, CustomizeLegendEventArgs e) { e.LegendItems.Clear(); int IdxSerie = 0; foreach (var item in this.Series) { if (item.Name.Contains("ComplexD_ataTable")) continue; if (item.Name == "TrendLine") continue; //if (item.Tag != null) //{ LegendItem newItem = new LegendItem(); newItem.ImageStyle = LegendImageStyle.Marker; newItem.MarkerStyle = MarkerStyle.Square; newItem.MarkerSize = 8; newItem.ShadowColor = Color.Black; newItem.ShadowOffset = 1; if (item.Tag != null) { if (item.Tag.GetType() == typeof(cWellClassType)) newItem.MarkerBorderColor = newItem.MarkerColor = ((cWellClassType)(item.Tag)).ColourForDisplay; else if (item.Tag.GetType() == typeof(cCellularPhenotype)) newItem.MarkerBorderColor = newItem.MarkerColor = ((cCellularPhenotype)(item.Tag)).ColourForDisplay; else newItem.MarkerBorderColor = newItem.MarkerColor= item.Color; } else { cLUTProcess LUTProcess = new cLUTProcess(cGlobalInfo.GraphsLUT); int IdxColor = IdxSerie % LUTProcess.GetNumberOfColors(); newItem.MarkerBorderColor = newItem.MarkerColor = LUTProcess.GetColor(IdxColor); } newItem.Cells.Add(LegendCellType.SeriesSymbol, "", ContentAlignment.MiddleLeft); newItem.Cells.Add(LegendCellType.Text, item.Name, ContentAlignment.MiddleLeft); e.LegendItems.Add(newItem); IdxSerie++; //} } }
private void ToggleLegendItemVisibility(LegendItem legendItem) { var item = invisibleLegendItems.FirstOrDefault(x => x.Name == legendItem.Name); if (item != null) invisibleLegendItems.Remove(item); else invisibleLegendItems.Add(legendItem); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { System.Windows.Forms.DataVisualization.Charting.ChartArea chartArea2 = new System.Windows.Forms.DataVisualization.Charting.ChartArea(); System.Windows.Forms.DataVisualization.Charting.Legend legend2 = new System.Windows.Forms.DataVisualization.Charting.Legend(); System.Windows.Forms.DataVisualization.Charting.LegendItem legendItem2 = new System.Windows.Forms.DataVisualization.Charting.LegendItem(); System.Windows.Forms.DataVisualization.Charting.Series series2 = new System.Windows.Forms.DataVisualization.Charting.Series(); this.label9 = new System.Windows.Forms.Label(); this.panel1 = new System.Windows.Forms.Panel(); this.EmptyPointValue = new System.Windows.Forms.ComboBox(); this.label6 = new System.Windows.Forms.Label(); this.ShowAsIndexedList = new System.Windows.Forms.ComboBox(); this.label7 = new System.Windows.Forms.Label(); this.EmptyPointIntervalList = new System.Windows.Forms.ComboBox(); this.label2 = new System.Windows.Forms.Label(); this.Chart1 = new System.Windows.Forms.DataVisualization.Charting.Chart(); this.panel1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.Chart1)).BeginInit(); this.SuspendLayout(); // // label9 // this.label9.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.label9.Font = new System.Drawing.Font("Verdana", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label9.Location = new System.Drawing.Point(16, 14); this.label9.Name = "label9"; this.label9.Size = new System.Drawing.Size(702, 34); this.label9.TabIndex = 0; this.label9.Text = "This sample uses the InsertEmptyPoints method to repeatedly check for missing dat" + "a points for a given time interval and inserts empty points.?"; this.label9.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // panel1 // this.panel1.Controls.Add(this.EmptyPointValue); this.panel1.Controls.Add(this.label6); this.panel1.Controls.Add(this.ShowAsIndexedList); this.panel1.Controls.Add(this.label7); this.panel1.Controls.Add(this.EmptyPointIntervalList); this.panel1.Controls.Add(this.label2); this.panel1.Location = new System.Drawing.Point(432, 68); this.panel1.Name = "panel1"; this.panel1.Size = new System.Drawing.Size(292, 292); this.panel1.TabIndex = 2; // // EmptyPointValue // this.EmptyPointValue.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.EmptyPointValue.Items.AddRange(new object[] { "Zero", "Average"}); this.EmptyPointValue.Location = new System.Drawing.Point(168, 40); this.EmptyPointValue.Name = "EmptyPointValue"; this.EmptyPointValue.Size = new System.Drawing.Size(121, 22); this.EmptyPointValue.TabIndex = 5; this.EmptyPointValue.SelectedIndexChanged += new System.EventHandler(this.Combo_SelectedIndexChanged); // // label6 // this.label6.Location = new System.Drawing.Point(32, 40); this.label6.Name = "label6"; this.label6.Size = new System.Drawing.Size(136, 16); this.label6.TabIndex = 4; this.label6.Text = "Empty Point &Value:"; this.label6.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // ShowAsIndexedList // this.ShowAsIndexedList.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.ShowAsIndexedList.Items.AddRange(new object[] { "False", "True"}); this.ShowAsIndexedList.Location = new System.Drawing.Point(168, 72); this.ShowAsIndexedList.Name = "ShowAsIndexedList"; this.ShowAsIndexedList.Size = new System.Drawing.Size(120, 22); this.ShowAsIndexedList.TabIndex = 3; this.ShowAsIndexedList.SelectedIndexChanged += new System.EventHandler(this.Combo_SelectedIndexChanged); // // label7 // this.label7.Location = new System.Drawing.Point(4, 72); this.label7.Name = "label7"; this.label7.Size = new System.Drawing.Size(160, 20); this.label7.TabIndex = 2; this.label7.Text = "Show as &Indexed:"; this.label7.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // EmptyPointIntervalList // this.EmptyPointIntervalList.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.EmptyPointIntervalList.Items.AddRange(new object[] { "No Empty Points", "Every Day", "Every Week Day", "Every Monday", "Every 12 Hours"}); this.EmptyPointIntervalList.Location = new System.Drawing.Point(168, 8); this.EmptyPointIntervalList.Name = "EmptyPointIntervalList"; this.EmptyPointIntervalList.Size = new System.Drawing.Size(120, 22); this.EmptyPointIntervalList.TabIndex = 1; this.EmptyPointIntervalList.SelectedIndexChanged += new System.EventHandler(this.Combo_SelectedIndexChanged); // // label2 // this.label2.Location = new System.Drawing.Point(0, 11); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(164, 16); this.label2.TabIndex = 0; this.label2.Text = "&Check for Empty Points:"; this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // Chart1 // this.Chart1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(211)))), ((int)(((byte)(223)))), ((int)(((byte)(240))))); this.Chart1.BackGradientStyle = System.Windows.Forms.DataVisualization.Charting.GradientStyle.TopBottom; this.Chart1.BorderlineColor = System.Drawing.Color.FromArgb(((int)(((byte)(26)))), ((int)(((byte)(59)))), ((int)(((byte)(105))))); this.Chart1.BorderlineDashStyle = System.Windows.Forms.DataVisualization.Charting.ChartDashStyle.Solid; this.Chart1.BorderlineWidth = 2; this.Chart1.BorderSkin.SkinStyle = System.Windows.Forms.DataVisualization.Charting.BorderSkinStyle.Emboss; chartArea2.Area3DStyle.Inclination = 15; chartArea2.Area3DStyle.IsClustered = true; chartArea2.Area3DStyle.IsRightAngleAxes = false; chartArea2.Area3DStyle.Perspective = 10; chartArea2.Area3DStyle.Rotation = 10; chartArea2.Area3DStyle.WallWidth = 0; chartArea2.AxisX.ArrowStyle = System.Windows.Forms.DataVisualization.Charting.AxisArrowStyle.Triangle; chartArea2.AxisX.IsLabelAutoFit = false; chartArea2.AxisX.LabelStyle.Font = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold); chartArea2.AxisX.LabelStyle.Format = "M"; chartArea2.AxisX.LabelStyle.IsStaggered = true; chartArea2.AxisX.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea2.AxisX.MajorGrid.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea2.AxisX2.Enabled = System.Windows.Forms.DataVisualization.Charting.AxisEnabled.False; chartArea2.AxisY.ArrowStyle = System.Windows.Forms.DataVisualization.Charting.AxisArrowStyle.Triangle; chartArea2.AxisY.IsLabelAutoFit = false; chartArea2.AxisY.LabelStyle.Font = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold); chartArea2.AxisY.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea2.AxisY.MajorGrid.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea2.AxisY2.Enabled = System.Windows.Forms.DataVisualization.Charting.AxisEnabled.False; chartArea2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(165)))), ((int)(((byte)(191)))), ((int)(((byte)(228))))); chartArea2.BackGradientStyle = System.Windows.Forms.DataVisualization.Charting.GradientStyle.TopBottom; chartArea2.BackSecondaryColor = System.Drawing.Color.Transparent; chartArea2.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea2.Name = "Default"; chartArea2.Position.Auto = false; chartArea2.Position.Height = 76.2929F; chartArea2.Position.Width = 89.43796F; chartArea2.Position.X = 4.824818F; chartArea2.Position.Y = 16.89354F; chartArea2.ShadowColor = System.Drawing.Color.Transparent; this.Chart1.ChartAreas.Add(chartArea2); legend2.Alignment = System.Drawing.StringAlignment.Far; legend2.BackColor = System.Drawing.Color.Transparent; legendItem2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(64)))), ((int)(((byte)(10))))); legendItem2.ImageStyle = System.Windows.Forms.DataVisualization.Charting.LegendImageStyle.Marker; legendItem2.MarkerSize = 7; legendItem2.MarkerStyle = System.Windows.Forms.DataVisualization.Charting.MarkerStyle.Diamond; legendItem2.Name = "Empty Point"; legend2.CustomItems.Add(legendItem2); legend2.Docking = System.Windows.Forms.DataVisualization.Charting.Docking.Top; legend2.Font = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold); legend2.IsTextAutoFit = false; legend2.LegendStyle = System.Windows.Forms.DataVisualization.Charting.LegendStyle.Row; legend2.Name = "Default"; this.Chart1.Legends.Add(legend2); this.Chart1.Location = new System.Drawing.Point(16, 60); this.Chart1.Name = "Chart1"; series2.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(180)))), ((int)(((byte)(26)))), ((int)(((byte)(59)))), ((int)(((byte)(105))))); series2.ChartArea = "Default"; series2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(252)))), ((int)(((byte)(180)))), ((int)(((byte)(65))))); series2.CustomProperties = "DrawingStyle=Emboss"; series2.EmptyPointStyle.Color = System.Drawing.Color.Transparent; series2.EmptyPointStyle.MarkerColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(64)))), ((int)(((byte)(10))))); series2.EmptyPointStyle.MarkerSize = 7; series2.EmptyPointStyle.MarkerStyle = System.Windows.Forms.DataVisualization.Charting.MarkerStyle.Diamond; series2.LabelFormat = "M"; series2.Legend = "Default"; series2.LegendText = "Data"; series2.Name = "Series1"; series2.XValueType = System.Windows.Forms.DataVisualization.Charting.ChartValueType.DateTime; this.Chart1.Series.Add(series2); this.Chart1.Size = new System.Drawing.Size(412, 296); this.Chart1.TabIndex = 1; // // InsertingEmptyPoints // this.Controls.Add(this.Chart1); this.Controls.Add(this.panel1); this.Controls.Add(this.label9); this.Font = new System.Drawing.Font("Verdana", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.Name = "InsertingEmptyPoints"; this.Size = new System.Drawing.Size(728, 480); this.panel1.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.Chart1)).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() { System.Windows.Forms.DataVisualization.Charting.ChartArea chartArea1 = new System.Windows.Forms.DataVisualization.Charting.ChartArea(); System.Windows.Forms.DataVisualization.Charting.CustomLabel customLabel1 = new System.Windows.Forms.DataVisualization.Charting.CustomLabel(); System.Windows.Forms.DataVisualization.Charting.CustomLabel customLabel2 = new System.Windows.Forms.DataVisualization.Charting.CustomLabel(); System.Windows.Forms.DataVisualization.Charting.CustomLabel customLabel3 = new System.Windows.Forms.DataVisualization.Charting.CustomLabel(); System.Windows.Forms.DataVisualization.Charting.CustomLabel customLabel4 = new System.Windows.Forms.DataVisualization.Charting.CustomLabel(); System.Windows.Forms.DataVisualization.Charting.Legend legend1 = new System.Windows.Forms.DataVisualization.Charting.Legend(); System.Windows.Forms.DataVisualization.Charting.Legend legend2 = new System.Windows.Forms.DataVisualization.Charting.Legend(); System.Windows.Forms.DataVisualization.Charting.Legend legend3 = new System.Windows.Forms.DataVisualization.Charting.Legend(); System.Windows.Forms.DataVisualization.Charting.LegendItem legendItem1 = new System.Windows.Forms.DataVisualization.Charting.LegendItem(); System.Windows.Forms.DataVisualization.Charting.LegendItem legendItem2 = new System.Windows.Forms.DataVisualization.Charting.LegendItem(); System.Windows.Forms.DataVisualization.Charting.LegendItem legendItem3 = new System.Windows.Forms.DataVisualization.Charting.LegendItem(); System.Windows.Forms.DataVisualization.Charting.Series series1 = new System.Windows.Forms.DataVisualization.Charting.Series(); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint1 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(1, 70); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint2 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(2, 80); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint3 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(3, 70); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint4 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(4, 85); System.Windows.Forms.DataVisualization.Charting.Series series2 = new System.Windows.Forms.DataVisualization.Charting.Series(); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint5 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(1, 65); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint6 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(2, 70); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint7 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(3, 60); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint8 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(4, 75); System.Windows.Forms.DataVisualization.Charting.Series series3 = new System.Windows.Forms.DataVisualization.Charting.Series(); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint9 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(1, 50); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint10 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(2, 55); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint11 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(3, 40); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint12 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(4, 70); System.Windows.Forms.DataVisualization.Charting.Title title1 = new System.Windows.Forms.DataVisualization.Charting.Title(); System.Windows.Forms.DataVisualization.Charting.Title title2 = new System.Windows.Forms.DataVisualization.Charting.Title(); System.Windows.Forms.DataVisualization.Charting.Title title3 = new System.Windows.Forms.DataVisualization.Charting.Title(); this.label9 = new System.Windows.Forms.Label(); this.panel1 = new System.Windows.Forms.Panel(); this.checkBoxDockToChartArea = new System.Windows.Forms.CheckBox(); this.Docking = new System.Windows.Forms.ComboBox(); this.Alignment = new System.Windows.Forms.ComboBox(); this.label3 = new System.Windows.Forms.Label(); this.label2 = new System.Windows.Forms.Label(); this.IsDockedInsideChartArea = new System.Windows.Forms.CheckBox(); this.Chart1 = new System.Windows.Forms.DataVisualization.Charting.Chart(); this.panel1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.Chart1)).BeginInit(); this.SuspendLayout(); // // label9 // this.label9.Font = new System.Drawing.Font("Verdana", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label9.Location = new System.Drawing.Point(16, 14); this.label9.Name = "label9"; this.label9.Size = new System.Drawing.Size(702, 43); this.label9.TabIndex = 1; this.label9.Text = "This sample shows how to add multiple titles and how to dock titles to the chart " + "area. Try changing the alignment and docking of the \"SIDEBAR\" title using contro" + "ls below. "; this.label9.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // panel1 // this.panel1.Controls.Add(this.checkBoxDockToChartArea); this.panel1.Controls.Add(this.Docking); this.panel1.Controls.Add(this.Alignment); this.panel1.Controls.Add(this.label3); this.panel1.Controls.Add(this.label2); this.panel1.Controls.Add(this.IsDockedInsideChartArea); this.panel1.Location = new System.Drawing.Point(432, 68); this.panel1.Name = "panel1"; this.panel1.Size = new System.Drawing.Size(292, 296); this.panel1.TabIndex = 1; // // checkBoxDockToChartArea // this.checkBoxDockToChartArea.Location = new System.Drawing.Point(15, 72); this.checkBoxDockToChartArea.Name = "checkBoxDockToChartArea"; this.checkBoxDockToChartArea.RightToLeft = System.Windows.Forms.RightToLeft.Yes; this.checkBoxDockToChartArea.Size = new System.Drawing.Size(168, 22); this.checkBoxDockToChartArea.TabIndex = 5; this.checkBoxDockToChartArea.Text = "Dock to &Chart Area"; this.checkBoxDockToChartArea.CheckedChanged += new System.EventHandler(this.checkBoxDockToChartArea_CheckedChanged); // // Docking // this.Docking.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.Docking.Location = new System.Drawing.Point(168, 40); this.Docking.Name = "Docking"; this.Docking.Size = new System.Drawing.Size(121, 22); this.Docking.TabIndex = 4; this.Docking.SelectedIndexChanged += new System.EventHandler(this.Docking_SelectedIndexChanged); // // Alignment // this.Alignment.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.Alignment.Location = new System.Drawing.Point(168, 8); this.Alignment.Name = "Alignment"; this.Alignment.Size = new System.Drawing.Size(121, 22); this.Alignment.TabIndex = 2; this.Alignment.SelectedIndexChanged += new System.EventHandler(this.Docking_SelectedIndexChanged); // // label3 // this.label3.Location = new System.Drawing.Point(12, 40); this.label3.Name = "label3"; this.label3.Size = new System.Drawing.Size(152, 22); this.label3.TabIndex = 3; this.label3.Text = "&Docking:"; this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // label2 // this.label2.Location = new System.Drawing.Point(12, 8); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(152, 22); this.label2.TabIndex = 1; this.label2.Text = "&Alignment:"; this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // IsDockedInsideChartArea // this.IsDockedInsideChartArea.Checked = true; this.IsDockedInsideChartArea.CheckState = System.Windows.Forms.CheckState.Checked; this.IsDockedInsideChartArea.Enabled = false; this.IsDockedInsideChartArea.Location = new System.Drawing.Point(15, 104); this.IsDockedInsideChartArea.Name = "IsDockedInsideChartArea"; this.IsDockedInsideChartArea.RightToLeft = System.Windows.Forms.RightToLeft.Yes; this.IsDockedInsideChartArea.Size = new System.Drawing.Size(168, 22); this.IsDockedInsideChartArea.TabIndex = 0; this.IsDockedInsideChartArea.Text = "Dock &Inside Chart Area"; this.IsDockedInsideChartArea.Click += new System.EventHandler(this.IsDockedInsideChartArea_Click); // // Chart1 // this.Chart1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(243)))), ((int)(((byte)(223)))), ((int)(((byte)(193))))); this.Chart1.BackGradientStyle = System.Windows.Forms.DataVisualization.Charting.GradientStyle.TopBottom; this.Chart1.BorderlineColor = System.Drawing.Color.FromArgb(((int)(((byte)(181)))), ((int)(((byte)(64)))), ((int)(((byte)(1))))); this.Chart1.BorderlineDashStyle = System.Windows.Forms.DataVisualization.Charting.ChartDashStyle.Solid; this.Chart1.BorderlineWidth = 2; this.Chart1.BorderSkin.SkinStyle = System.Windows.Forms.DataVisualization.Charting.BorderSkinStyle.Emboss; chartArea1.Area3DStyle.Inclination = 15; chartArea1.Area3DStyle.IsClustered = true; chartArea1.Area3DStyle.IsRightAngleAxes = false; chartArea1.Area3DStyle.Perspective = 10; chartArea1.Area3DStyle.PointGapDepth = 0; chartArea1.Area3DStyle.Rotation = 5; chartArea1.Area3DStyle.WallWidth = 0; customLabel1.FromPosition = 0.5; customLabel1.Text = "John"; customLabel1.ToPosition = 1.5; customLabel2.FromPosition = 1.5; customLabel2.Text = "Mary"; customLabel2.ToPosition = 2.5; customLabel3.FromPosition = 2.5; customLabel3.Text = "Jeff"; customLabel3.ToPosition = 3.5; customLabel4.FromPosition = 3.5; customLabel4.Text = "Bob"; customLabel4.ToPosition = 4.5; chartArea1.AxisX.CustomLabels.Add(customLabel1); chartArea1.AxisX.CustomLabels.Add(customLabel2); chartArea1.AxisX.CustomLabels.Add(customLabel3); chartArea1.AxisX.CustomLabels.Add(customLabel4); chartArea1.AxisX.Interval = 1; chartArea1.AxisX.IsLabelAutoFit = false; chartArea1.AxisX.LabelStyle.Font = new System.Drawing.Font("Trebuchet MS", 8.25F); chartArea1.AxisX.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea1.AxisX.MajorGrid.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea1.AxisY.IsLabelAutoFit = false; chartArea1.AxisY.LabelStyle.Font = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold); chartArea1.AxisY.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea1.AxisY.MajorGrid.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea1.BackColor = System.Drawing.Color.OldLace; chartArea1.BackGradientStyle = System.Windows.Forms.DataVisualization.Charting.GradientStyle.TopBottom; chartArea1.BackSecondaryColor = System.Drawing.Color.White; chartArea1.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea1.Name = "Default"; chartArea1.ShadowColor = System.Drawing.Color.Transparent; this.Chart1.ChartAreas.Add(chartArea1); legend1.BackColor = System.Drawing.Color.Transparent; legend1.Docking = System.Windows.Forms.DataVisualization.Charting.Docking.Bottom; legend1.Font = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); legend1.IsTextAutoFit = false; legend1.LegendStyle = System.Windows.Forms.DataVisualization.Charting.LegendStyle.Row; legend1.Name = "Default"; legend2.Docking = System.Windows.Forms.DataVisualization.Charting.Docking.Bottom; legend2.Enabled = false; legend2.Name = "Legend2"; legend3.BackColor = System.Drawing.Color.Transparent; legendItem1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(65)))), ((int)(((byte)(140)))), ((int)(((byte)(240))))); legendItem1.Name = "Previous Month Avg"; legendItem2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(252)))), ((int)(((byte)(180)))), ((int)(((byte)(65))))); legendItem2.Name = "Last Week"; legendItem3.Color = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(64)))), ((int)(((byte)(10))))); legendItem3.Name = "This Week"; legend3.CustomItems.Add(legendItem1); legend3.CustomItems.Add(legendItem2); legend3.CustomItems.Add(legendItem3); legend3.Docking = System.Windows.Forms.DataVisualization.Charting.Docking.Bottom; legend3.Enabled = false; legend3.Font = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold); legend3.IsTextAutoFit = false; legend3.LegendStyle = System.Windows.Forms.DataVisualization.Charting.LegendStyle.Row; legend3.Name = "Legend3"; this.Chart1.Legends.Add(legend1); this.Chart1.Legends.Add(legend2); this.Chart1.Legends.Add(legend3); this.Chart1.Location = new System.Drawing.Point(16, 60); this.Chart1.Name = "Chart1"; this.Chart1.Palette = System.Windows.Forms.DataVisualization.Charting.ChartColorPalette.Pastel; series1.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(180)))), ((int)(((byte)(26)))), ((int)(((byte)(59)))), ((int)(((byte)(105))))); series1.ChartArea = "Default"; series1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(65)))), ((int)(((byte)(140)))), ((int)(((byte)(240))))); series1.CustomProperties = "DrawingStyle=Cylinder"; series1.Legend = "Default"; series1.LegendText = "Total"; series1.Name = "Series2"; series1.Points.Add(dataPoint1); series1.Points.Add(dataPoint2); series1.Points.Add(dataPoint3); series1.Points.Add(dataPoint4); series1.ShadowColor = System.Drawing.Color.Transparent; series1.XValueType = System.Windows.Forms.DataVisualization.Charting.ChartValueType.Double; series1.YValueType = System.Windows.Forms.DataVisualization.Charting.ChartValueType.Double; series2.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); series2.ChartArea = "Default"; series2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(252)))), ((int)(((byte)(180)))), ((int)(((byte)(65))))); series2.CustomProperties = "DrawingStyle=Cylinder"; series2.Legend = "Default"; series2.LegendText = "Sales"; series2.Name = "Series3"; series2.Points.Add(dataPoint5); series2.Points.Add(dataPoint6); series2.Points.Add(dataPoint7); series2.Points.Add(dataPoint8); series3.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); series3.ChartArea = "Default"; series3.Color = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(64)))), ((int)(((byte)(10))))); series3.CustomProperties = "DrawingStyle=Cylinder"; series3.Legend = "Default"; series3.LegendText = "Clients"; series3.Name = "Series4"; series3.Points.Add(dataPoint9); series3.Points.Add(dataPoint10); series3.Points.Add(dataPoint11); series3.Points.Add(dataPoint12); this.Chart1.Series.Add(series1); this.Chart1.Series.Add(series2); this.Chart1.Series.Add(series3); this.Chart1.Size = new System.Drawing.Size(412, 296); this.Chart1.TabIndex = 2; title1.Alignment = System.Drawing.ContentAlignment.TopLeft; title1.Font = new System.Drawing.Font("Trebuchet MS", 14.25F, System.Drawing.FontStyle.Bold); title1.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(26)))), ((int)(((byte)(59)))), ((int)(((byte)(105))))); title1.Name = "Title1"; title1.ShadowColor = System.Drawing.Color.FromArgb(((int)(((byte)(32)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); title1.ShadowOffset = 3; title1.Text = "Chart Control for .NET Framework"; title2.Docking = System.Windows.Forms.DataVisualization.Charting.Docking.Left; title2.Font = new System.Drawing.Font("Trebuchet MS", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); title2.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(26)))), ((int)(((byte)(59)))), ((int)(((byte)(105))))); title2.Name = "Title2"; title2.ShadowOffset = -1; title2.Text = "SIDEBAR"; title3.Alignment = System.Drawing.ContentAlignment.MiddleRight; title3.Docking = System.Windows.Forms.DataVisualization.Charting.Docking.Bottom; title3.Font = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); title3.Name = "Title3"; title3.Text = "© Microsoft Corporation"; this.Chart1.Titles.Add(title1); this.Chart1.Titles.Add(title2); this.Chart1.Titles.Add(title3); // // MultipleTitles // this.Controls.Add(this.Chart1); this.Controls.Add(this.panel1); this.Controls.Add(this.label9); this.Font = new System.Drawing.Font("Verdana", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.Name = "MultipleTitles"; this.Size = new System.Drawing.Size(728, 480); this.Load += new System.EventHandler(this.MultipleTitles_Load); this.panel1.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.Chart1)).EndInit(); this.ResumeLayout(false); }
private void FinancialChartType_Load(object sender, System.EventArgs e) { // Get image path System.Windows.Forms.DataVisualization.Charting.Utilities.SampleMain.MainForm mainForm = (System.Windows.Forms.DataVisualization.Charting.Utilities.SampleMain.MainForm)this.ParentForm; string imagePath = mainForm.CurrentSamplePath; imagePath += "\\"; // Add custom legend items LegendItem legendItem = new LegendItem(); legendItem.Name = "Dividend"; legendItem.ImageStyle = LegendImageStyle.Marker; legendItem.MarkerImageTransparentColor = Color.White; legendItem.MarkerImage = imagePath + "DividentLegend.bmp"; chart1.Legends[0].CustomItems.Add(legendItem); legendItem = new LegendItem(); legendItem.Name = "Split"; legendItem.ImageStyle = LegendImageStyle.Marker; legendItem.MarkerImageTransparentColor = Color.White; legendItem.MarkerImage = imagePath + "SplitLegend.bmp"; chart1.Legends[0].CustomItems.Add(legendItem); // Populate series data FillData(); SetMarkers(); // Save default appearance chart1.Serializer.Save(defaultViewStyleStream); comboBoxChartType.SelectedIndex = 0; comboBoxMarks.SelectedIndex = 0; }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { System.Windows.Forms.DataVisualization.Charting.ChartArea chartArea1 = new System.Windows.Forms.DataVisualization.Charting.ChartArea(); System.Windows.Forms.DataVisualization.Charting.CustomLabel customLabel1 = new System.Windows.Forms.DataVisualization.Charting.CustomLabel(); System.Windows.Forms.DataVisualization.Charting.CustomLabel customLabel2 = new System.Windows.Forms.DataVisualization.Charting.CustomLabel(); System.Windows.Forms.DataVisualization.Charting.CustomLabel customLabel3 = new System.Windows.Forms.DataVisualization.Charting.CustomLabel(); System.Windows.Forms.DataVisualization.Charting.CustomLabel customLabel4 = new System.Windows.Forms.DataVisualization.Charting.CustomLabel(); System.Windows.Forms.DataVisualization.Charting.Legend legend1 = new System.Windows.Forms.DataVisualization.Charting.Legend(); System.Windows.Forms.DataVisualization.Charting.Legend legend2 = new System.Windows.Forms.DataVisualization.Charting.Legend(); System.Windows.Forms.DataVisualization.Charting.Legend legend3 = new System.Windows.Forms.DataVisualization.Charting.Legend(); System.Windows.Forms.DataVisualization.Charting.LegendItem legendItem1 = new System.Windows.Forms.DataVisualization.Charting.LegendItem(); System.Windows.Forms.DataVisualization.Charting.LegendItem legendItem2 = new System.Windows.Forms.DataVisualization.Charting.LegendItem(); System.Windows.Forms.DataVisualization.Charting.LegendItem legendItem3 = new System.Windows.Forms.DataVisualization.Charting.LegendItem(); System.Windows.Forms.DataVisualization.Charting.Series series1 = new System.Windows.Forms.DataVisualization.Charting.Series(); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint1 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(1, 70); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint2 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(2, 80); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint3 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(3, 70); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint4 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(4, 85); System.Windows.Forms.DataVisualization.Charting.Series series2 = new System.Windows.Forms.DataVisualization.Charting.Series(); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint5 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(1, 65); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint6 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(2, 70); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint7 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(3, 60); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint8 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(4, 75); System.Windows.Forms.DataVisualization.Charting.Series series3 = new System.Windows.Forms.DataVisualization.Charting.Series(); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint9 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(1, 50); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint10 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(2, 55); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint11 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(3, 40); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint12 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(4, 70); System.Windows.Forms.DataVisualization.Charting.Title title1 = new System.Windows.Forms.DataVisualization.Charting.Title(); this.label9 = new System.Windows.Forms.Label(); this.panel1 = new System.Windows.Forms.Panel(); this.label2 = new System.Windows.Forms.Label(); this.label1 = new System.Windows.Forms.Label(); this.GraphicsAntiAliasing = new System.Windows.Forms.ComboBox(); this.TextAntiAliasing = new System.Windows.Forms.ComboBox(); this.Chart1 = new System.Windows.Forms.DataVisualization.Charting.Chart(); this.panel1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.Chart1)).BeginInit(); this.SuspendLayout(); // // label9 // this.label9.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.label9.Font = new System.Drawing.Font("Verdana", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label9.Location = new System.Drawing.Point(16, 8); this.label9.Name = "label9"; this.label9.Size = new System.Drawing.Size(696, 32); this.label9.TabIndex = 0; this.label9.Text = "This sample demonstrates how to set the anti aliasing mode for graphics and text." + ""; this.label9.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // panel1 // this.panel1.Controls.Add(this.label2); this.panel1.Controls.Add(this.label1); this.panel1.Controls.Add(this.GraphicsAntiAliasing); this.panel1.Controls.Add(this.TextAntiAliasing); this.panel1.Location = new System.Drawing.Point(432, 56); this.panel1.Name = "panel1"; this.panel1.Size = new System.Drawing.Size(292, 288); this.panel1.TabIndex = 2; // // label2 // this.label2.Location = new System.Drawing.Point(0, 11); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(160, 16); this.label2.TabIndex = 0; this.label2.Text = "&Graphics Anti Aliasing:"; this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // label1 // this.label1.Location = new System.Drawing.Point(8, 43); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(152, 16); this.label1.TabIndex = 2; this.label1.Text = "&Text Anti Aliasing:"; this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // GraphicsAntiAliasing // this.GraphicsAntiAliasing.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.GraphicsAntiAliasing.Items.AddRange(new object[] { "Text", "Graphics", "All", "None"}); this.GraphicsAntiAliasing.Location = new System.Drawing.Point(168, 8); this.GraphicsAntiAliasing.Name = "GraphicsAntiAliasing"; this.GraphicsAntiAliasing.Size = new System.Drawing.Size(121, 22); this.GraphicsAntiAliasing.TabIndex = 1; this.GraphicsAntiAliasing.SelectedIndexChanged += new System.EventHandler(this.GraphicsAntiAliasing_SelectedIndexChanged); // // TextAntiAliasing // this.TextAntiAliasing.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.TextAntiAliasing.Items.AddRange(new object[] { "Normal", "High", "SystemDefault"}); this.TextAntiAliasing.Location = new System.Drawing.Point(168, 40); this.TextAntiAliasing.Name = "TextAntiAliasing"; this.TextAntiAliasing.Size = new System.Drawing.Size(120, 22); this.TextAntiAliasing.TabIndex = 3; this.TextAntiAliasing.SelectedIndexChanged += new System.EventHandler(this.TextAntiAliasing_SelectedIndexChanged); // // Chart1 // this.Chart1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(243)))), ((int)(((byte)(223)))), ((int)(((byte)(193))))); this.Chart1.BackGradientStyle = System.Windows.Forms.DataVisualization.Charting.GradientStyle.TopBottom; this.Chart1.BorderlineColor = System.Drawing.Color.FromArgb(((int)(((byte)(181)))), ((int)(((byte)(64)))), ((int)(((byte)(1))))); this.Chart1.BorderlineDashStyle = System.Windows.Forms.DataVisualization.Charting.ChartDashStyle.Solid; this.Chart1.BorderlineWidth = 2; this.Chart1.BorderSkin.SkinStyle = System.Windows.Forms.DataVisualization.Charting.BorderSkinStyle.Emboss; chartArea1.Area3DStyle.Enable3D = true; chartArea1.Area3DStyle.Inclination = 15; chartArea1.Area3DStyle.IsClustered = true; chartArea1.Area3DStyle.IsRightAngleAxes = false; chartArea1.Area3DStyle.Perspective = 10; chartArea1.Area3DStyle.PointGapDepth = 0; chartArea1.Area3DStyle.Rotation = 5; chartArea1.Area3DStyle.WallWidth = 0; customLabel1.FromPosition = 0.5; customLabel1.Text = "John"; customLabel1.ToPosition = 1.5; customLabel2.FromPosition = 1.5; customLabel2.Text = "Mary"; customLabel2.ToPosition = 2.5; customLabel3.FromPosition = 2.5; customLabel3.Text = "Jeff"; customLabel3.ToPosition = 3.5; customLabel4.FromPosition = 3.5; customLabel4.Text = "Bob"; customLabel4.ToPosition = 4.5; chartArea1.AxisX.CustomLabels.Add(customLabel1); chartArea1.AxisX.CustomLabels.Add(customLabel2); chartArea1.AxisX.CustomLabels.Add(customLabel3); chartArea1.AxisX.CustomLabels.Add(customLabel4); chartArea1.AxisX.Interval = 1; chartArea1.AxisX.IsLabelAutoFit = false; chartArea1.AxisX.LabelStyle.Font = new System.Drawing.Font("Trebuchet MS", 8.25F); chartArea1.AxisX.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea1.AxisX.MajorGrid.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea1.AxisY.IsLabelAutoFit = false; chartArea1.AxisY.LabelStyle.Font = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold); chartArea1.AxisY.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea1.AxisY.MajorGrid.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea1.BackColor = System.Drawing.Color.OldLace; chartArea1.BackSecondaryColor = System.Drawing.Color.White; chartArea1.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea1.Name = "Default"; chartArea1.Position.Auto = false; chartArea1.Position.Height = 75F; chartArea1.Position.Width = 100F; chartArea1.Position.Y = 8F; chartArea1.ShadowColor = System.Drawing.Color.Transparent; this.Chart1.ChartAreas.Add(chartArea1); legend1.BackColor = System.Drawing.Color.Transparent; legend1.Enabled = false; legend1.LegendStyle = System.Windows.Forms.DataVisualization.Charting.LegendStyle.Row; legend1.Name = "Default"; legend1.Position.Auto = false; legend1.Position.Height = 5F; legend1.Position.Width = 40F; legend1.Position.X = 5F; legend1.Position.Y = 85F; legend2.Enabled = false; legend2.Name = "Legend2"; legend3.BackColor = System.Drawing.Color.Transparent; legendItem1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(65)))), ((int)(((byte)(140)))), ((int)(((byte)(240))))); legendItem1.Name = "Previous Month Avg"; legendItem2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(252)))), ((int)(((byte)(180)))), ((int)(((byte)(65))))); legendItem2.Name = "Last Week"; legendItem3.Color = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(64)))), ((int)(((byte)(10))))); legendItem3.Name = "This Week"; legend3.CustomItems.Add(legendItem1); legend3.CustomItems.Add(legendItem2); legend3.CustomItems.Add(legendItem3); legend3.Font = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold); legend3.IsTextAutoFit = false; legend3.LegendStyle = System.Windows.Forms.DataVisualization.Charting.LegendStyle.Row; legend3.Name = "Legend3"; legend3.Position.Auto = false; legend3.Position.Height = 12F; legend3.Position.Width = 90F; legend3.Position.X = 5F; legend3.Position.Y = 85F; this.Chart1.Legends.Add(legend1); this.Chart1.Legends.Add(legend2); this.Chart1.Legends.Add(legend3); this.Chart1.Location = new System.Drawing.Point(16, 48); this.Chart1.Name = "Chart1"; this.Chart1.Palette = System.Windows.Forms.DataVisualization.Charting.ChartColorPalette.Pastel; series1.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(180)))), ((int)(((byte)(26)))), ((int)(((byte)(59)))), ((int)(((byte)(105))))); series1.ChartArea = "Default"; series1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(220)))), ((int)(((byte)(65)))), ((int)(((byte)(140)))), ((int)(((byte)(240))))); series1.CustomProperties = "DrawingStyle=Cylinder"; series1.Legend = "Legend2"; series1.Name = "Series2"; series1.Points.Add(dataPoint1); series1.Points.Add(dataPoint2); series1.Points.Add(dataPoint3); series1.Points.Add(dataPoint4); series1.ShadowColor = System.Drawing.Color.Transparent; series1.XValueType = System.Windows.Forms.DataVisualization.Charting.ChartValueType.Double; series1.YValueType = System.Windows.Forms.DataVisualization.Charting.ChartValueType.Double; series2.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); series2.ChartArea = "Default"; series2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(220)))), ((int)(((byte)(252)))), ((int)(((byte)(180)))), ((int)(((byte)(65))))); series2.CustomProperties = "DrawingStyle=Cylinder"; series2.Legend = "Default"; series2.Name = "Series3"; series2.Points.Add(dataPoint5); series2.Points.Add(dataPoint6); series2.Points.Add(dataPoint7); series2.Points.Add(dataPoint8); series3.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); series3.ChartArea = "Default"; series3.Color = System.Drawing.Color.FromArgb(((int)(((byte)(220)))), ((int)(((byte)(224)))), ((int)(((byte)(64)))), ((int)(((byte)(10))))); series3.CustomProperties = "DrawingStyle=Cylinder"; series3.Legend = "Default"; series3.Name = "Series4"; series3.Points.Add(dataPoint9); series3.Points.Add(dataPoint10); series3.Points.Add(dataPoint11); series3.Points.Add(dataPoint12); this.Chart1.Series.Add(series1); this.Chart1.Series.Add(series2); this.Chart1.Series.Add(series3); this.Chart1.Size = new System.Drawing.Size(412, 296); this.Chart1.TabIndex = 1; title1.Alignment = System.Drawing.ContentAlignment.TopCenter; title1.Font = new System.Drawing.Font("Trebuchet MS", 14.25F, System.Drawing.FontStyle.Bold); title1.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(26)))), ((int)(((byte)(59)))), ((int)(((byte)(105))))); title1.Name = "Title1"; title1.Position.Auto = false; title1.Position.Height = 8.738057F; title1.Position.Width = 80F; title1.Position.X = 10F; title1.Position.Y = 4F; title1.ShadowColor = System.Drawing.Color.FromArgb(((int)(((byte)(32)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); title1.ShadowOffset = 3; title1.Text = "Chart Control for .NET Framework"; this.Chart1.Titles.Add(title1); this.Chart1.Click += new System.EventHandler(this.Chart1_Click); // // AntiAliasingSample // this.Controls.Add(this.Chart1); this.Controls.Add(this.panel1); this.Controls.Add(this.label9); this.Font = new System.Drawing.Font("Verdana", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.Name = "AntiAliasingSample"; this.Size = new System.Drawing.Size(728, 480); this.Load += new System.EventHandler(this.AntiAliasingSample_Load); this.panel1.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.Chart1)).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() { System.Windows.Forms.DataVisualization.Charting.ChartArea chartArea1 = new System.Windows.Forms.DataVisualization.Charting.ChartArea(); System.Windows.Forms.DataVisualization.Charting.Legend legend1 = new System.Windows.Forms.DataVisualization.Charting.Legend(); System.Windows.Forms.DataVisualization.Charting.LegendItem legendItem1 = new System.Windows.Forms.DataVisualization.Charting.LegendItem(); System.Windows.Forms.DataVisualization.Charting.LegendCell legendCell1 = new System.Windows.Forms.DataVisualization.Charting.LegendCell(); System.Windows.Forms.DataVisualization.Charting.Margins margins1 = new System.Windows.Forms.DataVisualization.Charting.Margins(); System.Windows.Forms.DataVisualization.Charting.LegendCell legendCell2 = new System.Windows.Forms.DataVisualization.Charting.LegendCell(); System.Windows.Forms.DataVisualization.Charting.LegendItem legendItem2 = new System.Windows.Forms.DataVisualization.Charting.LegendItem(); System.Windows.Forms.DataVisualization.Charting.LegendCell legendCell3 = new System.Windows.Forms.DataVisualization.Charting.LegendCell(); System.Windows.Forms.DataVisualization.Charting.LegendCell legendCell4 = new System.Windows.Forms.DataVisualization.Charting.LegendCell(); System.Windows.Forms.DataVisualization.Charting.LegendItem legendItem3 = new System.Windows.Forms.DataVisualization.Charting.LegendItem(); System.Windows.Forms.DataVisualization.Charting.LegendCell legendCell5 = new System.Windows.Forms.DataVisualization.Charting.LegendCell(); System.Windows.Forms.DataVisualization.Charting.LegendCell legendCell6 = new System.Windows.Forms.DataVisualization.Charting.LegendCell(); System.Windows.Forms.DataVisualization.Charting.LegendItem legendItem4 = new System.Windows.Forms.DataVisualization.Charting.LegendItem(); System.Windows.Forms.DataVisualization.Charting.LegendCell legendCell7 = new System.Windows.Forms.DataVisualization.Charting.LegendCell(); System.Windows.Forms.DataVisualization.Charting.Margins margins2 = new System.Windows.Forms.DataVisualization.Charting.Margins(); System.Windows.Forms.DataVisualization.Charting.LegendCell legendCell8 = new System.Windows.Forms.DataVisualization.Charting.LegendCell(); System.Windows.Forms.DataVisualization.Charting.LegendItem legendItem5 = new System.Windows.Forms.DataVisualization.Charting.LegendItem(); System.Windows.Forms.DataVisualization.Charting.LegendCell legendCell9 = new System.Windows.Forms.DataVisualization.Charting.LegendCell(); System.Windows.Forms.DataVisualization.Charting.LegendCell legendCell10 = new System.Windows.Forms.DataVisualization.Charting.LegendCell(); System.Windows.Forms.DataVisualization.Charting.LegendItem legendItem6 = new System.Windows.Forms.DataVisualization.Charting.LegendItem(); System.Windows.Forms.DataVisualization.Charting.LegendCell legendCell11 = new System.Windows.Forms.DataVisualization.Charting.LegendCell(); System.Windows.Forms.DataVisualization.Charting.LegendCell legendCell12 = new System.Windows.Forms.DataVisualization.Charting.LegendCell(); System.Windows.Forms.DataVisualization.Charting.Series series1 = new System.Windows.Forms.DataVisualization.Charting.Series(); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint1 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 8); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint2 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 14); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint3 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 10); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint4 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 16); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint5 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 13); System.Windows.Forms.DataVisualization.Charting.Series series2 = new System.Windows.Forms.DataVisualization.Charting.Series(); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint6 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 11); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint7 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 7); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint8 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 8); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint9 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 6); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint10 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 7); System.Windows.Forms.DataVisualization.Charting.Series series3 = new System.Windows.Forms.DataVisualization.Charting.Series(); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint11 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 4); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint12 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 3); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint13 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 6); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint14 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 5); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint15 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 3); System.Windows.Forms.DataVisualization.Charting.Series series4 = new System.Windows.Forms.DataVisualization.Charting.Series(); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint16 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 5); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint17 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 6); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint18 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 14); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint19 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 8); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint20 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 9); this.label9 = new System.Windows.Forms.Label(); this.chart2 = new System.Windows.Forms.DataVisualization.Charting.Chart(); this.panel1 = new System.Windows.Forms.Panel(); ((System.ComponentModel.ISupportInitialize)(this.chart2)).BeginInit(); this.SuspendLayout(); // // label9 // this.label9.Font = new System.Drawing.Font("Verdana", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0))); this.label9.Location = new System.Drawing.Point(16, 16); this.label9.Name = "label9"; this.label9.Size = new System.Drawing.Size(702, 32); this.label9.TabIndex = 0; this.label9.Text = "This sample demonstrates the cell span feature of the legend."; this.label9.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // chart2 // this.chart2.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(211)), ((System.Byte)(223)), ((System.Byte)(240))); this.chart2.BackSecondaryColor = System.Drawing.Color.White; this.chart2.BackGradientStyle = System.Windows.Forms.DataVisualization.Charting.GradientStyle.TopBottom; this.chart2.BorderlineColor = System.Drawing.Color.FromArgb(((System.Byte)(26)), ((System.Byte)(59)), ((System.Byte)(105))); this.chart2.BorderlineDashStyle = System.Windows.Forms.DataVisualization.Charting.ChartDashStyle.Solid; this.chart2.BorderlineWidth = 2; this.chart2.BorderSkin.SkinStyle = System.Windows.Forms.DataVisualization.Charting.BorderSkinStyle.Emboss; chartArea1.Area3DStyle.IsClustered = true; chartArea1.Area3DStyle.Enable3D = true; chartArea1.Area3DStyle.Perspective = 10; chartArea1.Area3DStyle.IsRightAngleAxes = false; chartArea1.Area3DStyle.WallWidth = 0; chartArea1.Area3DStyle.Inclination = 15; chartArea1.Area3DStyle.Rotation = 10; chartArea1.AxisX.LabelAutoFitMaxFontSize = 8; chartArea1.AxisX.LabelStyle.Font = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold); chartArea1.AxisX.LabelStyle.Format = "MMM dd"; chartArea1.AxisX.LabelStyle.IsEndLabelVisible = false; chartArea1.AxisX.LineColor = System.Drawing.Color.FromArgb(((System.Byte)(64)), ((System.Byte)(64)), ((System.Byte)(64)), ((System.Byte)(64))); chartArea1.AxisX.MajorGrid.LineColor = System.Drawing.Color.FromArgb(((System.Byte)(64)), ((System.Byte)(64)), ((System.Byte)(64)), ((System.Byte)(64))); chartArea1.AxisY.LabelAutoFitMaxFontSize = 7; chartArea1.AxisY.LabelStyle.Font = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold); chartArea1.AxisY.LineColor = System.Drawing.Color.FromArgb(((System.Byte)(64)), ((System.Byte)(64)), ((System.Byte)(64)), ((System.Byte)(64))); chartArea1.AxisY.MajorGrid.LineColor = System.Drawing.Color.FromArgb(((System.Byte)(64)), ((System.Byte)(64)), ((System.Byte)(64)), ((System.Byte)(64))); chartArea1.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(64)), ((System.Byte)(165)), ((System.Byte)(191)), ((System.Byte)(228))); chartArea1.BackSecondaryColor = System.Drawing.Color.White; chartArea1.BackGradientStyle = System.Windows.Forms.DataVisualization.Charting.GradientStyle.TopBottom; chartArea1.BorderColor = System.Drawing.Color.FromArgb(((System.Byte)(64)), ((System.Byte)(64)), ((System.Byte)(64)), ((System.Byte)(64))); chartArea1.Name = "Default"; chartArea1.ShadowColor = System.Drawing.Color.Transparent; this.chart2.ChartAreas.Add(chartArea1); legend1.Alignment = System.Drawing.StringAlignment.Center; legend1.IsTextAutoFit = false; legend1.BackColor = System.Drawing.Color.Transparent; legendCell1.Alignment = System.Drawing.ContentAlignment.MiddleLeft; legendCell1.CellSpan = 2; margins1.Bottom = 15; margins1.Left = 15; margins1.Right = 15; legendCell1.Margins = margins1; legendCell1.Name = "Cell1"; legendCell1.Text = "North America"; legendCell2.Name = "Cell2"; legendItem1.Cells.Add(legendCell1); legendItem1.Cells.Add(legendCell2); legendItem1.Name = "North America"; legendItem2.BorderColor = System.Drawing.Color.FromArgb(((System.Byte)(200)), ((System.Byte)(26)), ((System.Byte)(59)), ((System.Byte)(105))); legendCell3.Alignment = System.Drawing.ContentAlignment.MiddleLeft; legendCell3.CellType = System.Windows.Forms.DataVisualization.Charting.LegendCellType.SeriesSymbol; legendCell3.Name = "Cell1"; legendCell3.SeriesSymbolSize = new System.Drawing.Size(200, 50); legendCell4.Alignment = System.Drawing.ContentAlignment.MiddleLeft; legendCell4.Name = "Cell2"; legendCell4.SeriesSymbolSize = new System.Drawing.Size(200, 100); legendCell4.Text = "Country 1"; legendItem2.Cells.Add(legendCell3); legendItem2.Cells.Add(legendCell4); legendItem2.Color = System.Drawing.Color.FromArgb(((System.Byte)(200)), ((System.Byte)(65)), ((System.Byte)(140)), ((System.Byte)(240))); legendItem2.Name = "LightBlue"; legendItem3.BorderColor = System.Drawing.Color.FromArgb(((System.Byte)(200)), ((System.Byte)(26)), ((System.Byte)(59)), ((System.Byte)(105))); legendCell5.Alignment = System.Drawing.ContentAlignment.MiddleLeft; legendCell5.CellType = System.Windows.Forms.DataVisualization.Charting.LegendCellType.SeriesSymbol; legendCell5.Name = "Cell1"; legendCell5.SeriesSymbolSize = new System.Drawing.Size(200, 50); legendCell6.Alignment = System.Drawing.ContentAlignment.MiddleLeft; legendCell6.Name = "Cell2"; legendCell6.Text = "Country 2"; legendItem3.Cells.Add(legendCell5); legendItem3.Cells.Add(legendCell6); legendItem3.Color = System.Drawing.Color.FromArgb(((System.Byte)(200)), ((System.Byte)(252)), ((System.Byte)(180)), ((System.Byte)(65))); legendItem3.Name = "Gold"; legendCell7.Alignment = System.Drawing.ContentAlignment.MiddleLeft; legendCell7.CellSpan = 2; legendCell7.Font = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0))); margins2.Bottom = 15; margins2.Left = 15; margins2.Right = 15; margins2.Top = 200; legendCell7.Margins = margins2; legendCell7.Name = "Cell1"; legendCell7.Text = "South America"; legendCell8.Name = "Cell2"; legendItem4.Cells.Add(legendCell7); legendItem4.Cells.Add(legendCell8); legendItem4.Name = "South America"; legendItem5.BorderColor = System.Drawing.Color.FromArgb(((System.Byte)(200)), ((System.Byte)(26)), ((System.Byte)(59)), ((System.Byte)(105))); legendCell9.Alignment = System.Drawing.ContentAlignment.MiddleLeft; legendCell9.CellType = System.Windows.Forms.DataVisualization.Charting.LegendCellType.SeriesSymbol; legendCell9.Name = "Cell1"; legendCell9.SeriesSymbolSize = new System.Drawing.Size(200, 50); legendCell10.Alignment = System.Drawing.ContentAlignment.MiddleLeft; legendCell10.Name = "Cell2"; legendCell10.Text = "Country 3"; legendItem5.Cells.Add(legendCell9); legendItem5.Cells.Add(legendCell10); legendItem5.Color = System.Drawing.Color.FromArgb(((System.Byte)(224)), ((System.Byte)(64)), ((System.Byte)(10))); legendItem5.Name = "Red"; legendItem6.BorderColor = System.Drawing.Color.FromArgb(((System.Byte)(200)), ((System.Byte)(26)), ((System.Byte)(59)), ((System.Byte)(105))); legendCell11.Alignment = System.Drawing.ContentAlignment.MiddleLeft; legendCell11.CellType = System.Windows.Forms.DataVisualization.Charting.LegendCellType.SeriesSymbol; legendCell11.Name = "Cell1"; legendCell11.SeriesSymbolSize = new System.Drawing.Size(200, 50); legendCell12.Alignment = System.Drawing.ContentAlignment.MiddleLeft; legendCell12.Name = "Cell2"; legendCell12.Text = "Country 4"; legendItem6.Cells.Add(legendCell11); legendItem6.Cells.Add(legendCell12); legendItem6.Color = System.Drawing.Color.FromArgb(((System.Byte)(26)), ((System.Byte)(59)), ((System.Byte)(105))); legendItem6.Name = "DarkBlue"; legend1.CustomItems.Add(legendItem1); legend1.CustomItems.Add(legendItem2); legend1.CustomItems.Add(legendItem3); legend1.CustomItems.Add(legendItem4); legend1.CustomItems.Add(legendItem5); legend1.CustomItems.Add(legendItem6); legend1.Font = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold); legend1.Name = "Default"; legend1.TitleFont = new System.Drawing.Font("Microsoft Sans Serif", 8F, System.Drawing.FontStyle.Bold); this.chart2.Legends.Add(legend1); this.chart2.Location = new System.Drawing.Point(16, 56); this.chart2.Name = "chart2"; this.chart2.Palette = System.Windows.Forms.DataVisualization.Charting.ChartColorPalette.BrightPastel; series1.BorderColor = System.Drawing.Color.FromArgb(((System.Byte)(180)), ((System.Byte)(26)), ((System.Byte)(59)), ((System.Byte)(105))); series1.ChartArea = "Default"; series1.ChartType = SeriesChartType.StackedBar; series1.CustomProperties = "DrawingStyle=Cylinder"; series1.Name = "B-1"; series1.Points.Add(dataPoint1); series1.Points.Add(dataPoint2); series1.Points.Add(dataPoint3); series1.Points.Add(dataPoint4); series1.Points.Add(dataPoint5); series1.ShadowColor = System.Drawing.Color.FromArgb(((System.Byte)(64)), ((System.Byte)(0)), ((System.Byte)(0)), ((System.Byte)(0))); series1.IsVisibleInLegend = false; series1.XValueType = System.Windows.Forms.DataVisualization.Charting.ChartValueType.DateTime; series1.YValueType = System.Windows.Forms.DataVisualization.Charting.ChartValueType.Double; series2.BorderColor = System.Drawing.Color.FromArgb(((System.Byte)(180)), ((System.Byte)(26)), ((System.Byte)(59)), ((System.Byte)(105))); series2.ChartArea = "Default"; series2.ChartType = SeriesChartType.StackedBar; series2.CustomProperties = "DrawingStyle=Cylinder"; series2.Name = "A-1"; series2.Points.Add(dataPoint6); series2.Points.Add(dataPoint7); series2.Points.Add(dataPoint8); series2.Points.Add(dataPoint9); series2.Points.Add(dataPoint10); series2.IsVisibleInLegend = false; series2.XValueType = System.Windows.Forms.DataVisualization.Charting.ChartValueType.DateTime; series2.YValueType = System.Windows.Forms.DataVisualization.Charting.ChartValueType.Double; series3.BorderColor = System.Drawing.Color.FromArgb(((System.Byte)(180)), ((System.Byte)(26)), ((System.Byte)(59)), ((System.Byte)(105))); series3.ChartArea = "Default"; series3.ChartType = SeriesChartType.StackedBar; series3.CustomProperties = "DrawingStyle=Cylinder"; series3.Name = "A-2"; series3.Points.Add(dataPoint11); series3.Points.Add(dataPoint12); series3.Points.Add(dataPoint13); series3.Points.Add(dataPoint14); series3.Points.Add(dataPoint15); series3.IsVisibleInLegend = false; series3.XValueType = System.Windows.Forms.DataVisualization.Charting.ChartValueType.DateTime; series3.YValueType = System.Windows.Forms.DataVisualization.Charting.ChartValueType.Double; series4.BorderColor = System.Drawing.Color.FromArgb(((System.Byte)(180)), ((System.Byte)(26)), ((System.Byte)(59)), ((System.Byte)(105))); series4.ChartArea = "Default"; series4.ChartType = SeriesChartType.StackedBar; series4.Color = System.Drawing.Color.FromArgb(((System.Byte)(26)), ((System.Byte)(59)), ((System.Byte)(105))); series4.CustomProperties = "DrawingStyle=Cylinder"; series4.Name = "B-2"; series4.Points.Add(dataPoint16); series4.Points.Add(dataPoint17); series4.Points.Add(dataPoint18); series4.Points.Add(dataPoint19); series4.Points.Add(dataPoint20); series4.ShadowColor = System.Drawing.Color.FromArgb(((System.Byte)(64)), ((System.Byte)(0)), ((System.Byte)(0)), ((System.Byte)(0))); series4.IsVisibleInLegend = false; series4.XValueType = System.Windows.Forms.DataVisualization.Charting.ChartValueType.DateTime; series4.YValueType = System.Windows.Forms.DataVisualization.Charting.ChartValueType.Double; this.chart2.Series.Add(series1); this.chart2.Series.Add(series2); this.chart2.Series.Add(series3); this.chart2.Series.Add(series4); this.chart2.Size = new System.Drawing.Size(412, 296); this.chart2.TabIndex = 1; // // panel1 // this.panel1.Location = new System.Drawing.Point(432, 56); this.panel1.Name = "panel1"; this.panel1.Size = new System.Drawing.Size(292, 296); this.panel1.TabIndex = 2; // // LegendCellSpan // this.Controls.AddRange(new System.Windows.Forms.Control[] { this.panel1, this.chart2, this.label9 }); this.Font = new System.Drawing.Font("Verdana", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0))); this.Name = "LegendCellSpan"; this.Size = new System.Drawing.Size(728, 392); ((System.ComponentModel.ISupportInitialize)(this.chart2)).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() { System.Windows.Forms.DataVisualization.Charting.ChartArea chartArea1 = new System.Windows.Forms.DataVisualization.Charting.ChartArea(); System.Windows.Forms.DataVisualization.Charting.Legend legend1 = new System.Windows.Forms.DataVisualization.Charting.Legend(); System.Windows.Forms.DataVisualization.Charting.LegendItem legendItem1 = new System.Windows.Forms.DataVisualization.Charting.LegendItem(); System.Windows.Forms.DataVisualization.Charting.LegendCell legendCell1 = new System.Windows.Forms.DataVisualization.Charting.LegendCell(); System.Windows.Forms.DataVisualization.Charting.LegendCell legendCell2 = new System.Windows.Forms.DataVisualization.Charting.LegendCell(); System.Windows.Forms.DataVisualization.Charting.LegendCell legendCell3 = new System.Windows.Forms.DataVisualization.Charting.LegendCell(); System.Windows.Forms.DataVisualization.Charting.LegendItem legendItem2 = new System.Windows.Forms.DataVisualization.Charting.LegendItem(); System.Windows.Forms.DataVisualization.Charting.LegendCell legendCell4 = new System.Windows.Forms.DataVisualization.Charting.LegendCell(); System.Windows.Forms.DataVisualization.Charting.LegendCell legendCell5 = new System.Windows.Forms.DataVisualization.Charting.LegendCell(); System.Windows.Forms.DataVisualization.Charting.LegendCell legendCell6 = new System.Windows.Forms.DataVisualization.Charting.LegendCell(); System.Windows.Forms.DataVisualization.Charting.LegendItem legendItem3 = new System.Windows.Forms.DataVisualization.Charting.LegendItem(); System.Windows.Forms.DataVisualization.Charting.LegendCell legendCell7 = new System.Windows.Forms.DataVisualization.Charting.LegendCell(); System.Windows.Forms.DataVisualization.Charting.LegendCell legendCell8 = new System.Windows.Forms.DataVisualization.Charting.LegendCell(); System.Windows.Forms.DataVisualization.Charting.LegendCell legendCell9 = new System.Windows.Forms.DataVisualization.Charting.LegendCell(); System.Windows.Forms.DataVisualization.Charting.LegendItem legendItem4 = new System.Windows.Forms.DataVisualization.Charting.LegendItem(); System.Windows.Forms.DataVisualization.Charting.LegendCell legendCell10 = new System.Windows.Forms.DataVisualization.Charting.LegendCell(); System.Windows.Forms.DataVisualization.Charting.LegendCell legendCell11 = new System.Windows.Forms.DataVisualization.Charting.LegendCell(); System.Windows.Forms.DataVisualization.Charting.LegendCell legendCell12 = new System.Windows.Forms.DataVisualization.Charting.LegendCell(); System.Windows.Forms.DataVisualization.Charting.LegendItem legendItem5 = new System.Windows.Forms.DataVisualization.Charting.LegendItem(); System.Windows.Forms.DataVisualization.Charting.LegendCell legendCell13 = new System.Windows.Forms.DataVisualization.Charting.LegendCell(); System.Windows.Forms.DataVisualization.Charting.LegendCell legendCell14 = new System.Windows.Forms.DataVisualization.Charting.LegendCell(); System.Windows.Forms.DataVisualization.Charting.LegendCell legendCell15 = new System.Windows.Forms.DataVisualization.Charting.LegendCell(); System.Windows.Forms.DataVisualization.Charting.Series series1 = new System.Windows.Forms.DataVisualization.Charting.Series(); this.chart1 = new System.Windows.Forms.DataVisualization.Charting.Chart(); this.labelSampleComment = new System.Windows.Forms.Label(); this.panel1 = new System.Windows.Forms.Panel(); this.buttonRandomData = new System.Windows.Forms.Button(); this.checkBoxFilterHistoricalData = new System.Windows.Forms.CheckBox(); this.checkBoxStartFromFirst = new System.Windows.Forms.CheckBox(); this.comboBoxPeriod = new System.Windows.Forms.ComboBox(); this.label1 = new System.Windows.Forms.Label(); this.label3 = new System.Windows.Forms.Label(); ((System.ComponentModel.ISupportInitialize)(this.chart1)).BeginInit(); this.panel1.SuspendLayout(); this.SuspendLayout(); // // chart1 // this.chart1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(243)))), ((int)(((byte)(223)))), ((int)(((byte)(193))))); this.chart1.BackGradientStyle = System.Windows.Forms.DataVisualization.Charting.GradientStyle.TopBottom; this.chart1.BorderlineColor = System.Drawing.Color.FromArgb(((int)(((byte)(181)))), ((int)(((byte)(64)))), ((int)(((byte)(1))))); this.chart1.BorderlineDashStyle = System.Windows.Forms.DataVisualization.Charting.ChartDashStyle.Solid; this.chart1.BorderlineWidth = 2; this.chart1.BorderSkin.SkinStyle = System.Windows.Forms.DataVisualization.Charting.BorderSkinStyle.Emboss; chartArea1.Area3DStyle.Inclination = 15; chartArea1.Area3DStyle.IsClustered = true; chartArea1.Area3DStyle.IsRightAngleAxes = false; chartArea1.Area3DStyle.Perspective = 10; chartArea1.Area3DStyle.Rotation = 10; chartArea1.Area3DStyle.WallWidth = 0; chartArea1.AxisX.LabelAutoFitStyle = ((System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles)((((System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles.DecreaseFont | System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles.StaggeredLabels) | System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles.LabelsAngleStep30) | System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles.WordWrap))); chartArea1.AxisX.LabelStyle.Font = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold); chartArea1.AxisX.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea1.AxisX.MajorGrid.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea1.AxisX2.LabelAutoFitStyle = ((System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles)((((System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles.DecreaseFont | System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles.StaggeredLabels) | System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles.LabelsAngleStep30) | System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles.WordWrap))); chartArea1.AxisY.IsStartedFromZero = false; chartArea1.AxisY.LabelAutoFitStyle = ((System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles)((((System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles.DecreaseFont | System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles.StaggeredLabels) | System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles.LabelsAngleStep30) | System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles.WordWrap))); chartArea1.AxisY.LabelStyle.Font = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold); chartArea1.AxisY.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea1.AxisY.MajorGrid.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea1.AxisY2.LabelAutoFitStyle = ((System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles)((((System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles.DecreaseFont | System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles.StaggeredLabels) | System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles.LabelsAngleStep30) | System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles.WordWrap))); chartArea1.BackColor = System.Drawing.Color.OldLace; chartArea1.BackGradientStyle = System.Windows.Forms.DataVisualization.Charting.GradientStyle.TopBottom; chartArea1.BackSecondaryColor = System.Drawing.Color.White; chartArea1.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea1.BorderDashStyle = System.Windows.Forms.DataVisualization.Charting.ChartDashStyle.Solid; chartArea1.Name = "Default"; chartArea1.ShadowColor = System.Drawing.Color.Transparent; this.chart1.ChartAreas.Add(chartArea1); legend1.BackColor = System.Drawing.Color.Transparent; legend1.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); legendItem1.BorderWidth = 2; legendCell1.CellType = System.Windows.Forms.DataVisualization.Charting.LegendCellType.Image; legendCell1.Name = "Cell1"; legendCell2.CellType = System.Windows.Forms.DataVisualization.Charting.LegendCellType.SeriesSymbol; legendCell2.Name = "Cell2"; legendCell3.Alignment = System.Drawing.ContentAlignment.MiddleLeft; legendCell3.Name = "Cell3"; legendCell3.Text = "Input"; legendItem1.Cells.Add(legendCell1); legendItem1.Cells.Add(legendCell2); legendItem1.Cells.Add(legendCell3); legendItem1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(65)))), ((int)(((byte)(140)))), ((int)(((byte)(240))))); legendItem1.ImageStyle = System.Windows.Forms.DataVisualization.Charting.LegendImageStyle.Line; legendItem1.MarkerSize = 10; legendItem1.MarkerStyle = System.Windows.Forms.DataVisualization.Charting.MarkerStyle.Circle; legendItem1.Name = "Input"; legendItem2.BorderWidth = 2; legendCell4.CellType = System.Windows.Forms.DataVisualization.Charting.LegendCellType.Image; legendCell4.Name = "Cell1"; legendCell5.CellType = System.Windows.Forms.DataVisualization.Charting.LegendCellType.SeriesSymbol; legendCell5.Name = "Cell2"; legendCell6.Alignment = System.Drawing.ContentAlignment.MiddleLeft; legendCell6.Name = "Cell3"; legendCell6.Text = "Simple"; legendItem2.Cells.Add(legendCell4); legendItem2.Cells.Add(legendCell5); legendItem2.Cells.Add(legendCell6); legendItem2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(252)))), ((int)(((byte)(180)))), ((int)(((byte)(65))))); legendItem2.ImageStyle = System.Windows.Forms.DataVisualization.Charting.LegendImageStyle.Line; legendItem2.MarkerSize = 10; legendItem2.MarkerStyle = System.Windows.Forms.DataVisualization.Charting.MarkerStyle.Circle; legendItem2.Name = "Simple"; legendItem3.BorderWidth = 2; legendCell7.CellType = System.Windows.Forms.DataVisualization.Charting.LegendCellType.Image; legendCell7.Name = "Cell1"; legendCell8.CellType = System.Windows.Forms.DataVisualization.Charting.LegendCellType.SeriesSymbol; legendCell8.Name = "Cell2"; legendCell9.Alignment = System.Drawing.ContentAlignment.MiddleLeft; legendCell9.Name = "Cell3"; legendCell9.Text = "Exponential"; legendItem3.Cells.Add(legendCell7); legendItem3.Cells.Add(legendCell8); legendItem3.Cells.Add(legendCell9); legendItem3.Color = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(64)))), ((int)(((byte)(10))))); legendItem3.ImageStyle = System.Windows.Forms.DataVisualization.Charting.LegendImageStyle.Line; legendItem3.MarkerSize = 10; legendItem3.MarkerStyle = System.Windows.Forms.DataVisualization.Charting.MarkerStyle.Circle; legendItem3.Name = "Exponential"; legendItem4.BorderWidth = 2; legendCell10.CellType = System.Windows.Forms.DataVisualization.Charting.LegendCellType.Image; legendCell10.Name = "Cell1"; legendCell11.CellType = System.Windows.Forms.DataVisualization.Charting.LegendCellType.SeriesSymbol; legendCell11.Name = "Cell2"; legendCell12.Alignment = System.Drawing.ContentAlignment.MiddleLeft; legendCell12.Name = "Cell3"; legendCell12.Text = "Triangular"; legendItem4.Cells.Add(legendCell10); legendItem4.Cells.Add(legendCell11); legendItem4.Cells.Add(legendCell12); legendItem4.Color = System.Drawing.Color.FromArgb(((int)(((byte)(5)))), ((int)(((byte)(100)))), ((int)(((byte)(146))))); legendItem4.ImageStyle = System.Windows.Forms.DataVisualization.Charting.LegendImageStyle.Line; legendItem4.MarkerSize = 10; legendItem4.MarkerStyle = System.Windows.Forms.DataVisualization.Charting.MarkerStyle.Circle; legendItem4.Name = "Triangular"; legendItem5.BorderWidth = 2; legendCell13.CellType = System.Windows.Forms.DataVisualization.Charting.LegendCellType.Image; legendCell13.Name = "Cell1"; legendCell14.CellType = System.Windows.Forms.DataVisualization.Charting.LegendCellType.SeriesSymbol; legendCell14.Name = "Cell2"; legendCell15.Alignment = System.Drawing.ContentAlignment.MiddleLeft; legendCell15.Name = "Cell3"; legendCell15.Text = "Weighted"; legendItem5.Cells.Add(legendCell13); legendItem5.Cells.Add(legendCell14); legendItem5.Cells.Add(legendCell15); legendItem5.Color = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(191)))), ((int)(((byte)(191))))); legendItem5.ImageStyle = System.Windows.Forms.DataVisualization.Charting.LegendImageStyle.Line; legendItem5.MarkerSize = 10; legendItem5.MarkerStyle = System.Windows.Forms.DataVisualization.Charting.MarkerStyle.Circle; legendItem5.Name = "Weighted"; legend1.CustomItems.Add(legendItem1); legend1.CustomItems.Add(legendItem2); legend1.CustomItems.Add(legendItem3); legend1.CustomItems.Add(legendItem4); legend1.CustomItems.Add(legendItem5); legend1.Font = new System.Drawing.Font("Trebuchet MS", 8F, System.Drawing.FontStyle.Bold); legend1.HeaderSeparator = System.Windows.Forms.DataVisualization.Charting.LegendSeparatorStyle.Line; legend1.HeaderSeparatorColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); legend1.IsTextAutoFit = false; legend1.ItemColumnSeparator = System.Windows.Forms.DataVisualization.Charting.LegendSeparatorStyle.Line; legend1.ItemColumnSeparatorColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); legend1.Name = "Default"; legend1.TitleFont = new System.Drawing.Font("Trebuchet MS", 12F, System.Drawing.FontStyle.Bold); legend1.TitleSeparatorColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.chart1.Legends.Add(legend1); this.chart1.Location = new System.Drawing.Point(16, 56); this.chart1.Name = "chart1"; series1.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(180)))), ((int)(((byte)(26)))), ((int)(((byte)(59)))), ((int)(((byte)(105))))); series1.BorderWidth = 2; series1.ChartArea = "Default"; series1.ChartType = System.Windows.Forms.DataVisualization.Charting.SeriesChartType.Line; series1.IsVisibleInLegend = false; series1.Legend = "Default"; series1.Name = "Input"; series1.ShadowColor = System.Drawing.Color.FromArgb(((int)(((byte)(94)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); series1.ShadowOffset = 1; series1.XValueType = System.Windows.Forms.DataVisualization.Charting.ChartValueType.Double; series1.YValueType = System.Windows.Forms.DataVisualization.Charting.ChartValueType.Double; this.chart1.Series.Add(series1); this.chart1.Size = new System.Drawing.Size(412, 296); this.chart1.TabIndex = 1; this.chart1.MouseDown += new System.Windows.Forms.MouseEventHandler(this.chart1_MouseDown); // // labelSampleComment // this.labelSampleComment.Font = new System.Drawing.Font("Verdana", 11F); this.labelSampleComment.Location = new System.Drawing.Point(16, 8); this.labelSampleComment.Name = "labelSampleComment"; this.labelSampleComment.Size = new System.Drawing.Size(702, 40); this.labelSampleComment.TabIndex = 0; this.labelSampleComment.Text = "This sample displays four different types of moving averages.�The main difference" + " between these�averages is how weights are applied to different portions of the " + "data."; this.labelSampleComment.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // panel1 // this.panel1.Controls.Add(this.buttonRandomData); this.panel1.Controls.Add(this.checkBoxFilterHistoricalData); this.panel1.Controls.Add(this.checkBoxStartFromFirst); this.panel1.Controls.Add(this.comboBoxPeriod); this.panel1.Controls.Add(this.label1); this.panel1.Location = new System.Drawing.Point(432, 64); this.panel1.Name = "panel1"; this.panel1.Size = new System.Drawing.Size(292, 296); this.panel1.TabIndex = 2; // // buttonRandomData // this.buttonRandomData.BackColor = System.Drawing.SystemColors.Control; this.buttonRandomData.Location = new System.Drawing.Point(48, 113); this.buttonRandomData.Name = "buttonRandomData"; this.buttonRandomData.Size = new System.Drawing.Size(184, 28); this.buttonRandomData.TabIndex = 8; this.buttonRandomData.Text = "&Generate Random Data"; this.buttonRandomData.UseVisualStyleBackColor = false; this.buttonRandomData.Click += new System.EventHandler(this.buttonRandomData_Click); // // checkBoxFilterHistoricalData // this.checkBoxFilterHistoricalData.Enabled = false; this.checkBoxFilterHistoricalData.Location = new System.Drawing.Point(48, 81); this.checkBoxFilterHistoricalData.Name = "checkBoxFilterHistoricalData"; this.checkBoxFilterHistoricalData.Size = new System.Drawing.Size(224, 24); this.checkBoxFilterHistoricalData.TabIndex = 7; this.checkBoxFilterHistoricalData.Text = "Filter &Historical Data"; this.checkBoxFilterHistoricalData.CheckStateChanged += new System.EventHandler(this.checkBoxFilterHistoricalData_CheckStateChanged); // // checkBoxStartFromFirst // this.checkBoxStartFromFirst.Checked = true; this.checkBoxStartFromFirst.CheckState = System.Windows.Forms.CheckState.Checked; this.checkBoxStartFromFirst.Location = new System.Drawing.Point(48, 49); this.checkBoxStartFromFirst.Name = "checkBoxStartFromFirst"; this.checkBoxStartFromFirst.Size = new System.Drawing.Size(224, 24); this.checkBoxStartFromFirst.TabIndex = 6; this.checkBoxStartFromFirst.Text = "Start From &First"; this.checkBoxStartFromFirst.CheckStateChanged += new System.EventHandler(this.checkBoxFilterHistoricalData_CheckStateChanged); // // comboBoxPeriod // this.comboBoxPeriod.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.comboBoxPeriod.Items.AddRange(new object[] { "5", "10", "15", "20"}); this.comboBoxPeriod.Location = new System.Drawing.Point(93, 17); this.comboBoxPeriod.Name = "comboBoxPeriod"; this.comboBoxPeriod.Size = new System.Drawing.Size(123, 22); this.comboBoxPeriod.TabIndex = 5; this.comboBoxPeriod.SelectedIndexChanged += new System.EventHandler(this.comboBoxPeriod_SelectedIndexChanged); // // label1 // this.label1.Location = new System.Drawing.Point(29, 17); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(64, 23); this.label1.TabIndex = 4; this.label1.Text = "&Period:"; this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // label3 // this.label3.Font = new System.Drawing.Font("Verdana", 11F); this.label3.Location = new System.Drawing.Point(24, 368); this.label3.Name = "label3"; this.label3.Size = new System.Drawing.Size(672, 32); this.label3.TabIndex = 4; this.label3.Text = "Select or clear the appropriate legend item to enable or disable a moving average" + "."; this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // MovingAverages // this.BackColor = System.Drawing.Color.White; this.Controls.Add(this.label3); this.Controls.Add(this.panel1); this.Controls.Add(this.labelSampleComment); this.Controls.Add(this.chart1); this.Font = new System.Drawing.Font("Verdana", 9F); this.Name = "MovingAverages"; this.Size = new System.Drawing.Size(728, 480); this.Load += new System.EventHandler(this.TemplateSampleControl_Load); ((System.ComponentModel.ISupportInitialize)(this.chart1)).EndInit(); this.panel1.ResumeLayout(false); this.ResumeLayout(false); }
public void DtBoxPlot(DataTable dtbp, DataTable dtsm, string XaxisName = "", string YaxisName = "", string AdditionalFilter = "", string AdditionalSpecFilter = "") { //Alternate chart reference http://www.codeproject.com/Articles/5431/A-flexible-charting-library-for-NET //Add title string title = SummaryMainClass.RestoreData(AdditionalFilter).Replace(" and ", "").Replace("= '", ":").Replace("'", ", "); if (title.Length > 1) title = title.Remove(title.Length - 2); if (chart1.Titles.Count == 0) chart1.Titles.Add(title); chart1.Titles[0].Text = title; //Init chart this.chart1.Legends.Clear(); this.chart1.ChartAreas.Clear(); this.chart1.Series.Clear(); //Data area ChartArea area = new ChartArea("Area"); this.chart1.ChartAreas.Add(area); string bpSeries = string.Empty; List<double> XValues = new List<double>(); List<string> XActual = new List<string>(); //Create Box Plot series int ZoomIndex = 10; //ZoomIndex = 200/dtbp.Columns.Count; int k = 1; for (int i = 0; i < dtbp.Columns.Count; i++) { //int i = dtbp.Columns.Count-1; string seriesName = dtbp.Columns[i].ToString(); seriesName = seriesName.Replace("#", ""); if (!seriesName.Contains("Spec") && seriesName.Contains("FullArray")) { Series series = new Series(seriesName); series.ChartArea = area.Name; series.ChartType = SeriesChartType.Point; series.Color = Color.Transparent; series.ShadowColor = Color.Transparent; series.BorderColor = Color.Transparent; int j = 0; double xval = new double(); foreach (DataRow dataRow in dtbp.Rows) { string[] strArr = dataRow[i].ToString().Split(','); xval = k * ZoomIndex; foreach (string str in strArr) if (str != "" & !str.Contains("Error")) { series.Points.AddXY(xval, Convert.ToDouble(str)); System.Diagnostics.Debug.Print(str + "\t"); } //System.Diagnostics.Debug.Print("bp" + xval + " " + str);// j++; } this.chart1.Series.Add(series); XValues.Add(xval); XActual.Add(seriesName.Replace("FullArray", "")); k++; bpSeries = bpSeries + ";" + seriesName; } } k = 1; if (true) { //Create colors as per series int DataRows = 1; foreach (DataRow dataRow in dtbp.Rows) { string seriesName = dtbp.Columns[1].ToString(); int startCol = 2; if (seriesName.Contains("FullArray")) { seriesName = ""; startCol = 0; } else { seriesName = seriesName + "=" + dataRow[1].ToString(); } Series series = new Series(seriesName); series.ChartArea = area.Name; series.ChartType = SeriesChartType.Point; //Combine columns to make the series data k = 1; for (int i = startCol; i < dtbp.Columns.Count; i++) { string[] strArr = dataRow[i].ToString().Split(','); double xval = new double(); xval = k * ZoomIndex; foreach (string str in strArr) if (str != "" & !str.Contains("Error")) { series.Points.AddXY(xval, Convert.ToDouble(str)); }//System.Diagnostics.Debug.Print("Se" + xval + " " + str); k++; } //seriesArray.Add(series); chart1.Series.Add(series); //chart1.Series[chart1.Series.Count - 1].Color = CreateUniqueColors(chart1.Series.Count); chart1.Series[chart1.Series.Count - 1].Color = CreateUniqueColors(DataRows); //Enable Legend var legendItem = new LegendItem(); legendItem.SeriesName = series.Name; legendItem.ImageStyle = LegendImageStyle.Rectangle; legendItem.Color = chart1.Series[chart1.Series.Count - 1].Color; //legendItem.BorderColor = chart1.Series[chart1.Series.Count -1 ].Color; //series.Color; // Color.Transparent; legendItem.Name = series.Name + "_legend_item"; int p = legendItem.Cells.Add(LegendCellType.SeriesSymbol, "", ContentAlignment.MiddleCenter); legendItem.Cells.Add(LegendCellType.Text, series.Name, ContentAlignment.MiddleCenter); if (series.Enabled) legendItem.Color = CreateUniqueColors(DataRows); //Color.DarkBlue; //chart1.Series[chart1.Series.Count - 1].Color; // series.Color; else legendItem.Color = Color.FromArgb(100, series.Color); chart1.Legends.Add(new Legend()); chart1.Legends.Add(new Legend()); chart1.Legends[0].Enabled = false; chart1.Legends[1].CustomItems.Add(legendItem); chart1.Legends[1].Enabled = true; DataRows++; } } k = 1; if (false) //Old method Specific to Temp for (int i = 0; i < dtbp.Columns.Count; i++) { string seriesName = dtbp.Columns[i].ToString(); seriesName = seriesName.Replace("#", ""); if (!seriesName.Contains("Spec")) { int j = 0; double xval = new double(); foreach (DataRow dataRow in dtbp.Rows) { if (dataRow[i].ToString() != "") { seriesName = seriesName + j; Series series = new Series(seriesName); series.ChartArea = area.Name; series.ChartType = SeriesChartType.Point; if (dataRow[0].ToString() == "-40") series.Color = Color.DarkBlue; if (dataRow[0].ToString() == "-10") series.Color = Color.Blue; if (dataRow[0].ToString() == "25") series.Color = Color.Green; if (dataRow[0].ToString() == "70") series.Color = Color.Pink; if (dataRow[0].ToString() == "80") series.Color = Color.FromArgb(100, Color.Red); if (dataRow[0].ToString() == "85") series.Color = Color.FromArgb(150, Color.Red); if (dataRow[0].ToString() == "90") series.Color = Color.FromArgb(200, Color.Red); if (dataRow[0].ToString() == "100") series.Color = Color.FromArgb(220, Color.Red); if (dataRow[0].ToString() == "110") series.Color = Color.FromArgb(230, Color.Red); if (dataRow[0].ToString() == "120") series.Color = Color.FromArgb(250, Color.Red); this.chart1.Series.Add(series); string[] strArr = dataRow[i].ToString().Split(','); xval = k * ZoomIndex; foreach (string str in strArr) if (str != "") series.Points.AddXY(xval, Convert.ToDouble(str)); j++; } } k++; } } if (bpSeries != "") bpSeries = bpSeries.Substring(1); area.AxisX.Title = SummaryMainClass.RestoreData(XaxisName); area.AxisY.Title = SummaryMainClass.RestoreData(YaxisName); //Temp series (Note this series has to be added BEFORE the BoxPlot series) Series tempSeries = new Series("TempSeries"); tempSeries.ChartArea = area.Name; //To hide the series. Setting .Enabled = false will not have the desired effect. tempSeries.Color = Color.Transparent; tempSeries.Points.AddXY(1, 0); //XValue <> 0, so that it will not be treated as indexed this.chart1.Series.Add(tempSeries); //BoxPlot series Series seriesBox = new Series("BoxPlot"); seriesBox.Color = Color.FromArgb(60, seriesBox.Color); // seriesBox.Palette = ChartColorPalette.SemiTransparent; seriesBox.ChartArea = area.Name; seriesBox.ChartType = SeriesChartType.BoxPlot; seriesBox["BoxPlotSeries"] = bpSeries;//combines series names "Series1;Series2;Series3"; //seriesBox["BoxPlotShowMedian"] = "true"; //seriesBox["BoxPlotShowAverage"] = "true"; //seriesBox["BoxPlotShowUnusualValues"] = "true"; seriesBox["BoxPlotWhiskerPercentile"] = "10"; seriesBox["BoxPlotPercentile"] = "30"; this.chart1.Series.Add(seriesBox); chart1.ApplyPaletteColors(); double[] statistics = new double[] { }; statistics = ApplyStatisticLines(dtsm, XValues, AdditionalFilter, AdditionalSpecFilter, YaxisName); //Get the min and max of chart scale from the plotted data //double xmin,ymin,xmax,ymax; // xmin = Convert.ToDouble(chart1.Series[0].Points[0].XValue); // xmax = xmin; // ymin = Convert.ToDouble(chart1.Series[0].Points[0].YValues[0]); // ymax = ymin; // foreach (var series in chart1.Series) // { // foreach (var point in series.Points) // { // xmin = (xmin < Convert.ToDouble(point.XValue)) ? xmin : point.XValue; // ymin = (ymin < Convert.ToDouble(point.YValues[0])) ? ymin : point.YValues[0]; // xmax = (xmax > Convert.ToDouble(point.XValue)) ? xmax : point.XValue; // ymax = (ymax > Convert.ToDouble(point.YValues[0])) ? ymax : point.YValues[0]; // // point.Color = Color.FromArgb(220, point.Color); // } // } //Max(Range(Cells(1, 1), Cells(4, PT.PivotFields("Voltage1").PivotItems.Count)).Offset(row_count - 11, 1)) + (Max(Range(Cells(1, 1), Cells(4, PT.PivotFields("Voltage1").PivotItems.Count)).Offset(row_count - 11, 1)) - Min(Range(Cells(1, 1), Cells(4, PT.PivotFields("Voltage1").PivotItems.Count)).Offset(row_count - 11, 1))) / 20 //Min(Range(Cells(1, 1), Cells(4, PT.PivotFields("Voltage1").PivotItems.Count)).Offset(row_count - 11, 1)) - (Max(Range(Cells(1, 1), Cells(4, PT.PivotFields("Voltage1").PivotItems.Count)).Offset(row_count - 11, 1)) - Min(Range(Cells(1, 1), Cells(4, PT.PivotFields("Voltage1").PivotItems.Count)).Offset(row_count - 11, 1))) / 20 //Setup Grids area.AxisX.MajorGrid.Enabled = false; area.AxisY.MajorGrid.Enabled = false; area.AxisX.MinorGrid.Enabled = true; area.AxisX.MinorGrid.LineColor = Color.FromArgb(25, seriesBox.Color); area.AxisY.MinorGrid.Enabled = true; area.AxisY.MinorGrid.LineColor = Color.FromArgb(25, seriesBox.Color); area.AxisX.MinorGrid.Interval = 1; //To make the chart look nice... double minY = statistics.Min(); double maxY = statistics.Max(); System.Diagnostics.Debug.Print("min " + minY.ToString() + " Max " + maxY.ToString()); area.RecalculateAxesScale(); if ((minY - (maxY - minY) / 20).ToString() != "-Infinity") area.AxisY.Minimum = minY - (maxY - minY) / 20; //area.AxisY.Minimum;//22.4; // if ((maxY + (maxY - minY) / 20).ToString() != "Infinity") area.AxisY.Maximum = maxY + (maxY - minY) / 20; //area.AxisY.Maximum + area.AxisY.Maximum * 0.05;//23;// area.AxisX.Minimum = 0;// area.AxisX.Minimum;// if (XValues.Count > 1) area.AxisX.Maximum = XValues[XValues.Count - 1] + 6 * XValues[1]; //area.AxisX.Maximum; seriesBox["MaxPixelPointWidth"] = "20"; double first = Convert.ToDouble(System.Text.RegularExpressions.Regex.Match(XValues[0].ToString(), @"\d+").Value); var XAxis = chart1.ChartAreas[0].AxisX; double StartPos = Convert.ToDouble(System.Text.RegularExpressions.Regex.Match(XValues[0].ToString(), @"\d+").Value); double EndPos = new int(); //Truncate the Y axis Values chart1.ChartAreas[0].AxisY.LabelStyle.TruncatedLabels = true; int icount = 0; int labelWidth = 5; //1 if (XActual.Count > 10) labelWidth = 5; if (XActual.Count > 15) labelWidth = 8; foreach (int Xval in XValues) { EndPos = StartPos + labelWidth; //chart1.ChartAreas[0].AxisX.CustomLabels.Add(StartPos, EndPos, XActual[icount].ToString(), 0, LabelMarkStyle.None); //StartPos.ToString("f") replaced with XActual[icount].ToString() chart1.ChartAreas[0].AxisX.CustomLabels.Add(StartPos, EndPos, XActual[icount].ToString(), 0, LabelMarkStyle.Box); StartPos = Xval + ZoomIndex; icount++; } ChartRedraw(); return; }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FreeDrawAnnotation)); System.Windows.Forms.DataVisualization.Charting.ChartArea chartArea1 = new System.Windows.Forms.DataVisualization.Charting.ChartArea(); System.Windows.Forms.DataVisualization.Charting.CustomLabel customLabel1 = new System.Windows.Forms.DataVisualization.Charting.CustomLabel(); System.Windows.Forms.DataVisualization.Charting.CustomLabel customLabel2 = new System.Windows.Forms.DataVisualization.Charting.CustomLabel(); System.Windows.Forms.DataVisualization.Charting.CustomLabel customLabel3 = new System.Windows.Forms.DataVisualization.Charting.CustomLabel(); System.Windows.Forms.DataVisualization.Charting.CustomLabel customLabel4 = new System.Windows.Forms.DataVisualization.Charting.CustomLabel(); System.Windows.Forms.DataVisualization.Charting.Legend legend1 = new System.Windows.Forms.DataVisualization.Charting.Legend(); System.Windows.Forms.DataVisualization.Charting.Legend legend2 = new System.Windows.Forms.DataVisualization.Charting.Legend(); System.Windows.Forms.DataVisualization.Charting.Legend legend3 = new System.Windows.Forms.DataVisualization.Charting.Legend(); System.Windows.Forms.DataVisualization.Charting.LegendItem legendItem1 = new System.Windows.Forms.DataVisualization.Charting.LegendItem(); System.Windows.Forms.DataVisualization.Charting.LegendItem legendItem2 = new System.Windows.Forms.DataVisualization.Charting.LegendItem(); System.Windows.Forms.DataVisualization.Charting.LegendItem legendItem3 = new System.Windows.Forms.DataVisualization.Charting.LegendItem(); System.Windows.Forms.DataVisualization.Charting.Series series1 = new System.Windows.Forms.DataVisualization.Charting.Series(); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint1 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(1, 70); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint2 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(2, 80); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint3 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(3, 70); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint4 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(4, 85); System.Windows.Forms.DataVisualization.Charting.Series series2 = new System.Windows.Forms.DataVisualization.Charting.Series(); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint5 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(1, 65); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint6 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(2, 70); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint7 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(3, 60); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint8 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(4, 75); System.Windows.Forms.DataVisualization.Charting.Series series3 = new System.Windows.Forms.DataVisualization.Charting.Series(); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint9 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(1, 50); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint10 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(2, 55); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint11 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(3, 40); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint12 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(4, 70); System.Windows.Forms.DataVisualization.Charting.Title title1 = new System.Windows.Forms.DataVisualization.Charting.Title(); this.label9 = new System.Windows.Forms.Label(); this.panel1 = new System.Windows.Forms.Panel(); this.ClearAll = new System.Windows.Forms.Button(); this.UndoButton = new System.Windows.Forms.Button(); this.label1 = new System.Windows.Forms.Label(); this.DrawingMode = new System.Windows.Forms.CheckBox(); this.Chart1 = new System.Windows.Forms.DataVisualization.Charting.Chart(); this.panel1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.Chart1)).BeginInit(); this.SuspendLayout(); // // label9 // this.label9.Font = new System.Drawing.Font("Verdana", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label9.Location = new System.Drawing.Point(16, 14); this.label9.Name = "label9"; this.label9.Size = new System.Drawing.Size(702, 56); this.label9.TabIndex = 1; this.label9.Text = resources.GetString("label9.Text"); this.label9.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // panel1 // this.panel1.Controls.Add(this.ClearAll); this.panel1.Controls.Add(this.UndoButton); this.panel1.Controls.Add(this.label1); this.panel1.Controls.Add(this.DrawingMode); this.panel1.Location = new System.Drawing.Point(432, 87); this.panel1.Name = "panel1"; this.panel1.Size = new System.Drawing.Size(288, 284); this.panel1.TabIndex = 19; // // ClearAll // this.ClearAll.BackColor = System.Drawing.SystemColors.Control; this.ClearAll.Enabled = false; this.ClearAll.Location = new System.Drawing.Point(48, 133); this.ClearAll.Name = "ClearAll"; this.ClearAll.Size = new System.Drawing.Size(128, 23); this.ClearAll.TabIndex = 4; this.ClearAll.Text = "&Clear All"; this.ClearAll.UseVisualStyleBackColor = false; this.ClearAll.Click += new System.EventHandler(this.ClearAll_Click); // // UndoButton // this.UndoButton.BackColor = System.Drawing.SystemColors.Control; this.UndoButton.Enabled = false; this.UndoButton.Location = new System.Drawing.Point(48, 88); this.UndoButton.Name = "UndoButton"; this.UndoButton.Size = new System.Drawing.Size(128, 23); this.UndoButton.TabIndex = 3; this.UndoButton.Text = "&Undo"; this.UndoButton.UseVisualStyleBackColor = false; this.UndoButton.Click += new System.EventHandler(this.UndoButton_Click); // // label1 // this.label1.Location = new System.Drawing.Point(8, 16); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(224, 23); this.label1.TabIndex = 2; this.label1.Text = "Select to enable Drawing Mode:"; // // DrawingMode // this.DrawingMode.Appearance = System.Windows.Forms.Appearance.Button; this.DrawingMode.BackColor = System.Drawing.SystemColors.Control; this.DrawingMode.Location = new System.Drawing.Point(48, 48); this.DrawingMode.Name = "DrawingMode"; this.DrawingMode.Size = new System.Drawing.Size(128, 24); this.DrawingMode.TabIndex = 1; this.DrawingMode.Text = "&Drawing Mode"; this.DrawingMode.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; this.DrawingMode.UseVisualStyleBackColor = false; this.DrawingMode.CheckedChanged += new System.EventHandler(this.DrawingMode_CheckedChanged); // // Chart1 // this.Chart1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(211)))), ((int)(((byte)(223)))), ((int)(((byte)(240))))); this.Chart1.BackGradientStyle = System.Windows.Forms.DataVisualization.Charting.GradientStyle.TopBottom; this.Chart1.BackSecondaryColor = System.Drawing.Color.White; this.Chart1.BorderlineColor = System.Drawing.Color.FromArgb(((int)(((byte)(26)))), ((int)(((byte)(59)))), ((int)(((byte)(105))))); this.Chart1.BorderlineDashStyle = System.Windows.Forms.DataVisualization.Charting.ChartDashStyle.Solid; this.Chart1.BorderlineWidth = 2; this.Chart1.BorderSkin.SkinStyle = System.Windows.Forms.DataVisualization.Charting.BorderSkinStyle.Emboss; chartArea1.Area3DStyle.Inclination = 15; chartArea1.Area3DStyle.IsClustered = true; chartArea1.Area3DStyle.IsRightAngleAxes = false; chartArea1.Area3DStyle.Perspective = 10; chartArea1.Area3DStyle.PointGapDepth = 0; chartArea1.Area3DStyle.Rotation = 5; chartArea1.Area3DStyle.WallWidth = 0; customLabel1.FromPosition = 0.5; customLabel1.Text = "John"; customLabel1.ToPosition = 1.5; customLabel2.FromPosition = 1.5; customLabel2.Text = "Mary"; customLabel2.ToPosition = 2.5; customLabel3.FromPosition = 2.5; customLabel3.Text = "Jeff"; customLabel3.ToPosition = 3.5; customLabel4.FromPosition = 3.5; customLabel4.Text = "Bob"; customLabel4.ToPosition = 4.5; chartArea1.AxisX.CustomLabels.Add(customLabel1); chartArea1.AxisX.CustomLabels.Add(customLabel2); chartArea1.AxisX.CustomLabels.Add(customLabel3); chartArea1.AxisX.CustomLabels.Add(customLabel4); chartArea1.AxisX.Interval = 1; chartArea1.AxisX.IsLabelAutoFit = false; chartArea1.AxisX.LabelStyle.Font = new System.Drawing.Font("Trebuchet MS", 8.25F); chartArea1.AxisX.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea1.AxisX.MajorGrid.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea1.AxisY.IsLabelAutoFit = false; chartArea1.AxisY.LabelStyle.Font = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold); chartArea1.AxisY.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea1.AxisY.MajorGrid.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(165)))), ((int)(((byte)(191)))), ((int)(((byte)(228))))); chartArea1.BackGradientStyle = System.Windows.Forms.DataVisualization.Charting.GradientStyle.TopBottom; chartArea1.BackSecondaryColor = System.Drawing.Color.White; chartArea1.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea1.Name = "Default"; chartArea1.Position.Auto = false; chartArea1.Position.Height = 75F; chartArea1.Position.Width = 90F; chartArea1.Position.X = 2F; chartArea1.Position.Y = 13F; chartArea1.ShadowColor = System.Drawing.Color.Transparent; this.Chart1.ChartAreas.Add(chartArea1); legend1.BackColor = System.Drawing.Color.Transparent; legend1.Enabled = false; legend1.LegendStyle = System.Windows.Forms.DataVisualization.Charting.LegendStyle.Row; legend1.Name = "Default"; legend1.Position.Auto = false; legend1.Position.Height = 5F; legend1.Position.Width = 40F; legend1.Position.X = 5F; legend1.Position.Y = 85F; legend2.Enabled = false; legend2.Name = "Legend2"; legend3.BackColor = System.Drawing.Color.Transparent; legendItem1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(65)))), ((int)(((byte)(140)))), ((int)(((byte)(240))))); legendItem1.Name = "Previous Month Avg"; legendItem2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(252)))), ((int)(((byte)(180)))), ((int)(((byte)(65))))); legendItem2.Name = "Last Week"; legendItem3.Color = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(64)))), ((int)(((byte)(10))))); legendItem3.Name = "This Week"; legend3.CustomItems.Add(legendItem1); legend3.CustomItems.Add(legendItem2); legend3.CustomItems.Add(legendItem3); legend3.Font = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold); legend3.IsTextAutoFit = false; legend3.LegendStyle = System.Windows.Forms.DataVisualization.Charting.LegendStyle.Row; legend3.Name = "Legend3"; legend3.Position.Auto = false; legend3.Position.Height = 12F; legend3.Position.Width = 90F; legend3.Position.X = 5F; legend3.Position.Y = 85F; this.Chart1.Legends.Add(legend1); this.Chart1.Legends.Add(legend2); this.Chart1.Legends.Add(legend3); this.Chart1.Location = new System.Drawing.Point(16, 79); this.Chart1.Name = "Chart1"; this.Chart1.Palette = System.Windows.Forms.DataVisualization.Charting.ChartColorPalette.Pastel; series1.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(180)))), ((int)(((byte)(26)))), ((int)(((byte)(59)))), ((int)(((byte)(105))))); series1.ChartArea = "Default"; series1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(65)))), ((int)(((byte)(140)))), ((int)(((byte)(240))))); series1.CustomProperties = "DrawingStyle=Cylinder"; series1.Legend = "Legend2"; series1.Name = "Series2"; series1.Points.Add(dataPoint1); series1.Points.Add(dataPoint2); series1.Points.Add(dataPoint3); series1.Points.Add(dataPoint4); series1.ShadowColor = System.Drawing.Color.Transparent; series1.XValueType = System.Windows.Forms.DataVisualization.Charting.ChartValueType.Double; series1.YValueType = System.Windows.Forms.DataVisualization.Charting.ChartValueType.Double; series2.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(180)))), ((int)(((byte)(26)))), ((int)(((byte)(59)))), ((int)(((byte)(105))))); series2.ChartArea = "Default"; series2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(252)))), ((int)(((byte)(180)))), ((int)(((byte)(65))))); series2.CustomProperties = "DrawingStyle=Cylinder"; series2.Legend = "Default"; series2.Name = "Series3"; series2.Points.Add(dataPoint5); series2.Points.Add(dataPoint6); series2.Points.Add(dataPoint7); series2.Points.Add(dataPoint8); series3.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(180)))), ((int)(((byte)(26)))), ((int)(((byte)(59)))), ((int)(((byte)(105))))); series3.ChartArea = "Default"; series3.Color = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(64)))), ((int)(((byte)(10))))); series3.CustomProperties = "DrawingStyle=Cylinder"; series3.Legend = "Default"; series3.Name = "Series4"; series3.Points.Add(dataPoint9); series3.Points.Add(dataPoint10); series3.Points.Add(dataPoint11); series3.Points.Add(dataPoint12); this.Chart1.Series.Add(series1); this.Chart1.Series.Add(series2); this.Chart1.Series.Add(series3); this.Chart1.Size = new System.Drawing.Size(412, 296); this.Chart1.TabIndex = 0; title1.Alignment = System.Drawing.ContentAlignment.TopLeft; title1.Font = new System.Drawing.Font("Trebuchet MS", 14.25F, System.Drawing.FontStyle.Bold); title1.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(26)))), ((int)(((byte)(59)))), ((int)(((byte)(105))))); title1.Name = "Title1"; title1.Position.Auto = false; title1.Position.Height = 8.738057F; title1.Position.Width = 80F; title1.Position.X = 4F; title1.Position.Y = 4F; title1.ShadowColor = System.Drawing.Color.FromArgb(((int)(((byte)(32)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); title1.ShadowOffset = 3; title1.Text = "Chart Control for .NET Framework"; this.Chart1.Titles.Add(title1); this.Chart1.AnnotationPlaced += new System.EventHandler(this.Chart1_AnnotationPlaced); // // FreeDrawAnnotation // this.BackColor = System.Drawing.Color.White; this.Controls.Add(this.Chart1); this.Controls.Add(this.panel1); this.Controls.Add(this.label9); this.Font = new System.Drawing.Font("Verdana", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.Name = "FreeDrawAnnotation"; this.Size = new System.Drawing.Size(728, 480); this.panel1.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.Chart1)).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() { System.Windows.Forms.DataVisualization.Charting.ChartArea chartArea1 = new System.Windows.Forms.DataVisualization.Charting.ChartArea(); System.Windows.Forms.DataVisualization.Charting.CustomLabel customLabel1 = new System.Windows.Forms.DataVisualization.Charting.CustomLabel(); System.Windows.Forms.DataVisualization.Charting.CustomLabel customLabel2 = new System.Windows.Forms.DataVisualization.Charting.CustomLabel(); System.Windows.Forms.DataVisualization.Charting.CustomLabel customLabel3 = new System.Windows.Forms.DataVisualization.Charting.CustomLabel(); System.Windows.Forms.DataVisualization.Charting.CustomLabel customLabel4 = new System.Windows.Forms.DataVisualization.Charting.CustomLabel(); System.Windows.Forms.DataVisualization.Charting.Legend legend1 = new System.Windows.Forms.DataVisualization.Charting.Legend(); System.Windows.Forms.DataVisualization.Charting.Legend legend2 = new System.Windows.Forms.DataVisualization.Charting.Legend(); System.Windows.Forms.DataVisualization.Charting.Legend legend3 = new System.Windows.Forms.DataVisualization.Charting.Legend(); System.Windows.Forms.DataVisualization.Charting.LegendItem legendItem1 = new System.Windows.Forms.DataVisualization.Charting.LegendItem(); System.Windows.Forms.DataVisualization.Charting.LegendItem legendItem2 = new System.Windows.Forms.DataVisualization.Charting.LegendItem(); System.Windows.Forms.DataVisualization.Charting.LegendItem legendItem3 = new System.Windows.Forms.DataVisualization.Charting.LegendItem(); System.Windows.Forms.DataVisualization.Charting.Series series1 = new System.Windows.Forms.DataVisualization.Charting.Series(); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint1 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(1, 70); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint2 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(2, 80); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint3 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(3, 70); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint4 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(4, 85); System.Windows.Forms.DataVisualization.Charting.Series series2 = new System.Windows.Forms.DataVisualization.Charting.Series(); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint5 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(1, 65); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint6 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(2, 70); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint7 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(3, 60); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint8 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(4, 75); System.Windows.Forms.DataVisualization.Charting.Series series3 = new System.Windows.Forms.DataVisualization.Charting.Series(); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint9 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(1, 50); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint10 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(2, 55); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint11 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(3, 40); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint12 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(4, 70); System.Windows.Forms.DataVisualization.Charting.Title title1 = new System.Windows.Forms.DataVisualization.Charting.Title(); this.label9 = new System.Windows.Forms.Label(); this.panel1 = new System.Windows.Forms.Panel(); this.TextAntiAlias = new System.Windows.Forms.CheckBox(); this.EnableLabels = new System.Windows.Forms.CheckBox(); this.OffsetLabels = new System.Windows.Forms.CheckBox(); this.AngleList = new System.Windows.Forms.ComboBox(); this.label7 = new System.Windows.Forms.Label(); this.FontSizeList = new System.Windows.Forms.ComboBox(); this.label2 = new System.Windows.Forms.Label(); this.FontNameList = new System.Windows.Forms.ComboBox(); this.label1 = new System.Windows.Forms.Label(); this.label6 = new System.Windows.Forms.Label(); this.label5 = new System.Windows.Forms.Label(); this.label4 = new System.Windows.Forms.Label(); this.label3 = new System.Windows.Forms.Label(); this.label15 = new System.Windows.Forms.Label(); this.Chart1 = new System.Windows.Forms.DataVisualization.Charting.Chart(); this.panel1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.Chart1)).BeginInit(); this.SuspendLayout(); // // label9 // this.label9.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.label9.Font = new System.Drawing.Font("Verdana", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label9.Location = new System.Drawing.Point(16, 14); this.label9.Name = "label9"; this.label9.Size = new System.Drawing.Size(702, 43); this.label9.TabIndex = 0; this.label9.Text = "This sample demonstrates how to set�an axis labels\' font,�angle, and�offset style" + ". It also shows how to enable and disable axis labels.��"; // // panel1 // this.panel1.Controls.Add(this.TextAntiAlias); this.panel1.Controls.Add(this.EnableLabels); this.panel1.Controls.Add(this.OffsetLabels); this.panel1.Controls.Add(this.AngleList); this.panel1.Controls.Add(this.label7); this.panel1.Controls.Add(this.FontSizeList); this.panel1.Controls.Add(this.label2); this.panel1.Controls.Add(this.FontNameList); this.panel1.Controls.Add(this.label1); this.panel1.Controls.Add(this.label6); this.panel1.Controls.Add(this.label5); this.panel1.Controls.Add(this.label4); this.panel1.Controls.Add(this.label3); this.panel1.Controls.Add(this.label15); this.panel1.Location = new System.Drawing.Point(432, 68); this.panel1.Name = "panel1"; this.panel1.Size = new System.Drawing.Size(292, 288); this.panel1.TabIndex = 2; // // TextAntiAlias // this.TextAntiAlias.CheckAlign = System.Drawing.ContentAlignment.MiddleRight; this.TextAntiAlias.Location = new System.Drawing.Point(17, 168); this.TextAntiAlias.Name = "TextAntiAlias"; this.TextAntiAlias.Size = new System.Drawing.Size(164, 24); this.TextAntiAlias.TabIndex = 8; this.TextAntiAlias.Text = "AntiAlias For &Text:"; this.TextAntiAlias.TextAlign = System.Drawing.ContentAlignment.MiddleRight; this.TextAntiAlias.CheckedChanged += new System.EventHandler(this.Combo_SelectedIndexChanged); // // EnableLabels // this.EnableLabels.CheckAlign = System.Drawing.ContentAlignment.MiddleRight; this.EnableLabels.Location = new System.Drawing.Point(8, 136); this.EnableLabels.Name = "EnableLabels"; this.EnableLabels.Size = new System.Drawing.Size(168, 24); this.EnableLabels.TabIndex = 7; this.EnableLabels.Text = "&Enable X Axis Labels:"; this.EnableLabels.TextAlign = System.Drawing.ContentAlignment.MiddleRight; this.EnableLabels.CheckedChanged += new System.EventHandler(this.Combo_SelectedIndexChanged); // // OffsetLabels // this.OffsetLabels.CheckAlign = System.Drawing.ContentAlignment.MiddleRight; this.OffsetLabels.Location = new System.Drawing.Point(17, 104); this.OffsetLabels.Name = "OffsetLabels"; this.OffsetLabels.Size = new System.Drawing.Size(164, 24); this.OffsetLabels.TabIndex = 6; this.OffsetLabels.Text = "&Offset X Axis Labels:"; this.OffsetLabels.TextAlign = System.Drawing.ContentAlignment.MiddleRight; this.OffsetLabels.CheckedChanged += new System.EventHandler(this.Combo_SelectedIndexChanged); // // AngleList // this.AngleList.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.AngleList.Items.AddRange(new object[] { "0", "30", "45", "60", "90", "-30", "-45", "-60", "-90"}); this.AngleList.Location = new System.Drawing.Point(168, 72); this.AngleList.Name = "AngleList"; this.AngleList.Size = new System.Drawing.Size(120, 22); this.AngleList.TabIndex = 5; this.AngleList.SelectedIndexChanged += new System.EventHandler(this.Combo_SelectedIndexChanged); // // label7 // this.label7.Location = new System.Drawing.Point(4, 72); this.label7.Name = "label7"; this.label7.Size = new System.Drawing.Size(160, 24); this.label7.TabIndex = 4; this.label7.Text = "X Axis Labels &Angle:"; this.label7.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // FontSizeList // this.FontSizeList.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.FontSizeList.Items.AddRange(new object[] { "6", "8", "10", "12", "14", "16"}); this.FontSizeList.Location = new System.Drawing.Point(168, 40); this.FontSizeList.Name = "FontSizeList"; this.FontSizeList.Size = new System.Drawing.Size(120, 22); this.FontSizeList.TabIndex = 3; this.FontSizeList.SelectedIndexChanged += new System.EventHandler(this.Combo_SelectedIndexChanged); // // label2 // this.label2.Location = new System.Drawing.Point(4, 40); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(160, 24); this.label2.TabIndex = 2; this.label2.Text = "X Axis Labels Font &Size:"; this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // FontNameList // this.FontNameList.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.FontNameList.Items.AddRange(new object[] { "Arial", "Courier New", "Tahoma", "Trebuchet MS", "Verdana"}); this.FontNameList.Location = new System.Drawing.Point(168, 8); this.FontNameList.Name = "FontNameList"; this.FontNameList.Size = new System.Drawing.Size(120, 22); this.FontNameList.TabIndex = 1; this.FontNameList.SelectedIndexChanged += new System.EventHandler(this.Combo_SelectedIndexChanged); // // label1 // this.label1.Location = new System.Drawing.Point(0, 8); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(164, 24); this.label1.TabIndex = 0; this.label1.Text = "X Axis Labels Font &Name:"; this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // label6 // this.label6.Location = new System.Drawing.Point(64, 403); this.label6.Name = "label6"; this.label6.Size = new System.Drawing.Size(100, 23); this.label6.TabIndex = 12; this.label6.Text = "Border Size:"; // // label5 // this.label5.Location = new System.Drawing.Point(64, 380); this.label5.Name = "label5"; this.label5.Size = new System.Drawing.Size(100, 23); this.label5.TabIndex = 11; this.label5.Text = "Border Color:"; // // label4 // this.label4.Location = new System.Drawing.Point(64, 357); this.label4.Name = "label4"; this.label4.Size = new System.Drawing.Size(100, 23); this.label4.TabIndex = 10; this.label4.Text = "Hatch Style:"; // // label3 // this.label3.Location = new System.Drawing.Point(64, 334); this.label3.Name = "label3"; this.label3.Size = new System.Drawing.Size(100, 23); this.label3.TabIndex = 9; this.label3.Text = "Gradient:"; // // label15 // this.label15.Location = new System.Drawing.Point(64, 426); this.label15.Name = "label15"; this.label15.Size = new System.Drawing.Size(100, 23); this.label15.TabIndex = 5; this.label15.Text = "Border Size:"; // // Chart1 // this.Chart1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(211)))), ((int)(((byte)(223)))), ((int)(((byte)(240))))); this.Chart1.BackGradientStyle = System.Windows.Forms.DataVisualization.Charting.GradientStyle.TopBottom; this.Chart1.BackSecondaryColor = System.Drawing.Color.White; this.Chart1.BorderlineColor = System.Drawing.Color.FromArgb(((int)(((byte)(26)))), ((int)(((byte)(59)))), ((int)(((byte)(105))))); this.Chart1.BorderlineDashStyle = System.Windows.Forms.DataVisualization.Charting.ChartDashStyle.Solid; this.Chart1.BorderlineWidth = 2; this.Chart1.BorderSkin.SkinStyle = System.Windows.Forms.DataVisualization.Charting.BorderSkinStyle.Emboss; chartArea1.Area3DStyle.Inclination = 15; chartArea1.Area3DStyle.IsClustered = true; chartArea1.Area3DStyle.IsRightAngleAxes = false; chartArea1.Area3DStyle.Perspective = 10; chartArea1.Area3DStyle.PointGapDepth = 0; chartArea1.Area3DStyle.Rotation = 5; chartArea1.Area3DStyle.WallWidth = 0; customLabel1.FromPosition = 0.5; customLabel1.Text = "John"; customLabel1.ToPosition = 1.5; customLabel2.FromPosition = 1.5; customLabel2.Text = "Mary"; customLabel2.ToPosition = 2.5; customLabel3.FromPosition = 2.5; customLabel3.Text = "Jeff"; customLabel3.ToPosition = 3.5; customLabel4.FromPosition = 3.5; customLabel4.Text = "Bob"; customLabel4.ToPosition = 4.5; chartArea1.AxisX.CustomLabels.Add(customLabel1); chartArea1.AxisX.CustomLabels.Add(customLabel2); chartArea1.AxisX.CustomLabels.Add(customLabel3); chartArea1.AxisX.CustomLabels.Add(customLabel4); chartArea1.AxisX.Interval = 1; chartArea1.AxisX.IsLabelAutoFit = false; chartArea1.AxisX.LabelStyle.Font = new System.Drawing.Font("Trebuchet MS", 8.25F); chartArea1.AxisX.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea1.AxisX.MajorGrid.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea1.AxisY.IsLabelAutoFit = false; chartArea1.AxisY.LabelStyle.Font = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold); chartArea1.AxisY.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea1.AxisY.MajorGrid.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(165)))), ((int)(((byte)(191)))), ((int)(((byte)(228))))); chartArea1.BackGradientStyle = System.Windows.Forms.DataVisualization.Charting.GradientStyle.TopBottom; chartArea1.BackSecondaryColor = System.Drawing.Color.White; chartArea1.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea1.Name = "Default"; chartArea1.Position.Auto = false; chartArea1.Position.Height = 75F; chartArea1.Position.Width = 90F; chartArea1.Position.X = 2F; chartArea1.Position.Y = 13F; chartArea1.ShadowColor = System.Drawing.Color.Transparent; this.Chart1.ChartAreas.Add(chartArea1); legend1.BackColor = System.Drawing.Color.Transparent; legend1.Enabled = false; legend1.LegendStyle = System.Windows.Forms.DataVisualization.Charting.LegendStyle.Row; legend1.Name = "Default"; legend1.Position.Auto = false; legend1.Position.Height = 5F; legend1.Position.Width = 40F; legend1.Position.X = 5F; legend1.Position.Y = 85F; legend2.Enabled = false; legend2.Name = "Legend2"; legend3.BackColor = System.Drawing.Color.Transparent; legendItem1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(65)))), ((int)(((byte)(140)))), ((int)(((byte)(240))))); legendItem1.Name = "Previous Month Avg"; legendItem2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(252)))), ((int)(((byte)(180)))), ((int)(((byte)(65))))); legendItem2.Name = "Last Week"; legendItem3.Color = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(64)))), ((int)(((byte)(10))))); legendItem3.Name = "This Week"; legend3.CustomItems.Add(legendItem1); legend3.CustomItems.Add(legendItem2); legend3.CustomItems.Add(legendItem3); legend3.Font = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold); legend3.IsTextAutoFit = false; legend3.LegendStyle = System.Windows.Forms.DataVisualization.Charting.LegendStyle.Row; legend3.Name = "Legend3"; legend3.Position.Auto = false; legend3.Position.Height = 12F; legend3.Position.Width = 90F; legend3.Position.X = 5F; legend3.Position.Y = 85F; this.Chart1.Legends.Add(legend1); this.Chart1.Legends.Add(legend2); this.Chart1.Legends.Add(legend3); this.Chart1.Location = new System.Drawing.Point(16, 60); this.Chart1.Name = "Chart1"; this.Chart1.Palette = System.Windows.Forms.DataVisualization.Charting.ChartColorPalette.Pastel; series1.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(180)))), ((int)(((byte)(26)))), ((int)(((byte)(59)))), ((int)(((byte)(105))))); series1.ChartArea = "Default"; series1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(65)))), ((int)(((byte)(140)))), ((int)(((byte)(240))))); series1.CustomProperties = "DrawingStyle=Cylinder"; series1.Legend = "Legend2"; series1.Name = "Series2"; series1.Points.Add(dataPoint1); series1.Points.Add(dataPoint2); series1.Points.Add(dataPoint3); series1.Points.Add(dataPoint4); series1.ShadowColor = System.Drawing.Color.Transparent; series1.XValueType = System.Windows.Forms.DataVisualization.Charting.ChartValueType.Double; series1.YValueType = System.Windows.Forms.DataVisualization.Charting.ChartValueType.Double; series2.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); series2.ChartArea = "Default"; series2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(252)))), ((int)(((byte)(180)))), ((int)(((byte)(65))))); series2.CustomProperties = "DrawingStyle=Cylinder"; series2.Legend = "Default"; series2.Name = "Series3"; series2.Points.Add(dataPoint5); series2.Points.Add(dataPoint6); series2.Points.Add(dataPoint7); series2.Points.Add(dataPoint8); series3.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); series3.ChartArea = "Default"; series3.Color = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(64)))), ((int)(((byte)(10))))); series3.CustomProperties = "DrawingStyle=Cylinder"; series3.Legend = "Default"; series3.Name = "Series4"; series3.Points.Add(dataPoint9); series3.Points.Add(dataPoint10); series3.Points.Add(dataPoint11); series3.Points.Add(dataPoint12); this.Chart1.Series.Add(series1); this.Chart1.Series.Add(series2); this.Chart1.Series.Add(series3); this.Chart1.Size = new System.Drawing.Size(412, 296); this.Chart1.TabIndex = 1; title1.Alignment = System.Drawing.ContentAlignment.TopLeft; title1.Font = new System.Drawing.Font("Trebuchet MS", 14.25F, System.Drawing.FontStyle.Bold); title1.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(26)))), ((int)(((byte)(59)))), ((int)(((byte)(105))))); title1.Name = "Title1"; title1.Position.Auto = false; title1.Position.Height = 8.738057F; title1.Position.Width = 80F; title1.Position.X = 4F; title1.Position.Y = 4F; title1.ShadowColor = System.Drawing.Color.FromArgb(((int)(((byte)(32)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); title1.ShadowOffset = 3; title1.Text = "Chart Control for .NET Framework"; this.Chart1.Titles.Add(title1); this.Chart1.Click += new System.EventHandler(this.Chart1_Click); // // LabelsTextStyle // this.Controls.Add(this.Chart1); this.Controls.Add(this.panel1); this.Controls.Add(this.label9); this.Font = new System.Drawing.Font("Verdana", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.Name = "LabelsTextStyle"; this.Size = new System.Drawing.Size(728, 480); this.Load += new System.EventHandler(this.LabelsTextStyle_Load); this.panel1.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.Chart1)).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() { System.Windows.Forms.DataVisualization.Charting.ChartArea chartArea1 = new System.Windows.Forms.DataVisualization.Charting.ChartArea(); System.Windows.Forms.DataVisualization.Charting.CustomLabel customLabel1 = new System.Windows.Forms.DataVisualization.Charting.CustomLabel(); System.Windows.Forms.DataVisualization.Charting.CustomLabel customLabel2 = new System.Windows.Forms.DataVisualization.Charting.CustomLabel(); System.Windows.Forms.DataVisualization.Charting.CustomLabel customLabel3 = new System.Windows.Forms.DataVisualization.Charting.CustomLabel(); System.Windows.Forms.DataVisualization.Charting.CustomLabel customLabel4 = new System.Windows.Forms.DataVisualization.Charting.CustomLabel(); System.Windows.Forms.DataVisualization.Charting.Legend legend1 = new System.Windows.Forms.DataVisualization.Charting.Legend(); System.Windows.Forms.DataVisualization.Charting.Legend legend2 = new System.Windows.Forms.DataVisualization.Charting.Legend(); System.Windows.Forms.DataVisualization.Charting.Legend legend3 = new System.Windows.Forms.DataVisualization.Charting.Legend(); System.Windows.Forms.DataVisualization.Charting.LegendItem legendItem1 = new System.Windows.Forms.DataVisualization.Charting.LegendItem(); System.Windows.Forms.DataVisualization.Charting.LegendItem legendItem2 = new System.Windows.Forms.DataVisualization.Charting.LegendItem(); System.Windows.Forms.DataVisualization.Charting.LegendItem legendItem3 = new System.Windows.Forms.DataVisualization.Charting.LegendItem(); System.Windows.Forms.DataVisualization.Charting.Series series1 = new System.Windows.Forms.DataVisualization.Charting.Series(); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint1 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(1, 70); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint2 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(2, 80); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint3 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(3, 70); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint4 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(4, 85); System.Windows.Forms.DataVisualization.Charting.Series series2 = new System.Windows.Forms.DataVisualization.Charting.Series(); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint5 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(1, 65); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint6 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(2, 70); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint7 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(3, 60); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint8 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(4, 75); System.Windows.Forms.DataVisualization.Charting.Series series3 = new System.Windows.Forms.DataVisualization.Charting.Series(); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint9 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(1, 50); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint10 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(2, 55); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint11 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(3, 40); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint12 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(4, 70); System.Windows.Forms.DataVisualization.Charting.Title title1 = new System.Windows.Forms.DataVisualization.Charting.Title(); this.label9 = new System.Windows.Forms.Label(); this.panel1 = new System.Windows.Forms.Panel(); this.label2 = new System.Windows.Forms.Label(); this.label1 = new System.Windows.Forms.Label(); this.GraphicsAntiAliasing = new System.Windows.Forms.ComboBox(); this.TextAntiAliasing = new System.Windows.Forms.ComboBox(); this.Chart1 = new System.Windows.Forms.DataVisualization.Charting.Chart(); this.panel1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.Chart1)).BeginInit(); this.SuspendLayout(); // // label9 // this.label9.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.label9.Font = new System.Drawing.Font("Verdana", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label9.Location = new System.Drawing.Point(16, 8); this.label9.Name = "label9"; this.label9.Size = new System.Drawing.Size(696, 32); this.label9.TabIndex = 0; this.label9.Text = "This sample demonstrates how to set the anti aliasing mode for graphics and text." + ""; this.label9.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // panel1 // this.panel1.Controls.Add(this.label2); this.panel1.Controls.Add(this.label1); this.panel1.Controls.Add(this.GraphicsAntiAliasing); this.panel1.Controls.Add(this.TextAntiAliasing); this.panel1.Location = new System.Drawing.Point(432, 56); this.panel1.Name = "panel1"; this.panel1.Size = new System.Drawing.Size(292, 288); this.panel1.TabIndex = 2; // // label2 // this.label2.Location = new System.Drawing.Point(0, 11); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(160, 16); this.label2.TabIndex = 0; this.label2.Text = "&Graphics Anti Aliasing:"; this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // label1 // this.label1.Location = new System.Drawing.Point(8, 43); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(152, 16); this.label1.TabIndex = 2; this.label1.Text = "&Text Anti Aliasing:"; this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // GraphicsAntiAliasing // this.GraphicsAntiAliasing.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.GraphicsAntiAliasing.Items.AddRange(new object[] { "Text", "Graphics", "All", "None" }); this.GraphicsAntiAliasing.Location = new System.Drawing.Point(168, 8); this.GraphicsAntiAliasing.Name = "GraphicsAntiAliasing"; this.GraphicsAntiAliasing.Size = new System.Drawing.Size(121, 22); this.GraphicsAntiAliasing.TabIndex = 1; this.GraphicsAntiAliasing.SelectedIndexChanged += new System.EventHandler(this.GraphicsAntiAliasing_SelectedIndexChanged); // // TextAntiAliasing // this.TextAntiAliasing.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.TextAntiAliasing.Items.AddRange(new object[] { "Normal", "High", "SystemDefault" }); this.TextAntiAliasing.Location = new System.Drawing.Point(168, 40); this.TextAntiAliasing.Name = "TextAntiAliasing"; this.TextAntiAliasing.Size = new System.Drawing.Size(120, 22); this.TextAntiAliasing.TabIndex = 3; this.TextAntiAliasing.SelectedIndexChanged += new System.EventHandler(this.TextAntiAliasing_SelectedIndexChanged); // // Chart1 // this.Chart1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(243)))), ((int)(((byte)(223)))), ((int)(((byte)(193))))); this.Chart1.BackGradientStyle = System.Windows.Forms.DataVisualization.Charting.GradientStyle.TopBottom; this.Chart1.BorderlineColor = System.Drawing.Color.FromArgb(((int)(((byte)(181)))), ((int)(((byte)(64)))), ((int)(((byte)(1))))); this.Chart1.BorderlineDashStyle = System.Windows.Forms.DataVisualization.Charting.ChartDashStyle.Solid; this.Chart1.BorderlineWidth = 2; this.Chart1.BorderSkin.SkinStyle = System.Windows.Forms.DataVisualization.Charting.BorderSkinStyle.Emboss; chartArea1.Area3DStyle.Enable3D = true; chartArea1.Area3DStyle.Inclination = 15; chartArea1.Area3DStyle.IsClustered = true; chartArea1.Area3DStyle.IsRightAngleAxes = false; chartArea1.Area3DStyle.Perspective = 10; chartArea1.Area3DStyle.PointGapDepth = 0; chartArea1.Area3DStyle.Rotation = 5; chartArea1.Area3DStyle.WallWidth = 0; customLabel1.FromPosition = 0.5; customLabel1.Text = "John"; customLabel1.ToPosition = 1.5; customLabel2.FromPosition = 1.5; customLabel2.Text = "Mary"; customLabel2.ToPosition = 2.5; customLabel3.FromPosition = 2.5; customLabel3.Text = "Jeff"; customLabel3.ToPosition = 3.5; customLabel4.FromPosition = 3.5; customLabel4.Text = "Bob"; customLabel4.ToPosition = 4.5; chartArea1.AxisX.CustomLabels.Add(customLabel1); chartArea1.AxisX.CustomLabels.Add(customLabel2); chartArea1.AxisX.CustomLabels.Add(customLabel3); chartArea1.AxisX.CustomLabels.Add(customLabel4); chartArea1.AxisX.Interval = 1; chartArea1.AxisX.IsLabelAutoFit = false; chartArea1.AxisX.LabelStyle.Font = new System.Drawing.Font("Trebuchet MS", 8.25F); chartArea1.AxisX.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea1.AxisX.MajorGrid.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea1.AxisY.IsLabelAutoFit = false; chartArea1.AxisY.LabelStyle.Font = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold); chartArea1.AxisY.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea1.AxisY.MajorGrid.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea1.BackColor = System.Drawing.Color.OldLace; chartArea1.BackSecondaryColor = System.Drawing.Color.White; chartArea1.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea1.Name = "Default"; chartArea1.Position.Auto = false; chartArea1.Position.Height = 75F; chartArea1.Position.Width = 100F; chartArea1.Position.Y = 8F; chartArea1.ShadowColor = System.Drawing.Color.Transparent; this.Chart1.ChartAreas.Add(chartArea1); legend1.BackColor = System.Drawing.Color.Transparent; legend1.Enabled = false; legend1.LegendStyle = System.Windows.Forms.DataVisualization.Charting.LegendStyle.Row; legend1.Name = "Default"; legend1.Position.Auto = false; legend1.Position.Height = 5F; legend1.Position.Width = 40F; legend1.Position.X = 5F; legend1.Position.Y = 85F; legend2.Enabled = false; legend2.Name = "Legend2"; legend3.BackColor = System.Drawing.Color.Transparent; legendItem1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(65)))), ((int)(((byte)(140)))), ((int)(((byte)(240))))); legendItem1.Name = "Previous Month Avg"; legendItem2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(252)))), ((int)(((byte)(180)))), ((int)(((byte)(65))))); legendItem2.Name = "Last Week"; legendItem3.Color = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(64)))), ((int)(((byte)(10))))); legendItem3.Name = "This Week"; legend3.CustomItems.Add(legendItem1); legend3.CustomItems.Add(legendItem2); legend3.CustomItems.Add(legendItem3); legend3.Font = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold); legend3.IsTextAutoFit = false; legend3.LegendStyle = System.Windows.Forms.DataVisualization.Charting.LegendStyle.Row; legend3.Name = "Legend3"; legend3.Position.Auto = false; legend3.Position.Height = 12F; legend3.Position.Width = 90F; legend3.Position.X = 5F; legend3.Position.Y = 85F; this.Chart1.Legends.Add(legend1); this.Chart1.Legends.Add(legend2); this.Chart1.Legends.Add(legend3); this.Chart1.Location = new System.Drawing.Point(16, 48); this.Chart1.Name = "Chart1"; this.Chart1.Palette = System.Windows.Forms.DataVisualization.Charting.ChartColorPalette.Pastel; series1.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(180)))), ((int)(((byte)(26)))), ((int)(((byte)(59)))), ((int)(((byte)(105))))); series1.ChartArea = "Default"; series1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(220)))), ((int)(((byte)(65)))), ((int)(((byte)(140)))), ((int)(((byte)(240))))); series1.CustomProperties = "DrawingStyle=Cylinder"; series1.Legend = "Legend2"; series1.Name = "Series2"; series1.Points.Add(dataPoint1); series1.Points.Add(dataPoint2); series1.Points.Add(dataPoint3); series1.Points.Add(dataPoint4); series1.ShadowColor = System.Drawing.Color.Transparent; series1.XValueType = System.Windows.Forms.DataVisualization.Charting.ChartValueType.Double; series1.YValueType = System.Windows.Forms.DataVisualization.Charting.ChartValueType.Double; series2.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); series2.ChartArea = "Default"; series2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(220)))), ((int)(((byte)(252)))), ((int)(((byte)(180)))), ((int)(((byte)(65))))); series2.CustomProperties = "DrawingStyle=Cylinder"; series2.Legend = "Default"; series2.Name = "Series3"; series2.Points.Add(dataPoint5); series2.Points.Add(dataPoint6); series2.Points.Add(dataPoint7); series2.Points.Add(dataPoint8); series3.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); series3.ChartArea = "Default"; series3.Color = System.Drawing.Color.FromArgb(((int)(((byte)(220)))), ((int)(((byte)(224)))), ((int)(((byte)(64)))), ((int)(((byte)(10))))); series3.CustomProperties = "DrawingStyle=Cylinder"; series3.Legend = "Default"; series3.Name = "Series4"; series3.Points.Add(dataPoint9); series3.Points.Add(dataPoint10); series3.Points.Add(dataPoint11); series3.Points.Add(dataPoint12); this.Chart1.Series.Add(series1); this.Chart1.Series.Add(series2); this.Chart1.Series.Add(series3); this.Chart1.Size = new System.Drawing.Size(412, 296); this.Chart1.TabIndex = 1; title1.Alignment = System.Drawing.ContentAlignment.TopCenter; title1.Font = new System.Drawing.Font("Trebuchet MS", 14.25F, System.Drawing.FontStyle.Bold); title1.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(26)))), ((int)(((byte)(59)))), ((int)(((byte)(105))))); title1.Name = "Title1"; title1.Position.Auto = false; title1.Position.Height = 8.738057F; title1.Position.Width = 80F; title1.Position.X = 10F; title1.Position.Y = 4F; title1.ShadowColor = System.Drawing.Color.FromArgb(((int)(((byte)(32)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); title1.ShadowOffset = 3; title1.Text = "Chart Control for .NET Framework"; this.Chart1.Titles.Add(title1); this.Chart1.Click += new System.EventHandler(this.Chart1_Click); // // AntiAliasingSample // this.Controls.Add(this.Chart1); this.Controls.Add(this.panel1); this.Controls.Add(this.label9); this.Font = new System.Drawing.Font("Verdana", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.Name = "AntiAliasingSample"; this.Size = new System.Drawing.Size(728, 480); this.Load += new System.EventHandler(this.AntiAliasingSample_Load); this.panel1.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.Chart1)).EndInit(); this.ResumeLayout(false); }
/// <summary> /// Adds the activity legend to the Chart. This must be done before the PostPaint event if the add-on /// is to work correctly. /// </summary> public void AddActivityLegend() { // Reset the master index index = 0; // Determine the total number of points that will be processed int pointCount = 0; foreach (Series thisSeries in mySeries) pointCount += thisSeries.Points.Count; // Initiate the arrays with the maximum number of possible points mySeriesAssignment = new int[pointCount]; myPointIndex = new int[pointCount]; DataPoint[] myDataPoints = new DataPoint[pointCount]; // Reset seriesIndex (used to determine which series is being processed) int seriesIndex = 0; foreach (Series thisSeries in mySeries) { // Add every point from top x to bottom x myChart.DataManipulator.Sort(PointSortOrder.Descending, "X", thisSeries); // Loop through all points in this series foreach (DataPoint dataPoint in thisSeries.Points) { if ((dataPoint.IsEmpty != true) && dataPoint.LegendText !="") { // Disable the marker for this datapoint dataPoint.MarkerSize = 0; // Create a new legend row for this data point, assign xvalue as left column and legendText // as right column LegendItem legendRow = new LegendItem(); if (thisSeries.XValueType == ChartValueType.Date || thisSeries.XValueType == ChartValueType.DateTime || thisSeries.XValueType == ChartValueType.Time) { if (myDateArray == null) myDateArray = new DateTime[pointCount]; legendRow.Cells.Add(LegendCellType.Text, System.DateTime.FromOADate(dataPoint.XValue).ToString(myLegendDateFormat), System.Drawing.ContentAlignment.MiddleLeft); myDateArray[index] = System.DateTime.FromOADate(dataPoint.XValue); } else legendRow.Cells.Add(LegendCellType.Text, dataPoint.XValue.ToString(), System.Drawing.ContentAlignment.MiddleLeft); legendRow.Cells.Add(LegendCellType.Text, dataPoint.LegendText, System.Drawing.ContentAlignment.MiddleLeft); // Modify the font of the columns and name the second column legendRow.Cells[0].Font = myFirstCellFont; legendRow.Cells[0].Name = "ActivityLeftPadding" + index.ToString(); legendRow.Cells[1].Font = mySecondCellFont; legendRow.Cells[1].Name = "ActivityItem" + index.ToString(); // Set margins legendRow.Cells[0].Margins = new Margins(myItemSpacing, myItemSpacing, 15, 15); legendRow.Cells[1].Margins = new Margins(myItemSpacing, myItemSpacing, 15, 15); // Assign the current indices to the arrays for storage mySeriesAssignment[index] = seriesIndex; myDataPoints[index] = dataPoint; // Add the item myLegend.CustomItems.Add(legendRow); // Increment the index index++; } } // Restore the order of points myChart.DataManipulator.Sort(PointSortOrder.Ascending, "X", thisSeries); // Assign all the indices to PointIndex array after this final sort for (int i = 0; i < index; i++) { myPointIndex[i] = mySeries[mySeriesAssignment[i]].Points.IndexOf(myDataPoints[i]); } // Increment the series index, which indicates which series is being processed seriesIndex++; } // Sort all the legend cell items by X-value (the first column) bubbleSortLegend(); // Reset index index = 0; // Add the new legend myChart.Legends.Add(myLegend); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { System.Windows.Forms.DataVisualization.Charting.ChartArea chartArea1 = new System.Windows.Forms.DataVisualization.Charting.ChartArea(); System.Windows.Forms.DataVisualization.Charting.Legend legend1 = new System.Windows.Forms.DataVisualization.Charting.Legend(); System.Windows.Forms.DataVisualization.Charting.LegendItem legendItem1 = new System.Windows.Forms.DataVisualization.Charting.LegendItem(); System.Windows.Forms.DataVisualization.Charting.LegendItem legendItem2 = new System.Windows.Forms.DataVisualization.Charting.LegendItem(); System.Windows.Forms.DataVisualization.Charting.Series series1 = new System.Windows.Forms.DataVisualization.Charting.Series(); this.chart1 = new System.Windows.Forms.DataVisualization.Charting.Chart(); this.labelSampleComment = new System.Windows.Forms.Label(); this.panel1 = new System.Windows.Forms.Panel(); ((System.ComponentModel.ISupportInitialize)(this.chart1)).BeginInit(); this.SuspendLayout(); // // chart1 // this.chart1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(243)))), ((int)(((byte)(223)))), ((int)(((byte)(193))))); this.chart1.BackGradientStyle = System.Windows.Forms.DataVisualization.Charting.GradientStyle.TopBottom; this.chart1.BorderlineColor = System.Drawing.Color.FromArgb(((int)(((byte)(181)))), ((int)(((byte)(64)))), ((int)(((byte)(1))))); this.chart1.BorderlineDashStyle = System.Windows.Forms.DataVisualization.Charting.ChartDashStyle.Solid; this.chart1.BorderlineWidth = 2; this.chart1.BorderSkin.SkinStyle = System.Windows.Forms.DataVisualization.Charting.BorderSkinStyle.Emboss; chartArea1.Area3DStyle.Enable3D = true; chartArea1.Area3DStyle.Inclination = 15; chartArea1.Area3DStyle.IsClustered = true; chartArea1.Area3DStyle.IsRightAngleAxes = false; chartArea1.Area3DStyle.Perspective = 10; chartArea1.Area3DStyle.PointDepth = 300; chartArea1.Area3DStyle.Rotation = 10; chartArea1.Area3DStyle.WallWidth = 0; chartArea1.AxisX.LabelAutoFitStyle = ((System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles)((((System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles.DecreaseFont | System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles.StaggeredLabels) | System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles.LabelsAngleStep30) | System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles.WordWrap))); chartArea1.AxisX.LabelStyle.Font = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold); chartArea1.AxisX.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea1.AxisX.MajorGrid.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea1.AxisY.LabelAutoFitStyle = ((System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles)((((System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles.DecreaseFont | System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles.StaggeredLabels) | System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles.LabelsAngleStep30) | System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles.WordWrap))); chartArea1.AxisY.LabelStyle.Font = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold); chartArea1.AxisY.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea1.AxisY.MajorGrid.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea1.BackColor = System.Drawing.Color.OldLace; chartArea1.BackGradientStyle = System.Windows.Forms.DataVisualization.Charting.GradientStyle.TopBottom; chartArea1.BackSecondaryColor = System.Drawing.Color.White; chartArea1.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea1.BorderDashStyle = System.Windows.Forms.DataVisualization.Charting.ChartDashStyle.Solid; chartArea1.Name = "Default"; chartArea1.ShadowColor = System.Drawing.Color.Transparent; this.chart1.ChartAreas.Add(chartArea1); legend1.BackColor = System.Drawing.Color.Transparent; legendItem1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(252)))), ((int)(((byte)(180)))), ((int)(((byte)(65))))); legendItem1.Name = "Min Value"; legendItem2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(64)))), ((int)(((byte)(10))))); legendItem2.Name = "Max Value"; legend1.CustomItems.Add(legendItem1); legend1.CustomItems.Add(legendItem2); legend1.Docking = System.Windows.Forms.DataVisualization.Charting.Docking.Bottom; legend1.Font = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold); legend1.IsTextAutoFit = false; legend1.LegendStyle = System.Windows.Forms.DataVisualization.Charting.LegendStyle.Row; legend1.Name = "Default"; this.chart1.Legends.Add(legend1); this.chart1.Location = new System.Drawing.Point(16, 53); this.chart1.Name = "chart1"; series1.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(180)))), ((int)(((byte)(26)))), ((int)(((byte)(59)))), ((int)(((byte)(105))))); series1.ChartArea = "Default"; series1.Font = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); series1.Legend = "Default"; series1.Name = "Series1"; this.chart1.Series.Add(series1); this.chart1.Size = new System.Drawing.Size(412, 296); this.chart1.TabIndex = 0; // // labelSampleComment // this.labelSampleComment.Font = new System.Drawing.Font("Verdana", 11F); this.labelSampleComment.Location = new System.Drawing.Point(16, 8); this.labelSampleComment.Name = "labelSampleComment"; this.labelSampleComment.Size = new System.Drawing.Size(702, 37); this.labelSampleComment.TabIndex = 2; this.labelSampleComment.Text = "This sample shows how to find data points in a series that have�maximum and minim" + "um Y values."; this.labelSampleComment.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // panel1 // this.panel1.Location = new System.Drawing.Point(432, 61); this.panel1.Name = "panel1"; this.panel1.Size = new System.Drawing.Size(292, 288); this.panel1.TabIndex = 1; // // FindByMaxMinValues // this.Controls.Add(this.panel1); this.Controls.Add(this.labelSampleComment); this.Controls.Add(this.chart1); this.Font = new System.Drawing.Font("Verdana", 9F); this.Name = "FindByMaxMinValues"; this.Size = new System.Drawing.Size(728, 480); this.Load += new System.EventHandler(this.TemplateSampleControl_Load); ((System.ComponentModel.ISupportInitialize)(this.chart1)).EndInit(); this.ResumeLayout(false); }
public void UpdateChart(TimeSpan timeRange = default(TimeSpan), int topRange = 0) { if(History == null || History.Count == 0) return; _updating = true; List<Series> series = new List<Series>(); HashSet<string> disabled = new HashSet<string>(chart.Series.Where(serie => !serie.Enabled).Select(s => s.Name)); ChartHistories = FilterHistory(History, timeRange, topRange); chart.Series.Clear(); chart.Legends[0].CustomItems.Clear(); // Everything goes out, let's start from scratch foreach (ChartHistory chartHistory in ChartHistories) { Series currentSeries = new Series(chartHistory.Entry) { Color = chartHistory.Color, ChartType = SeriesChartType.Line, ChartArea = "ChartArea", XValueType = ChartValueType.DateTime, XValueMember = "Time", YValueMembers = "CurrentPrice", Legend = "Legend", IsVisibleInLegend = false, MarkerStyle = MarkerStyle.Circle, MarkerColor = chartHistory.Color, MarkerSize = 5, MarkerBorderColor = Color.Black, BorderWidth = 3 }; Series averageSeries = new Series(chartHistory.Entry + " Average") { Color = Color.FromArgb(192, chartHistory.Color), ChartType = SeriesChartType.Spline, ChartArea = "ChartArea", XValueType = ChartValueType.DateTime, XValueMember = "Time", YValueMembers = "WindowedAveragePrice", Legend = "Legend", IsVisibleInLegend = false, BorderWidth = 2 }; for (int index = 0; index < chartHistory.PriceHistories.Count; index++) { ServiceHistory.PriceStat priceStat = chartHistory.PriceHistories[index]; ServiceHistory.PriceStat prevStat = index > 0 ? chartHistory.PriceHistories[index - 1] : null; ServiceHistory.PriceStat nextStat = index < chartHistory.PriceHistories.Count - 1 ? chartHistory.PriceHistories[index + 1] : null; if (prevStat == null || nextStat == null) { currentSeries.Points.AddXY(priceStat.Time, priceStat.CurrentPrice); currentSeries.Points.Last().ToolTip = chartHistory.Entry; averageSeries.Points.AddXY(priceStat.Time, priceStat.WindowedAveragePrice); averageSeries.Points.Last().ToolTip = chartHistory.Entry; continue; } // Next lines saves a lot of points in the chart, // Makes the control more fluent and look nicer if (prevStat.CurrentPrice != priceStat.CurrentPrice || nextStat.CurrentPrice != priceStat.CurrentPrice) { currentSeries.Points.AddXY(priceStat.Time, priceStat.CurrentPrice); currentSeries.Points.Last().ToolTip = chartHistory.Entry; } if (prevStat.WindowedAveragePrice != priceStat.WindowedAveragePrice || nextStat.WindowedAveragePrice != priceStat.WindowedAveragePrice) { averageSeries.Points.AddXY(priceStat.Time, priceStat.WindowedAveragePrice); averageSeries.Points.Last().ToolTip = chartHistory.Entry; } DataPoint newlyAdded = currentSeries.Points.Last(); if (priceStat.Outlier) { newlyAdded.MarkerStyle = MarkerStyle.Cross; newlyAdded.MarkerColor = Color.Red; newlyAdded.MarkerSize = 6; } } series.Add(currentSeries); series.Add(averageSeries); // Re-enable focussing after re-init all series if (_focussedCurrentSeries != null && currentSeries.Name == _focussedCurrentSeries.Name) { FocussedSeries = new[] { currentSeries, averageSeries }; } } series = series.OrderByDescending(s => s.Points.Last().YValues[0]).ToList(); foreach (Series serie in series) { if (!chart.Series.Contains(serie)) chart.Series.Add(serie); // Re-enabling disabled ones too if (disabled.Contains(serie.Name)) { serie.Enabled = false; } if (!serie.Name.EndsWith("Average")) { LegendItem legend = new LegendItem { Name = serie.Name, SeriesName = serie.Name, Color = serie.Color, MarkerStyle = MarkerStyle.Circle, BorderWidth = 3 }; chart.Legends[0].CustomItems.Add(legend); } } SetLegendImageStyles(); _updating = false; }
// The functions below handle button presses by changing the state // variables private void StartButton_Click(object sender, EventArgs e) { if (tune_check == 0 || tune_check == 1) // if tuning is not complete yet { MessageBox.Show("Click Tune and finish tuning first!"); return; } if (start_check == 2 || start_check == 0) { if (start_check == 0) { TuneButton.BackColor = default(Color); tune_check = 2; NumSamples = int.Parse(NumSamplesBox.SelectedItem.ToString()); for (int i = 1; i <= NumSamples; i++) { TempGraph.Series.Add(this.Controls["NameBox" + i].Text); TempGraph.Series[this.Controls["NameBox" + i].Text].ChartType = SeriesChartType.FastLine; TempGraph.Series[this.Controls["NameBox" + i].Text].IsVisibleInLegend = false; TempGraph.Series[this.Controls["NameBox" + i].Text].Points.AddXY(0, 0); TempGraph.Series.Add(this.Controls["NameBox" + i].Text + " State"); TempGraph.Series[this.Controls["NameBox" + i].Text + " State"].ChartType = SeriesChartType.FastLine; TempGraph.Series[this.Controls["NameBox" + i].Text + " State"].IsVisibleInLegend = false; TempGraph.Series[this.Controls["NameBox" + i].Text + " State"].Points.AddXY(0, 0); LegendItem customItem = new LegendItem(); customItem.Name = this.Controls["NameBox" + i].Text; customItem.Color = GraphColors[(i - 1)]; customItem.ImageStyle = LegendImageStyle.Marker; customItem.MarkerStyle = MarkerStyle.Square; customItem.MarkerSize = 30; customItem.BorderWidth = 0; TempGraph.Legends[0].CustomItems.Add(customItem); } display_thread = new Thread(new ThreadStart(update_gui)); Start_Time = DateTime.Now; display_thread.Start(); log_thread = new Thread(new ThreadStart(update_log)); log_thread.Start(); } start_check = 1; StartButton.BackColor = Color.LightGreen; TuneButton.BackColor = default(Color); if (stop_check == 1) { stop_check = 2; StopButton.BackColor = default(Color); } } return; }
//=============================================================================== private void CreateChartSeriesA() { int n; GetSelectedDetectors(AnDetSelList); ChartColorPalette cp = AnChart.Palette; System.Drawing.Color[] pclr = GetColors.GetPaletteColors(cp); AnChart.Series.Clear(); AnChart.Legends.Clear(); AnChart.ChartAreas[0].AxisX.CustomLabels.Clear(); AnChart.ChartAreas[0].AxisX.ScaleView.Size = NumberOfRuns; AnChart.ApplyPaletteColors(); n = seldet.Length; Series[] series = new Series[n]; Legend legend = new Legend(); LegendItem[] li = new LegendItem[n]; legend.Title = "Detectors"; legend.LegendStyle = LegendStyle.Column; for (int i = 0; i < n; i++) { li[i] = new LegendItem(); li[i].Name = "Det " + seldet[i].ToString(); li[i].ImageStyle = LegendImageStyle.Line; li[i].ShadowOffset = 0; if (i > pclr.Length) { li[i].Color = System.Drawing.Color.FromArgb(255, pclr[i - pclr.Length].R, pclr[i - pclr.Length].G, pclr[i - pclr.Length].B); } else { li[i].Color = System.Drawing.Color.FromArgb(255, pclr[i].R, pclr[i].G, pclr[i].B); } series[i] = new Series(); series[i].Name = "Det " + seldet[i].ToString(); series[i].ChartType = SeriesChartType.Point; series[i].MarkerStyle = MarkerStyle.Circle; series[i].MarkerSize = SeriesMarkerSize;//2; legend.CustomItems.Add(li[i]); series[i].IsVisibleInLegend = false; AnChart.Series.Add(series[i]); } AnChart.Legends.Add(legend); }
public void TestDisplayRefresh() { if (testDisplayModeComboBox.SelectedIndex < 0) { } else if (!RegularExpression.DoubleCheck(minYAxisTestDisplayTextBox.Text)) { MessageBox.Show("Min Y Axis value is worng. Check Please."); minYAxisTestDisplayTextBox.Text = "0.0"; minYAxisTestDisplayTextBox.Focus(); minYAxisTestDisplayTextBox.SelectAll(); } else if (!RegularExpression.DoubleCheck(maxYAxisTestDisplayTextBox.Text)) { MessageBox.Show("Max Y Axis value is worng. Check Please."); maxYAxisTestDisplayTextBox.Text = "1.0"; maxYAxisTestDisplayTextBox.Focus(); maxYAxisTestDisplayTextBox.SelectAll(); } else if (double.Parse(minYAxisTestDisplayTextBox.Text) < 0) { MessageBox.Show("Min Y Axis value must be 0 or bigger. Check Please."); minYAxisTestDisplayTextBox.Text = "0.0"; maxYAxisTestDisplayTextBox.Focus(); maxYAxisTestDisplayTextBox.SelectAll(); } else if (double.Parse(maxYAxisTestDisplayTextBox.Text) <= 0) { MessageBox.Show("Max Y Axis value must be bigger than 0. Check Please."); maxYAxisTestDisplayTextBox.Text = "1.0"; maxYAxisTestDisplayTextBox.Focus(); maxYAxisTestDisplayTextBox.SelectAll(); } else if (double.Parse(maxYAxisTestDisplayTextBox.Text) <= double.Parse(minYAxisTestDisplayTextBox.Text)) { MessageBox.Show("Max Y Axis value must be bigger than min Y Axis value. Check Please."); minYAxisTestDisplayTextBox.Text = "0.0"; maxYAxisTestDisplayTextBox.Text = "1.0"; maxYAxisTestDisplayTextBox.Focus(); maxYAxisTestDisplayTextBox.SelectAll(); } else if (!useTimeStampCheckBox.Checked) { int maxXAxis = 0; foreach (LearningSetup processSetup in learningSetupList) maxXAxis += processSetup.TrainingEpoch; testDisplayChart.ChartAreas[0].Area3DStyle.Enable3D = false; testDisplayChart.ChartAreas[0].AxisX.Minimum = 0; testDisplayChart.ChartAreas[0].AxisX.Maximum = maxXAxis; testDisplayChart.ChartAreas[0].AxisY.Minimum = double.Parse(minYAxisTestDisplayTextBox.Text); testDisplayChart.ChartAreas[0].AxisY.Maximum = double.Parse(maxYAxisTestDisplayTextBox.Text); List<DisplayData> displayDataList = new List<DisplayData>(); try { switch (testDisplayModeComboBox.SelectedIndex) { case 0: foreach (TestData testData in simulator.TestDataList) { bool isExist = false; foreach (DisplayData displayData in displayDataList) { if (testData.Epoch == displayData.Epoch) { displayData.InsertValue(testData.MeanSquredError); isExist = true; break; } } if (!isExist) { DisplayData newDisplayData = new DisplayData(); newDisplayData.Epoch = testData.Epoch; newDisplayData.InsertValue(testData.MeanSquredError); displayDataList.Add(newDisplayData); } } break; case 1: foreach (TestData testData in simulator.TestDataList) { bool isExist = false; foreach (DisplayData displayData in displayDataList) { if (testData.Epoch == displayData.Epoch) { displayData.InsertValue(testData.MeanSemanticStress); isExist = true; break; } } if (!isExist) { DisplayData newDisplayData = new DisplayData(); newDisplayData.Epoch = testData.Epoch; newDisplayData.InsertValue(testData.MeanSemanticStress); displayDataList.Add(newDisplayData); } } break; case 2: foreach (TestData testData in simulator.TestDataList) { bool isExist = false; foreach (DisplayData displayData in displayDataList) { if (testData.Epoch == displayData.Epoch) { displayData.InsertValue(testData.MeanCrossEntropy); isExist = true; break; } } if (!isExist) { DisplayData newDisplayData = new DisplayData(); newDisplayData.Epoch = testData.Epoch; newDisplayData.InsertValue(testData.MeanCrossEntropy); displayDataList.Add(newDisplayData); } } break; case 3: foreach (TestData testData in simulator.TestDataList) { bool isExist = false; foreach (DisplayData displayData in displayDataList) { if (testData.Epoch == displayData.Epoch) { if (testData.Correctness) displayData.InsertValue(1); else displayData.InsertValue(0); isExist = true; break; } } if (!isExist) { DisplayData newDisplayData = new DisplayData(); newDisplayData.Epoch = testData.Epoch; if (testData.Correctness) newDisplayData.InsertValue(1); else newDisplayData.InsertValue(0); displayDataList.Add(newDisplayData); } } break; case 4: foreach (TestData testData in simulator.TestDataList) { bool isExist = false; foreach (DisplayData displayData in displayDataList) { if (testData.Epoch == displayData.Epoch) { if (testData.MeanActiveUnitActivation == testData.MeanActiveUnitActivation) { displayData.InsertValue(testData.MeanActiveUnitActivation); isExist = true; } break; } } if (!isExist) { if (testData.MeanActiveUnitActivation == testData.MeanActiveUnitActivation) { DisplayData newDisplayData = new DisplayData(); newDisplayData.Epoch = testData.Epoch; newDisplayData.InsertValue(testData.MeanActiveUnitActivation); displayDataList.Add(newDisplayData); } } } break; case 5: foreach (TestData testData in simulator.TestDataList) { bool isExist = false; foreach (DisplayData displayData in displayDataList) { if (testData.Epoch == displayData.Epoch) { if (testData.MeanInactiveUnitActivation == testData.MeanInactiveUnitActivation) { displayData.InsertValue(testData.MeanInactiveUnitActivation); isExist = true; } break; } } if (!isExist) { if (testData.MeanInactiveUnitActivation == testData.MeanInactiveUnitActivation) { DisplayData newDisplayData = new DisplayData(); newDisplayData.Epoch = testData.Epoch; newDisplayData.InsertValue(testData.MeanInactiveUnitActivation); displayDataList.Add(newDisplayData); } } } break; } testDisplayChart.Series.Clear(); testDisplayChart.Legends.Clear(); Series dataSeries = new Series(); dataSeries.ChartType = SeriesChartType.Line; testDisplayChart.Series.Add(dataSeries); foreach (DisplayData displayData in displayDataList) { DataPoint dataPoint = new DataPoint(); dataPoint.SetValueXY(displayData.Epoch, displayData.Value); dataSeries.Points.Add(dataPoint); } } catch { } } else if (useTimeStampCheckBox.Checked) { int maxXAxis = 0; foreach (TestData testData in simulator.TestDataList) if (testData.TimeStamp > maxXAxis) maxXAxis = testData.TimeStamp; testDisplayChart.ChartAreas[0].Area3DStyle.Enable3D = true; testDisplayChart.ChartAreas[0].Area3DStyle.PointDepth = 50; testDisplayChart.ChartAreas[0].AxisX.Minimum = 0; testDisplayChart.ChartAreas[0].AxisX.Maximum = maxXAxis; testDisplayChart.ChartAreas[0].AxisY.Minimum = double.Parse(minYAxisTestDisplayTextBox.Text); testDisplayChart.ChartAreas[0].AxisY.Maximum = double.Parse(maxYAxisTestDisplayTextBox.Text); List<DisplayData> displayDataList = new List<DisplayData>(); try { switch (testDisplayModeComboBox.SelectedIndex) { case 0: foreach (TestData testData in simulator.TestDataList) { bool isExist = false; foreach (DisplayData displayData in displayDataList) { if (testData.Epoch == displayData.Epoch && testData.TimeStamp == displayData.TimeStamp) { displayData.InsertValue(testData.MeanSquredError); isExist = true; break; } } if (!isExist) { DisplayData newDisplayData = new DisplayData(); newDisplayData.Epoch = testData.Epoch; newDisplayData.TimeStamp = testData.TimeStamp; newDisplayData.InsertValue(testData.MeanSquredError); displayDataList.Add(newDisplayData); } } break; case 1: foreach (TestData testData in simulator.TestDataList) { bool isExist = false; foreach (DisplayData displayData in displayDataList) { if (testData.Epoch == displayData.Epoch && testData.TimeStamp == displayData.TimeStamp) { displayData.InsertValue(testData.MeanSemanticStress); isExist = true; break; } } if (!isExist) { DisplayData newDisplayData = new DisplayData(); newDisplayData.Epoch = testData.Epoch; newDisplayData.TimeStamp = testData.TimeStamp; newDisplayData.InsertValue(testData.MeanSemanticStress); displayDataList.Add(newDisplayData); } } break; case 2: foreach (TestData testData in simulator.TestDataList) { bool isExist = false; foreach (DisplayData displayData in displayDataList) { if (testData.Epoch == displayData.Epoch && testData.TimeStamp == displayData.TimeStamp) { displayData.InsertValue(testData.MeanCrossEntropy); isExist = true; break; } } if (!isExist) { DisplayData newDisplayData = new DisplayData(); newDisplayData.Epoch = testData.Epoch; newDisplayData.TimeStamp = testData.TimeStamp; newDisplayData.InsertValue(testData.MeanCrossEntropy); displayDataList.Add(newDisplayData); } } break; case 3: foreach (TestData testData in simulator.TestDataList) { bool isExist = false; foreach (DisplayData displayData in displayDataList) { if (testData.Epoch == displayData.Epoch && testData.TimeStamp == displayData.TimeStamp) { if (testData.Correctness) displayData.InsertValue(1); else displayData.InsertValue(0); isExist = true; break; } } if (!isExist) { DisplayData newDisplayData = new DisplayData(); newDisplayData.Epoch = testData.Epoch; newDisplayData.TimeStamp = testData.TimeStamp; if (testData.Correctness) newDisplayData.InsertValue(1); else newDisplayData.InsertValue(0); displayDataList.Add(newDisplayData); } } break; case 4: foreach (TestData testData in simulator.TestDataList) { bool isExist = false; foreach (DisplayData displayData in displayDataList) { if (testData.Epoch == displayData.Epoch && testData.TimeStamp == displayData.TimeStamp) { if (testData.MeanInactiveUnitActivation == testData.MeanInactiveUnitActivation) { displayData.InsertValue(testData.MeanActiveUnitActivation); isExist = true; } break; } } if (!isExist) { if (testData.MeanInactiveUnitActivation == testData.MeanInactiveUnitActivation) { DisplayData newDisplayData = new DisplayData(); newDisplayData.Epoch = testData.Epoch; newDisplayData.TimeStamp = testData.TimeStamp; newDisplayData.InsertValue(testData.MeanActiveUnitActivation); displayDataList.Add(newDisplayData); } } } break; case 5: foreach (TestData testData in simulator.TestDataList) { bool isExist = false; foreach (DisplayData displayData in displayDataList) { if (testData.Epoch == displayData.Epoch && testData.TimeStamp == displayData.TimeStamp) { displayData.InsertValue(testData.MeanInactiveUnitActivation); isExist = true; break; } } if (!isExist) { DisplayData newDisplayData = new DisplayData(); newDisplayData.Epoch = testData.Epoch; newDisplayData.TimeStamp = testData.TimeStamp; newDisplayData.InsertValue(testData.MeanInactiveUnitActivation); displayDataList.Add(newDisplayData); } } break; } testDisplayChart.Series.Clear(); testDisplayChart.Legends.Clear(); testDisplayChart.Legends.Add(new Legend()); testDisplayChart.Legends[0].Name = ""; Dictionary<int, Series> dataSeriesDictionary = new Dictionary<int, Series>(); foreach (DisplayData displayData in displayDataList) { if (!dataSeriesDictionary.ContainsKey(displayData.Epoch)) { Series newSeries = new Series(); newSeries.ChartType = SeriesChartType.Line; newSeries.Name = "Epoch" + displayData.Epoch.ToString(); testDisplayChart.Series.Add(newSeries); dataSeriesDictionary[displayData.Epoch] = newSeries; LegendItem newLegendItem = new LegendItem(); newLegendItem.ImageStyle = LegendImageStyle.Line; //newLegendItem.Name = "Epoch" + displayData.Epoch.ToString(); newLegendItem.SeriesName = displayData.Epoch.ToString(); testDisplayChart.Legends[0].CustomItems.Add(newLegendItem); } DataPoint dataPoint = new DataPoint(); dataPoint.SetValueXY(displayData.TimeStamp, displayData.Value); dataSeriesDictionary[displayData.Epoch].Points.Add(dataPoint); } } catch { } } }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { System.Windows.Forms.DataVisualization.Charting.ChartArea chartArea1 = new System.Windows.Forms.DataVisualization.Charting.ChartArea(); System.Windows.Forms.DataVisualization.Charting.AxisScaleBreakStyle axisScaleBreakStyle1 = new System.Windows.Forms.DataVisualization.Charting.AxisScaleBreakStyle(); System.Windows.Forms.DataVisualization.Charting.AxisScaleBreakStyle axisScaleBreakStyle2 = new System.Windows.Forms.DataVisualization.Charting.AxisScaleBreakStyle(); System.Windows.Forms.DataVisualization.Charting.AxisScaleBreakStyle axisScaleBreakStyle3 = new System.Windows.Forms.DataVisualization.Charting.AxisScaleBreakStyle(); System.Windows.Forms.DataVisualization.Charting.AxisScaleBreakStyle axisScaleBreakStyle4 = new System.Windows.Forms.DataVisualization.Charting.AxisScaleBreakStyle(); System.Windows.Forms.DataVisualization.Charting.Legend legend1 = new System.Windows.Forms.DataVisualization.Charting.Legend(); System.Windows.Forms.DataVisualization.Charting.LegendItem legendItem1 = new System.Windows.Forms.DataVisualization.Charting.LegendItem(); System.Windows.Forms.DataVisualization.Charting.LegendCell legendCell1 = new System.Windows.Forms.DataVisualization.Charting.LegendCell(); System.Windows.Forms.DataVisualization.Charting.LegendCell legendCell2 = new System.Windows.Forms.DataVisualization.Charting.LegendCell(); System.Windows.Forms.DataVisualization.Charting.LegendCell legendCell3 = new System.Windows.Forms.DataVisualization.Charting.LegendCell(); System.Windows.Forms.DataVisualization.Charting.LegendCell legendCell4 = new System.Windows.Forms.DataVisualization.Charting.LegendCell(); System.Windows.Forms.DataVisualization.Charting.LegendCell legendCell5 = new System.Windows.Forms.DataVisualization.Charting.LegendCell(); System.Windows.Forms.DataVisualization.Charting.Series series1 = new System.Windows.Forms.DataVisualization.Charting.Series(); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint1 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.375, 2410.8291015625); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint2 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.375, 2410.673095703125); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint3 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.375, 2413.3291015625); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint4 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.37890625, 2414.778076171875); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint5 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.37890625, 2411.59716796875); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint6 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.37890625, 2412.47900390625); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint7 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.37890625, 2410.249755859375); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint8 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.37890625, 2411.90576171875); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint9 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.37890625, 2415.433349609375); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint10 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.3828125, 2411.48095703125); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint11 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.3828125, 2413.19677734375); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint12 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.3828125, 2411.896728515625); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint13 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.3828125, 2408.0751953125); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint14 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.3828125, 2406.742431640625); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint15 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.3828125, 2403.135498046875); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint16 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.38671875, 2404.95166015625); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint17 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.38671875, 2406.21142578125); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint18 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.38671875, 2402.232177734375); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint19 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.38671875, 2404.173828125); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint20 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.38671875, 2404.4072265625); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint21 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.390625, 2407.52734375); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint22 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.390625, 2411.0947265625); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint23 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.390625, 2412.6083984375); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint24 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.390625, 2415.068603515625); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint25 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.390625, 2417.366943359375); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint26 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.390625, 2419.852783203125); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint27 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.39453125, 2419.675048828125); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint28 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.39453125, 2421.539306640625); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint29 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.39453125, 2422.873291015625); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint30 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.39453125, 2425.86328125); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint31 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.39453125, 2428.34228515625); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint32 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.3984375, 2428.069580078125); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint33 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.3984375, 2424.68212890625); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint34 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.3984375, 2426.337890625); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint35 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.3984375, 2423.540283203125); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint36 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.3984375, 2422.253662109375); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint37 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.3984375, 2425.273193359375); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint38 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.40234375, 2422.5595703125); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint39 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.40234375, 2422.28369140625); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint40 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.40234375, 2419.45556640625); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint41 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.40234375, 2421.681884765625); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint42 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.40234375, 2420.628173828125); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint43 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.40234375, 2418.39306640625); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint44 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.40625, 2421.05859375); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint45 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.40625, 2420.064208984375); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint46 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.40625, 2420.890625); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint47 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.40625, 2423.586181640625); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint48 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.40625, 2427.564208984375); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint49 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.41015625, 2428.7333984375); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint50 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.41015625, 2432.54150390625); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint51 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.41015625, 2432.024658203125); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint52 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.41015625, 2430.294677734375); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint53 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.41015625, 2433.6240234375); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint54 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.41015625, 2435.79150390625); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint55 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.4140625, 2435.985595703125); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint56 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.4140625, 2433.24755859375); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint57 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.4140625, 2435.57763671875); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint58 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.4140625, 2431.7734375); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint59 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.4140625, 2434.92431640625); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint60 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.4140625, 2433.257568359375); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint61 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.41796875, 2430.317138671875); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint62 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.41796875, 2430.2236328125); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint63 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.41796875, 2426.545654296875); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint64 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.41796875, 2423.0830078125); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint65 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.41796875, 2420.65185546875); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint66 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.421875, 2418.64013671875); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint67 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.421875, 2416.7275390625); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint68 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.421875, 2415.25048828125); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint69 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.421875, 2412.71533203125); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint70 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.421875, 2414.39501953125); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint71 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.421875, 2417.191650390625); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint72 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.42578125, 2417.1650390625); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint73 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.42578125, 2417.461669921875); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint74 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.42578125, 2418.2314453125); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint75 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.42578125, 2420.238525390625); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint76 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.42578125, 2420.412109375); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint77 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.4296875, 2422.214599609375); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint78 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.4296875, 2425.06298828125); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint79 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.4296875, 2424.517578125); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint80 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.4296875, 2421.989501953125); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint81 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.4296875, 2425.779541015625); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint82 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.4296875, 2425.6240234375); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint83 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.43359375, 2422.31884765625); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint84 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.43359375, 2423.8447265625); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint85 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.43359375, 2423.351806640625); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint86 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.43359375, 2423.560546875); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint87 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.43359375, 2423.958740234375); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint88 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.43359375, 2422.40380859375); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint89 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.4375, 2419.865234375); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint90 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.4375, 2423.8056640625); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint91 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.4375, 2424.189208984375); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint92 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.4375, 2427.0126953125); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint93 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.4375, 2425.1484375); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint94 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.44140625, 2422.539306640625); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint95 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.44140625, 2418.651611328125); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint96 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.44140625, 2416.97119140625); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint97 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.44140625, 2415.595703125); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint98 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.44140625, 2412.8232421875); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint99 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.44140625, 2413.919677734375); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint100 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.4453125, 2410.93701171875); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint101 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.4453125, 2409.676025390625); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint102 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.4453125, 2409.848876953125); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint103 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.4453125, 2412.36181640625); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint104 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.4453125, 2415.8515625); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint105 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.4453125, 2412.86279296875); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint106 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.44921875, 2416.372802734375); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint107 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.44921875, 2418.34619140625); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint108 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.44921875, 2416.90576171875); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint109 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.44921875, 2413.06591796875); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint110 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.44921875, 2409.086669921875); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint111 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.453125, 2408.546142578125); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint112 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.453125, 2412.027587890625); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint113 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.453125, 2412.768798828125); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint114 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.453125, 2414.447998046875); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint115 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.453125, 2412.990966796875); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint116 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.453125, 2414.2060546875); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint117 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.45703125, 2413.417724609375); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint118 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.45703125, 2412.2138671875); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint119 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.45703125, 2413.244384765625); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint120 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.45703125, 2414.604248046875); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint121 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.45703125, 2416.194580078125); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint122 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.4609375, 2419.8369140625); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint123 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.4609375, 2416.8984375); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint124 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.4609375, 2414.422607421875); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint125 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.4609375, 2411.718994140625); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint126 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.4609375, 2415.692138671875); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint127 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.4609375, 2413.529541015625); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint128 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.46484375, 2412.435546875); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint129 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.46484375, 2413.0927734375); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint130 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.46484375, 2412.7802734375); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint131 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.46484375, 2410.32958984375); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint132 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.46484375, 2410.904296875); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint133 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.46484375, 2408.656494140625); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint134 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.46875, 2407.093505859375); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint135 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.46875, 2409.826416015625); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint136 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.46875, 2409.44384765625); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint137 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.46875, 2410.775146484375); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint138 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.46875, 2407.980224609375); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint139 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.47265625, 2408.494873046875); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint140 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.47265625, 2408.4921875); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint141 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.47265625, 2410.7275390625); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint142 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.47265625, 2408.56591796875); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint143 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.47265625, 2406.850830078125); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint144 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.47265625, 2404.291748046875); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint145 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.4765625, 2404.772705078125); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint146 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.4765625, 2405.674560546875); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint147 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.4765625, 2403.7568359375); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint148 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.4765625, 2404.213623046875); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint149 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.4765625, 2407.061279296875); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint150 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.4765625, 2405.95849609375); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint151 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.48046875, 2409.066650390625); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint152 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.48046875, 2412.894775390625); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint153 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.48046875, 2413.092041015625); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint154 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.48046875, 2416.828369140625); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint155 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.48046875, 2416.255615234375); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint156 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.484375, 2415.352294921875); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint157 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.484375, 2414.463623046875); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint158 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.484375, 2415.4521484375); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint159 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.484375, 2417.645751953125); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint160 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.484375, 2414.683837890625); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint161 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.484375, 2416.356201171875); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint162 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.48828125, 2415.423828125); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint163 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.48828125, 2417.326171875); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint164 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.48828125, 2417.798828125); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint165 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.48828125, 2420.27001953125); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint166 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.48828125, 2423.15478515625); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint167 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.4921875, 2424.88427734375); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint168 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.4921875, 2423.1884765625); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint169 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.4921875, 2426.134521484375); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint170 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.4921875, 2429.060302734375); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint171 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.4921875, 2432.94384765625); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint172 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.4921875, 2430.95068359375); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint173 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.49609375, 2433.23193359375); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint174 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.49609375, 2430.265380859375); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint175 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.49609375, 2433.389892578125); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint176 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.49609375, 2433.1416015625); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint177 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.49609375, 2434.499267578125); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint178 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.49609375, 2438.11962890625); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint179 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.5, 2439.1630859375); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint180 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.5, 2439.5576171875); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint181 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.5, 2441.4482421875); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint182 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.5, 2442.8291015625); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint183 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.5, 2442.88720703125); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint184 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.50390625, 2440.647216796875); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint185 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.50390625, 2441.226806640625); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint186 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.50390625, 2438.94775390625); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint187 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.50390625, 2435.325439453125); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint188 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.50390625, 2433.341064453125); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint189 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.50390625, 2436.35107421875); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint190 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.5078125, 2435.9873046875); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint191 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.5078125, 2432.4931640625); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint192 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.5078125, 2428.836181640625); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint193 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.5078125, 2427.84765625); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint194 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.5078125, 2427.32421875); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint195 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.5078125, 2429.64892578125); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint196 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.51171875, 2428.81689453125); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint197 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.51171875, 2428.7529296875); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint198 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.51171875, 2430.565185546875); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint199 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.51171875, 2429.53466796875); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint200 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.51171875, 2431.131103515625); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint201 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.515625, 2434.30322265625); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint202 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.515625, 2438.08154296875); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint203 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.515625, 2439.59228515625); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint204 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.515625, 2443.51416015625); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint205 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.515625, 2442.52783203125); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint206 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.515625, 2443.629150390625); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint207 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.51953125, 2441.17578125); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint208 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.51953125, 2440.33984375); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint209 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.51953125, 2436.95166015625); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint210 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.51953125, 2440.627197265625); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint211 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.51953125, 2442.3662109375); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint212 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.5234375, 2441.85693359375); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint213 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.5234375, 2445.80224609375); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint214 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.5234375, 2443.601318359375); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint215 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.5234375, 2442.748779296875); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint216 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.5234375, 2439.040283203125); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint217 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.5234375, 2442.049560546875); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint218 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.52734375, 2442.19189453125); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint219 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.52734375, 2446.0849609375); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint220 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.52734375, 2446.835205078125); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint221 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.52734375, 2449.34228515625); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint222 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.52734375, 2449.05615234375); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint223 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.52734375, 2448.350341796875); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint224 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.53125, 2447.66015625); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint225 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.53125, 2450.080078125); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint226 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.53125, 2453.620849609375); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint227 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.53125, 2456.615966796875); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint228 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.53125, 2455.4208984375); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint229 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.53515625, 2454.12939453125); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint230 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.53515625, 2454.086181640625); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint231 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.53515625, 2457.901611328125); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint232 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.53515625, 2461.447021484375); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint233 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.53515625, 2462.09814453125); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint234 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.53515625, 2465.544921875); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint235 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.5390625, 2466.767333984375); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint236 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.5390625, 2468.879638671875); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint237 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.5390625, 2472.75); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint238 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.5390625, 2472.88623046875); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint239 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.5390625, 2475.632568359375); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint240 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.5390625, 2479.11083984375); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint241 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.54296875, 2475.28515625); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint242 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.54296875, 2476.498779296875); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint243 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.54296875, 2473.902587890625); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint244 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.54296875, 2477.237060546875); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint245 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.54296875, 2479.13427734375); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint246 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.546875, 2480.1494140625); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint247 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.546875, 2476.546875); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint248 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.546875, 2473.759521484375); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint249 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.546875, 2470.08837890625); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint250 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.546875, 2472.121826171875); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint251 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.546875, 2472.2802734375); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint252 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.55078125, 2476.07421875); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint253 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.55078125, 2477.993408203125); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint254 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.55078125, 2480.212646484375); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint255 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.55078125, 2483.3017578125); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint256 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.55078125, 2482.76025390625); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint257 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.5546875, 2483.244384765625); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint258 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.5546875, 2481.445068359375); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint259 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.5546875, 2478.947021484375); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint260 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.5546875, 2478.419921875); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint261 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.5546875, 2480.526123046875); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint262 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.5546875, 2483.26806640625); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint263 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.55859375, 2479.723388671875); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint264 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.55859375, 2480.378662109375); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint265 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.55859375, 2484.238525390625); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint266 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.55859375, 2486.43212890625); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint267 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.55859375, 2489.27197265625); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint268 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.55859375, 2485.770263671875); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint269 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.5625, 2486.34716796875); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint270 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.5625, 2487.38232421875); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint271 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.5625, 2483.803466796875); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint272 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.5625, 2482.67626953125); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint273 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.5625, 2484.072265625); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint274 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.56640625, 2480.487060546875); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint275 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.56640625, 2481.063232421875); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint276 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.56640625, 2478.356689453125); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint277 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.56640625, 2476.666748046875); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint278 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.56640625, 2476.62646484375); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint279 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.56640625, 2478.0390625); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint280 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.5703125, 2475.44384765625); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint281 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.5703125, 2478.587158203125); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint282 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.5703125, 2480.369384765625); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint283 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.5703125, 2478.845703125); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint284 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.5703125, 2479.520751953125); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint285 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.5703125, 2483.31884765625); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint286 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.57421875, 2479.340576171875); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint287 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.57421875, 2476.966796875); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint288 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.57421875, 2479.398681640625); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint289 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.57421875, 2475.75634765625); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint290 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.57421875, 2473.52001953125); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint291 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.578125, 2471.1484375); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint292 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.578125, 2472.81787109375); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint293 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.578125, 2471.452392578125); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint294 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.578125, 2470.725830078125); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint295 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.578125, 2468.097900390625); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint296 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.578125, 2465.530029296875); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint297 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.58203125, 2466.288330078125); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint298 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.58203125, 2467.037109375); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint299 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.58203125, 2470.51171875); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint300 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.58203125, 2474.215087890625); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint301 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.58203125, 2476.390380859375); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint302 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.5859375, 2480.28955078125); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint303 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.5859375, 2480.925537109375); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint304 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.5859375, 2480.21923828125); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint305 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.5859375, 2481.83154296875); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint306 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.5859375, 2479.1171875); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint307 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.5859375, 2477.514892578125); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint308 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.58984375, 2479.01953125); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint309 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.58984375, 2476.662353515625); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint310 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.58984375, 2478.458251953125); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint311 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.58984375, 2475.606689453125); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint312 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.58984375, 2472.130859375); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint313 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.58984375, 2472.919189453125); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint314 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.59375, 2469.01611328125); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint315 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.59375, 2469.345703125); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint316 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.59375, 2465.669677734375); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint317 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.59375, 2465.935302734375); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint318 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.59375, 2465.7158203125); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint319 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.59765625, 2466.57275390625); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint320 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.59765625, 2470.410888671875); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint321 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.59765625, 2470.978515625); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint322 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.59765625, 2467.386474609375); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint323 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.59765625, 2463.527099609375); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint324 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.59765625, 2462.340087890625); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint325 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.6015625, 2461.7470703125); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint326 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.6015625, 2460.49853515625); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint327 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.6015625, 2456.737060546875); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint328 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.6015625, 2454.859619140625); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint329 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.6015625, 2457.90234375); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint330 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.6015625, 2457.046142578125); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint331 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.60546875, 2457.58154296875); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint332 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.60546875, 2459.142578125); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint333 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.60546875, 2459.6279296875); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint334 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.60546875, 2461.3369140625); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint335 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.60546875, 2460.56640625); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint336 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.609375, 2463.810546875); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint337 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.609375, 2460.95703125); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint338 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.609375, 2464.139404296875); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint339 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.609375, 2467.202392578125); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint340 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.609375, 2469.71484375); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint341 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.609375, 2471.338623046875); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint342 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.61328125, 2471.460205078125); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint343 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.61328125, 2472.249267578125); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint344 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.61328125, 2470.811279296875); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint345 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.61328125, 2467.426513671875); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint346 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.61328125, 2464.530517578125); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint347 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.6171875, 2461.411865234375); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint348 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.6171875, 2459.94921875); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint349 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.6171875, 2462.89306640625); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint350 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.6171875, 2459.941162109375); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint351 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.6171875, 2461.10791015625); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint352 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.6171875, 2458.085693359375); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint353 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.62109375, 2461.977294921875); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint354 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.62109375, 2465.61376953125); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint355 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.62109375, 2464.749755859375); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint356 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.62109375, 2466.51708984375); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint357 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.62109375, 2470.275390625); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint358 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.62109375, 2468.0986328125); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint359 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.625, 2471.9853515625); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint360 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.625, 2470.845947265625); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint361 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.625, 2467.893310546875); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint362 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.625, 2464.16845703125); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint363 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.625, 2466.63037109375); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint364 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.62890625, 2469.129150390625); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint365 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.62890625, 2466.389892578125); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint366 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.62890625, 2465.97705078125); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint367 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.62890625, 2466.01611328125); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint368 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.62890625, 2469.095458984375); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint369 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.62890625, 2469.962890625); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint370 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.6328125, 2471.04833984375); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint371 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.6328125, 2474.225830078125); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint372 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.6328125, 2475.30908203125); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint373 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.6328125, 2476.0263671875); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint374 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.6328125, 2478.37109375); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint375 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.6328125, 2476.58544921875); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint376 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.63671875, 2473.03125); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint377 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.63671875, 2472.650146484375); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint378 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.63671875, 2474.22900390625); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint379 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.63671875, 2472.426513671875); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint380 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.63671875, 2470.7294921875); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint381 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.640625, 2468.599853515625); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint382 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.640625, 2470.30078125); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint383 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.640625, 2469.4794921875); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint384 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.640625, 2471.47412109375); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint385 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.640625, 2473.451416015625); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint386 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.640625, 2473.0087890625); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint387 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.64453125, 2474.67822265625); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint388 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.64453125, 2475.52734375); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint389 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.64453125, 2474.10009765625); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint390 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.64453125, 2475.5625); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint391 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.64453125, 2479.048095703125); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint392 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.6484375, 2482.37158203125); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint393 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.6484375, 2485.667236328125); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint394 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.6484375, 2485.869384765625); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint395 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.6484375, 2487.334716796875); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint396 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.6484375, 2488.683349609375); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint397 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.6484375, 2490.343017578125); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint398 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.65234375, 2492.63330078125); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint399 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.65234375, 2489.9345703125); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint400 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.65234375, 2490.96240234375); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint401 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.65234375, 2492.027587890625); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint402 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.65234375, 2489.82958984375); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint403 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.65234375, 2491.499755859375); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint404 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.65625, 2489.35791015625); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint405 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.65625, 2487.228271484375); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint406 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.65625, 2483.31201171875); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint407 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.65625, 2483.572509765625); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint408 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.65625, 2481.119384765625); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint409 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.66015625, 2482.54150390625); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint410 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.66015625, 2481.2314453125); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint411 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.66015625, 2479.3798828125); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint412 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.66015625, 2477.5595703125); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint413 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.66015625, 2481.18505859375); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint414 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.66015625, 2482.76904296875); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint415 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.6640625, 2479.75927734375); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint416 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.6640625, 2479.10546875); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint417 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.6640625, 2480.201904296875); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint418 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.6640625, 2476.669189453125); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint419 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.6640625, 2473.190673828125); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint420 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.6640625, 2474.89404296875); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint421 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.66796875, 2476.81201171875); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint422 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.66796875, 2480.001708984375); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint423 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.66796875, 2480.50830078125); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint424 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.66796875, 2483.913330078125); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint425 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.66796875, 2485.51318359375); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint426 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.671875, 2489.367431640625); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint427 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.671875, 2491.15478515625); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint428 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.671875, 2487.669921875); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint429 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.671875, 2484.549560546875); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint430 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.671875, 2485.4150390625); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint431 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.671875, 2484.201171875); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint432 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.67578125, 2485.530029296875); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint433 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.67578125, 2485.8076171875); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint434 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.67578125, 2486.977294921875); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint435 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.67578125, 2488.21484375); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint436 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.67578125, 2484.283447265625); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint437 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.6796875, 2480.314208984375); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint438 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.6796875, 2477.634765625); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint439 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.6796875, 2477.759033203125); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint440 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.6796875, 2479.652587890625); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint441 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.6796875, 2482.949462890625); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint442 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.6796875, 2483.072021484375); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint443 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.68359375, 2486.4990234375); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint444 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.68359375, 2490.3818359375); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint445 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.68359375, 2489.695556640625); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint446 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.68359375, 2491.001708984375); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint447 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.68359375, 2494.69970703125); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint448 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.68359375, 2492.411376953125); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint449 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.6875, 2491.623046875); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint450 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.6875, 2489.7421875); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint451 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.6875, 2485.99462890625); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint452 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.6875, 2487.18701171875); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint453 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.6875, 2488.95556640625); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint454 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.69140625, 2488.553466796875); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint455 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.69140625, 2491.66357421875); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint456 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.69140625, 2493.5390625); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint457 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.69140625, 2494.834228515625); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint458 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.69140625, 2497.099365234375); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint459 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.69140625, 2497.35791015625); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint460 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.6953125, 2495.3740234375); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint461 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.6953125, 2493.670166015625); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint462 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.6953125, 2493.41552734375); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint463 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.6953125, 2490.0830078125); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint464 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.6953125, 2486.6396484375); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint465 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.6953125, 2490.543212890625); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint466 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.69921875, 2491.363037109375); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint467 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.69921875, 2493.264892578125); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint468 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.69921875, 2491.720947265625); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint469 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.69921875, 2488.067138671875); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint470 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.69921875, 2484.989013671875); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint471 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.703125, 2484.304443359375); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint472 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.703125, 2484.080322265625); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint473 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.703125, 2484.42333984375); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint474 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.703125, 2483.051025390625); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint475 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.703125, 2485.457763671875); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint476 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.703125, 2483.253173828125); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint477 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.70703125, 2487.015869140625); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint478 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.70703125, 2487.6396484375); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint479 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.70703125, 2487.73095703125); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint480 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.70703125, 2484.0244140625); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint481 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38782.70703125, 2480.180908203125); System.Windows.Forms.DataVisualization.Charting.Title title1 = new System.Windows.Forms.DataVisualization.Charting.Title(); this.label9 = new System.Windows.Forms.Label(); this.chart2 = new System.Windows.Forms.DataVisualization.Charting.Chart(); this.panel1 = new System.Windows.Forms.Panel(); this.button1 = new System.Windows.Forms.Button(); ((System.ComponentModel.ISupportInitialize)(this.chart2)).BeginInit(); this.panel1.SuspendLayout(); this.SuspendLayout(); // // label9 // this.label9.Font = new System.Drawing.Font("Verdana", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0))); this.label9.Location = new System.Drawing.Point(16, 8); this.label9.Name = "label9"; this.label9.Size = new System.Drawing.Size(702, 40); this.label9.TabIndex = 0; this.label9.Text = "This sample demonstrates how to use individual cells to extend the features of a " + "custom legend item."; this.label9.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // chart2 // this.chart2.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(211)), ((System.Byte)(223)), ((System.Byte)(240))); this.chart2.BackSecondaryColor = System.Drawing.Color.White; this.chart2.BackGradientStyle = System.Windows.Forms.DataVisualization.Charting.GradientStyle.TopBottom; this.chart2.BorderlineColor = System.Drawing.Color.FromArgb(((System.Byte)(26)), ((System.Byte)(59)), ((System.Byte)(105))); this.chart2.BorderlineDashStyle = System.Windows.Forms.DataVisualization.Charting.ChartDashStyle.Solid; this.chart2.BorderlineWidth = 2; this.chart2.BorderSkin.SkinStyle = System.Windows.Forms.DataVisualization.Charting.BorderSkinStyle.Emboss; chartArea1.AxisX.IsLabelAutoFit = false; chartArea1.AxisX.LabelStyle.Font = new System.Drawing.Font("Trebuchet MS", 6.75F); chartArea1.AxisX.LabelStyle.Format = "t"; chartArea1.AxisX.LabelStyle.Interval = 0; chartArea1.AxisX.LabelStyle.IntervalOffset = 0; chartArea1.AxisX.LabelStyle.IntervalOffsetType = System.Windows.Forms.DataVisualization.Charting.DateTimeIntervalType.Auto; chartArea1.AxisX.LabelStyle.IntervalType = System.Windows.Forms.DataVisualization.Charting.DateTimeIntervalType.Auto; chartArea1.AxisX.LabelStyle.IsEndLabelVisible = false; chartArea1.AxisX.LineColor = System.Drawing.Color.FromArgb(((System.Byte)(64)), ((System.Byte)(64)), ((System.Byte)(64)), ((System.Byte)(64))); chartArea1.AxisX.MajorGrid.Interval = 0; chartArea1.AxisX.MajorGrid.IntervalOffset = 0; chartArea1.AxisX.MajorGrid.IntervalOffsetType = System.Windows.Forms.DataVisualization.Charting.DateTimeIntervalType.Auto; chartArea1.AxisX.MajorGrid.IntervalType = System.Windows.Forms.DataVisualization.Charting.DateTimeIntervalType.Auto; chartArea1.AxisX.MajorGrid.LineColor = System.Drawing.Color.FromArgb(((System.Byte)(64)), ((System.Byte)(64)), ((System.Byte)(64)), ((System.Byte)(64))); chartArea1.AxisX.MajorTickMark.Enabled = false; chartArea1.AxisX.MajorTickMark.Interval = 0; chartArea1.AxisX.MajorTickMark.IntervalOffset = 0; chartArea1.AxisX.MajorTickMark.IntervalOffsetType = System.Windows.Forms.DataVisualization.Charting.DateTimeIntervalType.Auto; chartArea1.AxisX.MajorTickMark.IntervalType = System.Windows.Forms.DataVisualization.Charting.DateTimeIntervalType.Auto; chartArea1.AxisX.MajorTickMark.LineColor = System.Drawing.Color.FromArgb(((System.Byte)(64)), ((System.Byte)(64)), ((System.Byte)(64)), ((System.Byte)(64))); chartArea1.AxisX.IsMarginVisible = false; chartArea1.AxisX.IsMarksNextToAxis = false; chartArea1.AxisX.MinorGrid.LineColor = System.Drawing.Color.FromArgb(((System.Byte)(64)), ((System.Byte)(64)), ((System.Byte)(64)), ((System.Byte)(64))); chartArea1.AxisX.MinorTickMark.LineColor = System.Drawing.Color.FromArgb(((System.Byte)(64)), ((System.Byte)(64)), ((System.Byte)(64)), ((System.Byte)(64))); axisScaleBreakStyle1.Enabled = false; chartArea1.AxisX.ScaleBreakStyle = axisScaleBreakStyle1; chartArea1.AxisX2.LabelStyle.Interval = 0; chartArea1.AxisX2.LabelStyle.IntervalOffset = 0; chartArea1.AxisX2.LabelStyle.IntervalOffsetType = System.Windows.Forms.DataVisualization.Charting.DateTimeIntervalType.Auto; chartArea1.AxisX2.LabelStyle.IntervalType = System.Windows.Forms.DataVisualization.Charting.DateTimeIntervalType.Auto; chartArea1.AxisX2.MajorGrid.Interval = 0; chartArea1.AxisX2.MajorGrid.IntervalOffset = 0; chartArea1.AxisX2.MajorGrid.IntervalOffsetType = System.Windows.Forms.DataVisualization.Charting.DateTimeIntervalType.Auto; chartArea1.AxisX2.MajorGrid.IntervalType = System.Windows.Forms.DataVisualization.Charting.DateTimeIntervalType.Auto; chartArea1.AxisX2.MajorTickMark.Interval = 0; chartArea1.AxisX2.MajorTickMark.IntervalOffset = 0; chartArea1.AxisX2.MajorTickMark.IntervalOffsetType = System.Windows.Forms.DataVisualization.Charting.DateTimeIntervalType.Auto; chartArea1.AxisX2.MajorTickMark.IntervalType = System.Windows.Forms.DataVisualization.Charting.DateTimeIntervalType.Auto; axisScaleBreakStyle2.Enabled = false; chartArea1.AxisX2.ScaleBreakStyle = axisScaleBreakStyle2; chartArea1.AxisY.Crossing = 2449.795166015625; chartArea1.AxisY.IsLabelAutoFit = false; chartArea1.AxisY.LabelStyle.Font = new System.Drawing.Font("Trebuchet MS", 6.75F); chartArea1.AxisY.LabelStyle.Format = "F0"; chartArea1.AxisY.LabelStyle.Interval = 0; chartArea1.AxisY.LabelStyle.IntervalOffset = 0; chartArea1.AxisY.LabelStyle.IntervalOffsetType = System.Windows.Forms.DataVisualization.Charting.DateTimeIntervalType.Auto; chartArea1.AxisY.LabelStyle.IntervalType = System.Windows.Forms.DataVisualization.Charting.DateTimeIntervalType.Auto; chartArea1.AxisY.LineColor = System.Drawing.Color.FromArgb(((System.Byte)(64)), ((System.Byte)(64)), ((System.Byte)(64)), ((System.Byte)(64))); chartArea1.AxisY.MajorGrid.Interval = 0; chartArea1.AxisY.MajorGrid.IntervalOffset = 0; chartArea1.AxisY.MajorGrid.IntervalOffsetType = System.Windows.Forms.DataVisualization.Charting.DateTimeIntervalType.Auto; chartArea1.AxisY.MajorGrid.IntervalType = System.Windows.Forms.DataVisualization.Charting.DateTimeIntervalType.Auto; chartArea1.AxisY.MajorGrid.LineColor = System.Drawing.Color.FromArgb(((System.Byte)(64)), ((System.Byte)(64)), ((System.Byte)(64)), ((System.Byte)(64))); chartArea1.AxisY.MajorTickMark.Enabled = false; chartArea1.AxisY.MajorTickMark.Interval = 0; chartArea1.AxisY.MajorTickMark.IntervalOffset = 0; chartArea1.AxisY.MajorTickMark.IntervalOffsetType = System.Windows.Forms.DataVisualization.Charting.DateTimeIntervalType.Auto; chartArea1.AxisY.MajorTickMark.IntervalType = System.Windows.Forms.DataVisualization.Charting.DateTimeIntervalType.Auto; chartArea1.AxisY.MajorTickMark.LineColor = System.Drawing.Color.FromArgb(((System.Byte)(64)), ((System.Byte)(64)), ((System.Byte)(64)), ((System.Byte)(64))); chartArea1.AxisY.Maximum = 2498.35791015625; chartArea1.AxisY.Minimum = 2403.232177734375; chartArea1.AxisY.MinorGrid.LineColor = System.Drawing.Color.FromArgb(((System.Byte)(64)), ((System.Byte)(64)), ((System.Byte)(64)), ((System.Byte)(64))); chartArea1.AxisY.MinorTickMark.LineColor = System.Drawing.Color.FromArgb(((System.Byte)(64)), ((System.Byte)(64)), ((System.Byte)(64)), ((System.Byte)(64))); axisScaleBreakStyle3.Enabled = false; chartArea1.AxisY.ScaleBreakStyle = axisScaleBreakStyle3; chartArea1.AxisY2.LabelStyle.Interval = 0; chartArea1.AxisY2.LabelStyle.IntervalOffset = 0; chartArea1.AxisY2.LabelStyle.IntervalOffsetType = System.Windows.Forms.DataVisualization.Charting.DateTimeIntervalType.Auto; chartArea1.AxisY2.LabelStyle.IntervalType = System.Windows.Forms.DataVisualization.Charting.DateTimeIntervalType.Auto; chartArea1.AxisY2.MajorGrid.Interval = 0; chartArea1.AxisY2.MajorGrid.IntervalOffset = 0; chartArea1.AxisY2.MajorGrid.IntervalOffsetType = System.Windows.Forms.DataVisualization.Charting.DateTimeIntervalType.Auto; chartArea1.AxisY2.MajorGrid.IntervalType = System.Windows.Forms.DataVisualization.Charting.DateTimeIntervalType.Auto; chartArea1.AxisY2.MajorTickMark.Interval = 0; chartArea1.AxisY2.MajorTickMark.IntervalOffset = 0; chartArea1.AxisY2.MajorTickMark.IntervalOffsetType = System.Windows.Forms.DataVisualization.Charting.DateTimeIntervalType.Auto; chartArea1.AxisY2.MajorTickMark.IntervalType = System.Windows.Forms.DataVisualization.Charting.DateTimeIntervalType.Auto; axisScaleBreakStyle4.Enabled = false; chartArea1.AxisY2.ScaleBreakStyle = axisScaleBreakStyle4; chartArea1.BackColor = System.Drawing.Color.Transparent; chartArea1.Name = "Default"; this.chart2.ChartAreas.Add(chartArea1); legend1.Alignment = System.Drawing.StringAlignment.Center; legend1.IsTextAutoFit = false; legend1.BackColor = System.Drawing.Color.Transparent; legend1.BorderColor = System.Drawing.Color.Black; legend1.BorderWidth = 0; legendCell1.Alignment = System.Drawing.ContentAlignment.MiddleLeft; legendCell1.Name = "Cell1"; legendCell1.Text = "Central"; legendCell2.Alignment = System.Drawing.ContentAlignment.MiddleRight; legendCell2.Name = "Cell2"; legendCell2.Text = "2480.18"; legendCell3.Alignment = System.Drawing.ContentAlignment.MiddleRight; legendCell3.Name = "Cell3"; legendCell3.Text = "69.35"; legendCell3.ForeColor = System.Drawing.Color.LimeGreen; legendCell4.Alignment = System.Drawing.ContentAlignment.MiddleLeft; legendCell4.CellType = System.Windows.Forms.DataVisualization.Charting.LegendCellType.Image; legendCell4.Name = "Cell4"; legendCell5.Alignment = System.Drawing.ContentAlignment.MiddleLeft; legendCell5.Name = "Cell5"; legendCell5.Text = "2.88%"; legendCell5.ForeColor = System.Drawing.Color.LimeGreen; legendItem1.Cells.Add(legendCell1); legendItem1.Cells.Add(legendCell2); legendItem1.Cells.Add(legendCell3); legendItem1.Cells.Add(legendCell4); legendItem1.Cells.Add(legendCell5); legendItem1.Color = System.Drawing.Color.Red; legendItem1.Name = "LegendItem"; legend1.CustomItems.Add(legendItem1); legend1.Docking = System.Windows.Forms.DataVisualization.Charting.Docking.Bottom; legend1.Font = new System.Drawing.Font("Trebuchet MS", 8F, System.Drawing.FontStyle.Bold); legend1.Name = "Default"; legend1.TableStyle = System.Windows.Forms.DataVisualization.Charting.LegendTableStyle.Tall; legend1.TitleFont = new System.Drawing.Font("Microsoft Sans Serif", 8F, System.Drawing.FontStyle.Bold); this.chart2.Legends.Add(legend1); this.chart2.Location = new System.Drawing.Point(16, 56); this.chart2.Name = "chart2"; this.chart2.Palette = System.Windows.Forms.DataVisualization.Charting.ChartColorPalette.BrightPastel; series1.BorderColor = System.Drawing.Color.FromArgb(((System.Byte)(180)), ((System.Byte)(26)), ((System.Byte)(59)), ((System.Byte)(105))); series1.BorderWidth = 0; series1.ChartType = SeriesChartType.Area; series1.Name = "Central"; series1.Points.Add(dataPoint1); series1.Points.Add(dataPoint2); series1.Points.Add(dataPoint3); series1.Points.Add(dataPoint4); series1.Points.Add(dataPoint5); series1.Points.Add(dataPoint6); series1.Points.Add(dataPoint7); series1.Points.Add(dataPoint8); series1.Points.Add(dataPoint9); series1.Points.Add(dataPoint10); series1.Points.Add(dataPoint11); series1.Points.Add(dataPoint12); series1.Points.Add(dataPoint13); series1.Points.Add(dataPoint14); series1.Points.Add(dataPoint15); series1.Points.Add(dataPoint16); series1.Points.Add(dataPoint17); series1.Points.Add(dataPoint18); series1.Points.Add(dataPoint19); series1.Points.Add(dataPoint20); series1.Points.Add(dataPoint21); series1.Points.Add(dataPoint22); series1.Points.Add(dataPoint23); series1.Points.Add(dataPoint24); series1.Points.Add(dataPoint25); series1.Points.Add(dataPoint26); series1.Points.Add(dataPoint27); series1.Points.Add(dataPoint28); series1.Points.Add(dataPoint29); series1.Points.Add(dataPoint30); series1.Points.Add(dataPoint31); series1.Points.Add(dataPoint32); series1.Points.Add(dataPoint33); series1.Points.Add(dataPoint34); series1.Points.Add(dataPoint35); series1.Points.Add(dataPoint36); series1.Points.Add(dataPoint37); series1.Points.Add(dataPoint38); series1.Points.Add(dataPoint39); series1.Points.Add(dataPoint40); series1.Points.Add(dataPoint41); series1.Points.Add(dataPoint42); series1.Points.Add(dataPoint43); series1.Points.Add(dataPoint44); series1.Points.Add(dataPoint45); series1.Points.Add(dataPoint46); series1.Points.Add(dataPoint47); series1.Points.Add(dataPoint48); series1.Points.Add(dataPoint49); series1.Points.Add(dataPoint50); series1.Points.Add(dataPoint51); series1.Points.Add(dataPoint52); series1.Points.Add(dataPoint53); series1.Points.Add(dataPoint54); series1.Points.Add(dataPoint55); series1.Points.Add(dataPoint56); series1.Points.Add(dataPoint57); series1.Points.Add(dataPoint58); series1.Points.Add(dataPoint59); series1.Points.Add(dataPoint60); series1.Points.Add(dataPoint61); series1.Points.Add(dataPoint62); series1.Points.Add(dataPoint63); series1.Points.Add(dataPoint64); series1.Points.Add(dataPoint65); series1.Points.Add(dataPoint66); series1.Points.Add(dataPoint67); series1.Points.Add(dataPoint68); series1.Points.Add(dataPoint69); series1.Points.Add(dataPoint70); series1.Points.Add(dataPoint71); series1.Points.Add(dataPoint72); series1.Points.Add(dataPoint73); series1.Points.Add(dataPoint74); series1.Points.Add(dataPoint75); series1.Points.Add(dataPoint76); series1.Points.Add(dataPoint77); series1.Points.Add(dataPoint78); series1.Points.Add(dataPoint79); series1.Points.Add(dataPoint80); series1.Points.Add(dataPoint81); series1.Points.Add(dataPoint82); series1.Points.Add(dataPoint83); series1.Points.Add(dataPoint84); series1.Points.Add(dataPoint85); series1.Points.Add(dataPoint86); series1.Points.Add(dataPoint87); series1.Points.Add(dataPoint88); series1.Points.Add(dataPoint89); series1.Points.Add(dataPoint90); series1.Points.Add(dataPoint91); series1.Points.Add(dataPoint92); series1.Points.Add(dataPoint93); series1.Points.Add(dataPoint94); series1.Points.Add(dataPoint95); series1.Points.Add(dataPoint96); series1.Points.Add(dataPoint97); series1.Points.Add(dataPoint98); series1.Points.Add(dataPoint99); series1.Points.Add(dataPoint100); series1.Points.Add(dataPoint101); series1.Points.Add(dataPoint102); series1.Points.Add(dataPoint103); series1.Points.Add(dataPoint104); series1.Points.Add(dataPoint105); series1.Points.Add(dataPoint106); series1.Points.Add(dataPoint107); series1.Points.Add(dataPoint108); series1.Points.Add(dataPoint109); series1.Points.Add(dataPoint110); series1.Points.Add(dataPoint111); series1.Points.Add(dataPoint112); series1.Points.Add(dataPoint113); series1.Points.Add(dataPoint114); series1.Points.Add(dataPoint115); series1.Points.Add(dataPoint116); series1.Points.Add(dataPoint117); series1.Points.Add(dataPoint118); series1.Points.Add(dataPoint119); series1.Points.Add(dataPoint120); series1.Points.Add(dataPoint121); series1.Points.Add(dataPoint122); series1.Points.Add(dataPoint123); series1.Points.Add(dataPoint124); series1.Points.Add(dataPoint125); series1.Points.Add(dataPoint126); series1.Points.Add(dataPoint127); series1.Points.Add(dataPoint128); series1.Points.Add(dataPoint129); series1.Points.Add(dataPoint130); series1.Points.Add(dataPoint131); series1.Points.Add(dataPoint132); series1.Points.Add(dataPoint133); series1.Points.Add(dataPoint134); series1.Points.Add(dataPoint135); series1.Points.Add(dataPoint136); series1.Points.Add(dataPoint137); series1.Points.Add(dataPoint138); series1.Points.Add(dataPoint139); series1.Points.Add(dataPoint140); series1.Points.Add(dataPoint141); series1.Points.Add(dataPoint142); series1.Points.Add(dataPoint143); series1.Points.Add(dataPoint144); series1.Points.Add(dataPoint145); series1.Points.Add(dataPoint146); series1.Points.Add(dataPoint147); series1.Points.Add(dataPoint148); series1.Points.Add(dataPoint149); series1.Points.Add(dataPoint150); series1.Points.Add(dataPoint151); series1.Points.Add(dataPoint152); series1.Points.Add(dataPoint153); series1.Points.Add(dataPoint154); series1.Points.Add(dataPoint155); series1.Points.Add(dataPoint156); series1.Points.Add(dataPoint157); series1.Points.Add(dataPoint158); series1.Points.Add(dataPoint159); series1.Points.Add(dataPoint160); series1.Points.Add(dataPoint161); series1.Points.Add(dataPoint162); series1.Points.Add(dataPoint163); series1.Points.Add(dataPoint164); series1.Points.Add(dataPoint165); series1.Points.Add(dataPoint166); series1.Points.Add(dataPoint167); series1.Points.Add(dataPoint168); series1.Points.Add(dataPoint169); series1.Points.Add(dataPoint170); series1.Points.Add(dataPoint171); series1.Points.Add(dataPoint172); series1.Points.Add(dataPoint173); series1.Points.Add(dataPoint174); series1.Points.Add(dataPoint175); series1.Points.Add(dataPoint176); series1.Points.Add(dataPoint177); series1.Points.Add(dataPoint178); series1.Points.Add(dataPoint179); series1.Points.Add(dataPoint180); series1.Points.Add(dataPoint181); series1.Points.Add(dataPoint182); series1.Points.Add(dataPoint183); series1.Points.Add(dataPoint184); series1.Points.Add(dataPoint185); series1.Points.Add(dataPoint186); series1.Points.Add(dataPoint187); series1.Points.Add(dataPoint188); series1.Points.Add(dataPoint189); series1.Points.Add(dataPoint190); series1.Points.Add(dataPoint191); series1.Points.Add(dataPoint192); series1.Points.Add(dataPoint193); series1.Points.Add(dataPoint194); series1.Points.Add(dataPoint195); series1.Points.Add(dataPoint196); series1.Points.Add(dataPoint197); series1.Points.Add(dataPoint198); series1.Points.Add(dataPoint199); series1.Points.Add(dataPoint200); series1.Points.Add(dataPoint201); series1.Points.Add(dataPoint202); series1.Points.Add(dataPoint203); series1.Points.Add(dataPoint204); series1.Points.Add(dataPoint205); series1.Points.Add(dataPoint206); series1.Points.Add(dataPoint207); series1.Points.Add(dataPoint208); series1.Points.Add(dataPoint209); series1.Points.Add(dataPoint210); series1.Points.Add(dataPoint211); series1.Points.Add(dataPoint212); series1.Points.Add(dataPoint213); series1.Points.Add(dataPoint214); series1.Points.Add(dataPoint215); series1.Points.Add(dataPoint216); series1.Points.Add(dataPoint217); series1.Points.Add(dataPoint218); series1.Points.Add(dataPoint219); series1.Points.Add(dataPoint220); series1.Points.Add(dataPoint221); series1.Points.Add(dataPoint222); series1.Points.Add(dataPoint223); series1.Points.Add(dataPoint224); series1.Points.Add(dataPoint225); series1.Points.Add(dataPoint226); series1.Points.Add(dataPoint227); series1.Points.Add(dataPoint228); series1.Points.Add(dataPoint229); series1.Points.Add(dataPoint230); series1.Points.Add(dataPoint231); series1.Points.Add(dataPoint232); series1.Points.Add(dataPoint233); series1.Points.Add(dataPoint234); series1.Points.Add(dataPoint235); series1.Points.Add(dataPoint236); series1.Points.Add(dataPoint237); series1.Points.Add(dataPoint238); series1.Points.Add(dataPoint239); series1.Points.Add(dataPoint240); series1.Points.Add(dataPoint241); series1.Points.Add(dataPoint242); series1.Points.Add(dataPoint243); series1.Points.Add(dataPoint244); series1.Points.Add(dataPoint245); series1.Points.Add(dataPoint246); series1.Points.Add(dataPoint247); series1.Points.Add(dataPoint248); series1.Points.Add(dataPoint249); series1.Points.Add(dataPoint250); series1.Points.Add(dataPoint251); series1.Points.Add(dataPoint252); series1.Points.Add(dataPoint253); series1.Points.Add(dataPoint254); series1.Points.Add(dataPoint255); series1.Points.Add(dataPoint256); series1.Points.Add(dataPoint257); series1.Points.Add(dataPoint258); series1.Points.Add(dataPoint259); series1.Points.Add(dataPoint260); series1.Points.Add(dataPoint261); series1.Points.Add(dataPoint262); series1.Points.Add(dataPoint263); series1.Points.Add(dataPoint264); series1.Points.Add(dataPoint265); series1.Points.Add(dataPoint266); series1.Points.Add(dataPoint267); series1.Points.Add(dataPoint268); series1.Points.Add(dataPoint269); series1.Points.Add(dataPoint270); series1.Points.Add(dataPoint271); series1.Points.Add(dataPoint272); series1.Points.Add(dataPoint273); series1.Points.Add(dataPoint274); series1.Points.Add(dataPoint275); series1.Points.Add(dataPoint276); series1.Points.Add(dataPoint277); series1.Points.Add(dataPoint278); series1.Points.Add(dataPoint279); series1.Points.Add(dataPoint280); series1.Points.Add(dataPoint281); series1.Points.Add(dataPoint282); series1.Points.Add(dataPoint283); series1.Points.Add(dataPoint284); series1.Points.Add(dataPoint285); series1.Points.Add(dataPoint286); series1.Points.Add(dataPoint287); series1.Points.Add(dataPoint288); series1.Points.Add(dataPoint289); series1.Points.Add(dataPoint290); series1.Points.Add(dataPoint291); series1.Points.Add(dataPoint292); series1.Points.Add(dataPoint293); series1.Points.Add(dataPoint294); series1.Points.Add(dataPoint295); series1.Points.Add(dataPoint296); series1.Points.Add(dataPoint297); series1.Points.Add(dataPoint298); series1.Points.Add(dataPoint299); series1.Points.Add(dataPoint300); series1.Points.Add(dataPoint301); series1.Points.Add(dataPoint302); series1.Points.Add(dataPoint303); series1.Points.Add(dataPoint304); series1.Points.Add(dataPoint305); series1.Points.Add(dataPoint306); series1.Points.Add(dataPoint307); series1.Points.Add(dataPoint308); series1.Points.Add(dataPoint309); series1.Points.Add(dataPoint310); series1.Points.Add(dataPoint311); series1.Points.Add(dataPoint312); series1.Points.Add(dataPoint313); series1.Points.Add(dataPoint314); series1.Points.Add(dataPoint315); series1.Points.Add(dataPoint316); series1.Points.Add(dataPoint317); series1.Points.Add(dataPoint318); series1.Points.Add(dataPoint319); series1.Points.Add(dataPoint320); series1.Points.Add(dataPoint321); series1.Points.Add(dataPoint322); series1.Points.Add(dataPoint323); series1.Points.Add(dataPoint324); series1.Points.Add(dataPoint325); series1.Points.Add(dataPoint326); series1.Points.Add(dataPoint327); series1.Points.Add(dataPoint328); series1.Points.Add(dataPoint329); series1.Points.Add(dataPoint330); series1.Points.Add(dataPoint331); series1.Points.Add(dataPoint332); series1.Points.Add(dataPoint333); series1.Points.Add(dataPoint334); series1.Points.Add(dataPoint335); series1.Points.Add(dataPoint336); series1.Points.Add(dataPoint337); series1.Points.Add(dataPoint338); series1.Points.Add(dataPoint339); series1.Points.Add(dataPoint340); series1.Points.Add(dataPoint341); series1.Points.Add(dataPoint342); series1.Points.Add(dataPoint343); series1.Points.Add(dataPoint344); series1.Points.Add(dataPoint345); series1.Points.Add(dataPoint346); series1.Points.Add(dataPoint347); series1.Points.Add(dataPoint348); series1.Points.Add(dataPoint349); series1.Points.Add(dataPoint350); series1.Points.Add(dataPoint351); series1.Points.Add(dataPoint352); series1.Points.Add(dataPoint353); series1.Points.Add(dataPoint354); series1.Points.Add(dataPoint355); series1.Points.Add(dataPoint356); series1.Points.Add(dataPoint357); series1.Points.Add(dataPoint358); series1.Points.Add(dataPoint359); series1.Points.Add(dataPoint360); series1.Points.Add(dataPoint361); series1.Points.Add(dataPoint362); series1.Points.Add(dataPoint363); series1.Points.Add(dataPoint364); series1.Points.Add(dataPoint365); series1.Points.Add(dataPoint366); series1.Points.Add(dataPoint367); series1.Points.Add(dataPoint368); series1.Points.Add(dataPoint369); series1.Points.Add(dataPoint370); series1.Points.Add(dataPoint371); series1.Points.Add(dataPoint372); series1.Points.Add(dataPoint373); series1.Points.Add(dataPoint374); series1.Points.Add(dataPoint375); series1.Points.Add(dataPoint376); series1.Points.Add(dataPoint377); series1.Points.Add(dataPoint378); series1.Points.Add(dataPoint379); series1.Points.Add(dataPoint380); series1.Points.Add(dataPoint381); series1.Points.Add(dataPoint382); series1.Points.Add(dataPoint383); series1.Points.Add(dataPoint384); series1.Points.Add(dataPoint385); series1.Points.Add(dataPoint386); series1.Points.Add(dataPoint387); series1.Points.Add(dataPoint388); series1.Points.Add(dataPoint389); series1.Points.Add(dataPoint390); series1.Points.Add(dataPoint391); series1.Points.Add(dataPoint392); series1.Points.Add(dataPoint393); series1.Points.Add(dataPoint394); series1.Points.Add(dataPoint395); series1.Points.Add(dataPoint396); series1.Points.Add(dataPoint397); series1.Points.Add(dataPoint398); series1.Points.Add(dataPoint399); series1.Points.Add(dataPoint400); series1.Points.Add(dataPoint401); series1.Points.Add(dataPoint402); series1.Points.Add(dataPoint403); series1.Points.Add(dataPoint404); series1.Points.Add(dataPoint405); series1.Points.Add(dataPoint406); series1.Points.Add(dataPoint407); series1.Points.Add(dataPoint408); series1.Points.Add(dataPoint409); series1.Points.Add(dataPoint410); series1.Points.Add(dataPoint411); series1.Points.Add(dataPoint412); series1.Points.Add(dataPoint413); series1.Points.Add(dataPoint414); series1.Points.Add(dataPoint415); series1.Points.Add(dataPoint416); series1.Points.Add(dataPoint417); series1.Points.Add(dataPoint418); series1.Points.Add(dataPoint419); series1.Points.Add(dataPoint420); series1.Points.Add(dataPoint421); series1.Points.Add(dataPoint422); series1.Points.Add(dataPoint423); series1.Points.Add(dataPoint424); series1.Points.Add(dataPoint425); series1.Points.Add(dataPoint426); series1.Points.Add(dataPoint427); series1.Points.Add(dataPoint428); series1.Points.Add(dataPoint429); series1.Points.Add(dataPoint430); series1.Points.Add(dataPoint431); series1.Points.Add(dataPoint432); series1.Points.Add(dataPoint433); series1.Points.Add(dataPoint434); series1.Points.Add(dataPoint435); series1.Points.Add(dataPoint436); series1.Points.Add(dataPoint437); series1.Points.Add(dataPoint438); series1.Points.Add(dataPoint439); series1.Points.Add(dataPoint440); series1.Points.Add(dataPoint441); series1.Points.Add(dataPoint442); series1.Points.Add(dataPoint443); series1.Points.Add(dataPoint444); series1.Points.Add(dataPoint445); series1.Points.Add(dataPoint446); series1.Points.Add(dataPoint447); series1.Points.Add(dataPoint448); series1.Points.Add(dataPoint449); series1.Points.Add(dataPoint450); series1.Points.Add(dataPoint451); series1.Points.Add(dataPoint452); series1.Points.Add(dataPoint453); series1.Points.Add(dataPoint454); series1.Points.Add(dataPoint455); series1.Points.Add(dataPoint456); series1.Points.Add(dataPoint457); series1.Points.Add(dataPoint458); series1.Points.Add(dataPoint459); series1.Points.Add(dataPoint460); series1.Points.Add(dataPoint461); series1.Points.Add(dataPoint462); series1.Points.Add(dataPoint463); series1.Points.Add(dataPoint464); series1.Points.Add(dataPoint465); series1.Points.Add(dataPoint466); series1.Points.Add(dataPoint467); series1.Points.Add(dataPoint468); series1.Points.Add(dataPoint469); series1.Points.Add(dataPoint470); series1.Points.Add(dataPoint471); series1.Points.Add(dataPoint472); series1.Points.Add(dataPoint473); series1.Points.Add(dataPoint474); series1.Points.Add(dataPoint475); series1.Points.Add(dataPoint476); series1.Points.Add(dataPoint477); series1.Points.Add(dataPoint478); series1.Points.Add(dataPoint479); series1.Points.Add(dataPoint480); series1.Points.Add(dataPoint481); series1.ShadowColor = System.Drawing.Color.Black; series1.IsVisibleInLegend = false; series1.XValueType = System.Windows.Forms.DataVisualization.Charting.ChartValueType.DateTime; series1.YValueType = System.Windows.Forms.DataVisualization.Charting.ChartValueType.Double; this.chart2.Series.Add(series1); this.chart2.Size = new System.Drawing.Size(412, 296); this.chart2.TabIndex = 1; title1.Alignment = System.Drawing.ContentAlignment.TopRight; title1.ForeColor = System.Drawing.Color.FromArgb(((System.Byte)(200)), ((System.Byte)(26)), ((System.Byte)(59)), ((System.Byte)(105))); title1.Font = new System.Drawing.Font("Trebuchet MS", 12F, System.Drawing.FontStyle.Bold); title1.Name = "Title1"; title1.Text = "The Central Stock Market"; this.chart2.Titles.Add(title1); // // panel1 // this.panel1.Controls.AddRange(new System.Windows.Forms.Control[] { this.button1}); this.panel1.Location = new System.Drawing.Point(432, 56); this.panel1.Name = "panel1"; this.panel1.Size = new System.Drawing.Size(292, 296); this.panel1.TabIndex = 2; // // button1 // this.button1.BackColor = System.Drawing.SystemColors.Control; this.button1.Location = new System.Drawing.Point(56, 8); this.button1.Name = "button1"; this.button1.Size = new System.Drawing.Size(168, 23); this.button1.TabIndex = 11; this.button1.Text = "Generate Random Data"; this.button1.Click += new System.EventHandler(this.button1_Click); // // LegendCells // this.Controls.AddRange(new System.Windows.Forms.Control[] { this.panel1, this.chart2, this.label9}); this.Font = new System.Drawing.Font("Verdana", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0))); this.Name = "LegendCells"; this.Size = new System.Drawing.Size(728, 480); this.Load += new System.EventHandler(this.LegendCustomPosition_Load); ((System.ComponentModel.ISupportInitialize)(this.chart2)).EndInit(); this.panel1.ResumeLayout(false); this.ResumeLayout(false); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { System.Windows.Forms.DataVisualization.Charting.ChartArea chartArea1 = new System.Windows.Forms.DataVisualization.Charting.ChartArea(); System.Windows.Forms.DataVisualization.Charting.CustomLabel customLabel1 = new System.Windows.Forms.DataVisualization.Charting.CustomLabel(); System.Windows.Forms.DataVisualization.Charting.CustomLabel customLabel2 = new System.Windows.Forms.DataVisualization.Charting.CustomLabel(); System.Windows.Forms.DataVisualization.Charting.CustomLabel customLabel3 = new System.Windows.Forms.DataVisualization.Charting.CustomLabel(); System.Windows.Forms.DataVisualization.Charting.CustomLabel customLabel4 = new System.Windows.Forms.DataVisualization.Charting.CustomLabel(); System.Windows.Forms.DataVisualization.Charting.Legend legend1 = new System.Windows.Forms.DataVisualization.Charting.Legend(); System.Windows.Forms.DataVisualization.Charting.Legend legend2 = new System.Windows.Forms.DataVisualization.Charting.Legend(); System.Windows.Forms.DataVisualization.Charting.Legend legend3 = new System.Windows.Forms.DataVisualization.Charting.Legend(); System.Windows.Forms.DataVisualization.Charting.LegendItem legendItem1 = new System.Windows.Forms.DataVisualization.Charting.LegendItem(); System.Windows.Forms.DataVisualization.Charting.LegendItem legendItem2 = new System.Windows.Forms.DataVisualization.Charting.LegendItem(); System.Windows.Forms.DataVisualization.Charting.LegendItem legendItem3 = new System.Windows.Forms.DataVisualization.Charting.LegendItem(); System.Windows.Forms.DataVisualization.Charting.Series series1 = new System.Windows.Forms.DataVisualization.Charting.Series(); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint1 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(1, 70); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint2 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(2, 80); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint3 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(3, 70); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint4 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(4, 85); System.Windows.Forms.DataVisualization.Charting.Series series2 = new System.Windows.Forms.DataVisualization.Charting.Series(); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint5 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(1, 65); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint6 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(2, 70); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint7 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(3, 60); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint8 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(4, 75); System.Windows.Forms.DataVisualization.Charting.Series series3 = new System.Windows.Forms.DataVisualization.Charting.Series(); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint9 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(1, 50); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint10 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(2, 55); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint11 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(3, 40); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint12 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(4, 70); System.Windows.Forms.DataVisualization.Charting.Title title1 = new System.Windows.Forms.DataVisualization.Charting.Title(); this.label9 = new System.Windows.Forms.Label(); this.panel1 = new System.Windows.Forms.Panel(); this.comboBoxBackColor = new System.Windows.Forms.ComboBox(); this.label16 = new System.Windows.Forms.Label(); this.BorderSize = new System.Windows.Forms.ComboBox(); this.BorderColor = new System.Windows.Forms.ComboBox(); this.label13 = new System.Windows.Forms.Label(); this.label14 = new System.Windows.Forms.Label(); this.AngleList = new System.Windows.Forms.ComboBox(); this.FontColorCombo = new System.Windows.Forms.ComboBox(); this.FontNameSize = new System.Windows.Forms.ComboBox(); this.FontNameList = new System.Windows.Forms.ComboBox(); this.LabelPosition = new System.Windows.Forms.ComboBox(); this.label12 = new System.Windows.Forms.Label(); this.label11 = new System.Windows.Forms.Label(); this.label10 = new System.Windows.Forms.Label(); this.label2 = new System.Windows.Forms.Label(); this.label1 = new System.Windows.Forms.Label(); this.label8 = new System.Windows.Forms.Label(); this.label7 = new System.Windows.Forms.Label(); this.label6 = new System.Windows.Forms.Label(); this.label5 = new System.Windows.Forms.Label(); this.label4 = new System.Windows.Forms.Label(); this.label3 = new System.Windows.Forms.Label(); this.label15 = new System.Windows.Forms.Label(); this.Chart1 = new System.Windows.Forms.DataVisualization.Charting.Chart(); this.label17 = new System.Windows.Forms.Label(); this.panel1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.Chart1)).BeginInit(); this.SuspendLayout(); // // label9 // this.label9.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.label9.Font = new System.Drawing.Font("Verdana", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label9.Location = new System.Drawing.Point(16, 8); this.label9.Name = "label9"; this.label9.Size = new System.Drawing.Size(702, 34); this.label9.TabIndex = 0; this.label9.Text = "This sample shows how to set�the font,�angle, and color of data point�labels."; this.label9.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // panel1 // this.panel1.Controls.Add(this.comboBoxBackColor); this.panel1.Controls.Add(this.label16); this.panel1.Controls.Add(this.BorderSize); this.panel1.Controls.Add(this.BorderColor); this.panel1.Controls.Add(this.label13); this.panel1.Controls.Add(this.label14); this.panel1.Controls.Add(this.AngleList); this.panel1.Controls.Add(this.FontColorCombo); this.panel1.Controls.Add(this.FontNameSize); this.panel1.Controls.Add(this.FontNameList); this.panel1.Controls.Add(this.LabelPosition); this.panel1.Controls.Add(this.label12); this.panel1.Controls.Add(this.label11); this.panel1.Controls.Add(this.label10); this.panel1.Controls.Add(this.label2); this.panel1.Controls.Add(this.label1); this.panel1.Controls.Add(this.label8); this.panel1.Controls.Add(this.label7); this.panel1.Controls.Add(this.label6); this.panel1.Controls.Add(this.label5); this.panel1.Controls.Add(this.label4); this.panel1.Controls.Add(this.label3); this.panel1.Controls.Add(this.label15); this.panel1.Location = new System.Drawing.Point(432, 56); this.panel1.Name = "panel1"; this.panel1.Size = new System.Drawing.Size(292, 288); this.panel1.TabIndex = 3; // // comboBoxBackColor // this.comboBoxBackColor.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.comboBoxBackColor.Items.AddRange(new object[] { "Transparent", "Beige", "White", "AliceBlue", "Yellow"}); this.comboBoxBackColor.Location = new System.Drawing.Point(168, 136); this.comboBoxBackColor.Name = "comboBoxBackColor"; this.comboBoxBackColor.Size = new System.Drawing.Size(121, 22); this.comboBoxBackColor.TabIndex = 9; this.comboBoxBackColor.SelectedIndexChanged += new System.EventHandler(this.BackColor_SelectedIndexChanged); // // label16 // this.label16.Location = new System.Drawing.Point(64, 136); this.label16.Name = "label16"; this.label16.Size = new System.Drawing.Size(96, 23); this.label16.TabIndex = 8; this.label16.Text = "&Back Color:"; this.label16.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // BorderSize // this.BorderSize.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.BorderSize.Items.AddRange(new object[] { "1", "2", "3"}); this.BorderSize.Location = new System.Drawing.Point(168, 232); this.BorderSize.Name = "BorderSize"; this.BorderSize.Size = new System.Drawing.Size(121, 22); this.BorderSize.TabIndex = 15; this.BorderSize.SelectedIndexChanged += new System.EventHandler(this.BorderSize_SelectedIndexChanged); // // BorderColor // this.BorderColor.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.BorderColor.Items.AddRange(new object[] { "Transparent", "Black", "Blue", "Gray", "Red"}); this.BorderColor.Location = new System.Drawing.Point(168, 200); this.BorderColor.Name = "BorderColor"; this.BorderColor.Size = new System.Drawing.Size(121, 22); this.BorderColor.TabIndex = 13; this.BorderColor.SelectedIndexChanged += new System.EventHandler(this.BorderColor_SelectedIndexChanged); // // label13 // this.label13.Location = new System.Drawing.Point(64, 232); this.label13.Name = "label13"; this.label13.Size = new System.Drawing.Size(100, 23); this.label13.TabIndex = 14; this.label13.Text = "Border &Size:"; this.label13.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // label14 // this.label14.Location = new System.Drawing.Point(64, 200); this.label14.Name = "label14"; this.label14.Size = new System.Drawing.Size(100, 23); this.label14.TabIndex = 12; this.label14.Text = "Bo&rder Color:"; this.label14.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // AngleList // this.AngleList.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.AngleList.Items.AddRange(new object[] { "0", "30", "45", "60", "90", "-30", "-45", "-60", "-90"}); this.AngleList.Location = new System.Drawing.Point(168, 168); this.AngleList.Name = "AngleList"; this.AngleList.Size = new System.Drawing.Size(121, 22); this.AngleList.TabIndex = 11; this.AngleList.SelectedIndexChanged += new System.EventHandler(this.Combo_SelectedIndexChanged); // // FontColorCombo // this.FontColorCombo.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.FontColorCombo.Items.AddRange(new object[] { "Black", "Blue", "Green", "Yellow", "Magenta", "Brown"}); this.FontColorCombo.Location = new System.Drawing.Point(168, 104); this.FontColorCombo.Name = "FontColorCombo"; this.FontColorCombo.Size = new System.Drawing.Size(121, 22); this.FontColorCombo.TabIndex = 7; this.FontColorCombo.SelectedIndexChanged += new System.EventHandler(this.Combo_SelectedIndexChanged); // // FontNameSize // this.FontNameSize.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.FontNameSize.Items.AddRange(new object[] { "6", "8", "10"}); this.FontNameSize.Location = new System.Drawing.Point(168, 72); this.FontNameSize.Name = "FontNameSize"; this.FontNameSize.Size = new System.Drawing.Size(121, 22); this.FontNameSize.TabIndex = 5; this.FontNameSize.SelectedIndexChanged += new System.EventHandler(this.Combo_SelectedIndexChanged); // // FontNameList // this.FontNameList.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.FontNameList.Items.AddRange(new object[] { "Trebuchet MS", "Microsoft Sans Serif", "Times New Roman", "Verdana"}); this.FontNameList.Location = new System.Drawing.Point(168, 40); this.FontNameList.Name = "FontNameList"; this.FontNameList.Size = new System.Drawing.Size(121, 22); this.FontNameList.TabIndex = 3; this.FontNameList.SelectedIndexChanged += new System.EventHandler(this.Combo_SelectedIndexChanged); // // LabelPosition // this.LabelPosition.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.LabelPosition.Items.AddRange(new object[] { "Top", "Bottom", "Center", "Left", "Right"}); this.LabelPosition.Location = new System.Drawing.Point(168, 8); this.LabelPosition.Name = "LabelPosition"; this.LabelPosition.Size = new System.Drawing.Size(121, 22); this.LabelPosition.TabIndex = 1; this.LabelPosition.SelectedIndexChanged += new System.EventHandler(this.Combo_SelectedIndexChanged); // // label12 // this.label12.Location = new System.Drawing.Point(64, 168); this.label12.Name = "label12"; this.label12.Size = new System.Drawing.Size(100, 23); this.label12.TabIndex = 10; this.label12.Text = "Label &Angle:"; this.label12.TextAlign = System.Drawing.ContentAlignment.MiddleRight; this.label12.Click += new System.EventHandler(this.label12_Click); // // label11 // this.label11.Location = new System.Drawing.Point(64, 104); this.label11.Name = "label11"; this.label11.Size = new System.Drawing.Size(100, 23); this.label11.TabIndex = 6; this.label11.Text = "Font &Color:"; this.label11.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // label10 // this.label10.Location = new System.Drawing.Point(64, 72); this.label10.Name = "label10"; this.label10.Size = new System.Drawing.Size(100, 23); this.label10.TabIndex = 4; this.label10.Text = "F&ont Size:"; this.label10.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // label2 // this.label2.Location = new System.Drawing.Point(64, 40); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(100, 23); this.label2.TabIndex = 2; this.label2.Text = "&Font Name:"; this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // label1 // this.label1.Location = new System.Drawing.Point(64, 8); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(100, 23); this.label1.TabIndex = 0; this.label1.Text = "&Position:"; this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // label8 // this.label8.Location = new System.Drawing.Point(64, 472); this.label8.Name = "label8"; this.label8.Size = new System.Drawing.Size(100, 23); this.label8.TabIndex = 7; this.label8.Text = "Shadow Offset:"; // // label7 // this.label7.Location = new System.Drawing.Point(64, 449); this.label7.Name = "label7"; this.label7.Size = new System.Drawing.Size(100, 23); this.label7.TabIndex = 6; this.label7.Text = "Border Style:"; // // label6 // this.label6.Location = new System.Drawing.Point(64, 403); this.label6.Name = "label6"; this.label6.Size = new System.Drawing.Size(100, 23); this.label6.TabIndex = 19; this.label6.Text = "Border Size:"; // // label5 // this.label5.Location = new System.Drawing.Point(64, 380); this.label5.Name = "label5"; this.label5.Size = new System.Drawing.Size(100, 23); this.label5.TabIndex = 18; this.label5.Text = "Border Color:"; // // label4 // this.label4.Location = new System.Drawing.Point(64, 357); this.label4.Name = "label4"; this.label4.Size = new System.Drawing.Size(100, 23); this.label4.TabIndex = 17; this.label4.Text = "Hatch Style:"; // // label3 // this.label3.Location = new System.Drawing.Point(64, 334); this.label3.Name = "label3"; this.label3.Size = new System.Drawing.Size(100, 23); this.label3.TabIndex = 16; this.label3.Text = "Gradient:"; // // label15 // this.label15.Location = new System.Drawing.Point(64, 426); this.label15.Name = "label15"; this.label15.Size = new System.Drawing.Size(100, 23); this.label15.TabIndex = 5; this.label15.Text = "Border Size:"; // // Chart1 // this.Chart1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(211)))), ((int)(((byte)(223)))), ((int)(((byte)(240))))); this.Chart1.BackGradientStyle = System.Windows.Forms.DataVisualization.Charting.GradientStyle.TopBottom; this.Chart1.BackSecondaryColor = System.Drawing.Color.White; this.Chart1.BorderlineColor = System.Drawing.Color.FromArgb(((int)(((byte)(26)))), ((int)(((byte)(59)))), ((int)(((byte)(105))))); this.Chart1.BorderlineDashStyle = System.Windows.Forms.DataVisualization.Charting.ChartDashStyle.Solid; this.Chart1.BorderlineWidth = 2; this.Chart1.BorderSkin.SkinStyle = System.Windows.Forms.DataVisualization.Charting.BorderSkinStyle.Emboss; chartArea1.Area3DStyle.Inclination = 15; chartArea1.Area3DStyle.IsClustered = true; chartArea1.Area3DStyle.IsRightAngleAxes = false; chartArea1.Area3DStyle.Perspective = 10; chartArea1.Area3DStyle.PointGapDepth = 0; chartArea1.Area3DStyle.Rotation = 5; chartArea1.Area3DStyle.WallWidth = 0; customLabel1.FromPosition = 0.5; customLabel1.Text = "John"; customLabel1.ToPosition = 1.5; customLabel2.FromPosition = 1.5; customLabel2.Text = "Mary"; customLabel2.ToPosition = 2.5; customLabel3.FromPosition = 2.5; customLabel3.Text = "Jeff"; customLabel3.ToPosition = 3.5; customLabel4.FromPosition = 3.5; customLabel4.Text = "Bob"; customLabel4.ToPosition = 4.5; chartArea1.AxisX.CustomLabels.Add(customLabel1); chartArea1.AxisX.CustomLabels.Add(customLabel2); chartArea1.AxisX.CustomLabels.Add(customLabel3); chartArea1.AxisX.CustomLabels.Add(customLabel4); chartArea1.AxisX.Interval = 1; chartArea1.AxisX.IsLabelAutoFit = false; chartArea1.AxisX.LabelStyle.Font = new System.Drawing.Font("Trebuchet MS", 8.25F); chartArea1.AxisX.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea1.AxisX.MajorGrid.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea1.AxisY.IsLabelAutoFit = false; chartArea1.AxisY.LabelStyle.Font = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold); chartArea1.AxisY.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea1.AxisY.MajorGrid.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(165)))), ((int)(((byte)(191)))), ((int)(((byte)(228))))); chartArea1.BackGradientStyle = System.Windows.Forms.DataVisualization.Charting.GradientStyle.TopBottom; chartArea1.BackSecondaryColor = System.Drawing.Color.White; chartArea1.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea1.Name = "Default"; chartArea1.Position.Auto = false; chartArea1.Position.Height = 75F; chartArea1.Position.Width = 90F; chartArea1.Position.X = 2F; chartArea1.Position.Y = 13F; chartArea1.ShadowColor = System.Drawing.Color.Transparent; this.Chart1.ChartAreas.Add(chartArea1); legend1.BackColor = System.Drawing.Color.Transparent; legend1.Enabled = false; legend1.LegendStyle = System.Windows.Forms.DataVisualization.Charting.LegendStyle.Row; legend1.Name = "Default"; legend1.Position.Auto = false; legend1.Position.Height = 5F; legend1.Position.Width = 40F; legend1.Position.X = 5F; legend1.Position.Y = 85F; legend2.Enabled = false; legend2.Name = "Legend2"; legend3.BackColor = System.Drawing.Color.Transparent; legendItem1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(65)))), ((int)(((byte)(140)))), ((int)(((byte)(240))))); legendItem1.Name = "Previous Month Avg"; legendItem2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(252)))), ((int)(((byte)(180)))), ((int)(((byte)(65))))); legendItem2.Name = "Last Week"; legendItem3.Color = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(64)))), ((int)(((byte)(10))))); legendItem3.Name = "This Week"; legend3.CustomItems.Add(legendItem1); legend3.CustomItems.Add(legendItem2); legend3.CustomItems.Add(legendItem3); legend3.Font = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold); legend3.IsTextAutoFit = false; legend3.LegendStyle = System.Windows.Forms.DataVisualization.Charting.LegendStyle.Row; legend3.Name = "Legend3"; legend3.Position.Auto = false; legend3.Position.Height = 12F; legend3.Position.Width = 90F; legend3.Position.X = 5F; legend3.Position.Y = 85F; this.Chart1.Legends.Add(legend1); this.Chart1.Legends.Add(legend2); this.Chart1.Legends.Add(legend3); this.Chart1.Location = new System.Drawing.Point(16, 48); this.Chart1.Name = "Chart1"; this.Chart1.Palette = System.Windows.Forms.DataVisualization.Charting.ChartColorPalette.Pastel; series1.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(180)))), ((int)(((byte)(26)))), ((int)(((byte)(59)))), ((int)(((byte)(105))))); series1.ChartArea = "Default"; series1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(65)))), ((int)(((byte)(140)))), ((int)(((byte)(240))))); series1.CustomProperties = "DrawingStyle=Cylinder"; series1.Font = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); series1.IsValueShownAsLabel = true; series1.Legend = "Legend2"; series1.Name = "Series2"; series1.Points.Add(dataPoint1); series1.Points.Add(dataPoint2); series1.Points.Add(dataPoint3); series1.Points.Add(dataPoint4); series1.ShadowColor = System.Drawing.Color.Transparent; series1.XValueType = System.Windows.Forms.DataVisualization.Charting.ChartValueType.Double; series1.YValueType = System.Windows.Forms.DataVisualization.Charting.ChartValueType.Double; series2.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); series2.ChartArea = "Default"; series2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(252)))), ((int)(((byte)(180)))), ((int)(((byte)(65))))); series2.CustomProperties = "DrawingStyle=Cylinder"; series2.Font = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); series2.IsValueShownAsLabel = true; series2.Legend = "Default"; series2.Name = "Series3"; series2.Points.Add(dataPoint5); series2.Points.Add(dataPoint6); series2.Points.Add(dataPoint7); series2.Points.Add(dataPoint8); series3.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); series3.ChartArea = "Default"; series3.Color = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(64)))), ((int)(((byte)(10))))); series3.CustomProperties = "DrawingStyle=Cylinder"; series3.Font = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); series3.IsValueShownAsLabel = true; series3.Legend = "Default"; series3.Name = "Series4"; series3.Points.Add(dataPoint9); series3.Points.Add(dataPoint10); series3.Points.Add(dataPoint11); series3.Points.Add(dataPoint12); this.Chart1.Series.Add(series1); this.Chart1.Series.Add(series2); this.Chart1.Series.Add(series3); this.Chart1.Size = new System.Drawing.Size(412, 306); this.Chart1.TabIndex = 1; title1.Alignment = System.Drawing.ContentAlignment.TopLeft; title1.Font = new System.Drawing.Font("Trebuchet MS", 14.25F, System.Drawing.FontStyle.Bold); title1.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(26)))), ((int)(((byte)(59)))), ((int)(((byte)(105))))); title1.Name = "Title1"; title1.Position.Auto = false; title1.Position.Height = 8.738057F; title1.Position.Width = 80F; title1.Position.X = 4F; title1.Position.Y = 4F; title1.ShadowColor = System.Drawing.Color.FromArgb(((int)(((byte)(32)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); title1.ShadowOffset = 3; title1.Text = "Chart Control for .NET Framework"; this.Chart1.Titles.Add(title1); // // label17 // this.label17.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.label17.Font = new System.Drawing.Font("Verdana", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label17.Location = new System.Drawing.Point(20, 378); this.label17.Name = "label17"; this.label17.Size = new System.Drawing.Size(702, 42); this.label17.TabIndex = 0; this.label17.Text = "Note that�these properties can be applied to all�data points in a series�or�to a " + "single data point."; // // UsingLabels // this.Controls.Add(this.label17); this.Controls.Add(this.Chart1); this.Controls.Add(this.panel1); this.Controls.Add(this.label9); this.Font = new System.Drawing.Font("Verdana", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.Name = "UsingLabels"; this.Size = new System.Drawing.Size(728, 480); this.panel1.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.Chart1)).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() { System.Windows.Forms.DataVisualization.Charting.ChartArea chartArea2 = new System.Windows.Forms.DataVisualization.Charting.ChartArea(); System.Windows.Forms.DataVisualization.Charting.Legend legend2 = new System.Windows.Forms.DataVisualization.Charting.Legend(); System.Windows.Forms.DataVisualization.Charting.LegendItem legendItem2 = new System.Windows.Forms.DataVisualization.Charting.LegendItem(); System.Windows.Forms.DataVisualization.Charting.Series series2 = new System.Windows.Forms.DataVisualization.Charting.Series(); this.label9 = new System.Windows.Forms.Label(); this.panel1 = new System.Windows.Forms.Panel(); this.EmptyPointValue = new System.Windows.Forms.ComboBox(); this.label6 = new System.Windows.Forms.Label(); this.ShowAsIndexedList = new System.Windows.Forms.ComboBox(); this.label7 = new System.Windows.Forms.Label(); this.EmptyPointIntervalList = new System.Windows.Forms.ComboBox(); this.label2 = new System.Windows.Forms.Label(); this.Chart1 = new System.Windows.Forms.DataVisualization.Charting.Chart(); this.panel1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.Chart1)).BeginInit(); this.SuspendLayout(); // // label9 // this.label9.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.label9.Font = new System.Drawing.Font("Verdana", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label9.Location = new System.Drawing.Point(16, 14); this.label9.Name = "label9"; this.label9.Size = new System.Drawing.Size(702, 34); this.label9.TabIndex = 0; this.label9.Text = "This sample uses the InsertEmptyPoints method to repeatedly check for missing dat" + "a points for a given time interval and inserts empty points."; this.label9.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // panel1 // this.panel1.Controls.Add(this.EmptyPointValue); this.panel1.Controls.Add(this.label6); this.panel1.Controls.Add(this.ShowAsIndexedList); this.panel1.Controls.Add(this.label7); this.panel1.Controls.Add(this.EmptyPointIntervalList); this.panel1.Controls.Add(this.label2); this.panel1.Location = new System.Drawing.Point(432, 68); this.panel1.Name = "panel1"; this.panel1.Size = new System.Drawing.Size(292, 292); this.panel1.TabIndex = 2; // // EmptyPointValue // this.EmptyPointValue.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.EmptyPointValue.Items.AddRange(new object[] { "Zero", "Average" }); this.EmptyPointValue.Location = new System.Drawing.Point(168, 40); this.EmptyPointValue.Name = "EmptyPointValue"; this.EmptyPointValue.Size = new System.Drawing.Size(121, 22); this.EmptyPointValue.TabIndex = 5; this.EmptyPointValue.SelectedIndexChanged += new System.EventHandler(this.Combo_SelectedIndexChanged); // // label6 // this.label6.Location = new System.Drawing.Point(32, 40); this.label6.Name = "label6"; this.label6.Size = new System.Drawing.Size(136, 16); this.label6.TabIndex = 4; this.label6.Text = "Empty Point &Value:"; this.label6.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // ShowAsIndexedList // this.ShowAsIndexedList.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.ShowAsIndexedList.Items.AddRange(new object[] { "False", "True" }); this.ShowAsIndexedList.Location = new System.Drawing.Point(168, 72); this.ShowAsIndexedList.Name = "ShowAsIndexedList"; this.ShowAsIndexedList.Size = new System.Drawing.Size(120, 22); this.ShowAsIndexedList.TabIndex = 3; this.ShowAsIndexedList.SelectedIndexChanged += new System.EventHandler(this.Combo_SelectedIndexChanged); // // label7 // this.label7.Location = new System.Drawing.Point(4, 72); this.label7.Name = "label7"; this.label7.Size = new System.Drawing.Size(160, 20); this.label7.TabIndex = 2; this.label7.Text = "Show as &Indexed:"; this.label7.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // EmptyPointIntervalList // this.EmptyPointIntervalList.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.EmptyPointIntervalList.Items.AddRange(new object[] { "No Empty Points", "Every Day", "Every Week Day", "Every Monday", "Every 12 Hours" }); this.EmptyPointIntervalList.Location = new System.Drawing.Point(168, 8); this.EmptyPointIntervalList.Name = "EmptyPointIntervalList"; this.EmptyPointIntervalList.Size = new System.Drawing.Size(120, 22); this.EmptyPointIntervalList.TabIndex = 1; this.EmptyPointIntervalList.SelectedIndexChanged += new System.EventHandler(this.Combo_SelectedIndexChanged); // // label2 // this.label2.Location = new System.Drawing.Point(0, 11); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(164, 16); this.label2.TabIndex = 0; this.label2.Text = "&Check for Empty Points:"; this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // Chart1 // this.Chart1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(211)))), ((int)(((byte)(223)))), ((int)(((byte)(240))))); this.Chart1.BackGradientStyle = System.Windows.Forms.DataVisualization.Charting.GradientStyle.TopBottom; this.Chart1.BorderlineColor = System.Drawing.Color.FromArgb(((int)(((byte)(26)))), ((int)(((byte)(59)))), ((int)(((byte)(105))))); this.Chart1.BorderlineDashStyle = System.Windows.Forms.DataVisualization.Charting.ChartDashStyle.Solid; this.Chart1.BorderlineWidth = 2; this.Chart1.BorderSkin.SkinStyle = System.Windows.Forms.DataVisualization.Charting.BorderSkinStyle.Emboss; chartArea2.Area3DStyle.Inclination = 15; chartArea2.Area3DStyle.IsClustered = true; chartArea2.Area3DStyle.IsRightAngleAxes = false; chartArea2.Area3DStyle.Perspective = 10; chartArea2.Area3DStyle.Rotation = 10; chartArea2.Area3DStyle.WallWidth = 0; chartArea2.AxisX.ArrowStyle = System.Windows.Forms.DataVisualization.Charting.AxisArrowStyle.Triangle; chartArea2.AxisX.IsLabelAutoFit = false; chartArea2.AxisX.LabelStyle.Font = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold); chartArea2.AxisX.LabelStyle.Format = "M"; chartArea2.AxisX.LabelStyle.IsStaggered = true; chartArea2.AxisX.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea2.AxisX.MajorGrid.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea2.AxisX2.Enabled = System.Windows.Forms.DataVisualization.Charting.AxisEnabled.False; chartArea2.AxisY.ArrowStyle = System.Windows.Forms.DataVisualization.Charting.AxisArrowStyle.Triangle; chartArea2.AxisY.IsLabelAutoFit = false; chartArea2.AxisY.LabelStyle.Font = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold); chartArea2.AxisY.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea2.AxisY.MajorGrid.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea2.AxisY2.Enabled = System.Windows.Forms.DataVisualization.Charting.AxisEnabled.False; chartArea2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(165)))), ((int)(((byte)(191)))), ((int)(((byte)(228))))); chartArea2.BackGradientStyle = System.Windows.Forms.DataVisualization.Charting.GradientStyle.TopBottom; chartArea2.BackSecondaryColor = System.Drawing.Color.Transparent; chartArea2.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea2.Name = "Default"; chartArea2.Position.Auto = false; chartArea2.Position.Height = 76.2929F; chartArea2.Position.Width = 89.43796F; chartArea2.Position.X = 4.824818F; chartArea2.Position.Y = 16.89354F; chartArea2.ShadowColor = System.Drawing.Color.Transparent; this.Chart1.ChartAreas.Add(chartArea2); legend2.Alignment = System.Drawing.StringAlignment.Far; legend2.BackColor = System.Drawing.Color.Transparent; legendItem2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(64)))), ((int)(((byte)(10))))); legendItem2.ImageStyle = System.Windows.Forms.DataVisualization.Charting.LegendImageStyle.Marker; legendItem2.MarkerSize = 7; legendItem2.MarkerStyle = System.Windows.Forms.DataVisualization.Charting.MarkerStyle.Diamond; legendItem2.Name = "Empty Point"; legend2.CustomItems.Add(legendItem2); legend2.Docking = System.Windows.Forms.DataVisualization.Charting.Docking.Top; legend2.Font = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold); legend2.IsTextAutoFit = false; legend2.LegendStyle = System.Windows.Forms.DataVisualization.Charting.LegendStyle.Row; legend2.Name = "Default"; this.Chart1.Legends.Add(legend2); this.Chart1.Location = new System.Drawing.Point(16, 60); this.Chart1.Name = "Chart1"; series2.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(180)))), ((int)(((byte)(26)))), ((int)(((byte)(59)))), ((int)(((byte)(105))))); series2.ChartArea = "Default"; series2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(252)))), ((int)(((byte)(180)))), ((int)(((byte)(65))))); series2.CustomProperties = "DrawingStyle=Emboss"; series2.EmptyPointStyle.Color = System.Drawing.Color.Transparent; series2.EmptyPointStyle.MarkerColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(64)))), ((int)(((byte)(10))))); series2.EmptyPointStyle.MarkerSize = 7; series2.EmptyPointStyle.MarkerStyle = System.Windows.Forms.DataVisualization.Charting.MarkerStyle.Diamond; series2.LabelFormat = "M"; series2.Legend = "Default"; series2.LegendText = "Data"; series2.Name = "Series1"; series2.XValueType = System.Windows.Forms.DataVisualization.Charting.ChartValueType.DateTime; this.Chart1.Series.Add(series2); this.Chart1.Size = new System.Drawing.Size(412, 296); this.Chart1.TabIndex = 1; // // InsertingEmptyPoints // this.Controls.Add(this.Chart1); this.Controls.Add(this.panel1); this.Controls.Add(this.label9); this.Font = new System.Drawing.Font("Verdana", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.Name = "InsertingEmptyPoints"; this.Size = new System.Drawing.Size(728, 480); this.panel1.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.Chart1)).EndInit(); this.ResumeLayout(false); }
private void ResourceChart_CustomizeLegend( object sender, CustomizeLegendEventArgs e ) { e.LegendItems.Clear(); foreach ( var series in ResourceChart.Series ) { var legendItem = new LegendItem(); legendItem.SeriesName = series.Name; legendItem.ImageStyle = LegendImageStyle.Rectangle; legendItem.BorderColor = Color.Empty; legendItem.Name = series.Name + "_legendItem"; legendItem.Cells.Add( LegendCellType.SeriesSymbol, "", ContentAlignment.MiddleCenter ); legendItem.Cells.Add( LegendCellType.Text, series.LegendText, ContentAlignment.MiddleLeft ); var col = series.BorderColor != Color.Empty ? series.BorderColor : series.Color; if ( series.Enabled ) { legendItem.Color = col; legendItem.Cells[1].ForeColor = SystemColors.ControlText; } else { legendItem.Color = Color.FromArgb( col.A / 4, col ); legendItem.Cells[1].ForeColor = SystemColors.GrayText; } e.LegendItems.Add( legendItem ); } }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { System.Windows.Forms.DataVisualization.Charting.ChartArea chartArea1 = new System.Windows.Forms.DataVisualization.Charting.ChartArea(); System.Windows.Forms.DataVisualization.Charting.CustomLabel customLabel1 = new System.Windows.Forms.DataVisualization.Charting.CustomLabel(); System.Windows.Forms.DataVisualization.Charting.CustomLabel customLabel2 = new System.Windows.Forms.DataVisualization.Charting.CustomLabel(); System.Windows.Forms.DataVisualization.Charting.CustomLabel customLabel3 = new System.Windows.Forms.DataVisualization.Charting.CustomLabel(); System.Windows.Forms.DataVisualization.Charting.CustomLabel customLabel4 = new System.Windows.Forms.DataVisualization.Charting.CustomLabel(); System.Windows.Forms.DataVisualization.Charting.Legend legend1 = new System.Windows.Forms.DataVisualization.Charting.Legend(); System.Windows.Forms.DataVisualization.Charting.Legend legend2 = new System.Windows.Forms.DataVisualization.Charting.Legend(); System.Windows.Forms.DataVisualization.Charting.Legend legend3 = new System.Windows.Forms.DataVisualization.Charting.Legend(); System.Windows.Forms.DataVisualization.Charting.LegendItem legendItem1 = new System.Windows.Forms.DataVisualization.Charting.LegendItem(); System.Windows.Forms.DataVisualization.Charting.LegendItem legendItem2 = new System.Windows.Forms.DataVisualization.Charting.LegendItem(); System.Windows.Forms.DataVisualization.Charting.LegendItem legendItem3 = new System.Windows.Forms.DataVisualization.Charting.LegendItem(); System.Windows.Forms.DataVisualization.Charting.Series series1 = new System.Windows.Forms.DataVisualization.Charting.Series(); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint1 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(1, 70); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint2 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(2, 80); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint3 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(3, 70); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint4 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(4, 85); System.Windows.Forms.DataVisualization.Charting.Series series2 = new System.Windows.Forms.DataVisualization.Charting.Series(); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint5 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(1, 65); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint6 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(2, 70); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint7 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(3, 60); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint8 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(4, 75); System.Windows.Forms.DataVisualization.Charting.Series series3 = new System.Windows.Forms.DataVisualization.Charting.Series(); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint9 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(1, 50); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint10 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(2, 55); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint11 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(3, 40); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint12 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(4, 70); System.Windows.Forms.DataVisualization.Charting.Title title1 = new System.Windows.Forms.DataVisualization.Charting.Title(); this.label9 = new System.Windows.Forms.Label(); this.panel1 = new System.Windows.Forms.Panel(); this.TextAntiAlias = new System.Windows.Forms.CheckBox(); this.EnableLabels = new System.Windows.Forms.CheckBox(); this.OffsetLabels = new System.Windows.Forms.CheckBox(); this.AngleList = new System.Windows.Forms.ComboBox(); this.label7 = new System.Windows.Forms.Label(); this.FontSizeList = new System.Windows.Forms.ComboBox(); this.label2 = new System.Windows.Forms.Label(); this.FontNameList = new System.Windows.Forms.ComboBox(); this.label1 = new System.Windows.Forms.Label(); this.label6 = new System.Windows.Forms.Label(); this.label5 = new System.Windows.Forms.Label(); this.label4 = new System.Windows.Forms.Label(); this.label3 = new System.Windows.Forms.Label(); this.label15 = new System.Windows.Forms.Label(); this.Chart1 = new System.Windows.Forms.DataVisualization.Charting.Chart(); this.panel1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.Chart1)).BeginInit(); this.SuspendLayout(); // // label9 // this.label9.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.label9.Font = new System.Drawing.Font("Verdana", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label9.Location = new System.Drawing.Point(16, 14); this.label9.Name = "label9"; this.label9.Size = new System.Drawing.Size(702, 43); this.label9.TabIndex = 0; this.label9.Text = "This sample demonstrates how to set�an axis labels\' font,�angle, and�offset style" + ". It also shows how to enable and disable axis labels.��"; // // panel1 // this.panel1.Controls.Add(this.TextAntiAlias); this.panel1.Controls.Add(this.EnableLabels); this.panel1.Controls.Add(this.OffsetLabels); this.panel1.Controls.Add(this.AngleList); this.panel1.Controls.Add(this.label7); this.panel1.Controls.Add(this.FontSizeList); this.panel1.Controls.Add(this.label2); this.panel1.Controls.Add(this.FontNameList); this.panel1.Controls.Add(this.label1); this.panel1.Controls.Add(this.label6); this.panel1.Controls.Add(this.label5); this.panel1.Controls.Add(this.label4); this.panel1.Controls.Add(this.label3); this.panel1.Controls.Add(this.label15); this.panel1.Location = new System.Drawing.Point(432, 68); this.panel1.Name = "panel1"; this.panel1.Size = new System.Drawing.Size(292, 288); this.panel1.TabIndex = 2; // // TextAntiAlias // this.TextAntiAlias.CheckAlign = System.Drawing.ContentAlignment.MiddleRight; this.TextAntiAlias.Location = new System.Drawing.Point(17, 168); this.TextAntiAlias.Name = "TextAntiAlias"; this.TextAntiAlias.Size = new System.Drawing.Size(164, 24); this.TextAntiAlias.TabIndex = 8; this.TextAntiAlias.Text = "AntiAlias For &Text:"; this.TextAntiAlias.TextAlign = System.Drawing.ContentAlignment.MiddleRight; this.TextAntiAlias.CheckedChanged += new System.EventHandler(this.Combo_SelectedIndexChanged); // // EnableLabels // this.EnableLabels.CheckAlign = System.Drawing.ContentAlignment.MiddleRight; this.EnableLabels.Location = new System.Drawing.Point(8, 136); this.EnableLabels.Name = "EnableLabels"; this.EnableLabels.Size = new System.Drawing.Size(168, 24); this.EnableLabels.TabIndex = 7; this.EnableLabels.Text = "&Enable X Axis Labels:"; this.EnableLabels.TextAlign = System.Drawing.ContentAlignment.MiddleRight; this.EnableLabels.CheckedChanged += new System.EventHandler(this.Combo_SelectedIndexChanged); // // OffsetLabels // this.OffsetLabels.CheckAlign = System.Drawing.ContentAlignment.MiddleRight; this.OffsetLabels.Location = new System.Drawing.Point(17, 104); this.OffsetLabels.Name = "OffsetLabels"; this.OffsetLabels.Size = new System.Drawing.Size(164, 24); this.OffsetLabels.TabIndex = 6; this.OffsetLabels.Text = "&Offset X Axis Labels:"; this.OffsetLabels.TextAlign = System.Drawing.ContentAlignment.MiddleRight; this.OffsetLabels.CheckedChanged += new System.EventHandler(this.Combo_SelectedIndexChanged); // // AngleList // this.AngleList.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.AngleList.Items.AddRange(new object[] { "0", "30", "45", "60", "90", "-30", "-45", "-60", "-90" }); this.AngleList.Location = new System.Drawing.Point(168, 72); this.AngleList.Name = "AngleList"; this.AngleList.Size = new System.Drawing.Size(120, 22); this.AngleList.TabIndex = 5; this.AngleList.SelectedIndexChanged += new System.EventHandler(this.Combo_SelectedIndexChanged); // // label7 // this.label7.Location = new System.Drawing.Point(4, 72); this.label7.Name = "label7"; this.label7.Size = new System.Drawing.Size(160, 24); this.label7.TabIndex = 4; this.label7.Text = "X Axis Labels &Angle:"; this.label7.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // FontSizeList // this.FontSizeList.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.FontSizeList.Items.AddRange(new object[] { "6", "8", "10", "12", "14", "16" }); this.FontSizeList.Location = new System.Drawing.Point(168, 40); this.FontSizeList.Name = "FontSizeList"; this.FontSizeList.Size = new System.Drawing.Size(120, 22); this.FontSizeList.TabIndex = 3; this.FontSizeList.SelectedIndexChanged += new System.EventHandler(this.Combo_SelectedIndexChanged); // // label2 // this.label2.Location = new System.Drawing.Point(4, 40); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(160, 24); this.label2.TabIndex = 2; this.label2.Text = "X Axis Labels Font &Size:"; this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // FontNameList // this.FontNameList.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.FontNameList.Items.AddRange(new object[] { "Arial", "Courier New", "Tahoma", "Trebuchet MS", "Verdana" }); this.FontNameList.Location = new System.Drawing.Point(168, 8); this.FontNameList.Name = "FontNameList"; this.FontNameList.Size = new System.Drawing.Size(120, 22); this.FontNameList.TabIndex = 1; this.FontNameList.SelectedIndexChanged += new System.EventHandler(this.Combo_SelectedIndexChanged); // // label1 // this.label1.Location = new System.Drawing.Point(0, 8); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(164, 24); this.label1.TabIndex = 0; this.label1.Text = "X Axis Labels Font &Name:"; this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // label6 // this.label6.Location = new System.Drawing.Point(64, 403); this.label6.Name = "label6"; this.label6.Size = new System.Drawing.Size(100, 23); this.label6.TabIndex = 12; this.label6.Text = "Border Size:"; // // label5 // this.label5.Location = new System.Drawing.Point(64, 380); this.label5.Name = "label5"; this.label5.Size = new System.Drawing.Size(100, 23); this.label5.TabIndex = 11; this.label5.Text = "Border Color:"; // // label4 // this.label4.Location = new System.Drawing.Point(64, 357); this.label4.Name = "label4"; this.label4.Size = new System.Drawing.Size(100, 23); this.label4.TabIndex = 10; this.label4.Text = "Hatch Style:"; // // label3 // this.label3.Location = new System.Drawing.Point(64, 334); this.label3.Name = "label3"; this.label3.Size = new System.Drawing.Size(100, 23); this.label3.TabIndex = 9; this.label3.Text = "Gradient:"; // // label15 // this.label15.Location = new System.Drawing.Point(64, 426); this.label15.Name = "label15"; this.label15.Size = new System.Drawing.Size(100, 23); this.label15.TabIndex = 5; this.label15.Text = "Border Size:"; // // Chart1 // this.Chart1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(211)))), ((int)(((byte)(223)))), ((int)(((byte)(240))))); this.Chart1.BackGradientStyle = System.Windows.Forms.DataVisualization.Charting.GradientStyle.TopBottom; this.Chart1.BackSecondaryColor = System.Drawing.Color.White; this.Chart1.BorderlineColor = System.Drawing.Color.FromArgb(((int)(((byte)(26)))), ((int)(((byte)(59)))), ((int)(((byte)(105))))); this.Chart1.BorderlineDashStyle = System.Windows.Forms.DataVisualization.Charting.ChartDashStyle.Solid; this.Chart1.BorderlineWidth = 2; this.Chart1.BorderSkin.SkinStyle = System.Windows.Forms.DataVisualization.Charting.BorderSkinStyle.Emboss; chartArea1.Area3DStyle.Inclination = 15; chartArea1.Area3DStyle.IsClustered = true; chartArea1.Area3DStyle.IsRightAngleAxes = false; chartArea1.Area3DStyle.Perspective = 10; chartArea1.Area3DStyle.PointGapDepth = 0; chartArea1.Area3DStyle.Rotation = 5; chartArea1.Area3DStyle.WallWidth = 0; customLabel1.FromPosition = 0.5; customLabel1.Text = "John"; customLabel1.ToPosition = 1.5; customLabel2.FromPosition = 1.5; customLabel2.Text = "Mary"; customLabel2.ToPosition = 2.5; customLabel3.FromPosition = 2.5; customLabel3.Text = "Jeff"; customLabel3.ToPosition = 3.5; customLabel4.FromPosition = 3.5; customLabel4.Text = "Bob"; customLabel4.ToPosition = 4.5; chartArea1.AxisX.CustomLabels.Add(customLabel1); chartArea1.AxisX.CustomLabels.Add(customLabel2); chartArea1.AxisX.CustomLabels.Add(customLabel3); chartArea1.AxisX.CustomLabels.Add(customLabel4); chartArea1.AxisX.Interval = 1; chartArea1.AxisX.IsLabelAutoFit = false; chartArea1.AxisX.LabelStyle.Font = new System.Drawing.Font("Trebuchet MS", 8.25F); chartArea1.AxisX.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea1.AxisX.MajorGrid.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea1.AxisY.IsLabelAutoFit = false; chartArea1.AxisY.LabelStyle.Font = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold); chartArea1.AxisY.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea1.AxisY.MajorGrid.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(165)))), ((int)(((byte)(191)))), ((int)(((byte)(228))))); chartArea1.BackGradientStyle = System.Windows.Forms.DataVisualization.Charting.GradientStyle.TopBottom; chartArea1.BackSecondaryColor = System.Drawing.Color.White; chartArea1.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea1.Name = "Default"; chartArea1.Position.Auto = false; chartArea1.Position.Height = 75F; chartArea1.Position.Width = 90F; chartArea1.Position.X = 2F; chartArea1.Position.Y = 13F; chartArea1.ShadowColor = System.Drawing.Color.Transparent; this.Chart1.ChartAreas.Add(chartArea1); legend1.BackColor = System.Drawing.Color.Transparent; legend1.Enabled = false; legend1.LegendStyle = System.Windows.Forms.DataVisualization.Charting.LegendStyle.Row; legend1.Name = "Default"; legend1.Position.Auto = false; legend1.Position.Height = 5F; legend1.Position.Width = 40F; legend1.Position.X = 5F; legend1.Position.Y = 85F; legend2.Enabled = false; legend2.Name = "Legend2"; legend3.BackColor = System.Drawing.Color.Transparent; legendItem1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(65)))), ((int)(((byte)(140)))), ((int)(((byte)(240))))); legendItem1.Name = "Previous Month Avg"; legendItem2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(252)))), ((int)(((byte)(180)))), ((int)(((byte)(65))))); legendItem2.Name = "Last Week"; legendItem3.Color = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(64)))), ((int)(((byte)(10))))); legendItem3.Name = "This Week"; legend3.CustomItems.Add(legendItem1); legend3.CustomItems.Add(legendItem2); legend3.CustomItems.Add(legendItem3); legend3.Font = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold); legend3.IsTextAutoFit = false; legend3.LegendStyle = System.Windows.Forms.DataVisualization.Charting.LegendStyle.Row; legend3.Name = "Legend3"; legend3.Position.Auto = false; legend3.Position.Height = 12F; legend3.Position.Width = 90F; legend3.Position.X = 5F; legend3.Position.Y = 85F; this.Chart1.Legends.Add(legend1); this.Chart1.Legends.Add(legend2); this.Chart1.Legends.Add(legend3); this.Chart1.Location = new System.Drawing.Point(16, 60); this.Chart1.Name = "Chart1"; this.Chart1.Palette = System.Windows.Forms.DataVisualization.Charting.ChartColorPalette.Pastel; series1.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(180)))), ((int)(((byte)(26)))), ((int)(((byte)(59)))), ((int)(((byte)(105))))); series1.ChartArea = "Default"; series1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(65)))), ((int)(((byte)(140)))), ((int)(((byte)(240))))); series1.CustomProperties = "DrawingStyle=Cylinder"; series1.Legend = "Legend2"; series1.Name = "Series2"; series1.Points.Add(dataPoint1); series1.Points.Add(dataPoint2); series1.Points.Add(dataPoint3); series1.Points.Add(dataPoint4); series1.ShadowColor = System.Drawing.Color.Transparent; series1.XValueType = System.Windows.Forms.DataVisualization.Charting.ChartValueType.Double; series1.YValueType = System.Windows.Forms.DataVisualization.Charting.ChartValueType.Double; series2.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); series2.ChartArea = "Default"; series2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(252)))), ((int)(((byte)(180)))), ((int)(((byte)(65))))); series2.CustomProperties = "DrawingStyle=Cylinder"; series2.Legend = "Default"; series2.Name = "Series3"; series2.Points.Add(dataPoint5); series2.Points.Add(dataPoint6); series2.Points.Add(dataPoint7); series2.Points.Add(dataPoint8); series3.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); series3.ChartArea = "Default"; series3.Color = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(64)))), ((int)(((byte)(10))))); series3.CustomProperties = "DrawingStyle=Cylinder"; series3.Legend = "Default"; series3.Name = "Series4"; series3.Points.Add(dataPoint9); series3.Points.Add(dataPoint10); series3.Points.Add(dataPoint11); series3.Points.Add(dataPoint12); this.Chart1.Series.Add(series1); this.Chart1.Series.Add(series2); this.Chart1.Series.Add(series3); this.Chart1.Size = new System.Drawing.Size(412, 296); this.Chart1.TabIndex = 1; title1.Alignment = System.Drawing.ContentAlignment.TopLeft; title1.Font = new System.Drawing.Font("Trebuchet MS", 14.25F, System.Drawing.FontStyle.Bold); title1.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(26)))), ((int)(((byte)(59)))), ((int)(((byte)(105))))); title1.Name = "Title1"; title1.Position.Auto = false; title1.Position.Height = 8.738057F; title1.Position.Width = 80F; title1.Position.X = 4F; title1.Position.Y = 4F; title1.ShadowColor = System.Drawing.Color.FromArgb(((int)(((byte)(32)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); title1.ShadowOffset = 3; title1.Text = "Chart Control for .NET Framework"; this.Chart1.Titles.Add(title1); this.Chart1.Click += new System.EventHandler(this.Chart1_Click); // // LabelsTextStyle // this.Controls.Add(this.Chart1); this.Controls.Add(this.panel1); this.Controls.Add(this.label9); this.Font = new System.Drawing.Font("Verdana", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.Name = "LabelsTextStyle"; this.Size = new System.Drawing.Size(728, 480); this.Load += new System.EventHandler(this.LabelsTextStyle_Load); this.panel1.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.Chart1)).EndInit(); this.ResumeLayout(false); }