private void AddCustomLabelToAxis(Axis axis) {
      CustomLabel trainingLabel = new CustomLabel();
      trainingLabel.Text = TrainingLabelText;
      trainingLabel.FromPosition = TrainingAxisValue - TrainingTestBorder;
      trainingLabel.ToPosition = TrainingAxisValue + TrainingTestBorder;
      axis.CustomLabels.Add(trainingLabel);

      CustomLabel testLabel = new CustomLabel();
      testLabel.Text = TestLabelText;
      testLabel.FromPosition = TestAxisValue - TrainingTestBorder;
      testLabel.ToPosition = TestAxisValue + TrainingTestBorder;
      axis.CustomLabels.Add(testLabel);
    }
 private void SetCustomAxisLabels(Axis axis, int dimension) {
   axis.CustomLabels.Clear();
   if (categoricalMapping.ContainsKey(dimension)) {
     int position = 1;
     foreach (var pair in categoricalMapping[dimension].Where(x => seriesCache.ContainsKey(x.Value))) {
       string labelText = pair.Key.ToString();
       CustomLabel label = new CustomLabel();
       label.ToolTip = labelText;
       if (labelText.Length > 25)
         labelText = labelText.Substring(0, 25) + " ... ";
       label.Text = labelText;
       label.GridTicks = GridTickTypes.TickMark;
       label.FromPosition = position - 0.5;
       label.ToPosition = position + 0.5;
       axis.CustomLabels.Add(label);
       position++;
     }
   } else if (dimension > 0 && Content.GetValue(0, dimension) is TimeSpanValue) {
     this.chart.ChartAreas[0].RecalculateAxesScale();
     Axis correspondingAxis = this.chart.ChartAreas[0].Axes.Where(x => x.Name == axis.Name).SingleOrDefault();
     if (correspondingAxis == null)
       correspondingAxis = axis;
     for (double i = correspondingAxis.Minimum; i <= correspondingAxis.Maximum; i += correspondingAxis.LabelStyle.Interval) {
       TimeSpan time = TimeSpan.FromSeconds(i);
       string x = string.Format("{0:00}:{1:00}:{2:00}", (int)time.Hours, time.Minutes, time.Seconds);
       axis.CustomLabels.Add(i - correspondingAxis.LabelStyle.Interval / 2, i + correspondingAxis.LabelStyle.Interval / 2, x);
     }
   } else if (chart.ChartAreas[BoxPlotChartAreaName].AxisX == axis) {
     double position = 1.0;
     foreach (Series series in chart.Series) {
       if (series.Name != BoxPlotSeriesName) {
         string labelText = series.Points[0].XValue.ToString();
         CustomLabel label = new CustomLabel();
         label.FromPosition = position - 0.5;
         label.ToPosition = position + 0.5;
         label.GridTicks = GridTickTypes.TickMark;
         label.Text = labelText;
         axis.CustomLabels.Add(label);
         position++;
       }
     }
   }
 }
Exemple #3
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();
     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);
 }
 /// <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.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);
     this.label9 = new System.Windows.Forms.Label();
     this.panel1 = new System.Windows.Forms.Panel();
     this.PlottingArea_Height = new System.Windows.Forms.NumericUpDown();
     this.PlottingArea_Width = new System.Windows.Forms.NumericUpDown();
     this.PlottingArea_Y = new System.Windows.Forms.NumericUpDown();
     this.PlottingArea_X = new System.Windows.Forms.NumericUpDown();
     this.ChartArea_Height = new System.Windows.Forms.NumericUpDown();
     this.ChartArea_Width = new System.Windows.Forms.NumericUpDown();
     this.ChartArea_Y = new System.Windows.Forms.NumericUpDown();
     this.ChartArea_X = new System.Windows.Forms.NumericUpDown();
     this.label11 = new System.Windows.Forms.Label();
     this.label6 = new System.Windows.Forms.Label();
     this.label7 = new System.Windows.Forms.Label();
     this.label8 = new System.Windows.Forms.Label();
     this.label10 = 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.label2 = new System.Windows.Forms.Label();
     this.label1 = new System.Windows.Forms.Label();
     this.Chart1 = new System.Windows.Forms.DataVisualization.Charting.Chart();
     this.label12 = new System.Windows.Forms.Label();
     this.panel1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.PlottingArea_Height)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.PlottingArea_Width)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.PlottingArea_Y)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.PlottingArea_X)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.ChartArea_Height)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.ChartArea_Width)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.ChartArea_Y)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.ChartArea_X)).BeginInit();
     ((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(702, 34);
     this.label9.TabIndex = 18;
     this.label9.Text = "This sample shows how to manually set the positions of the chart area and plot ar" +
         "ea. ";
     this.label9.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // panel1
     //
     this.panel1.Controls.Add(this.PlottingArea_Height);
     this.panel1.Controls.Add(this.PlottingArea_Width);
     this.panel1.Controls.Add(this.PlottingArea_Y);
     this.panel1.Controls.Add(this.PlottingArea_X);
     this.panel1.Controls.Add(this.ChartArea_Height);
     this.panel1.Controls.Add(this.ChartArea_Width);
     this.panel1.Controls.Add(this.ChartArea_Y);
     this.panel1.Controls.Add(this.ChartArea_X);
     this.panel1.Controls.Add(this.label11);
     this.panel1.Controls.Add(this.label6);
     this.panel1.Controls.Add(this.label7);
     this.panel1.Controls.Add(this.label8);
     this.panel1.Controls.Add(this.label10);
     this.panel1.Controls.Add(this.label5);
     this.panel1.Controls.Add(this.label4);
     this.panel1.Controls.Add(this.label3);
     this.panel1.Controls.Add(this.label2);
     this.panel1.Controls.Add(this.label1);
     this.panel1.Location = new System.Drawing.Point(432, 56);
     this.panel1.Name = "panel1";
     this.panel1.Size = new System.Drawing.Size(292, 312);
     this.panel1.TabIndex = 19;
     //
     // PlottingArea_Height
     //
     this.PlottingArea_Height.Location = new System.Drawing.Point(176, 280);
     this.PlottingArea_Height.Name = "PlottingArea_Height";
     this.PlottingArea_Height.Size = new System.Drawing.Size(112, 22);
     this.PlottingArea_Height.TabIndex = 21;
     this.PlottingArea_Height.Value = new decimal(new int[] {
     80,
     0,
     0,
     0});
     this.PlottingArea_Height.ValueChanged += new System.EventHandler(this.PlottingArea_Height_ValueChanged);
     //
     // PlottingArea_Width
     //
     this.PlottingArea_Width.Location = new System.Drawing.Point(176, 248);
     this.PlottingArea_Width.Name = "PlottingArea_Width";
     this.PlottingArea_Width.Size = new System.Drawing.Size(112, 22);
     this.PlottingArea_Width.TabIndex = 20;
     this.PlottingArea_Width.Value = new decimal(new int[] {
     80,
     0,
     0,
     0});
     this.PlottingArea_Width.ValueChanged += new System.EventHandler(this.PlottingArea_Width_ValueChanged);
     //
     // PlottingArea_Y
     //
     this.PlottingArea_Y.Location = new System.Drawing.Point(176, 216);
     this.PlottingArea_Y.Maximum = new decimal(new int[] {
     20,
     0,
     0,
     0});
     this.PlottingArea_Y.Name = "PlottingArea_Y";
     this.PlottingArea_Y.Size = new System.Drawing.Size(112, 22);
     this.PlottingArea_Y.TabIndex = 19;
     this.PlottingArea_Y.Value = new decimal(new int[] {
     10,
     0,
     0,
     0});
     this.PlottingArea_Y.ValueChanged += new System.EventHandler(this.PlottingArea_Y_ValueChanged);
     //
     // PlottingArea_X
     //
     this.PlottingArea_X.Location = new System.Drawing.Point(176, 184);
     this.PlottingArea_X.Maximum = new decimal(new int[] {
     20,
     0,
     0,
     0});
     this.PlottingArea_X.Name = "PlottingArea_X";
     this.PlottingArea_X.Size = new System.Drawing.Size(112, 22);
     this.PlottingArea_X.TabIndex = 18;
     this.PlottingArea_X.Value = new decimal(new int[] {
     10,
     0,
     0,
     0});
     this.PlottingArea_X.ValueChanged += new System.EventHandler(this.PlottingArea_X_ValueChanged);
     //
     // ChartArea_Height
     //
     this.ChartArea_Height.Location = new System.Drawing.Point(168, 128);
     this.ChartArea_Height.Name = "ChartArea_Height";
     this.ChartArea_Height.Size = new System.Drawing.Size(112, 22);
     this.ChartArea_Height.TabIndex = 17;
     this.ChartArea_Height.Value = new decimal(new int[] {
     80,
     0,
     0,
     0});
     this.ChartArea_Height.ValueChanged += new System.EventHandler(this.ChartArea_Height_ValueChanged);
     //
     // ChartArea_Width
     //
     this.ChartArea_Width.Location = new System.Drawing.Point(168, 96);
     this.ChartArea_Width.Name = "ChartArea_Width";
     this.ChartArea_Width.Size = new System.Drawing.Size(112, 22);
     this.ChartArea_Width.TabIndex = 16;
     this.ChartArea_Width.Value = new decimal(new int[] {
     80,
     0,
     0,
     0});
     this.ChartArea_Width.ValueChanged += new System.EventHandler(this.ChartArea_Width_ValueChanged);
     //
     // ChartArea_Y
     //
     this.ChartArea_Y.Location = new System.Drawing.Point(168, 64);
     this.ChartArea_Y.Maximum = new decimal(new int[] {
     15,
     0,
     0,
     0});
     this.ChartArea_Y.Minimum = new decimal(new int[] {
     1,
     0,
     0,
     0});
     this.ChartArea_Y.Name = "ChartArea_Y";
     this.ChartArea_Y.Size = new System.Drawing.Size(112, 22);
     this.ChartArea_Y.TabIndex = 15;
     this.ChartArea_Y.Value = new decimal(new int[] {
     10,
     0,
     0,
     0});
     this.ChartArea_Y.ValueChanged += new System.EventHandler(this.ChartArea_Y_ValueChanged);
     //
     // ChartArea_X
     //
     this.ChartArea_X.Location = new System.Drawing.Point(168, 32);
     this.ChartArea_X.Maximum = new decimal(new int[] {
     15,
     0,
     0,
     0});
     this.ChartArea_X.Minimum = new decimal(new int[] {
     1,
     0,
     0,
     0});
     this.ChartArea_X.Name = "ChartArea_X";
     this.ChartArea_X.Size = new System.Drawing.Size(112, 22);
     this.ChartArea_X.TabIndex = 14;
     this.ChartArea_X.Value = new decimal(new int[] {
     10,
     0,
     0,
     0});
     this.ChartArea_X.ValueChanged += new System.EventHandler(this.ChartArea_X_ValueChanged);
     //
     // label11
     //
     this.label11.Location = new System.Drawing.Point(16, 160);
     this.label11.Name = "label11";
     this.label11.Size = new System.Drawing.Size(144, 16);
     this.label11.TabIndex = 13;
     this.label11.Text = "Plotting Area Position:";
     //
     // label6
     //
     this.label6.Location = new System.Drawing.Point(80, 280);
     this.label6.Name = "label6";
     this.label6.RightToLeft = System.Windows.Forms.RightToLeft.No;
     this.label6.Size = new System.Drawing.Size(88, 23);
     this.label6.TabIndex = 12;
     this.label6.Text = "Height:";
     this.label6.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // label7
     //
     this.label7.Location = new System.Drawing.Point(80, 248);
     this.label7.Name = "label7";
     this.label7.Size = new System.Drawing.Size(88, 23);
     this.label7.TabIndex = 11;
     this.label7.Text = "Width:";
     this.label7.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // label8
     //
     this.label8.Location = new System.Drawing.Point(80, 216);
     this.label8.Name = "label8";
     this.label8.Size = new System.Drawing.Size(88, 23);
     this.label8.TabIndex = 10;
     this.label8.Text = "Y:";
     this.label8.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // label10
     //
     this.label10.Location = new System.Drawing.Point(80, 184);
     this.label10.Name = "label10";
     this.label10.Size = new System.Drawing.Size(88, 23);
     this.label10.TabIndex = 9;
     this.label10.Text = "X:";
     this.label10.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // label5
     //
     this.label5.Location = new System.Drawing.Point(80, 131);
     this.label5.Name = "label5";
     this.label5.RightToLeft = System.Windows.Forms.RightToLeft.No;
     this.label5.Size = new System.Drawing.Size(80, 16);
     this.label5.TabIndex = 4;
     this.label5.Text = "Height:";
     this.label5.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // label4
     //
     this.label4.Location = new System.Drawing.Point(80, 99);
     this.label4.Name = "label4";
     this.label4.Size = new System.Drawing.Size(80, 16);
     this.label4.TabIndex = 3;
     this.label4.Text = "Width:";
     this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // label3
     //
     this.label3.Location = new System.Drawing.Point(80, 67);
     this.label3.Name = "label3";
     this.label3.Size = new System.Drawing.Size(80, 16);
     this.label3.TabIndex = 2;
     this.label3.Text = "Y:";
     this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // label2
     //
     this.label2.Location = new System.Drawing.Point(72, 35);
     this.label2.Name = "label2";
     this.label2.Size = new System.Drawing.Size(88, 16);
     this.label2.TabIndex = 1;
     this.label2.Text = "X:";
     this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // label1
     //
     this.label1.Location = new System.Drawing.Point(8, 8);
     this.label1.Name = "label1";
     this.label1.Size = new System.Drawing.Size(136, 23);
     this.label1.TabIndex = 0;
     this.label1.Text = "Chart Area Position:";
     //
     // 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.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);
     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.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;
     this.Chart1.Legends.Add(legend1);
     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.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 = 20;
     this.Chart1.PrePaint += new System.EventHandler<System.Windows.Forms.DataVisualization.Charting.ChartPaintEventArgs>(this.Chart1_PrePaint);
     //
     // label12
     //
     this.label12.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                 | System.Windows.Forms.AnchorStyles.Right)));
     this.label12.Font = new System.Drawing.Font("Verdana", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label12.Location = new System.Drawing.Point(16, 368);
     this.label12.Name = "label12";
     this.label12.Size = new System.Drawing.Size(696, 40);
     this.label12.TabIndex = 21;
     this.label12.Text = "The plot area is the portion within a chart area that is used for plotting data, " +
         "and does not include tick marks and axis labels.";
     this.label12.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // ChartAreaPosition
     //
     this.Controls.Add(this.label12);
     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 = "ChartAreaPosition";
     this.Size = new System.Drawing.Size(728, 480);
     this.Load += new System.EventHandler(this.ZOrder_Load);
     this.panel1.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.PlottingArea_Height)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.PlottingArea_Width)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.PlottingArea_Y)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.PlottingArea_X)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.ChartArea_Height)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.ChartArea_Width)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.ChartArea_Y)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.ChartArea_X)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.Chart1)).EndInit();
     this.ResumeLayout(false);
 }
 private void UpdateTaxes()
 {
     var newTaxes = hScrollBarTaxRate.Value/500.0*
                    chartOutput.Series[0].Points[chartOutput.Series[0].Points.Count - 1].YValues[0];
     chartBudget.Series[0].Points.AddXY(chartBudget.ChartAreas[0].Axes[0].Maximum + 1, newTaxes);
     chartBudget.Series[0].Points[chartBudget.Series[0].Points.Count - 2].BorderDashStyle = ChartDashStyle.Solid;
     chartBudget.Series[0].Points[chartBudget.Series[0].Points.Count - 1].BorderDashStyle = ChartDashStyle.Dot;
     chartBudget.ChartAreas[0].Axes[0].Minimum += 2;
     chartBudget.ChartAreas[0].Axes[0].Maximum += 2;
     chartBudget.ChartAreas[0].Axes[0].CustomLabels[chartBudget.ChartAreas[0].Axes[0].CustomLabels.Count - 1]
         .Text = _quarter.ToString();
     var future = new CustomLabel(chartBudget.ChartAreas[0].Axes[0].Maximum - 2,
         chartBudget.ChartAreas[0].Axes[0].Maximum, "Future", 0, LabelMarkStyle.None);
     chartBudget.ChartAreas[0].Axes[0].CustomLabels.Insert(chartBudget.ChartAreas[0].Axes[0].CustomLabels.Count,
         future);
 }
        private void UpdateNetExports()
        {
            if (_rng.Next(2) == 0)
                _expenditure.Exports *= _rng.Next(990, 1000)/1000.0;
            else
                _expenditure.Exports *= _rng.Next(1001, 1011)/1000.0;

            chartNetExports.Series[0].Points.AddXY(chartNetExports.ChartAreas[0].Axes[0].Maximum + 1,
                _expenditure.NetExports());
            chartNetExports.ChartAreas[0].Axes[0].Minimum += 2;
            chartNetExports.ChartAreas[0].Axes[0].Maximum += 2;
            var nextQuarter = new CustomLabel(chartNetExports.ChartAreas[0].Axes[0].Maximum - 2,
                chartNetExports.ChartAreas[0].Axes[0].Maximum, _quarter.ToString(), 0, LabelMarkStyle.None);
            chartNetExports.ChartAreas[0].Axes[0].CustomLabels.Insert(
                chartNetExports.ChartAreas[0].Axes[0].CustomLabels.Count, nextQuarter);
        }
 private void UpdateConsumption()
 {
     var newConsumption =
         _expenditure.Consumpt.GetConsumption(
             chartOutput.Series[0].Points[chartOutput.Series[0].Points.Count - 1].YValues[0],
             hScrollBarTaxRate.Value/500.0);
     chartConsumption.Series[0].Points.AddXY(chartConsumption.ChartAreas[0].Axes[0].Maximum + 1, newConsumption);
     chartConsumption.ChartAreas[0].Axes[0].Minimum += 2;
     chartConsumption.ChartAreas[0].Axes[0].Maximum += 2;
     var nextQuarter = new CustomLabel(chartConsumption.ChartAreas[0].Axes[0].Maximum - 2,
         chartConsumption.ChartAreas[0].Axes[0].Maximum, _quarter.ToString(), 0, LabelMarkStyle.None);
     chartConsumption.ChartAreas[0].Axes[0].CustomLabels.Insert(
         chartConsumption.ChartAreas[0].Axes[0].CustomLabels.Count, nextQuarter);
 }
Exemple #8
0
        private void plot(List<double[]> Data, List<string> nazwyAlgorytmow)
        {
            Form form = new Form();
            form.AutoSize = true;
            form.Width = 751;
            form.Height = 446;
            form.Show();

            Chart chart1 = new Chart();
            chart1.Titles.Add("Wykres pudełkowy");
            chart1.Titles[0].Font = new Font("Trebuchet MS", 12, FontStyle.Bold);

            //Budowa wykresu

            ChartArea plotArea = new ChartArea();
            ChartArea boxArea = new ChartArea();

            chart1.ChartAreas.Add(plotArea);
            chart1.ChartAreas.Add(boxArea);
            plotArea.Name = "Data Chart Area";
            boxArea.Name = "Box Plot Area";
            boxArea.AxisY.Title = "Wartość funkcji";
            boxArea.AxisY.TitleFont = new Font("Trebuchet MS", 9, FontStyle.Bold);

            chart1.BackColor = Color.AliceBlue;
            chart1.BackSecondaryColor = Color.Gainsboro;
            chart1.BackGradientStyle = GradientStyle.TopBottom;
            chart1.AntiAliasing = AntiAliasingStyles.All;
            chart1.TextAntiAliasingQuality = TextAntiAliasingQuality.High;
            boxArea.BackColor = Color.AliceBlue;
            boxArea.BackColor = Color.AliceBlue;
            boxArea.BackSecondaryColor = Color.Gainsboro;
            boxArea.BackGradientStyle = GradientStyle.TopBottom;
            //Ustawienia serii danych 

            Series Box = new Series();
            Box.Name = "Box";
            Box.ChartType = SeriesChartType.BoxPlot;
            Box.ChartArea = "Box Plot Area";
            Box.Color = Color.OrangeRed; //kolory pudełek
            Box.BackSecondaryColor = Color.Silver;
            Box.BackGradientStyle = GradientStyle.DiagonalLeft;


            List<Series> serie = new List<Series>();

            Series CE = new Series();
            CE.Name = Codes.AlgoName.CE;
            CE.ChartType = SeriesChartType.BoxPlot;
            CE.ChartArea = "Box Plot Area";
            if (nazwyAlgorytmow.Contains(CE.Name))
                serie.Add(CE);

            Series PSO = new Series();
            PSO.Name = Codes.AlgoName.PSO;
            PSO.ChartType = SeriesChartType.BoxPlot;
            PSO.ChartArea = "Box Plot Area";
            if (nazwyAlgorytmow.Contains(PSO.Name))
                serie.Add(PSO);

            Series DE = new Series();
            DE.Name = Codes.AlgoName.DE;
            DE.ChartType = SeriesChartType.BoxPlot;
            DE.ChartArea = "Box Plot Area";
            if (nazwyAlgorytmow.Contains(DE.Name))
                serie.Add(DE);

            Series API = new Series();
            API.Name = Codes.AlgoName.API;
            API.ChartType = SeriesChartType.BoxPlot;
            API.ChartArea = "Box Plot Area";
            if (nazwyAlgorytmow.Contains(API.Name))
                serie.Add(API);

            Series BEES = new Series();
            BEES.Name = Codes.AlgoName.BEES;
            BEES.ChartType = SeriesChartType.BoxPlot;
            BEES.ChartArea = "Box Plot Area";
            if (nazwyAlgorytmow.Contains(BEES.Name))
                serie.Add(BEES);

            //Wygląd wykresu
            boxArea.AxisY.MajorGrid.LineDashStyle = ChartDashStyle.Dash;
            boxArea.AxisY.MajorGrid.LineColor = Color.Black;
            boxArea.AxisX.MajorGrid.Enabled = false;
            boxArea.BackColor = Color.WhiteSmoke;
            chart1.BackColor = Color.WhiteSmoke;

            //wygląd serii danych
            PSO.Color = Color.Blue;
            DE.Color = Color.Red;
            CE.Color = Color.Orange;
            API.Color = Color.SpringGreen;
            BEES.Color = Color.Yellow;

            //zoom
            boxArea.CursorX.IsUserEnabled = true;
            boxArea.CursorX.IsUserSelectionEnabled = true;
            boxArea.AxisX.ScaleView.Zoomable = true;
            boxArea.AxisX.ScrollBar.IsPositionedInside = true;
            boxArea.CursorY.IsUserEnabled = true;
            boxArea.CursorY.IsUserSelectionEnabled = true;
            boxArea.AxisY.ScaleView.Zoomable = true;
            boxArea.AxisY.ScrollBar.IsPositionedInside = true;
            string names = "series0";

            //Dodawanie dnaych
            for (int i = 0; i < serie.Count; i++)
            {

                Series newSeries = new Series();
                newSeries.Points.DataBindY(Data[i]);
                newSeries.Name = "series" + i.ToString();
                newSeries.Color = Color.Silver;
                if (i != 0)
                {
                    names = names + ";" + newSeries.Name;
                }
                chart1.Series.Add(newSeries);


                //Etykiety dla pudełek
                CustomLabel myLabel = new CustomLabel();
                myLabel.FromPosition = i + 0.5;
                myLabel.ToPosition = i + 1.5;
                myLabel.Text = serie[i].Name;
                myLabel.ForeColor = serie[i].Color;
                boxArea.AxisX.CustomLabels.Add(myLabel);
            }

            //Dodawanie dnaych

            chart1.Series.Add(Box);
            chart1.Series["Box"]["BoxPlotSeries"] = names;
            chart1.Series["Box"]["BoxPlotWhiskerPercentile"] = "5";
            chart1.Series["Box"]["BoxPlotShowAverage"] = "false";
            chart1.Series["Box"]["BoxPlotShowMedian"] = "true";
            chart1.Series["Box"]["BoxPlotShowUnusualValues"] = "false";

            plotArea.Visible = false;

            chart1.Location = new System.Drawing.Point(0, 0);
            chart1.Size = new System.Drawing.Size(form.ClientSize.Width, form.ClientSize.Height);
            form.Controls.AddRange(new System.Windows.Forms.Control[] { chart1 });
        }
 /// <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.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.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(TitleCustomPosition));
     this.label9 = new System.Windows.Forms.Label();
     this.Chart1 = new System.Windows.Forms.DataVisualization.Charting.Chart();
     this.panel1 = new System.Windows.Forms.Panel();
     this.numericUpDownHeight = new System.Windows.Forms.NumericUpDown();
     this.numericUpDownWidth = new System.Windows.Forms.NumericUpDown();
     this.numericUpDownY = new System.Windows.Forms.NumericUpDown();
     this.numericUpDownX = new System.Windows.Forms.NumericUpDown();
     this.label5 = new System.Windows.Forms.Label();
     this.label4 = new System.Windows.Forms.Label();
     this.label3 = new System.Windows.Forms.Label();
     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.numericUpDownHeight)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.numericUpDownWidth)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.numericUpDownY)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.numericUpDownX)).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, 12);
     this.label9.Name = "label9";
     this.label9.Size = new System.Drawing.Size(702, 45);
     this.label9.TabIndex = 0;
     this.label9.Text = "This sample demonstrates how to position the chart by setting the coordinates of " +
         "its top left corner, width, and height. ";
     this.label9.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // 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.BorderColor = System.Drawing.Color.Black;
     legend1.BorderWidth = 0;
     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, 65);
     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)(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.LegendText = "Sales";
     series2.Name = "Series3";
     series2.Points.Add(dataPoint5);
     series2.Points.Add(dataPoint6);
     series2.Points.Add(dataPoint7);
     series2.Points.Add(dataPoint8);
     series2.XValueType = System.Windows.Forms.DataVisualization.Charting.ChartValueType.Double;
     series2.YValueType = System.Windows.Forms.DataVisualization.Charting.ChartValueType.Double;
     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.LegendText = "Clients";
     series3.Name = "Series4";
     series3.Points.Add(dataPoint9);
     series3.Points.Add(dataPoint10);
     series3.Points.Add(dataPoint11);
     series3.Points.Add(dataPoint12);
     series3.XValueType = System.Windows.Forms.DataVisualization.Charting.ChartValueType.Double;
     series3.YValueType = System.Windows.Forms.DataVisualization.Charting.ChartValueType.Double;
     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.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(120)))), ((int)(((byte)(160)))), ((int)(((byte)(240)))));
     title1.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(26)))), ((int)(((byte)(59)))), ((int)(((byte)(105)))));
     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.Text = "Chart Control for .NET Framework";
     this.Chart1.Titles.Add(title1);
     this.Chart1.MouseDown += new System.Windows.Forms.MouseEventHandler(this.Chart1_MouseDown);
     //
     // panel1
     //
     this.panel1.Controls.Add(this.numericUpDownHeight);
     this.panel1.Controls.Add(this.numericUpDownWidth);
     this.panel1.Controls.Add(this.numericUpDownY);
     this.panel1.Controls.Add(this.numericUpDownX);
     this.panel1.Controls.Add(this.label5);
     this.panel1.Controls.Add(this.label4);
     this.panel1.Controls.Add(this.label3);
     this.panel1.Controls.Add(this.label2);
     this.panel1.Location = new System.Drawing.Point(432, 73);
     this.panel1.Name = "panel1";
     this.panel1.Size = new System.Drawing.Size(292, 296);
     this.panel1.TabIndex = 2;
     //
     // numericUpDownHeight
     //
     this.numericUpDownHeight.Location = new System.Drawing.Point(168, 104);
     this.numericUpDownHeight.Maximum = new decimal(new int[] {
     90,
     0,
     0,
     0});
     this.numericUpDownHeight.Name = "numericUpDownHeight";
     this.numericUpDownHeight.Size = new System.Drawing.Size(72, 22);
     this.numericUpDownHeight.TabIndex = 7;
     this.numericUpDownHeight.Value = new decimal(new int[] {
     9,
     0,
     0,
     0});
     this.numericUpDownHeight.ValueChanged += new System.EventHandler(this.numericUpDownHeight_ValueChanged);
     //
     // numericUpDownWidth
     //
     this.numericUpDownWidth.Location = new System.Drawing.Point(168, 72);
     this.numericUpDownWidth.Maximum = new decimal(new int[] {
     90,
     0,
     0,
     0});
     this.numericUpDownWidth.Name = "numericUpDownWidth";
     this.numericUpDownWidth.Size = new System.Drawing.Size(72, 22);
     this.numericUpDownWidth.TabIndex = 5;
     this.numericUpDownWidth.Value = new decimal(new int[] {
     55,
     0,
     0,
     0});
     this.numericUpDownWidth.ValueChanged += new System.EventHandler(this.numericUpDownWidth_ValueChanged);
     //
     // numericUpDownY
     //
     this.numericUpDownY.Location = new System.Drawing.Point(168, 40);
     this.numericUpDownY.Maximum = new decimal(new int[] {
     90,
     0,
     0,
     0});
     this.numericUpDownY.Name = "numericUpDownY";
     this.numericUpDownY.Size = new System.Drawing.Size(72, 22);
     this.numericUpDownY.TabIndex = 3;
     this.numericUpDownY.Value = new decimal(new int[] {
     4,
     0,
     0,
     0});
     this.numericUpDownY.ValueChanged += new System.EventHandler(this.numericUpDownY_ValueChanged);
     //
     // numericUpDownX
     //
     this.numericUpDownX.Location = new System.Drawing.Point(168, 8);
     this.numericUpDownX.Maximum = new decimal(new int[] {
     70,
     0,
     0,
     0});
     this.numericUpDownX.Name = "numericUpDownX";
     this.numericUpDownX.Size = new System.Drawing.Size(72, 22);
     this.numericUpDownX.TabIndex = 1;
     this.numericUpDownX.Value = new decimal(new int[] {
     4,
     0,
     0,
     0});
     this.numericUpDownX.ValueChanged += new System.EventHandler(this.numericUpDownX_ValueChanged);
     //
     // label5
     //
     this.label5.Location = new System.Drawing.Point(12, 104);
     this.label5.Name = "label5";
     this.label5.Size = new System.Drawing.Size(152, 22);
     this.label5.TabIndex = 6;
     this.label5.Text = "&Height:";
     this.label5.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // label4
     //
     this.label4.Location = new System.Drawing.Point(12, 72);
     this.label4.Name = "label4";
     this.label4.Size = new System.Drawing.Size(152, 22);
     this.label4.TabIndex = 4;
     this.label4.Text = "&Width:";
     this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // 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 = 2;
     this.label3.Text = "&Y:";
     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 = 0;
     this.label2.Text = "&X:";
     this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // label1
     //
     this.label1.Font = new System.Drawing.Font("Verdana", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label1.Location = new System.Drawing.Point(16, 377);
     this.label1.Name = "label1";
     this.label1.Size = new System.Drawing.Size(702, 71);
     this.label1.TabIndex = 3;
     this.label1.Text = resources.GetString("label1.Text");
     //
     // TitleCustomPosition
     //
     this.BackColor = System.Drawing.Color.White;
     this.Controls.Add(this.label1);
     this.Controls.Add(this.panel1);
     this.Controls.Add(this.Chart1);
     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 = "TitleCustomPosition";
     this.Size = new System.Drawing.Size(728, 448);
     this.Load += new System.EventHandler(this.LegendCustomPosition_Load);
     ((System.ComponentModel.ISupportInitialize)(this.Chart1)).EndInit();
     this.panel1.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.numericUpDownHeight)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.numericUpDownWidth)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.numericUpDownY)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.numericUpDownX)).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>
 /// 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);
 }
Exemple #12
0
        private void btnUpdate_Click(object sender, EventArgs e)
        {
//Class Setting
            int intClsCnt = lstClasses.CheckedItems.Count;

            string[] arrClsNMs = new string[intClsCnt];

            for (int i = 0; i < intClsCnt; i++)
            {
                arrClsNMs[i] = lstClasses.CheckedItems[i].ToString();
            }


            int[,] arrClsColor = new int[4, intClsCnt];

            IRaster2 pClsRaster = (IRaster2)m_pClsRstLayer.Raster;

            IRasterBandCollection pClsBands = pClsRaster.RasterDataset as IRasterBandCollection;
            IRasterBand           pClsBand  = pClsBands.Item(0);
            ITable pClsTable = pClsBand.AttributeTable;

            ICursor pCursor = pClsTable.Search(null, false);
            IRow    pRow    = pCursor.NextRow();

            string strRed = "Red", strGreen = "Green", strBlue = "Blue", strValue = "Value", strNameFld = "Class_name";

            int intRedIdx   = pClsTable.FindField(strRed);
            int intGreenIdx = pClsTable.FindField(strGreen);
            int intBlueIdx  = pClsTable.FindField(strBlue);
            int intValueIdx = pClsTable.FindField(strValue);
            int intNameIdx  = pClsTable.FindField(strNameFld);

            while (pRow != null)
            {
                for (int i = 0; i < intClsCnt; i++)
                {
                    string strClassName = pRow.get_Value(intNameIdx).ToString();
                    if (arrClsNMs[i] == strClassName)
                    {
                        arrClsColor[0, i] = Convert.ToInt32(pRow.get_Value(intValueIdx));
                        arrClsColor[1, i] = Convert.ToInt32(pRow.get_Value(intRedIdx));
                        arrClsColor[2, i] = Convert.ToInt32(pRow.get_Value(intGreenIdx));
                        arrClsColor[3, i] = Convert.ToInt32(pRow.get_Value(intBlueIdx));
                    }
                }
                pRow = pCursor.NextRow();
            }


            // Get NoDataValues
            IRasterProps pClsrasterProps = (IRasterProps)pClsRaster;

            System.Array pClsNoData = (System.Array)pClsrasterProps.NoDataValue;

            IPnt blocksize = new PntClass();

            blocksize.SetCoords(pClsrasterProps.Width, pClsrasterProps.Height);
            // Create a raster cursor with a system-optimized pixel block size by passing a null.

            IRasterCursor pClsRstCursor = pClsRaster.CreateCursorEx(blocksize);

            IPixelBlock3 pClspBlock3 = (IPixelBlock3)pClsRstCursor.PixelBlock;


            System.Array pClspixels = (System.Array)pClspBlock3.get_PixelData(0);

//Layer Setting

            int intLyrCnt = lstLayers.CheckedItems.Count;

            int[] arrLyrIdx = new int[intLyrCnt];
            for (int i = 0; i < intLyrCnt; i++)
            {
                arrLyrIdx[i] = lstLayers.CheckedIndices[i];
            }

            string strOriRSTpath       = m_pOriRstLayer.FilePath;
            string strExtentFileSource = System.IO.Path.GetDirectoryName(strOriRSTpath);
            string strExtentFileName   = System.IO.Path.GetFileName(strOriRSTpath);

            IWorkspaceFactory workspaceFactory = new RasterWorkspaceFactoryClass();
            IRasterWorkspace  rasterWorkspace  = (IRasterWorkspace)
                                                 workspaceFactory.OpenFromFile(strExtentFileSource, 0);

            //Open a file raster dataset.
            IRasterDataset2 rasterDataset = (IRasterDataset2)rasterWorkspace.OpenRasterDataset(strExtentFileName);
            IRaster2        pOriRaster2   = (IRaster2)rasterDataset.CreateFullRaster();

            //IRaster2 pOriRaster2 = (IRaster2)m_pOriRstLayer.Raster;
            //Create a raster cursor with a system-optimized pixel block size by passing a null.

            // Get NoDataValues
            m_pRasterProps = (IRasterProps)pOriRaster2;
            System.Array pOriNoData = (System.Array)m_pRasterProps.NoDataValue;


            IPnt Oriblocksize = new PntClass();

            Oriblocksize.SetCoords(m_pRasterProps.Width, m_pRasterProps.Height);
            // Create a raster cursor with a system-optimized pixel block size by passing a null.

            IRasterCursor pOriRstCursor = pOriRaster2.CreateCursorEx(Oriblocksize);
            //IRasterCursor pOriRstCursor = pOriRaster2.CreateCursorEx(null);
            IPixelBlock3 pixelblock3 = (IPixelBlock3)pOriRstCursor.PixelBlock;


            System.Array[] OriPixels = new Array[intLyrCnt];
            //UInt16[][,] intArry = new UInt16[intLyrCnt][,];
            for (int i = 0; i < intLyrCnt; i++)
            {
                //intArry[i] = (UInt16[,])pixelblock3.get_PixelData(arrLyrIdx[i]);
                OriPixels[i] = (System.Array)pixelblock3.get_PixelData(arrLyrIdx[i]);
            }

            //Compare the Arrays and Draw
            int intBlockwidth  = m_pRasterProps.Width;
            int intBlockHeight = m_pRasterProps.Height;

            //List<int[]>[] lstDN = new List<int[]>[intClsCnt];
            List <int>[][] lstDN = new List <int> [intLyrCnt][];
            for (int j = 0; j < intLyrCnt; j++)
            {
                lstDN[j] = new List <int> [intClsCnt];
            }

            for (int j = 0; j < intLyrCnt; j++)
            {
                for (int i = 0; i < intClsCnt; i++)
                {
                    lstDN[j][i] = new List <int>();
                }
            }

            List <int>[][] lstLyrIDs = new List <int> [intLyrCnt][];
            for (int j = 0; j < intLyrCnt; j++)
            {
                lstLyrIDs[j] = new List <int> [intClsCnt];
            }

            for (int j = 0; j < intLyrCnt; j++)
            {
                for (int i = 0; i < intClsCnt; i++)
                {
                    lstLyrIDs[j][i] = new List <int>();
                }
            }

            //Uncertainty Layer Settings
            System.Array[] ProbPixels   = null;
            int            intProLyrCnt = 0;

            List <int>[][] lstProb    = null;
            List <int>[][] lstProbIDs = null;

            string strProbRst = cboProbImage.Text;

            if (strProbRst != "" && chkAddProb.Checked)
            {
                IRasterLayer pProbRstLyr = GetRasterLayer(strProbRst, m_pActiveView);

                string strProbRSTpath = pProbRstLyr.FilePath;
                strExtentFileSource = System.IO.Path.GetDirectoryName(strProbRSTpath);
                strExtentFileName   = System.IO.Path.GetFileName(strProbRSTpath);

                workspaceFactory = new RasterWorkspaceFactoryClass();
                rasterWorkspace  = (IRasterWorkspace)
                                   workspaceFactory.OpenFromFile(strExtentFileSource, 0);

                rasterDataset = (IRasterDataset2)rasterWorkspace.OpenRasterDataset(strExtentFileName);
                IRaster2 pProbRaster2 = (IRaster2)rasterDataset.CreateFullRaster();

                // Get NoDataValues
                IRasterProps pProbrasterProps = (IRasterProps)pProbRaster2;
                System.Array pProbNoData      = (System.Array)pProbrasterProps.NoDataValue;

                IRasterCursor pProbRstCursor  = pProbRaster2.CreateCursorEx(Oriblocksize); // Using same block size
                IPixelBlock3  Probpixelblock3 = (IPixelBlock3)pProbRstCursor.PixelBlock;

                intProLyrCnt = Probpixelblock3.Planes;

                ProbPixels = new Array[intProLyrCnt];

                for (int i = 0; i < intProLyrCnt; i++)
                {
                    ProbPixels[i] = (System.Array)Probpixelblock3.get_PixelData(i);
                }

                lstProb = new List <int> [intProLyrCnt][];

                for (int j = 0; j < intProLyrCnt; j++)
                {
                    lstProb[j] = new List <int> [intClsCnt];
                }

                for (int j = 0; j < intProLyrCnt; j++)
                {
                    for (int i = 0; i < intClsCnt; i++)
                    {
                        lstProb[j][i] = new List <int>();
                    }
                }


                lstProbIDs = new List <int> [intProLyrCnt][];

                for (int j = 0; j < intProLyrCnt; j++)
                {
                    lstProbIDs[j] = new List <int> [intClsCnt];
                }

                for (int j = 0; j < intProLyrCnt; j++)
                {
                    for (int i = 0; i < intClsCnt; i++)
                    {
                        lstProbIDs[j][i] = new List <int>();
                    }
                }
            }


            //Store ID and Values for Brushing and Linking
            m_lstIDsValues = new List <int[]>();

            int intID = 0;

            for (int colIndex = 0; colIndex < intBlockwidth; colIndex++)
            {
                for (int rowIndex = 0; rowIndex < intBlockHeight; rowIndex++)
                {
                    int intClass = Convert.ToInt32(pClspixels.GetValue(colIndex, rowIndex));

                    int[] arrValues = new int[intLyrCnt + intProLyrCnt + 3];
                    if (intClass != Convert.ToInt32(pClsNoData.GetValue(0)))
                    {
                        //int[] arrValues = new int[intLyrCnt + intProLyrCnt + 3];

                        arrValues[0] = colIndex;
                        arrValues[1] = rowIndex;
                        arrValues[2] = intClass;

                        for (int i = 0; i < intClsCnt; i++)
                        {
                            if (arrClsColor[0, i] == intClass)
                            {
                                //Get DNs
                                for (int j = 0; j < intLyrCnt; j++)
                                {
                                    if (colIndex == 0 && rowIndex == 241)
                                    {
                                        j = j;
                                    }
                                    int intValue = Convert.ToInt32(OriPixels[j].GetValue(colIndex, rowIndex));
                                    lstDN[j][i].Add(intValue);
                                    lstLyrIDs[j][i].Add(intID);
                                    arrValues[j + 3] = intValue;
                                }

                                //Get Probs
                                if (strProbRst != "" && chkAddProb.Checked)
                                {
                                    for (int j = 0; j < intProLyrCnt; j++)
                                    {
                                        int intValue = Convert.ToInt32(Convert.ToInt32(ProbPixels[j].GetValue(colIndex, rowIndex)) * 2.55);
                                        lstProb[j][i].Add(intValue);
                                        lstProbIDs[j][i].Add(intID);
                                        arrValues[j + 3 + intLyrCnt] = intValue;
                                    }
                                }
                            }
                        }
                    }
                    m_lstIDsValues.Add(arrValues);
                    intID++;
                    if (m_lstIDsValues.Count != intID)
                    {
                        MessageBox.Show("Diff"); //For deburgging
                    }
                }
            }


            pChart.Series.Clear();
            m_intColumnCnt = 0;
            if (strProbRst != "" && chkAddProb.Checked)
            {
                m_intColumnCnt = intLyrCnt + intProLyrCnt;
            }
            else
            {
                m_intColumnCnt = intLyrCnt;
            }

            m_lstPtsIdContainer = new List <List <int> >();
            m_lstPtSeriesID     = new List <int>();

            for (int i = 0; i < intClsCnt; i++)
            {
                Color FillColor = Color.FromArgb(arrClsColor[1, i], arrClsColor[2, i], arrClsColor[3, i]);

                for (int j = 0; j < m_intColumnCnt; j++)
                {
                    List <int> lstTarget;
                    if (j < intLyrCnt)
                    {
                        lstTarget = lstDN[j][i];
                    }
                    else
                    {
                        lstTarget = lstProb[j - intLyrCnt][i];
                    }

                    List <int> lstIDs;
                    if (j < intLyrCnt)
                    {
                        lstIDs = lstLyrIDs[j][i];
                    }
                    else
                    {
                        lstIDs = lstProbIDs[j - intLyrCnt][i];
                    }

                    List <int> sortedTarget = new List <int>(lstTarget);

                    //to prevent overlapping of Boxplots
                    double dblPlotHalfWidth = 0.05;
                    double dblMin           = (dblPlotHalfWidth * (intClsCnt - 1)) * (-1);
                    double dblRefXvalue     = j + (dblMin + (i * (dblPlotHalfWidth * 2)));

                    //Find Max and Min
                    double[] adblStats     = BoxPlotStats(sortedTarget);
                    bool     blnDrawViolin = true;
                    if (adblStats[0] == adblStats[4])
                    {
                        blnDrawViolin = false;
                    }

                    //Restrict Plot min and max
                    if (adblStats[0] < 0)
                    {
                        adblStats[0] = 0;
                    }
                    if (adblStats[4] > 255)
                    {
                        adblStats[4] = 255;
                    }

                    string strNumbering = i.ToString() + "_" + j.ToString();

                    double dblXmin = dblRefXvalue - (dblPlotHalfWidth / 2);
                    double dblXmax = dblRefXvalue + (dblPlotHalfWidth / 2);

                    if (blnDrawViolin)
                    {
                        //Draw Lines
                        AddLineSeries(pChart, "m_" + strNumbering, Color.Red, 1, ChartDashStyle.Dash, dblRefXvalue - dblPlotHalfWidth, dblRefXvalue + dblPlotHalfWidth, adblStats[2], adblStats[2]);
                        AddLineSeries(pChart, "v_" + strNumbering, FillColor, 1, ChartDashStyle.Solid, dblRefXvalue, dblRefXvalue, adblStats[1], adblStats[3]);
                        //AddLineSeries(pChart, "v2_" + strNumbering, FillColor, 1, ChartDashStyle.Solid, dblRefXvalue, dblRefXvalue, adblStats[3], adblStats[4]);
                        AddLineSeries(pChart, "h1_" + strNumbering, FillColor, 1, ChartDashStyle.Solid, dblXmin, dblXmax, adblStats[1], adblStats[1]);
                        AddLineSeries(pChart, "h2_" + strNumbering, FillColor, 1, ChartDashStyle.Solid, dblXmin, dblXmax, adblStats[3], adblStats[3]);
                    }
                    else
                    {
                        //Draw Outliers
                        var pMedPt = new System.Windows.Forms.DataVisualization.Charting.Series
                        {
                            Name              = "mpt_" + strNumbering,
                            Color             = Color.Red,
                            BorderColor       = FillColor,
                            IsVisibleInLegend = false,
                            ChartType         = System.Windows.Forms.DataVisualization.Charting.SeriesChartType.Point,
                            MarkerStyle       = MarkerStyle.Circle,
                            MarkerSize        = 2,
                        };

                        pChart.Series.Add(pMedPt);
                        pMedPt.Points.AddXY(dblRefXvalue, adblStats[2]);
                    }

                    if (blnDrawViolin)
                    {
                        //Draw Violin Plot
                        var pviolin = new System.Windows.Forms.DataVisualization.Charting.Series
                        {
                            Name              = "vio1_" + strNumbering,
                            Color             = FillColor,
                            BorderColor       = FillColor,
                            IsVisibleInLegend = false,
                            ChartType         = System.Windows.Forms.DataVisualization.Charting.SeriesChartType.Line
                        };
                        pChart.Series.Add(pviolin);

                        double[,] adblViolinStats = ViolinPlot(sortedTarget, 4);

                        int intChartLenth = (adblViolinStats.Length) / 2;


                        for (int k = 0; k < intChartLenth; k++)
                        {
                            if (adblViolinStats[k, 0] > adblStats[0] && adblViolinStats[k, 0] < adblStats[4])
                            {
                                pviolin.Points.AddXY(dblRefXvalue - adblViolinStats[k, 1], adblViolinStats[k, 0]);
                            }
                        }
                        pviolin.Points.AddXY(dblRefXvalue, adblStats[4]);
                        for (int k = intChartLenth - 1; k >= 0; k--)
                        {
                            if (adblViolinStats[k, 0] > adblStats[0] && adblViolinStats[k, 0] < adblStats[4])
                            {
                                pviolin.Points.AddXY(dblRefXvalue + adblViolinStats[k, 1], adblViolinStats[k, 0]);
                            }
                        }
                        pviolin.Points.AddXY(dblRefXvalue, adblStats[0]);
                    }



                    //Draw Outliers
                    var pOutlier = new System.Windows.Forms.DataVisualization.Charting.Series
                    {
                        Name              = "out_" + strNumbering,
                        Color             = FillColor,
                        BorderColor       = FillColor,
                        IsVisibleInLegend = false,
                        ChartType         = System.Windows.Forms.DataVisualization.Charting.SeriesChartType.Point,
                        MarkerStyle       = MarkerStyle.Circle,
                        MarkerSize        = 1,
                    };

                    pChart.Series.Add(pOutlier);
                    m_lstPtSeriesID.Add(pChart.Series.Count - 1); //Add Series ID for brushing and linking

                    List <int> lstPTsIds  = new List <int>();
                    int        intListCnt = lstTarget.Count;
                    for (int k = 0; k < intListCnt; k++)
                    {
                        if (lstTarget[k] < adblStats[0] || lstTarget[k] > adblStats[4])
                        {
                            pOutlier.Points.AddXY(dblRefXvalue, lstTarget[k]);
                            lstPTsIds.Add(lstIDs[k]);
                            //if (m_lstIDsValues[lstIDs[k]][3 + i] != lstTarget[k])
                            //    MessageBox.Show("ddd");
                        }
                    }
                    m_lstPtsIdContainer.Add(lstPTsIds);
                }
            }
            m_intTotalNSeries = pChart.Series.Count;

            //Chart Setting
            pChart.ChartAreas[0].AxisY.Minimum = 0;
            pChart.ChartAreas[0].AxisY.Maximum = 255;

            pChart.ChartAreas[0].AxisY.IsLabelAutoFit = true;
            if (chkAddProb.Checked)
            {
                pChart.ChartAreas[0].AxisY.LabelStyle.Enabled = false;
                pChart.ChartAreas[0].AxisY.Title = "DN and Probability";
            }
            else
            {
                pChart.ChartAreas[0].AxisY.Title = "DN";
            }

            pChart.ChartAreas[0].AxisX.Maximum = m_intColumnCnt - 0.5;
            pChart.ChartAreas[0].AxisX.Minimum = -0.5;

            pChart.ChartAreas[0].AxisX.Title = "Layers";

            pChart.ChartAreas[0].AxisX.IsLabelAutoFit = false;
            pChart.ChartAreas[0].AxisX.CustomLabels.Clear();

            for (int j = 0; j < m_intColumnCnt; j++)
            {
                System.Windows.Forms.DataVisualization.Charting.CustomLabel pcutsomLabel = new System.Windows.Forms.DataVisualization.Charting.CustomLabel();
                pcutsomLabel.FromPosition = j - 0.5;
                pcutsomLabel.ToPosition   = j + 0.5;
                if (j < intLyrCnt)
                {
                    pcutsomLabel.Text = "DN of " + lstLayers.CheckedItems[j].ToString() + "(0-255)";
                }
                else
                {
                    pcutsomLabel.Text = "Prob " + lstClasses.Items[j - intLyrCnt].ToString() + "(0-100)";
                }

                this.pChart.ChartAreas[0].AxisX.CustomLabels.Add(pcutsomLabel);
            }
        }
Exemple #13
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.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.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(TitleCustomPosition));
     this.label9 = new System.Windows.Forms.Label();
     this.Chart1 = new System.Windows.Forms.DataVisualization.Charting.Chart();
     this.panel1 = new System.Windows.Forms.Panel();
     this.numericUpDownHeight = new System.Windows.Forms.NumericUpDown();
     this.numericUpDownWidth  = new System.Windows.Forms.NumericUpDown();
     this.numericUpDownY      = new System.Windows.Forms.NumericUpDown();
     this.numericUpDownX      = new System.Windows.Forms.NumericUpDown();
     this.label5 = new System.Windows.Forms.Label();
     this.label4 = new System.Windows.Forms.Label();
     this.label3 = new System.Windows.Forms.Label();
     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.numericUpDownHeight)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.numericUpDownWidth)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.numericUpDownY)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.numericUpDownX)).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, 12);
     this.label9.Name     = "label9";
     this.label9.Size     = new System.Drawing.Size(702, 45);
     this.label9.TabIndex = 0;
     this.label9.Text     = "This sample demonstrates how to position the chart by setting the coordinates of " +
                            "its top left corner, width, and height. ";
     this.label9.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // 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.BorderColor   = System.Drawing.Color.Black;
     legend1.BorderWidth   = 0;
     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, 65);
     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)(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.LegendText       = "Sales";
     series2.Name             = "Series3";
     series2.Points.Add(dataPoint5);
     series2.Points.Add(dataPoint6);
     series2.Points.Add(dataPoint7);
     series2.Points.Add(dataPoint8);
     series2.XValueType       = System.Windows.Forms.DataVisualization.Charting.ChartValueType.Double;
     series2.YValueType       = System.Windows.Forms.DataVisualization.Charting.ChartValueType.Double;
     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.LegendText       = "Clients";
     series3.Name             = "Series4";
     series3.Points.Add(dataPoint9);
     series3.Points.Add(dataPoint10);
     series3.Points.Add(dataPoint11);
     series3.Points.Add(dataPoint12);
     series3.XValueType = System.Windows.Forms.DataVisualization.Charting.ChartValueType.Double;
     series3.YValueType = System.Windows.Forms.DataVisualization.Charting.ChartValueType.Double;
     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.BackColor       = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(120)))), ((int)(((byte)(160)))), ((int)(((byte)(240)))));
     title1.BorderColor     = System.Drawing.Color.FromArgb(((int)(((byte)(26)))), ((int)(((byte)(59)))), ((int)(((byte)(105)))));
     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.Text            = "Chart Control for .NET Framework";
     this.Chart1.Titles.Add(title1);
     this.Chart1.MouseDown += new System.Windows.Forms.MouseEventHandler(this.Chart1_MouseDown);
     //
     // panel1
     //
     this.panel1.Controls.Add(this.numericUpDownHeight);
     this.panel1.Controls.Add(this.numericUpDownWidth);
     this.panel1.Controls.Add(this.numericUpDownY);
     this.panel1.Controls.Add(this.numericUpDownX);
     this.panel1.Controls.Add(this.label5);
     this.panel1.Controls.Add(this.label4);
     this.panel1.Controls.Add(this.label3);
     this.panel1.Controls.Add(this.label2);
     this.panel1.Location = new System.Drawing.Point(432, 73);
     this.panel1.Name     = "panel1";
     this.panel1.Size     = new System.Drawing.Size(292, 296);
     this.panel1.TabIndex = 2;
     //
     // numericUpDownHeight
     //
     this.numericUpDownHeight.Location = new System.Drawing.Point(168, 104);
     this.numericUpDownHeight.Maximum  = new decimal(new int[] {
         90,
         0,
         0,
         0
     });
     this.numericUpDownHeight.Name     = "numericUpDownHeight";
     this.numericUpDownHeight.Size     = new System.Drawing.Size(72, 22);
     this.numericUpDownHeight.TabIndex = 7;
     this.numericUpDownHeight.Value    = new decimal(new int[] {
         9,
         0,
         0,
         0
     });
     this.numericUpDownHeight.ValueChanged += new System.EventHandler(this.numericUpDownHeight_ValueChanged);
     //
     // numericUpDownWidth
     //
     this.numericUpDownWidth.Location = new System.Drawing.Point(168, 72);
     this.numericUpDownWidth.Maximum  = new decimal(new int[] {
         90,
         0,
         0,
         0
     });
     this.numericUpDownWidth.Name     = "numericUpDownWidth";
     this.numericUpDownWidth.Size     = new System.Drawing.Size(72, 22);
     this.numericUpDownWidth.TabIndex = 5;
     this.numericUpDownWidth.Value    = new decimal(new int[] {
         55,
         0,
         0,
         0
     });
     this.numericUpDownWidth.ValueChanged += new System.EventHandler(this.numericUpDownWidth_ValueChanged);
     //
     // numericUpDownY
     //
     this.numericUpDownY.Location = new System.Drawing.Point(168, 40);
     this.numericUpDownY.Maximum  = new decimal(new int[] {
         90,
         0,
         0,
         0
     });
     this.numericUpDownY.Name     = "numericUpDownY";
     this.numericUpDownY.Size     = new System.Drawing.Size(72, 22);
     this.numericUpDownY.TabIndex = 3;
     this.numericUpDownY.Value    = new decimal(new int[] {
         4,
         0,
         0,
         0
     });
     this.numericUpDownY.ValueChanged += new System.EventHandler(this.numericUpDownY_ValueChanged);
     //
     // numericUpDownX
     //
     this.numericUpDownX.Location = new System.Drawing.Point(168, 8);
     this.numericUpDownX.Maximum  = new decimal(new int[] {
         70,
         0,
         0,
         0
     });
     this.numericUpDownX.Name     = "numericUpDownX";
     this.numericUpDownX.Size     = new System.Drawing.Size(72, 22);
     this.numericUpDownX.TabIndex = 1;
     this.numericUpDownX.Value    = new decimal(new int[] {
         4,
         0,
         0,
         0
     });
     this.numericUpDownX.ValueChanged += new System.EventHandler(this.numericUpDownX_ValueChanged);
     //
     // label5
     //
     this.label5.Location  = new System.Drawing.Point(12, 104);
     this.label5.Name      = "label5";
     this.label5.Size      = new System.Drawing.Size(152, 22);
     this.label5.TabIndex  = 6;
     this.label5.Text      = "&Height:";
     this.label5.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // label4
     //
     this.label4.Location  = new System.Drawing.Point(12, 72);
     this.label4.Name      = "label4";
     this.label4.Size      = new System.Drawing.Size(152, 22);
     this.label4.TabIndex  = 4;
     this.label4.Text      = "&Width:";
     this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // 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  = 2;
     this.label3.Text      = "&Y:";
     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  = 0;
     this.label2.Text      = "&X:";
     this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // label1
     //
     this.label1.Font     = new System.Drawing.Font("Verdana", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label1.Location = new System.Drawing.Point(16, 377);
     this.label1.Name     = "label1";
     this.label1.Size     = new System.Drawing.Size(702, 71);
     this.label1.TabIndex = 3;
     this.label1.Text     = resources.GetString("label1.Text");
     //
     // TitleCustomPosition
     //
     this.BackColor = System.Drawing.Color.White;
     this.Controls.Add(this.label1);
     this.Controls.Add(this.panel1);
     this.Controls.Add(this.Chart1);
     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  = "TitleCustomPosition";
     this.Size  = new System.Drawing.Size(728, 448);
     this.Load += new System.EventHandler(this.LegendCustomPosition_Load);
     ((System.ComponentModel.ISupportInitialize)(this.Chart1)).EndInit();
     this.panel1.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.numericUpDownHeight)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.numericUpDownWidth)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.numericUpDownY)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.numericUpDownX)).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);
 }
Exemple #15
0
        private Chart GenerateGraph()
        {
            Chart ChartToBeReturned = new Chart();
            int IdxValue = 0;

            if (IsAutomatedMinMax)
            {
                Max = this.Input.Max();
                Min = this.Input.Min();
            }

            CurrentSeries = new Series();
            CurrentSeries.ChartType = SeriesChartType.Point;
            // loop on all the desciptors
            for (int idxCol = 0; idxCol < Input.Count; idxCol++)
            {
                for (int idxRow = 0; idxRow < Input[idxCol].Count; idxRow++)
                {
                    CurrentSeries.Points.AddXY(idxCol + 1, idxRow + 1);
                    CurrentSeries.Points[IdxValue].MarkerStyle = Marker_Style;
                    CurrentSeries.Points[IdxValue].MarkerSize = SquareSize;
                    CurrentSeries.Points[IdxValue].BorderColor = Color.Black;
                    CurrentSeries.Points[IdxValue].BorderWidth = 1;
                    if (Input[idxCol].ListTags != null)
                        CurrentSeries.Points[IdxValue].Tag = Input[idxCol].ListTags[idxRow];

                    double Value = this.Input[idxCol][idxRow];

                    if (this.IsDisplayValues)
                        CurrentSeries.Points[IdxValue].Label = Value.ToString("N" + DigitNumber);// string.Format("{0:0.###}", Math.Abs(Value));
                    else
                        CurrentSeries.Points[IdxValue].Label = "";

                    string TmpToolTip = this.Input[idxCol].Name ;

                    if (idxRow < this.Input.ListRowNames.Count)
                    {
                        TmpToolTip +=  "\n vs.\n" + this.Input.ListRowNames[idxRow] + "\n\n" + Value.ToString("N" + DigitNumber);
                    }

                    CurrentSeries.Points[IdxValue].ToolTip = TmpToolTip;
                    if ((Max != Min) && (double.IsNaN(Value) == false) && (Value != -1))
                    {
                        int ConvertedValue = (int)((Value - Min) / (Max - Min) * (CurrentLUT[0].Length - 1));
                        CurrentSeries.Points[IdxValue].Color = Color.FromArgb(CurrentLUT[0][ConvertedValue], CurrentLUT[1][ConvertedValue], CurrentLUT[2][ConvertedValue]);

                        if (this.IsDisplayValues)
                        {
                            CurrentSeries.Points[IdxValue].LabelFormat = "N" + DigitNumber;
                            CurrentSeries.Points[IdxValue].IsValueShownAsLabel = true;
                            CurrentSeries.Points[IdxValue].Font = new Font("Arial", 8);
                        }
                    }
                    else
                        CurrentSeries.Points[IdxValue].Color = Color.Transparent;

                    CurrentSeries.Points[IdxValue++].AxisLabel = this.Input[idxCol].Name;
                }
            }

            SmartLabelStyle SStyle = new SmartLabelStyle();

            ChartArea CurrentChartArea = new ChartArea("Default");
            for (int i = 0; i < this.Input.ListRowNames.Count; i++)
            {
                CustomLabel lblY = new CustomLabel();
                lblY.ToPosition = i * 2 + 2;
                lblY.Text = this.Input.ListRowNames[i];
                CurrentChartArea.AxisY.CustomLabels.Add(lblY);
            }

            CurrentChartArea.AxisY.LabelAutoFitStyle = LabelAutoFitStyles.LabelsAngleStep30;
            CurrentChartArea.BorderColor = Color.Black;
            ChartToBeReturned.ChartAreas.Add(CurrentChartArea);
            CurrentSeries.SmartLabelStyle.Enabled = true;

            ChartToBeReturned.TextAntiAliasingQuality = TextAntiAliasingQuality.High;
            ChartToBeReturned.Series.Add(CurrentSeries);

            CurrentChartArea.Axes[0].MajorGrid.Enabled = false;
            CurrentChartArea.Axes[0].Minimum = 0;
            CurrentChartArea.Axes[0].Maximum = this.Input.Count + 1;
            CurrentChartArea.Axes[1].MajorGrid.Enabled = false;
            CurrentChartArea.Axes[1].Minimum = 0;
            CurrentChartArea.Axes[1].Maximum = this.Input.ListRowNames.Count + 1;
            CurrentChartArea.AxisX.Interval = 1;
            CurrentChartArea.AxisY.Interval = 1;

            Title CurrentTitle = new Title(this.Input.Name);
            ChartToBeReturned.Titles.Add(CurrentTitle);
            ChartToBeReturned.Titles[0].Font = new Font("Arial", 9);

            ChartToBeReturned.Anchor = (System.Windows.Forms.AnchorStyles)(System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom
                                       | System.Windows.Forms.AnchorStyles.Left
                                       | System.Windows.Forms.AnchorStyles.Right);

            if ((IsWellClassLegend) || (IsCellularPhenotypeLegend))
            {
                Legend MyLegend = new Legend();
                ChartToBeReturned.Legends.Add(MyLegend);
                ChartToBeReturned.Legends[0].ShadowOffset = 5;
                ChartToBeReturned.CustomizeLegend += new EventHandler<CustomizeLegendEventArgs>(ChartToBeReturned_CustomizeLegend);
            }
            return ChartToBeReturned;
        }
		public bool plot(byte[][] arr)
		{
			if (arr == null)
				return false;
			if (arr.Length == 0)
				return false;
			arrLength = arr[0].Length;
			crtMain.ChartAreas[0].AxisX.Minimum = 0;
			crtMain.ChartAreas[0].AxisX.Maximum = arrLength;
			crtMain.ChartAreas[0].AxisY.Minimum = 0;
			crtMain.ChartAreas[0].AxisY.Maximum = arr.Length + 1;
			crtMain.ChartAreas[0].AxisY.Interval = 1;
			crtMain.ChartAreas[0].CursorX.AutoScroll = true;
			crtMain.ChartAreas[0].AxisX.ScaleView.Zoomable = true;
			crtMain.ChartAreas[0].AxisX.ScaleView.SizeType = DateTimeIntervalType.Number;
			crtMain.ChartAreas[0].AxisX.ScrollBar.ButtonStyle = ScrollBarButtonStyles.SmallScroll;
			scrollZoom.Maximum = arrLength;
			scrollZoom.Value = arrLength / 5;
			scrollZoom.SmallChange = arrLength / 100;
			scrollZoom.LargeChange = arrLength / 20;
			crtMain.ChartAreas[0].AxisX.ScaleView.Zoom(0, scrollZoom.Value);
			crtMain.ChartAreas[0].AxisX.ScaleView.SmallScrollSize = scrollZoom.Value / 2;

			int countsum = 0;
			Series[] s = new Series[arr.Length];
			for (int i = 0; i < arr.Length; i++)
			{
				s[i] = crtMain.Series.Add("" + (i + 1));
				s[i].ChartType = SeriesChartType.Line;
				s[i].BorderWidth = 2;
				for (int x = 0; x < arr[i].Length; x++)
				{
					if (x > 0)
					{
						if (arr[inputSeq[i]][x - 1] != arr[inputSeq[i]][x])
						{
							s[i].Points.AddXY(x, (float)(arr[inputSeq[i]][x - 1]) * (2f / 3f) + i + 1);
							s[i].Points.AddXY(x, (float)(arr[inputSeq[i]][x]) * (2f / 3f) + i + 1);
						}
						else if (x == arr[inputSeq[i]].Length - 1)
						{
							s[i].Points.AddXY(x, (float)(arr[inputSeq[i]][x]) * (2f / 3f) + i + 1);
						}
						else
							continue;
					}
					else
						s[i].Points.AddXY(x, (float)(arr[inputSeq[i]][x]) * (2f / 3f) + i + 1);
				}
				int count = countEdge(arr[inputSeq[i]]);
				countsum += count;
				CustomLabel lblCount = new CustomLabel
				{
					FromPosition = i + 1,
					ToPosition = (float)i + 1f + (2f/3f),
					Text = "" + count,
				};
				crtMain.ChartAreas[0].AxisY2.CustomLabels.Add(lblCount);
			}
			lblCountSum.Text = "" + countsum;
			lblCountSum.Left = this.ClientSize.Width - lblCountSum.Width - 20;
			lblCountSum.Top = this.ClientSize.Height - lblCountSum.Height - 20;

			Series cs = new Series();
			cs = crtMain.Series.Add("");
			cs.YAxisType = AxisType.Secondary;
			crtMain.ChartAreas[0].AxisY2.Minimum = 0;
			crtMain.ChartAreas[0].AxisY2.Maximum = arr.Length + 1;
			crtMain.ChartAreas[0].AxisY2.Interval = 1;
			cs.Points.AddXY(0, 0);

			return true;
		}
 /// <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);
 }
Exemple #18
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.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.ShadowOffset = new System.Windows.Forms.ComboBox();
     this.BorderDashStyle = new System.Windows.Forms.ComboBox();
     this.BorderSizeCom = new System.Windows.Forms.ComboBox();
     this.BorderColor = new System.Windows.Forms.ComboBox();
     this.HatchStyle = new System.Windows.Forms.ComboBox();
     this.Gradient = new System.Windows.Forms.ComboBox();
     this.ForeColorCom = new System.Windows.Forms.ComboBox();
     this.BackColorCom = new System.Windows.Forms.ComboBox();
     this.label11 = 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.label2 = new System.Windows.Forms.Label();
     this.label10 = new System.Windows.Forms.Label();
     this.label12 = new System.Windows.Forms.Label();
     this.label13 = new System.Windows.Forms.Label();
     this.label14 = new System.Windows.Forms.Label();
     this.label15 = new System.Windows.Forms.Label();
     this.label16 = 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, 8);
     this.label9.Name = "label9";
     this.label9.Size = new System.Drawing.Size(702, 34);
     this.label9.TabIndex = 0;
     this.label9.Text = "This sample demonstrates how to set the appearance of chart\'s plot area.";
     this.label9.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // panel1
     //
     this.panel1.Controls.Add(this.ShadowOffset);
     this.panel1.Controls.Add(this.BorderDashStyle);
     this.panel1.Controls.Add(this.BorderSizeCom);
     this.panel1.Controls.Add(this.BorderColor);
     this.panel1.Controls.Add(this.HatchStyle);
     this.panel1.Controls.Add(this.Gradient);
     this.panel1.Controls.Add(this.ForeColorCom);
     this.panel1.Controls.Add(this.BackColorCom);
     this.panel1.Controls.Add(this.label11);
     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.label2);
     this.panel1.Controls.Add(this.label10);
     this.panel1.Controls.Add(this.label12);
     this.panel1.Controls.Add(this.label13);
     this.panel1.Controls.Add(this.label14);
     this.panel1.Controls.Add(this.label15);
     this.panel1.Controls.Add(this.label16);
     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;
     //
     // ShadowOffset
     //
     this.ShadowOffset.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.ShadowOffset.Items.AddRange(new object[] {
     "0",
     "1",
     "2",
     "3",
     "4",
     "5"});
     this.ShadowOffset.Location = new System.Drawing.Point(168, 248);
     this.ShadowOffset.Name = "ShadowOffset";
     this.ShadowOffset.Size = new System.Drawing.Size(120, 22);
     this.ShadowOffset.TabIndex = 15;
     this.ShadowOffset.SelectedIndexChanged += new System.EventHandler(this.Combo_SelectedIndexChanged);
     //
     // BorderDashStyle
     //
     this.BorderDashStyle.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.BorderDashStyle.Location = new System.Drawing.Point(168, 208);
     this.BorderDashStyle.Name = "BorderDashStyle";
     this.BorderDashStyle.Size = new System.Drawing.Size(120, 22);
     this.BorderDashStyle.TabIndex = 13;
     this.BorderDashStyle.SelectedIndexChanged += new System.EventHandler(this.Combo_SelectedIndexChanged);
     //
     // BorderSizeCom
     //
     this.BorderSizeCom.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.BorderSizeCom.Items.AddRange(new object[] {
     "1",
     "2",
     "3",
     "4",
     "5"});
     this.BorderSizeCom.Location = new System.Drawing.Point(168, 176);
     this.BorderSizeCom.Name = "BorderSizeCom";
     this.BorderSizeCom.Size = new System.Drawing.Size(120, 22);
     this.BorderSizeCom.TabIndex = 11;
     this.BorderSizeCom.SelectedIndexChanged += new System.EventHandler(this.Combo_SelectedIndexChanged);
     //
     // BorderColor
     //
     this.BorderColor.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.BorderColor.Items.AddRange(new object[] {
     "Black",
     "DarkGray",
     "White",
     "Blue",
     "Yellow",
     "Red",
     "Green"});
     this.BorderColor.Location = new System.Drawing.Point(168, 144);
     this.BorderColor.Name = "BorderColor";
     this.BorderColor.Size = new System.Drawing.Size(120, 22);
     this.BorderColor.TabIndex = 9;
     this.BorderColor.SelectedIndexChanged += new System.EventHandler(this.Combo_SelectedIndexChanged);
     //
     // HatchStyle
     //
     this.HatchStyle.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.HatchStyle.Location = new System.Drawing.Point(168, 72);
     this.HatchStyle.Name = "HatchStyle";
     this.HatchStyle.Size = new System.Drawing.Size(120, 22);
     this.HatchStyle.TabIndex = 7;
     this.HatchStyle.SelectedIndexChanged += new System.EventHandler(this.Combo_SelectedIndexChanged);
     //
     // Gradient
     //
     this.Gradient.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.Gradient.Location = new System.Drawing.Point(168, 40);
     this.Gradient.Name = "Gradient";
     this.Gradient.Size = new System.Drawing.Size(120, 22);
     this.Gradient.TabIndex = 5;
     this.Gradient.SelectedIndexChanged += new System.EventHandler(this.Combo_SelectedIndexChanged);
     //
     // ForeColorCom
     //
     this.ForeColorCom.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.ForeColorCom.Items.AddRange(new object[] {
     "White",
     "Blue",
     "Yellow",
     "Red",
     "Green",
     "Gray"});
     this.ForeColorCom.Location = new System.Drawing.Point(168, 104);
     this.ForeColorCom.Name = "ForeColorCom";
     this.ForeColorCom.Size = new System.Drawing.Size(120, 22);
     this.ForeColorCom.TabIndex = 3;
     this.ForeColorCom.SelectedIndexChanged += new System.EventHandler(this.Combo_SelectedIndexChanged);
     //
     // BackColorCom
     //
     this.BackColorCom.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.BackColorCom.Items.AddRange(new object[] {
     "White",
     "Blue",
     "Yellow",
     "Red",
     "Green",
     "Gray",
     "Transparent"});
     this.BackColorCom.Location = new System.Drawing.Point(168, 8);
     this.BackColorCom.Name = "BackColorCom";
     this.BackColorCom.Size = new System.Drawing.Size(120, 22);
     this.BackColorCom.TabIndex = 1;
     this.BackColorCom.SelectedIndexChanged += new System.EventHandler(this.Combo_SelectedIndexChanged);
     //
     // label11
     //
     this.label11.Location = new System.Drawing.Point(24, 248);
     this.label11.Name = "label11";
     this.label11.Size = new System.Drawing.Size(142, 23);
     this.label11.TabIndex = 14;
     this.label11.Text = "Shadow &Offset:";
     this.label11.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // label1
     //
     this.label1.Location = new System.Drawing.Point(24, 208);
     this.label1.Name = "label1";
     this.label1.Size = new System.Drawing.Size(142, 23);
     this.label1.TabIndex = 12;
     this.label1.Text = "Border St&yle:";
     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 = 5;
     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 = 4;
     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 = 3;
     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 = 2;
     this.label3.Text = "Gradient:";
     //
     // label2
     //
     this.label2.Location = new System.Drawing.Point(8, 104);
     this.label2.Name = "label2";
     this.label2.Size = new System.Drawing.Size(152, 23);
     this.label2.TabIndex = 2;
     this.label2.Text = "&Secondary Back Color:";
     this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // label10
     //
     this.label10.Location = new System.Drawing.Point(24, 176);
     this.label10.Name = "label10";
     this.label10.Size = new System.Drawing.Size(142, 23);
     this.label10.TabIndex = 10;
     this.label10.Text = "Border &Size:";
     this.label10.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // label12
     //
     this.label12.Location = new System.Drawing.Point(24, 8);
     this.label12.Name = "label12";
     this.label12.Size = new System.Drawing.Size(142, 23);
     this.label12.TabIndex = 0;
     this.label12.Text = "&Back Color:";
     this.label12.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // label13
     //
     this.label13.Location = new System.Drawing.Point(24, 40);
     this.label13.Name = "label13";
     this.label13.Size = new System.Drawing.Size(142, 23);
     this.label13.TabIndex = 4;
     this.label13.Text = "&Gradient:";
     this.label13.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // label14
     //
     this.label14.Location = new System.Drawing.Point(24, 144);
     this.label14.Name = "label14";
     this.label14.Size = new System.Drawing.Size(142, 23);
     this.label14.TabIndex = 8;
     this.label14.Text = "B&order Color:";
     this.label14.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // 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:";
     //
     // label16
     //
     this.label16.Location = new System.Drawing.Point(24, 72);
     this.label16.Name = "label16";
     this.label16.Size = new System.Drawing.Size(142, 23);
     this.label16.TabIndex = 6;
     this.label16.Text = "&Hatch Style:";
     this.label16.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;
     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.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.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))));
     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;
     this.Chart1.Legends.Add(legend1);
     this.Chart1.Location = new System.Drawing.Point(16, 48);
     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.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);
     //
     // Appearance
     //
     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 = "Appearance";
     this.Size = new System.Drawing.Size(728, 480);
     this.Load += new System.EventHandler(this.Appearance_Load);
     this.panel1.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.Chart1)).EndInit();
     this.ResumeLayout(false);
 }
        // labels laterais, escritas na vertical
        private void SetYAxisTitle(string name, double fromPosition, double toPosition, string text)
        {
            CustomLabel label = new CustomLabel()
            {
                FromPosition = fromPosition,
                ToPosition = toPosition,
                Text = text,
                RowIndex = 1,
                LabelMark = LabelMarkStyle.None
            };

            chartsNew.ChartAreas[name].AxisY.CustomLabels.Add(label);
        }
Exemple #20
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.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);
 }
        private void UpdateInvestment()
        {
            if (_rng.Next(2) == 0)
                _expenditure.Investment *= _rng.Next(97, 100)/100.0;
            else
                _expenditure.Investment *= _rng.Next(101, 104)/100.0;


            chartInvestment.Series[0].Points.AddXY(chartInvestment.ChartAreas[0].Axes[0].Maximum + 1,
                _expenditure.Investment);
            chartInvestment.ChartAreas[0].Axes[0].Minimum += 2;
            chartInvestment.ChartAreas[0].Axes[0].Maximum += 2;
            var nextQuarter = new CustomLabel(chartInvestment.ChartAreas[0].Axes[0].Maximum - 2,
                chartInvestment.ChartAreas[0].Axes[0].Maximum, _quarter.ToString(), 0, LabelMarkStyle.None);
            chartInvestment.ChartAreas[0].Axes[0].CustomLabels.Insert(
                chartInvestment.ChartAreas[0].Axes[0].CustomLabels.Count, nextQuarter);
        }
 private void SetCustomAxisLabels(Axis axis, int dimension) {
   axis.CustomLabels.Clear();
   if (categoricalMapping.ContainsKey(dimension)) {
     foreach (var pair in categoricalMapping[dimension]) {
       string labelText = pair.Key.ToString();
       CustomLabel label = new CustomLabel();
       label.ToolTip = labelText;
       if (labelText.Length > 25)
         labelText = labelText.Substring(0, 25) + " ... ";
       label.Text = labelText;
       label.GridTicks = GridTickTypes.TickMark;
       label.FromPosition = pair.Value - 0.5;
       label.ToPosition = pair.Value + 0.5;
       axis.CustomLabels.Add(label);
     }
   } else if (dimension > 0 && Content.GetValue(0, dimension) is TimeSpanValue) {
     this.chart.ChartAreas[0].RecalculateAxesScale();
     for (double i = axis.Minimum; i <= axis.Maximum; i += axis.LabelStyle.Interval) {
       TimeSpan time = TimeSpan.FromSeconds(i);
       string x = string.Format("{0:00}:{1:00}:{2:00}", time.Hours, time.Minutes, time.Seconds);
       axis.CustomLabels.Add(i - axis.LabelStyle.Interval / 2, i + axis.LabelStyle.Interval / 2, x);
     }
   }
 }
        private void UpdateExpenditure()
        {
            var newConsumption =
                chartConsumption.Series[0].Points[chartConsumption.Series[0].Points.Count - 1].YValues[0];

            var multGovSpending = (chartBudget.Series[1].Points[chartBudget.Series[1].Points.Count - 1].YValues[0] -
                                   chartBudget.Series[1].Points[chartBudget.Series[1].Points.Count - 2].YValues[0])*
                                  (_govSpendingMultiplier - 1.0);

            var multIncomeTax = (chartBudget.Series[0].Points[chartBudget.Series[0].Points.Count - 1].YValues[0] -
                                 chartBudget.Series[0].Points[chartBudget.Series[0].Points.Count - 2].YValues[0])*
                                (_incomeTaxMultiplier + 1.0);

            var newExpenditure = _expenditure.GetExpenditure(newConsumption,
                chartBudget.Series[1].Points[chartBudget.Series[1].Points.Count - 1].YValues[0]);
            newExpenditure += multGovSpending;
            newExpenditure += multIncomeTax;

            chartOutput.Series[0].Points.AddXY(chartOutput.ChartAreas[0].Axes[0].Maximum + 1, newExpenditure);
            chartOutput.ChartAreas[0].Axes[0].Minimum += 2;
            chartOutput.ChartAreas[0].Axes[0].Maximum += 2;
            var nextQuarter = new CustomLabel(chartOutput.ChartAreas[0].Axes[0].Maximum - 2,
                chartOutput.ChartAreas[0].Axes[0].Maximum, _quarter.ToString(), 0, LabelMarkStyle.None);
            chartOutput.ChartAreas[0].Axes[0].CustomLabels.Insert(chartOutput.ChartAreas[0].Axes[0].CustomLabels.Count,
                nextQuarter);
        }
        /// <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 chartArea16 = new System.Windows.Forms.DataVisualization.Charting.ChartArea();
            System.Windows.Forms.DataVisualization.Charting.CustomLabel customLabel61 = new System.Windows.Forms.DataVisualization.Charting.CustomLabel();
            System.Windows.Forms.DataVisualization.Charting.CustomLabel customLabel62 = new System.Windows.Forms.DataVisualization.Charting.CustomLabel();
            System.Windows.Forms.DataVisualization.Charting.CustomLabel customLabel63 = new System.Windows.Forms.DataVisualization.Charting.CustomLabel();
            System.Windows.Forms.DataVisualization.Charting.CustomLabel customLabel64 = new System.Windows.Forms.DataVisualization.Charting.CustomLabel();
            System.Windows.Forms.DataVisualization.Charting.Series series19 = new System.Windows.Forms.DataVisualization.Charting.Series();
            System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint91 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(-1D, -2D);
            System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint92 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(1D, 0.8D);
            System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint93 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(3D, -2.3D);
            System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint94 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(5D, -0.5D);
            System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint95 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(7D, -0.6D);
            System.Windows.Forms.DataVisualization.Charting.Title title16 = new System.Windows.Forms.DataVisualization.Charting.Title();
            System.Windows.Forms.DataVisualization.Charting.ChartArea chartArea17 = new System.Windows.Forms.DataVisualization.Charting.ChartArea();
            System.Windows.Forms.DataVisualization.Charting.CustomLabel customLabel65 = new System.Windows.Forms.DataVisualization.Charting.CustomLabel();
            System.Windows.Forms.DataVisualization.Charting.CustomLabel customLabel66 = new System.Windows.Forms.DataVisualization.Charting.CustomLabel();
            System.Windows.Forms.DataVisualization.Charting.CustomLabel customLabel67 = new System.Windows.Forms.DataVisualization.Charting.CustomLabel();
            System.Windows.Forms.DataVisualization.Charting.CustomLabel customLabel68 = new System.Windows.Forms.DataVisualization.Charting.CustomLabel();
            System.Windows.Forms.DataVisualization.Charting.Series series20 = new System.Windows.Forms.DataVisualization.Charting.Series();
            System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint96 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(-1D, 16.7D);
            System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint97 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(1D, 17.1D);
            System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint98 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(3D, 17.8D);
            System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint99 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(5D, 17.3D);
            System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint100 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(7D, 17.7D);
            System.Windows.Forms.DataVisualization.Charting.Title title17 = new System.Windows.Forms.DataVisualization.Charting.Title();
            System.Windows.Forms.DataVisualization.Charting.ChartArea chartArea18 = new System.Windows.Forms.DataVisualization.Charting.ChartArea();
            System.Windows.Forms.DataVisualization.Charting.CustomLabel customLabel69 = new System.Windows.Forms.DataVisualization.Charting.CustomLabel();
            System.Windows.Forms.DataVisualization.Charting.CustomLabel customLabel70 = new System.Windows.Forms.DataVisualization.Charting.CustomLabel();
            System.Windows.Forms.DataVisualization.Charting.CustomLabel customLabel71 = new System.Windows.Forms.DataVisualization.Charting.CustomLabel();
            System.Windows.Forms.DataVisualization.Charting.CustomLabel customLabel72 = new System.Windows.Forms.DataVisualization.Charting.CustomLabel();
            System.Windows.Forms.DataVisualization.Charting.Series series21 = new System.Windows.Forms.DataVisualization.Charting.Series();
            System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint101 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(-1D, 42.7D);
            System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint102 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(1D, 43.1D);
            System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint103 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(3D, 43.5D);
            System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint104 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(5D, 43.9D);
            System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint105 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(7D, 44.4D);
            System.Windows.Forms.DataVisualization.Charting.Title title18 = new System.Windows.Forms.DataVisualization.Charting.Title();
            System.Windows.Forms.DataVisualization.Charting.ChartArea chartArea19 = new System.Windows.Forms.DataVisualization.Charting.ChartArea();
            System.Windows.Forms.DataVisualization.Charting.CustomLabel customLabel73 = new System.Windows.Forms.DataVisualization.Charting.CustomLabel();
            System.Windows.Forms.DataVisualization.Charting.CustomLabel customLabel74 = new System.Windows.Forms.DataVisualization.Charting.CustomLabel();
            System.Windows.Forms.DataVisualization.Charting.CustomLabel customLabel75 = new System.Windows.Forms.DataVisualization.Charting.CustomLabel();
            System.Windows.Forms.DataVisualization.Charting.CustomLabel customLabel76 = new System.Windows.Forms.DataVisualization.Charting.CustomLabel();
            System.Windows.Forms.DataVisualization.Charting.Legend legend4 = new System.Windows.Forms.DataVisualization.Charting.Legend();
            System.Windows.Forms.DataVisualization.Charting.Series series22 = new System.Windows.Forms.DataVisualization.Charting.Series();
            System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint106 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(-1D, 17D);
            System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint107 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(1D, 18.4D);
            System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint108 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(3D, 19.3D);
            System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint109 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(5D, 18.3D);
            System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint110 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(7D, 18.7D);
            System.Windows.Forms.DataVisualization.Charting.Series series23 = new System.Windows.Forms.DataVisualization.Charting.Series();
            System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint111 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(-1D, 18.6D);
            System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint112 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(1D, 19.2D);
            System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint113 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(3D, 20.6D);
            System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint114 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(5D, 20.4D);
            System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint115 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(7D, 20.4D);
            System.Windows.Forms.DataVisualization.Charting.Title title19 = new System.Windows.Forms.DataVisualization.Charting.Title();
            System.Windows.Forms.DataVisualization.Charting.ChartArea chartArea20 = new System.Windows.Forms.DataVisualization.Charting.ChartArea();
            System.Windows.Forms.DataVisualization.Charting.CustomLabel customLabel77 = new System.Windows.Forms.DataVisualization.Charting.CustomLabel();
            System.Windows.Forms.DataVisualization.Charting.CustomLabel customLabel78 = new System.Windows.Forms.DataVisualization.Charting.CustomLabel();
            System.Windows.Forms.DataVisualization.Charting.CustomLabel customLabel79 = new System.Windows.Forms.DataVisualization.Charting.CustomLabel();
            System.Windows.Forms.DataVisualization.Charting.CustomLabel customLabel80 = new System.Windows.Forms.DataVisualization.Charting.CustomLabel();
            System.Windows.Forms.DataVisualization.Charting.Series series24 = new System.Windows.Forms.DataVisualization.Charting.Series();
            System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint116 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(-1D, 77.5D);
            System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint117 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(1D, 78.4D);
            System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint118 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(3D, 80D);
            System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint119 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(5D, 80.3D);
            System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint120 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(7D, 82.2D);
            System.Windows.Forms.DataVisualization.Charting.Title title20 = new System.Windows.Forms.DataVisualization.Charting.Title();
            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MainWindow));
            this.mainTabControl = new System.Windows.Forms.TabControl();
            this.tabPageIndicators = new System.Windows.Forms.TabPage();
            this.chartNetExports = new System.Windows.Forms.DataVisualization.Charting.Chart();
            this.chartInvestment = new System.Windows.Forms.DataVisualization.Charting.Chart();
            this.chartConsumption = new System.Windows.Forms.DataVisualization.Charting.Chart();
            this.labelGDPFormula = new System.Windows.Forms.Label();
            this.labelNXFormula = new System.Windows.Forms.Label();
            this.labelIFormula = new System.Windows.Forms.Label();
            this.labelCFormula = new System.Windows.Forms.Label();
            this.tabPageHeadquarters = new System.Windows.Forms.TabPage();
            this.textBoxFiscalTimes = new System.Windows.Forms.TextBox();
            this.textBoxFreakonomist = new System.Windows.Forms.TextBox();
            this.labelFiscalTimes = new System.Windows.Forms.Label();
            this.labelFreakonomist = new System.Windows.Forms.Label();
            this.labelDeficit = new System.Windows.Forms.Label();
            this.labelGrowth = new System.Windows.Forms.Label();
            this.chartBudget = new System.Windows.Forms.DataVisualization.Charting.Chart();
            this.chartOutput = new System.Windows.Forms.DataVisualization.Charting.Chart();
            this.labelQuarters = new System.Windows.Forms.Label();
            this.buttonOK = new System.Windows.Forms.Button();
            this.labelSpending = new System.Windows.Forms.Label();
            this.labelTaxRate = new System.Windows.Forms.Label();
            this.hScrollBarSpending = new System.Windows.Forms.HScrollBar();
            this.hScrollBarTaxRate = new System.Windows.Forms.HScrollBar();
            this.trackBarTime = new System.Windows.Forms.TrackBar();
            this.pictureBoxFiscalTimes = new System.Windows.Forms.PictureBox();
            this.pictureBoxFreakonomist = new System.Windows.Forms.PictureBox();
            this.tabPageGlossary = new System.Windows.Forms.TabPage();
            this.labelGEffects = new System.Windows.Forms.Label();
            this.labelTEffects = new System.Windows.Forms.Label();
            this.textBoxCredits = new System.Windows.Forms.TextBox();
            this.textBoxDefinitions = new System.Windows.Forms.TextBox();
            this.pictureBoxLogo = new System.Windows.Forms.PictureBox();
            this.listBoxTerms = new System.Windows.Forms.ListBox();
            this.mainTabControl.SuspendLayout();
            this.tabPageIndicators.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.chartNetExports)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.chartInvestment)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.chartConsumption)).BeginInit();
            this.tabPageHeadquarters.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.chartBudget)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.chartOutput)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.trackBarTime)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.pictureBoxFiscalTimes)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.pictureBoxFreakonomist)).BeginInit();
            this.tabPageGlossary.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.pictureBoxLogo)).BeginInit();
            this.SuspendLayout();
            // 
            // mainTabControl
            // 
            this.mainTabControl.Controls.Add(this.tabPageIndicators);
            this.mainTabControl.Controls.Add(this.tabPageHeadquarters);
            this.mainTabControl.Controls.Add(this.tabPageGlossary);
            this.mainTabControl.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
            this.mainTabControl.ItemSize = new System.Drawing.Size(421, 40);
            this.mainTabControl.Location = new System.Drawing.Point(0, 0);
            this.mainTabControl.Name = "mainTabControl";
            this.mainTabControl.SelectedIndex = 0;
            this.mainTabControl.Size = new System.Drawing.Size(1267, 643);
            this.mainTabControl.SizeMode = System.Windows.Forms.TabSizeMode.Fixed;
            this.mainTabControl.TabIndex = 0;
            // 
            // tabPageIndicators
            // 
            this.tabPageIndicators.Controls.Add(this.chartNetExports);
            this.tabPageIndicators.Controls.Add(this.chartInvestment);
            this.tabPageIndicators.Controls.Add(this.chartConsumption);
            this.tabPageIndicators.Controls.Add(this.labelGDPFormula);
            this.tabPageIndicators.Controls.Add(this.labelNXFormula);
            this.tabPageIndicators.Controls.Add(this.labelIFormula);
            this.tabPageIndicators.Controls.Add(this.labelCFormula);
            this.tabPageIndicators.Location = new System.Drawing.Point(4, 44);
            this.tabPageIndicators.Name = "tabPageIndicators";
            this.tabPageIndicators.Padding = new System.Windows.Forms.Padding(3);
            this.tabPageIndicators.Size = new System.Drawing.Size(1259, 595);
            this.tabPageIndicators.TabIndex = 0;
            this.tabPageIndicators.Text = "Indicators";
            this.tabPageIndicators.UseVisualStyleBackColor = true;
            // 
            // chartNetExports
            // 
            this.chartNetExports.BorderlineColor = System.Drawing.Color.Black;
            this.chartNetExports.BorderlineDashStyle = System.Windows.Forms.DataVisualization.Charting.ChartDashStyle.Solid;
            chartArea16.AxisX.ArrowStyle = System.Windows.Forms.DataVisualization.Charting.AxisArrowStyle.Triangle;
            customLabel61.Text = "Q1";
            customLabel61.ToPosition = 2D;
            customLabel62.FromPosition = 2D;
            customLabel62.Text = "Q2";
            customLabel62.ToPosition = 4D;
            customLabel63.FromPosition = 4D;
            customLabel63.Text = "Q3";
            customLabel63.ToPosition = 6D;
            customLabel64.FromPosition = 6D;
            customLabel64.Text = "Q4";
            customLabel64.ToPosition = 8D;
            chartArea16.AxisX.CustomLabels.Add(customLabel61);
            chartArea16.AxisX.CustomLabels.Add(customLabel62);
            chartArea16.AxisX.CustomLabels.Add(customLabel63);
            chartArea16.AxisX.CustomLabels.Add(customLabel64);
            chartArea16.AxisX.Interval = 2D;
            chartArea16.AxisX.MajorGrid.Enabled = false;
            chartArea16.AxisX.Maximum = 8D;
            chartArea16.AxisX.Minimum = 0D;
            chartArea16.AxisY.ArrowStyle = System.Windows.Forms.DataVisualization.Charting.AxisArrowStyle.Triangle;
            chartArea16.AxisY.MajorGrid.Enabled = false;
            chartArea16.Name = "ChartArea1";
            this.chartNetExports.ChartAreas.Add(chartArea16);
            this.chartNetExports.Location = new System.Drawing.Point(844, 98);
            this.chartNetExports.Name = "chartNetExports";
            series19.BorderWidth = 3;
            series19.ChartArea = "ChartArea1";
            series19.ChartType = System.Windows.Forms.DataVisualization.Charting.SeriesChartType.Line;
            series19.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
            series19.IsValueShownAsLabel = true;
            series19.LabelFormat = "F1";
            series19.MarkerSize = 12;
            series19.MarkerStyle = System.Windows.Forms.DataVisualization.Charting.MarkerStyle.Circle;
            series19.Name = "Series1";
            series19.Points.Add(dataPoint91);
            series19.Points.Add(dataPoint92);
            series19.Points.Add(dataPoint93);
            series19.Points.Add(dataPoint94);
            series19.Points.Add(dataPoint95);
            this.chartNetExports.Series.Add(series19);
            this.chartNetExports.Size = new System.Drawing.Size(400, 400);
            this.chartNetExports.TabIndex = 8;
            this.chartNetExports.Text = "chart1";
            title16.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
            title16.Name = "Title1";
            title16.Text = "Net Exports ($, billions)";
            this.chartNetExports.Titles.Add(title16);
            // 
            // chartInvestment
            // 
            this.chartInvestment.BorderlineColor = System.Drawing.Color.Black;
            this.chartInvestment.BorderlineDashStyle = System.Windows.Forms.DataVisualization.Charting.ChartDashStyle.Solid;
            chartArea17.AxisX.ArrowStyle = System.Windows.Forms.DataVisualization.Charting.AxisArrowStyle.Triangle;
            customLabel65.Text = "Q1";
            customLabel65.ToPosition = 2D;
            customLabel66.FromPosition = 2D;
            customLabel66.Text = "Q2";
            customLabel66.ToPosition = 4D;
            customLabel67.FromPosition = 4D;
            customLabel67.Text = "Q3";
            customLabel67.ToPosition = 6D;
            customLabel68.FromPosition = 6D;
            customLabel68.Text = "Q4";
            customLabel68.ToPosition = 8D;
            chartArea17.AxisX.CustomLabels.Add(customLabel65);
            chartArea17.AxisX.CustomLabels.Add(customLabel66);
            chartArea17.AxisX.CustomLabels.Add(customLabel67);
            chartArea17.AxisX.CustomLabels.Add(customLabel68);
            chartArea17.AxisX.Interval = 2D;
            chartArea17.AxisX.MajorGrid.Enabled = false;
            chartArea17.AxisX.Maximum = 8D;
            chartArea17.AxisX.Minimum = 0D;
            chartArea17.AxisY.ArrowStyle = System.Windows.Forms.DataVisualization.Charting.AxisArrowStyle.Triangle;
            chartArea17.AxisY.MajorGrid.Enabled = false;
            chartArea17.Name = "ChartArea1";
            this.chartInvestment.ChartAreas.Add(chartArea17);
            this.chartInvestment.Location = new System.Drawing.Point(428, 98);
            this.chartInvestment.Name = "chartInvestment";
            series20.BorderWidth = 3;
            series20.ChartArea = "ChartArea1";
            series20.ChartType = System.Windows.Forms.DataVisualization.Charting.SeriesChartType.Line;
            series20.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
            series20.IsValueShownAsLabel = true;
            series20.LabelFormat = "F1";
            series20.MarkerSize = 12;
            series20.MarkerStyle = System.Windows.Forms.DataVisualization.Charting.MarkerStyle.Circle;
            series20.Name = "Series1";
            series20.Points.Add(dataPoint96);
            series20.Points.Add(dataPoint97);
            series20.Points.Add(dataPoint98);
            series20.Points.Add(dataPoint99);
            series20.Points.Add(dataPoint100);
            this.chartInvestment.Series.Add(series20);
            this.chartInvestment.Size = new System.Drawing.Size(400, 400);
            this.chartInvestment.TabIndex = 8;
            this.chartInvestment.Text = "chart1";
            title17.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
            title17.Name = "Title1";
            title17.Text = "Investment ($, billions)";
            this.chartInvestment.Titles.Add(title17);
            // 
            // chartConsumption
            // 
            this.chartConsumption.BorderlineColor = System.Drawing.Color.Black;
            this.chartConsumption.BorderlineDashStyle = System.Windows.Forms.DataVisualization.Charting.ChartDashStyle.Solid;
            chartArea18.AxisX.ArrowStyle = System.Windows.Forms.DataVisualization.Charting.AxisArrowStyle.Triangle;
            customLabel69.Text = "Q1";
            customLabel69.ToPosition = 2D;
            customLabel70.FromPosition = 2D;
            customLabel70.Text = "Q2";
            customLabel70.ToPosition = 4D;
            customLabel71.FromPosition = 4D;
            customLabel71.Text = "Q3";
            customLabel71.ToPosition = 6D;
            customLabel72.FromPosition = 6D;
            customLabel72.Text = "Q4";
            customLabel72.ToPosition = 8D;
            chartArea18.AxisX.CustomLabels.Add(customLabel69);
            chartArea18.AxisX.CustomLabels.Add(customLabel70);
            chartArea18.AxisX.CustomLabels.Add(customLabel71);
            chartArea18.AxisX.CustomLabels.Add(customLabel72);
            chartArea18.AxisX.Interval = 2D;
            chartArea18.AxisX.IsLabelAutoFit = false;
            chartArea18.AxisX.LabelStyle.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
            chartArea18.AxisX.MajorGrid.Enabled = false;
            chartArea18.AxisX.Maximum = 8D;
            chartArea18.AxisX.Minimum = 0D;
            chartArea18.AxisY.ArrowStyle = System.Windows.Forms.DataVisualization.Charting.AxisArrowStyle.Triangle;
            chartArea18.AxisY.MajorGrid.Enabled = false;
            chartArea18.AxisY.TitleFont = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
            chartArea18.Name = "ChartArea1";
            this.chartConsumption.ChartAreas.Add(chartArea18);
            this.chartConsumption.Location = new System.Drawing.Point(12, 98);
            this.chartConsumption.Name = "chartConsumption";
            series21.BorderWidth = 3;
            series21.ChartArea = "ChartArea1";
            series21.ChartType = System.Windows.Forms.DataVisualization.Charting.SeriesChartType.Line;
            series21.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
            series21.IsValueShownAsLabel = true;
            series21.LabelFormat = "F1";
            series21.MarkerSize = 12;
            series21.MarkerStyle = System.Windows.Forms.DataVisualization.Charting.MarkerStyle.Circle;
            series21.Name = "Series1";
            series21.Points.Add(dataPoint101);
            series21.Points.Add(dataPoint102);
            series21.Points.Add(dataPoint103);
            series21.Points.Add(dataPoint104);
            series21.Points.Add(dataPoint105);
            this.chartConsumption.Series.Add(series21);
            this.chartConsumption.Size = new System.Drawing.Size(400, 400);
            this.chartConsumption.TabIndex = 8;
            this.chartConsumption.Text = "chart1";
            title18.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
            title18.Name = "Title1";
            title18.Text = "Consumption ($, billions)";
            this.chartConsumption.Titles.Add(title18);
            // 
            // labelGDPFormula
            // 
            this.labelGDPFormula.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
            this.labelGDPFormula.Location = new System.Drawing.Point(12, 31);
            this.labelGDPFormula.Name = "labelGDPFormula";
            this.labelGDPFormula.Size = new System.Drawing.Size(1232, 30);
            this.labelGDPFormula.TabIndex = 2;
            this.labelGDPFormula.Text = "Gross Domestic Product (Y) = Consumption Expenditure (C) + Investment (I) + Gover" +
    "nment Spending (G) + Net Exports (NX)";
            this.labelGDPFormula.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
            // 
            // labelNXFormula
            // 
            this.labelNXFormula.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
            this.labelNXFormula.Location = new System.Drawing.Point(844, 530);
            this.labelNXFormula.Name = "labelNXFormula";
            this.labelNXFormula.Size = new System.Drawing.Size(400, 30);
            this.labelNXFormula.TabIndex = 1;
            this.labelNXFormula.Text = "NX - Exogenous";
            this.labelNXFormula.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
            // 
            // labelIFormula
            // 
            this.labelIFormula.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
            this.labelIFormula.Location = new System.Drawing.Point(428, 530);
            this.labelIFormula.Name = "labelIFormula";
            this.labelIFormula.Size = new System.Drawing.Size(400, 30);
            this.labelIFormula.TabIndex = 1;
            this.labelIFormula.Text = "I - Exogenous";
            this.labelIFormula.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
            // 
            // labelCFormula
            // 
            this.labelCFormula.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
            this.labelCFormula.Location = new System.Drawing.Point(12, 530);
            this.labelCFormula.Name = "labelCFormula";
            this.labelCFormula.Size = new System.Drawing.Size(400, 30);
            this.labelCFormula.TabIndex = 1;
            this.labelCFormula.Text = "C = c + (MPC)(Y - T)";
            this.labelCFormula.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
            // 
            // tabPageHeadquarters
            // 
            this.tabPageHeadquarters.Controls.Add(this.textBoxFiscalTimes);
            this.tabPageHeadquarters.Controls.Add(this.textBoxFreakonomist);
            this.tabPageHeadquarters.Controls.Add(this.labelFiscalTimes);
            this.tabPageHeadquarters.Controls.Add(this.labelFreakonomist);
            this.tabPageHeadquarters.Controls.Add(this.labelDeficit);
            this.tabPageHeadquarters.Controls.Add(this.labelGrowth);
            this.tabPageHeadquarters.Controls.Add(this.chartBudget);
            this.tabPageHeadquarters.Controls.Add(this.chartOutput);
            this.tabPageHeadquarters.Controls.Add(this.labelQuarters);
            this.tabPageHeadquarters.Controls.Add(this.buttonOK);
            this.tabPageHeadquarters.Controls.Add(this.labelSpending);
            this.tabPageHeadquarters.Controls.Add(this.labelTaxRate);
            this.tabPageHeadquarters.Controls.Add(this.hScrollBarSpending);
            this.tabPageHeadquarters.Controls.Add(this.hScrollBarTaxRate);
            this.tabPageHeadquarters.Controls.Add(this.trackBarTime);
            this.tabPageHeadquarters.Controls.Add(this.pictureBoxFiscalTimes);
            this.tabPageHeadquarters.Controls.Add(this.pictureBoxFreakonomist);
            this.tabPageHeadquarters.Location = new System.Drawing.Point(4, 44);
            this.tabPageHeadquarters.Name = "tabPageHeadquarters";
            this.tabPageHeadquarters.Padding = new System.Windows.Forms.Padding(3);
            this.tabPageHeadquarters.Size = new System.Drawing.Size(1259, 595);
            this.tabPageHeadquarters.TabIndex = 1;
            this.tabPageHeadquarters.Text = "Headquarters";
            this.tabPageHeadquarters.UseVisualStyleBackColor = true;
            // 
            // textBoxFiscalTimes
            // 
            this.textBoxFiscalTimes.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(237)))), ((int)(((byte)(207)))), ((int)(((byte)(180)))));
            this.textBoxFiscalTimes.BorderStyle = System.Windows.Forms.BorderStyle.None;
            this.textBoxFiscalTimes.Font = new System.Drawing.Font("Times New Roman", 18F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
            this.textBoxFiscalTimes.Location = new System.Drawing.Point(893, 442);
            this.textBoxFiscalTimes.Multiline = true;
            this.textBoxFiscalTimes.Name = "textBoxFiscalTimes";
            this.textBoxFiscalTimes.Size = new System.Drawing.Size(141, 108);
            this.textBoxFiscalTimes.TabIndex = 10;
            this.textBoxFiscalTimes.Text = "Government keeps running deficits.\r\n\r\n";
            // 
            // textBoxFreakonomist
            // 
            this.textBoxFreakonomist.BorderStyle = System.Windows.Forms.BorderStyle.None;
            this.textBoxFreakonomist.Font = new System.Drawing.Font("Arial", 18F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
            this.textBoxFreakonomist.Location = new System.Drawing.Point(897, 155);
            this.textBoxFreakonomist.Multiline = true;
            this.textBoxFreakonomist.Name = "textBoxFreakonomist";
            this.textBoxFreakonomist.Size = new System.Drawing.Size(141, 108);
            this.textBoxFreakonomist.TabIndex = 10;
            this.textBoxFreakonomist.Text = "Expansion of the economy continues.";
            // 
            // labelFiscalTimes
            // 
            this.labelFiscalTimes.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(237)))), ((int)(((byte)(207)))), ((int)(((byte)(180)))));
            this.labelFiscalTimes.Font = new System.Drawing.Font("Times New Roman", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
            this.labelFiscalTimes.Location = new System.Drawing.Point(893, 396);
            this.labelFiscalTimes.Name = "labelFiscalTimes";
            this.labelFiscalTimes.Size = new System.Drawing.Size(317, 25);
            this.labelFiscalTimes.TabIndex = 9;
            this.labelFiscalTimes.Text = "National debt accumulates";
            this.labelFiscalTimes.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
            // 
            // labelFreakonomist
            // 
            this.labelFreakonomist.Font = new System.Drawing.Font("Arial", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
            this.labelFreakonomist.Location = new System.Drawing.Point(897, 111);
            this.labelFreakonomist.Name = "labelFreakonomist";
            this.labelFreakonomist.Size = new System.Drawing.Size(312, 25);
            this.labelFreakonomist.TabIndex = 9;
            this.labelFreakonomist.Text = "GDP growth stays positive";
            this.labelFreakonomist.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
            // 
            // labelDeficit
            // 
            this.labelDeficit.AutoSize = true;
            this.labelDeficit.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
            this.labelDeficit.ForeColor = System.Drawing.Color.Red;
            this.labelDeficit.Location = new System.Drawing.Point(678, 544);
            this.labelDeficit.Name = "labelDeficit";
            this.labelDeficit.Size = new System.Drawing.Size(132, 24);
            this.labelDeficit.TabIndex = 8;
            this.labelDeficit.Text = "Deficit: +$2,1 b";
            // 
            // labelGrowth
            // 
            this.labelGrowth.AutoSize = true;
            this.labelGrowth.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
            this.labelGrowth.ForeColor = System.Drawing.Color.Green;
            this.labelGrowth.Location = new System.Drawing.Point(29, 544);
            this.labelGrowth.Name = "labelGrowth";
            this.labelGrowth.Size = new System.Drawing.Size(131, 24);
            this.labelGrowth.TabIndex = 8;
            this.labelGrowth.Text = "Growth: +2,4%";
            // 
            // chartBudget
            // 
            this.chartBudget.BorderlineColor = System.Drawing.Color.Black;
            this.chartBudget.BorderlineDashStyle = System.Windows.Forms.DataVisualization.Charting.ChartDashStyle.Solid;
            chartArea19.AxisX.ArrowStyle = System.Windows.Forms.DataVisualization.Charting.AxisArrowStyle.Triangle;
            customLabel73.Text = "Q2";
            customLabel73.ToPosition = 2D;
            customLabel74.FromPosition = 2D;
            customLabel74.Text = "Q3";
            customLabel74.ToPosition = 4D;
            customLabel75.FromPosition = 4D;
            customLabel75.Text = "Q4";
            customLabel75.ToPosition = 6D;
            customLabel76.FromPosition = 6D;
            customLabel76.Text = "Future";
            customLabel76.ToPosition = 8D;
            chartArea19.AxisX.CustomLabels.Add(customLabel73);
            chartArea19.AxisX.CustomLabels.Add(customLabel74);
            chartArea19.AxisX.CustomLabels.Add(customLabel75);
            chartArea19.AxisX.CustomLabels.Add(customLabel76);
            chartArea19.AxisX.Interval = 2D;
            chartArea19.AxisX.MajorGrid.Enabled = false;
            chartArea19.AxisX.Maximum = 8D;
            chartArea19.AxisX.Minimum = 0D;
            chartArea19.AxisX.TitleFont = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
            chartArea19.AxisY.ArrowStyle = System.Windows.Forms.DataVisualization.Charting.AxisArrowStyle.Triangle;
            chartArea19.AxisY.MajorGrid.Enabled = false;
            chartArea19.AxisY.TitleFont = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
            chartArea19.Name = "ChartArea1";
            this.chartBudget.ChartAreas.Add(chartArea19);
            legend4.BackColor = System.Drawing.Color.Transparent;
            legend4.DockedToChartArea = "ChartArea1";
            legend4.Name = "Legend1";
            legend4.Position.Auto = false;
            legend4.Position.Height = 6.685237F;
            legend4.Position.Width = 61.83844F;
            legend4.Position.X = 32.90003F;
            legend4.Position.Y = 10F;
            this.chartBudget.Legends.Add(legend4);
            this.chartBudget.Location = new System.Drawing.Point(450, 80);
            this.chartBudget.Name = "chartBudget";
            series22.BorderWidth = 3;
            series22.ChartArea = "ChartArea1";
            series22.ChartType = System.Windows.Forms.DataVisualization.Charting.SeriesChartType.Line;
            series22.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
            series22.IsValueShownAsLabel = true;
            series22.LabelFormat = "F1";
            series22.Legend = "Legend1";
            series22.MarkerSize = 12;
            series22.MarkerStyle = System.Windows.Forms.DataVisualization.Charting.MarkerStyle.Circle;
            series22.Name = "Tax Revenue";
            dataPoint110.BorderDashStyle = System.Windows.Forms.DataVisualization.Charting.ChartDashStyle.Dot;
            series22.Points.Add(dataPoint106);
            series22.Points.Add(dataPoint107);
            series22.Points.Add(dataPoint108);
            series22.Points.Add(dataPoint109);
            series22.Points.Add(dataPoint110);
            series23.BorderWidth = 3;
            series23.ChartArea = "ChartArea1";
            series23.ChartType = System.Windows.Forms.DataVisualization.Charting.SeriesChartType.Line;
            series23.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
            series23.IsValueShownAsLabel = true;
            series23.Legend = "Legend1";
            series23.MarkerSize = 12;
            series23.MarkerStyle = System.Windows.Forms.DataVisualization.Charting.MarkerStyle.Circle;
            series23.Name = "Spending (G)";
            dataPoint115.BorderDashStyle = System.Windows.Forms.DataVisualization.Charting.ChartDashStyle.Dot;
            series23.Points.Add(dataPoint111);
            series23.Points.Add(dataPoint112);
            series23.Points.Add(dataPoint113);
            series23.Points.Add(dataPoint114);
            series23.Points.Add(dataPoint115);
            this.chartBudget.Series.Add(series22);
            this.chartBudget.Series.Add(series23);
            this.chartBudget.Size = new System.Drawing.Size(360, 360);
            this.chartBudget.TabIndex = 7;
            this.chartBudget.Text = "chart4";
            title19.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
            title19.Name = "Title1";
            title19.Text = "Gov\'t Budget ($, billions)";
            this.chartBudget.Titles.Add(title19);
            // 
            // chartOutput
            // 
            this.chartOutput.BorderlineColor = System.Drawing.Color.Black;
            this.chartOutput.BorderlineDashStyle = System.Windows.Forms.DataVisualization.Charting.ChartDashStyle.Solid;
            chartArea20.AxisX.ArrowStyle = System.Windows.Forms.DataVisualization.Charting.AxisArrowStyle.Triangle;
            customLabel77.Text = "Q1";
            customLabel77.ToPosition = 2D;
            customLabel78.FromPosition = 2D;
            customLabel78.Text = "Q2";
            customLabel78.ToPosition = 4D;
            customLabel79.FromPosition = 4D;
            customLabel79.Text = "Q3";
            customLabel79.ToPosition = 6D;
            customLabel80.FromPosition = 6D;
            customLabel80.Text = "Q4";
            customLabel80.ToPosition = 8D;
            chartArea20.AxisX.CustomLabels.Add(customLabel77);
            chartArea20.AxisX.CustomLabels.Add(customLabel78);
            chartArea20.AxisX.CustomLabels.Add(customLabel79);
            chartArea20.AxisX.CustomLabels.Add(customLabel80);
            chartArea20.AxisX.Interval = 2D;
            chartArea20.AxisX.MajorGrid.Enabled = false;
            chartArea20.AxisX.Maximum = 8D;
            chartArea20.AxisX.Minimum = 0D;
            chartArea20.AxisY.ArrowStyle = System.Windows.Forms.DataVisualization.Charting.AxisArrowStyle.Triangle;
            chartArea20.AxisY.MajorGrid.Enabled = false;
            chartArea20.Name = "ChartArea1";
            this.chartOutput.ChartAreas.Add(chartArea20);
            this.chartOutput.Location = new System.Drawing.Point(30, 80);
            this.chartOutput.Name = "chartOutput";
            series24.BorderWidth = 3;
            series24.ChartArea = "ChartArea1";
            series24.ChartType = System.Windows.Forms.DataVisualization.Charting.SeriesChartType.Line;
            series24.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
            series24.IsValueShownAsLabel = true;
            series24.LabelFormat = "F1";
            series24.MarkerSize = 12;
            series24.MarkerStyle = System.Windows.Forms.DataVisualization.Charting.MarkerStyle.Circle;
            series24.Name = "Series1";
            dataPoint120.BorderDashStyle = System.Windows.Forms.DataVisualization.Charting.ChartDashStyle.Solid;
            series24.Points.Add(dataPoint116);
            series24.Points.Add(dataPoint117);
            series24.Points.Add(dataPoint118);
            series24.Points.Add(dataPoint119);
            series24.Points.Add(dataPoint120);
            this.chartOutput.Series.Add(series24);
            this.chartOutput.Size = new System.Drawing.Size(360, 360);
            this.chartOutput.TabIndex = 7;
            this.chartOutput.Text = "chart4";
            title20.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
            title20.Name = "Title1";
            title20.Text = "Output / GDP ($, billions)";
            this.chartOutput.Titles.Add(title20);
            // 
            // labelQuarters
            // 
            this.labelQuarters.Location = new System.Drawing.Point(30, 46);
            this.labelQuarters.Name = "labelQuarters";
            this.labelQuarters.Size = new System.Drawing.Size(780, 20);
            this.labelQuarters.TabIndex = 6;
            this.labelQuarters.Text = resources.GetString("labelQuarters.Text");
            this.labelQuarters.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
            // 
            // buttonOK
            // 
            this.buttonOK.Location = new System.Drawing.Point(289, 538);
            this.buttonOK.Name = "buttonOK";
            this.buttonOK.Size = new System.Drawing.Size(262, 40);
            this.buttonOK.TabIndex = 5;
            this.buttonOK.Text = "OK";
            this.buttonOK.UseVisualStyleBackColor = true;
            this.buttonOK.Click += new System.EventHandler(this.buttonOK_Click);
            // 
            // labelSpending
            // 
            this.labelSpending.Location = new System.Drawing.Point(568, 489);
            this.labelSpending.Name = "labelSpending";
            this.labelSpending.Size = new System.Drawing.Size(125, 40);
            this.labelSpending.TabIndex = 4;
            this.labelSpending.Text = "Gov\'t Spending (G)\r\n$20,4 billion";
            this.labelSpending.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
            // 
            // labelTaxRate
            // 
            this.labelTaxRate.Location = new System.Drawing.Point(142, 489);
            this.labelTaxRate.Name = "labelTaxRate";
            this.labelTaxRate.Size = new System.Drawing.Size(138, 40);
            this.labelTaxRate.TabIndex = 4;
            this.labelTaxRate.Text = "Effective Tax Rate (T)\r\n22,8% of GDP";
            this.labelTaxRate.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
            // 
            // hScrollBarSpending
            // 
            this.hScrollBarSpending.LargeChange = 5;
            this.hScrollBarSpending.Location = new System.Drawing.Point(450, 459);
            this.hScrollBarSpending.Maximum = 154;
            this.hScrollBarSpending.Minimum = 50;
            this.hScrollBarSpending.Name = "hScrollBarSpending";
            this.hScrollBarSpending.Size = new System.Drawing.Size(360, 20);
            this.hScrollBarSpending.TabIndex = 3;
            this.hScrollBarSpending.Value = 102;
            this.hScrollBarSpending.Scroll += new System.Windows.Forms.ScrollEventHandler(this.hScrollBarSpending_Scroll);
            // 
            // hScrollBarTaxRate
            // 
            this.hScrollBarTaxRate.LargeChange = 5;
            this.hScrollBarTaxRate.Location = new System.Drawing.Point(30, 459);
            this.hScrollBarTaxRate.Maximum = 204;
            this.hScrollBarTaxRate.Minimum = 50;
            this.hScrollBarTaxRate.Name = "hScrollBarTaxRate";
            this.hScrollBarTaxRate.Size = new System.Drawing.Size(360, 20);
            this.hScrollBarTaxRate.TabIndex = 3;
            this.hScrollBarTaxRate.Value = 114;
            this.hScrollBarTaxRate.Scroll += new System.Windows.Forms.ScrollEventHandler(this.hScrollBarTaxRate_Scroll);
            // 
            // trackBarTime
            // 
            this.trackBarTime.AutoSize = false;
            this.trackBarTime.BackColor = System.Drawing.Color.White;
            this.trackBarTime.Enabled = false;
            this.trackBarTime.Location = new System.Drawing.Point(30, 17);
            this.trackBarTime.Maximum = 15;
            this.trackBarTime.Name = "trackBarTime";
            this.trackBarTime.Size = new System.Drawing.Size(780, 30);
            this.trackBarTime.TabIndex = 2;
            // 
            // pictureBoxFiscalTimes
            // 
            this.pictureBoxFiscalTimes.Image = global::Simulator.Properties.Resources.FiscalTimes;
            this.pictureBoxFiscalTimes.Location = new System.Drawing.Point(870, 309);
            this.pictureBoxFiscalTimes.Name = "pictureBoxFiscalTimes";
            this.pictureBoxFiscalTimes.Size = new System.Drawing.Size(360, 270);
            this.pictureBoxFiscalTimes.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
            this.pictureBoxFiscalTimes.TabIndex = 1;
            this.pictureBoxFiscalTimes.TabStop = false;
            // 
            // pictureBoxFreakonomist
            // 
            this.pictureBoxFreakonomist.Image = global::Simulator.Properties.Resources.Freakonomist;
            this.pictureBoxFreakonomist.Location = new System.Drawing.Point(870, 20);
            this.pictureBoxFreakonomist.Name = "pictureBoxFreakonomist";
            this.pictureBoxFreakonomist.Size = new System.Drawing.Size(360, 270);
            this.pictureBoxFreakonomist.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
            this.pictureBoxFreakonomist.TabIndex = 1;
            this.pictureBoxFreakonomist.TabStop = false;
            // 
            // tabPageGlossary
            // 
            this.tabPageGlossary.Controls.Add(this.labelGEffects);
            this.tabPageGlossary.Controls.Add(this.labelTEffects);
            this.tabPageGlossary.Controls.Add(this.textBoxCredits);
            this.tabPageGlossary.Controls.Add(this.textBoxDefinitions);
            this.tabPageGlossary.Controls.Add(this.pictureBoxLogo);
            this.tabPageGlossary.Controls.Add(this.listBoxTerms);
            this.tabPageGlossary.Location = new System.Drawing.Point(4, 44);
            this.tabPageGlossary.Name = "tabPageGlossary";
            this.tabPageGlossary.Padding = new System.Windows.Forms.Padding(3);
            this.tabPageGlossary.Size = new System.Drawing.Size(1259, 595);
            this.tabPageGlossary.TabIndex = 2;
            this.tabPageGlossary.Text = "Glossary";
            this.tabPageGlossary.UseVisualStyleBackColor = true;
            // 
            // labelGEffects
            // 
            this.labelGEffects.AutoSize = true;
            this.labelGEffects.Font = new System.Drawing.Font("Microsoft Sans Serif", 18F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
            this.labelGEffects.Location = new System.Drawing.Point(122, 494);
            this.labelGEffects.Name = "labelGEffects";
            this.labelGEffects.Size = new System.Drawing.Size(1015, 29);
            this.labelGEffects.TabIndex = 4;
            this.labelGEffects.Text = "Raising Gov\'t Spending (G) should increase output, but it could also accumulate b" +
    "udget deficit.";
            this.labelGEffects.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
            // 
            // labelTEffects
            // 
            this.labelTEffects.AutoSize = true;
            this.labelTEffects.Font = new System.Drawing.Font("Microsoft Sans Serif", 18F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
            this.labelTEffects.Location = new System.Drawing.Point(127, 65);
            this.labelTEffects.Name = "labelTEffects";
            this.labelTEffects.Size = new System.Drawing.Size(1004, 29);
            this.labelTEffects.TabIndex = 4;
            this.labelTEffects.Text = "Lowering the Tax Rate (T) should increase output, but it could also accumulate bu" +
    "dget deficit.";
            this.labelTEffects.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
            // 
            // textBoxCredits
            // 
            this.textBoxCredits.BackColor = System.Drawing.SystemColors.Window;
            this.textBoxCredits.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
            this.textBoxCredits.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
            this.textBoxCredits.Location = new System.Drawing.Point(644, 166);
            this.textBoxCredits.Multiline = true;
            this.textBoxCredits.Name = "textBoxCredits";
            this.textBoxCredits.ReadOnly = true;
            this.textBoxCredits.Size = new System.Drawing.Size(379, 264);
            this.textBoxCredits.TabIndex = 1;
            this.textBoxCredits.Text = "\r\n\r\nPrincipal Investigator:\r\n\r\nAsst. Prof. Aleksandar Vasilev\r\n\r\n\r\nSimulator Deve" +
    "loper:\r\n\r\nAleks Angelov";
            this.textBoxCredits.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
            // 
            // textBoxDefinitions
            // 
            this.textBoxDefinitions.BackColor = System.Drawing.SystemColors.Window;
            this.textBoxDefinitions.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
            this.textBoxDefinitions.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
            this.textBoxDefinitions.Location = new System.Drawing.Point(235, 166);
            this.textBoxDefinitions.Multiline = true;
            this.textBoxDefinitions.Name = "textBoxDefinitions";
            this.textBoxDefinitions.ReadOnly = true;
            this.textBoxDefinitions.Size = new System.Drawing.Size(379, 264);
            this.textBoxDefinitions.TabIndex = 1;
            this.textBoxDefinitions.Text = "\r\n\r\n\r\n\r\n\r\n\r\n       Choose a term on the left to see its definition.";
            // 
            // pictureBoxLogo
            // 
            this.pictureBoxLogo.Image = global::Simulator.Properties.Resources.AUBG_Logo;
            this.pictureBoxLogo.Location = new System.Drawing.Point(1038, 166);
            this.pictureBoxLogo.Name = "pictureBoxLogo";
            this.pictureBoxLogo.Size = new System.Drawing.Size(190, 264);
            this.pictureBoxLogo.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
            this.pictureBoxLogo.TabIndex = 3;
            this.pictureBoxLogo.TabStop = false;
            // 
            // listBoxTerms
            // 
            this.listBoxTerms.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
            this.listBoxTerms.ItemHeight = 20;
            this.listBoxTerms.Items.AddRange(new object[] {
            "Budget Deficit",
            "c (autonomous)",
            "Consumption",
            "Effective Tax Rate",
            "GDP Growth",
            "Government Budget",
            "Government Spending",
            "Gross Domestic Product",
            "Investment",
            "Keynesian Economics",
            "MPC",
            "Net Exports",
            "Tax Revenue"});
            this.listBoxTerms.Location = new System.Drawing.Point(30, 166);
            this.listBoxTerms.Name = "listBoxTerms";
            this.listBoxTerms.Size = new System.Drawing.Size(190, 264);
            this.listBoxTerms.Sorted = true;
            this.listBoxTerms.TabIndex = 0;
            this.listBoxTerms.SelectedIndexChanged += new System.EventHandler(this.listBoxTerms_SelectedIndexChanged);
            // 
            // MainWindow
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.ClientSize = new System.Drawing.Size(1264, 641);
            this.Controls.Add(this.mainTabControl);
            this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
            this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
            this.MaximizeBox = false;
            this.Name = "MainWindow";
            this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
            this.Text = "Keynesian Macroeconomic Simulator of Fiscal Policy";
            this.Load += new System.EventHandler(this.MainWindow_Load);
            this.mainTabControl.ResumeLayout(false);
            this.tabPageIndicators.ResumeLayout(false);
            ((System.ComponentModel.ISupportInitialize)(this.chartNetExports)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.chartInvestment)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.chartConsumption)).EndInit();
            this.tabPageHeadquarters.ResumeLayout(false);
            this.tabPageHeadquarters.PerformLayout();
            ((System.ComponentModel.ISupportInitialize)(this.chartBudget)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.chartOutput)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.trackBarTime)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.pictureBoxFiscalTimes)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.pictureBoxFreakonomist)).EndInit();
            this.tabPageGlossary.ResumeLayout(false);
            this.tabPageGlossary.PerformLayout();
            ((System.ComponentModel.ISupportInitialize)(this.pictureBoxLogo)).EndInit();
            this.ResumeLayout(false);

        }
Exemple #25
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.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.TheFont        = new System.Windows.Forms.ComboBox();
     this.FontColorCombo = new System.Windows.Forms.ComboBox();
     this.AxisPosition   = new System.Windows.Forms.ComboBox();
     this.FontSize       = new System.Windows.Forms.ComboBox();
     this.label5         = new System.Windows.Forms.Label();
     this.label6         = new System.Windows.Forms.Label();
     this.label7         = new System.Windows.Forms.Label();
     this.label8         = new System.Windows.Forms.Label();
     this.label9         = new System.Windows.Forms.Label();
     this.panel1         = new System.Windows.Forms.Panel();
     this.label1         = new System.Windows.Forms.Label();
     this.StrikeoutCheck = new System.Windows.Forms.CheckBox();
     this.UnderlineCheck = new System.Windows.Forms.CheckBox();
     this.BoldCheck      = new System.Windows.Forms.CheckBox();
     this.Title          = new System.Windows.Forms.TextBox();
     this.ItalicCheck    = 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();
     //
     // TheFont
     //
     this.TheFont.DropDownStyle         = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.TheFont.Location              = new System.Drawing.Point(167, 72);
     this.TheFont.Name                  = "TheFont";
     this.TheFont.Size                  = new System.Drawing.Size(121, 22);
     this.TheFont.TabIndex              = 5;
     this.TheFont.SelectedIndexChanged += new System.EventHandler(this.ControlChange);
     //
     // FontColorCombo
     //
     this.FontColorCombo.DropDownStyle         = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.FontColorCombo.Location              = new System.Drawing.Point(167, 136);
     this.FontColorCombo.Name                  = "FontColorCombo";
     this.FontColorCombo.Size                  = new System.Drawing.Size(121, 22);
     this.FontColorCombo.TabIndex              = 9;
     this.FontColorCombo.SelectedIndexChanged += new System.EventHandler(this.ControlChange);
     //
     // AxisPosition
     //
     this.AxisPosition.DropDownStyle         = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.AxisPosition.Location              = new System.Drawing.Point(167, 40);
     this.AxisPosition.Name                  = "AxisPosition";
     this.AxisPosition.Size                  = new System.Drawing.Size(121, 22);
     this.AxisPosition.TabIndex              = 3;
     this.AxisPosition.SelectedIndexChanged += new System.EventHandler(this.ControlChange);
     //
     // FontSize
     //
     this.FontSize.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.FontSize.Items.AddRange(new object[] {
         "8",
         "10",
         "12",
         "14",
         "16"
     });
     this.FontSize.Location              = new System.Drawing.Point(167, 104);
     this.FontSize.Name                  = "FontSize";
     this.FontSize.Size                  = new System.Drawing.Size(121, 22);
     this.FontSize.TabIndex              = 7;
     this.FontSize.SelectedIndexChanged += new System.EventHandler(this.ControlChange);
     //
     // label5
     //
     this.label5.Location  = new System.Drawing.Point(8, 80);
     this.label5.Name      = "label5";
     this.label5.Size      = new System.Drawing.Size(156, 16);
     this.label5.TabIndex  = 4;
     this.label5.Text      = "&Font:";
     this.label5.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // label6
     //
     this.label6.Location  = new System.Drawing.Point(8, 40);
     this.label6.Name      = "label6";
     this.label6.Size      = new System.Drawing.Size(156, 16);
     this.label6.TabIndex  = 2;
     this.label6.Text      = "&Axis:";
     this.label6.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // label7
     //
     this.label7.Location  = new System.Drawing.Point(8, 144);
     this.label7.Name      = "label7";
     this.label7.Size      = new System.Drawing.Size(156, 16);
     this.label7.TabIndex  = 8;
     this.label7.Text      = "Font &Color:";
     this.label7.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // label8
     //
     this.label8.Location  = new System.Drawing.Point(8, 104);
     this.label8.Name      = "label8";
     this.label8.Size      = new System.Drawing.Size(156, 16);
     this.label8.TabIndex  = 6;
     this.label8.Text      = "&Font Size:";
     this.label8.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // 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, 8);
     this.label9.Name      = "label9";
     this.label9.Size      = new System.Drawing.Size(702, 34);
     this.label9.TabIndex  = 0;
     this.label9.Text      = "This sample demonstrates how to set the appearance of the axis title.";
     this.label9.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // panel1
     //
     this.panel1.Controls.Add(this.label1);
     this.panel1.Controls.Add(this.StrikeoutCheck);
     this.panel1.Controls.Add(this.UnderlineCheck);
     this.panel1.Controls.Add(this.BoldCheck);
     this.panel1.Controls.Add(this.Title);
     this.panel1.Controls.Add(this.ItalicCheck);
     this.panel1.Controls.Add(this.AxisPosition);
     this.panel1.Controls.Add(this.label5);
     this.panel1.Controls.Add(this.label6);
     this.panel1.Controls.Add(this.TheFont);
     this.panel1.Controls.Add(this.label7);
     this.panel1.Controls.Add(this.label8);
     this.panel1.Controls.Add(this.FontSize);
     this.panel1.Controls.Add(this.FontColorCombo);
     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;
     //
     // label1
     //
     this.label1.Location  = new System.Drawing.Point(8, 8);
     this.label1.Name      = "label1";
     this.label1.Size      = new System.Drawing.Size(156, 16);
     this.label1.TabIndex  = 0;
     this.label1.Text      = "Title &Text:";
     this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // StrikeoutCheck
     //
     this.StrikeoutCheck.CheckAlign      = System.Drawing.ContentAlignment.MiddleRight;
     this.StrikeoutCheck.Location        = new System.Drawing.Point(11, 264);
     this.StrikeoutCheck.Name            = "StrikeoutCheck";
     this.StrikeoutCheck.Size            = new System.Drawing.Size(169, 24);
     this.StrikeoutCheck.TabIndex        = 13;
     this.StrikeoutCheck.Text            = "&Strikeout:";
     this.StrikeoutCheck.TextAlign       = System.Drawing.ContentAlignment.MiddleRight;
     this.StrikeoutCheck.CheckedChanged += new System.EventHandler(this.ControlChange);
     //
     // UnderlineCheck
     //
     this.UnderlineCheck.CheckAlign      = System.Drawing.ContentAlignment.MiddleRight;
     this.UnderlineCheck.Location        = new System.Drawing.Point(11, 232);
     this.UnderlineCheck.Name            = "UnderlineCheck";
     this.UnderlineCheck.Size            = new System.Drawing.Size(169, 24);
     this.UnderlineCheck.TabIndex        = 12;
     this.UnderlineCheck.Text            = "&Underline:";
     this.UnderlineCheck.TextAlign       = System.Drawing.ContentAlignment.MiddleRight;
     this.UnderlineCheck.CheckedChanged += new System.EventHandler(this.ControlChange);
     //
     // BoldCheck
     //
     this.BoldCheck.CheckAlign      = System.Drawing.ContentAlignment.MiddleRight;
     this.BoldCheck.Location        = new System.Drawing.Point(11, 200);
     this.BoldCheck.Name            = "BoldCheck";
     this.BoldCheck.Size            = new System.Drawing.Size(169, 24);
     this.BoldCheck.TabIndex        = 11;
     this.BoldCheck.Text            = "&Bold:";
     this.BoldCheck.TextAlign       = System.Drawing.ContentAlignment.MiddleRight;
     this.BoldCheck.CheckedChanged += new System.EventHandler(this.ControlChange);
     //
     // Title
     //
     this.Title.Location     = new System.Drawing.Point(168, 4);
     this.Title.Name         = "Title";
     this.Title.Size         = new System.Drawing.Size(120, 22);
     this.Title.TabIndex     = 1;
     this.Title.Text         = "Axis Title";
     this.Title.TextChanged += new System.EventHandler(this.ControlChange);
     //
     // ItalicCheck
     //
     this.ItalicCheck.CheckAlign      = System.Drawing.ContentAlignment.MiddleRight;
     this.ItalicCheck.Location        = new System.Drawing.Point(11, 168);
     this.ItalicCheck.Name            = "ItalicCheck";
     this.ItalicCheck.Size            = new System.Drawing.Size(169, 24);
     this.ItalicCheck.TabIndex        = 10;
     this.ItalicCheck.Text            = "&Italic:";
     this.ItalicCheck.TextAlign       = System.Drawing.ContentAlignment.MiddleRight;
     this.ItalicCheck.CheckedChanged += new System.EventHandler(this.ControlChange);
     //
     // 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.AxisX.TitleFont           = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     chartArea1.AxisX2.Enabled            = System.Windows.Forms.DataVisualization.Charting.AxisEnabled.True;
     chartArea1.AxisX2.IsLabelAutoFit     = false;
     chartArea1.AxisX2.LabelStyle.Font    = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold);
     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.AxisY.TitleFont           = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     chartArea1.AxisY2.Enabled            = System.Windows.Forms.DataVisualization.Charting.AxisEnabled.True;
     chartArea1.AxisY2.IsLabelAutoFit     = false;
     chartArea1.AxisY2.LabelStyle.Font    = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold);
     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;
     this.Chart1.Legends.Add(legend1);
     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.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  = 55F;
     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";
     title1.Visible         = false;
     this.Chart1.Titles.Add(title1);
     //
     // AxisTitle
     //
     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 = "AxisTitle";
     this.Size = new System.Drawing.Size(728, 480);
     this.panel1.ResumeLayout(false);
     this.panel1.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.Chart1)).EndInit();
     this.ResumeLayout(false);
 }
Exemple #26
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.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.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);
 }
        private void DisplayMatrix(double[,] Matrix, List<string> ListLabelX, List<string> ListLabelY, bool IsDisplayValues, string TitleForGraph, int SquareSize, bool IsToBeDisplayed, string PathName)
        {
            int IdxValue = 0;

            Series CurrentSeries = new Series("Matrix");
            CurrentSeries.ChartType = SeriesChartType.Point;
            // loop on all the desciptors
            for (int iDesc = 0; iDesc < ListLabelX.Count; iDesc++)
            {
                for (int jDesc = 0; jDesc < ListLabelY.Count; jDesc++)
                {
                    CurrentSeries.Points.AddXY(iDesc + 1, jDesc + 1);
                    CurrentSeries.Points[IdxValue].MarkerStyle = MarkerStyle.Square;
                    CurrentSeries.Points[IdxValue].MarkerSize = SquareSize;
                    CurrentSeries.Points[IdxValue].BorderColor = Color.Black;
                    CurrentSeries.Points[IdxValue].BorderWidth = 1;
                    double Value = Matrix[iDesc, jDesc];

                    if (IsDisplayValues) CurrentSeries.Points[IdxValue].Label = string.Format("{0:0.###}", Math.Abs(Value));

                    CurrentSeries.Points[IdxValue].ToolTip = Math.Abs(Value) + " <=> | " + Matrix[iDesc, jDesc].ToString() + " |";

                    int ConvertedValue = (int)(Math.Abs(Value) * (CompleteScreening.GlobalInfo.LUT[0].Length - 1));

                    CurrentSeries.Points[IdxValue++].Color = Color.FromArgb(CompleteScreening.GlobalInfo.LUT[0][ConvertedValue], CompleteScreening.GlobalInfo.LUT[1][ConvertedValue], CompleteScreening.GlobalInfo.LUT[2][ConvertedValue]);
                }
            }

            for (int iDesc = 0; iDesc < ListLabelX.Count * ListLabelX.Count; iDesc++)
                CurrentSeries.Points[iDesc].AxisLabel = CompleteScreening.ListDescriptors.GetListNameActives()[iDesc / ListLabelX.Count];

            SmartLabelStyle SStyle = new SmartLabelStyle();

            SimpleForm NewWindow = new SimpleForm();
            NewWindow.Height = SquareSize * ListLabelY.Count + 220;
            NewWindow.Width = SquareSize * ListLabelX.Count + 245;

            ChartArea CurrentChartArea = new ChartArea("Default");
            for (int i = 0; i < CompleteScreening.ListDescriptors.GetListNameActives().Count; i++)
            {
                CustomLabel lblY = new CustomLabel();
                lblY.ToPosition = i * 2 + 2;
                lblY.Text = ListLabelY[i];
                CurrentChartArea.AxisY.CustomLabels.Add(lblY);
            }

            CurrentChartArea.AxisY.LabelAutoFitStyle = LabelAutoFitStyles.LabelsAngleStep30;
            CurrentChartArea.BorderColor = Color.Black;
            NewWindow.chartForSimpleForm.ChartAreas.Add(CurrentChartArea);
            CurrentSeries.SmartLabelStyle.Enabled = true;

            NewWindow.chartForSimpleForm.TextAntiAliasingQuality = TextAntiAliasingQuality.High;
            NewWindow.chartForSimpleForm.Series.Add(CurrentSeries);

            CurrentChartArea.Axes[0].MajorGrid.Enabled = false;
            CurrentChartArea.Axes[0].Minimum = 0;
            CurrentChartArea.Axes[0].Maximum = ListLabelX.Count + 1;
            CurrentChartArea.Axes[1].MajorGrid.Enabled = false;
            CurrentChartArea.Axes[1].Minimum = 0;
            CurrentChartArea.Axes[1].Maximum = ListLabelY.Count + 1;
            CurrentChartArea.AxisX.Interval = 1;
            CurrentChartArea.AxisY.Interval = 1;

            Title CurrentTitle = new Title(TitleForGraph);
            NewWindow.chartForSimpleForm.Titles.Add(CurrentTitle);
            NewWindow.chartForSimpleForm.Titles[0].Font = new Font("Arial", 9);

            if (IsToBeDisplayed) NewWindow.Show();
            else
                NewWindow.chartForSimpleForm.SaveImage(PathName + "_Matrix.emf", ChartImageFormat.Emf);
            NewWindow.Text = TitleForGraph;
            NewWindow.chartForSimpleForm.Update();
            NewWindow.chartForSimpleForm.Show();
            NewWindow.Controls.AddRange(new System.Windows.Forms.Control[] { NewWindow.chartForSimpleForm });
        }
Exemple #29
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.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);
 }
Exemple #30
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     System.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.CustomLabel customLabel5 = new System.Windows.Forms.DataVisualization.Charting.CustomLabel();
     System.Windows.Forms.DataVisualization.Charting.CustomLabel customLabel6 = new System.Windows.Forms.DataVisualization.Charting.CustomLabel();
     System.Windows.Forms.DataVisualization.Charting.CustomLabel customLabel7 = new System.Windows.Forms.DataVisualization.Charting.CustomLabel();
     this.chart       = new System.Windows.Forms.DataVisualization.Charting.Chart();
     this.sNUSDataSet = new Trending.SNUSDataSet();
     this.measurementBindingSource   = new System.Windows.Forms.BindingSource(this.components);
     this.measurementBindingSource1  = new System.Windows.Forms.BindingSource(this.components);
     this.dataGridView2              = new System.Windows.Forms.DataGridView();
     this.measurementBindingSource3  = new System.Windows.Forms.BindingSource(this.components);
     this.snus_shemaDataSet          = new Trending.snus_shemaDataSet();
     this.measurementBindingSource2  = new System.Windows.Forms.BindingSource(this.components);
     this.mySqlGeometryBindingSource = new System.Windows.Forms.BindingSource(this.components);
     this.resourcesXBindingSource    = new System.Windows.Forms.BindingSource(this.components);
     this.resourcesBindingSource     = new System.Windows.Forms.BindingSource(this.components);
     this.resourcesBindingSource1    = new System.Windows.Forms.BindingSource(this.components);
     this.Column1  = new System.Windows.Forms.DataGridViewTextBoxColumn();
     this.Column2  = new System.Windows.Forms.DataGridViewTextBoxColumn();
     this.Column3  = new System.Windows.Forms.DataGridViewTextBoxColumn();
     this.Column4  = new System.Windows.Forms.DataGridViewTextBoxColumn();
     this.Column5  = new System.Windows.Forms.DataGridViewTextBoxColumn();
     this.Column6  = new System.Windows.Forms.DataGridViewTextBoxColumn();
     this.Column7  = new System.Windows.Forms.DataGridViewTextBoxColumn();
     this.Column8  = new System.Windows.Forms.DataGridViewTextBoxColumn();
     this.Column9  = new System.Windows.Forms.DataGridViewTextBoxColumn();
     this.Column10 = new System.Windows.Forms.DataGridViewTextBoxColumn();
     ((System.ComponentModel.ISupportInitialize)(this.chart)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.sNUSDataSet)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.measurementBindingSource)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.measurementBindingSource1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.dataGridView2)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.measurementBindingSource3)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.snus_shemaDataSet)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.measurementBindingSource2)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.mySqlGeometryBindingSource)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.resourcesXBindingSource)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.resourcesBindingSource)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.resourcesBindingSource1)).BeginInit();
     this.SuspendLayout();
     //
     // chart
     //
     customLabel1.FromPosition = -2D;
     customLabel1.Text         = "60";
     customLabel1.ToPosition   = 2D;
     customLabel2.FromPosition = 8D;
     customLabel2.Text         = "50";
     customLabel2.ToPosition   = 12D;
     customLabel3.FromPosition = 18D;
     customLabel3.Text         = "40";
     customLabel3.ToPosition   = 22D;
     customLabel4.FromPosition = 28D;
     customLabel4.Text         = "30";
     customLabel4.ToPosition   = 32D;
     customLabel5.FromPosition = 38D;
     customLabel5.Text         = "20";
     customLabel5.ToPosition   = 42D;
     customLabel6.FromPosition = 48D;
     customLabel6.Text         = "10";
     customLabel6.ToPosition   = 52D;
     customLabel7.FromPosition = 58D;
     customLabel7.Text         = "0";
     customLabel7.ToPosition   = 62D;
     chartArea1.AxisX.CustomLabels.Add(customLabel1);
     chartArea1.AxisX.CustomLabels.Add(customLabel2);
     chartArea1.AxisX.CustomLabels.Add(customLabel3);
     chartArea1.AxisX.CustomLabels.Add(customLabel4);
     chartArea1.AxisX.CustomLabels.Add(customLabel5);
     chartArea1.AxisX.CustomLabels.Add(customLabel6);
     chartArea1.AxisX.CustomLabels.Add(customLabel7);
     chartArea1.AxisX.Interval            = 10D;
     chartArea1.AxisX.MajorGrid.LineColor = System.Drawing.Color.LightGray;
     chartArea1.AxisX.Title = "Last minute of scanning, shown in seconds (from old to new)";
     chartArea1.AxisY.MajorGrid.LineColor = System.Drawing.Color.LightGray;
     chartArea1.Name = "ChartArea1";
     this.chart.ChartAreas.Add(chartArea1);
     this.chart.Dock     = System.Windows.Forms.DockStyle.Top;
     this.chart.Location = new System.Drawing.Point(0, 0);
     this.chart.Margin   = new System.Windows.Forms.Padding(4);
     this.chart.Name     = "chart";
     this.chart.Size     = new System.Drawing.Size(1205, 620);
     this.chart.TabIndex = 0;
     this.chart.Text     = "Tags and values";
     //
     // sNUSDataSet
     //
     this.sNUSDataSet.DataSetName             = "SNUSDataSet";
     this.sNUSDataSet.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema;
     //
     // measurementBindingSource
     //
     this.measurementBindingSource.DataMember = "measurement";
     this.measurementBindingSource.DataSource = this.sNUSDataSet;
     //
     // measurementBindingSource1
     //
     this.measurementBindingSource1.DataMember = "measurement";
     this.measurementBindingSource1.DataSource = this.sNUSDataSet;
     //
     // dataGridView2
     //
     this.dataGridView2.AutoGenerateColumns         = false;
     this.dataGridView2.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
     this.dataGridView2.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
         this.Column1,
         this.Column2,
         this.Column3,
         this.Column4,
         this.Column5,
         this.Column6,
         this.Column7,
         this.Column8,
         this.Column9,
         this.Column10
     });
     this.dataGridView2.DataSource         = this.measurementBindingSource3;
     this.dataGridView2.Dock               = System.Windows.Forms.DockStyle.Fill;
     this.dataGridView2.Location           = new System.Drawing.Point(0, 620);
     this.dataGridView2.Name               = "dataGridView2";
     this.dataGridView2.RowTemplate.Height = 24;
     this.dataGridView2.Size               = new System.Drawing.Size(1205, 159);
     this.dataGridView2.TabIndex           = 2;
     //
     // measurementBindingSource3
     //
     this.measurementBindingSource3.DataMember = "measurement";
     this.measurementBindingSource3.DataSource = this.snus_shemaDataSet;
     //
     // snus_shemaDataSet
     //
     this.snus_shemaDataSet.DataSetName             = "snus_shemaDataSet";
     this.snus_shemaDataSet.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema;
     //
     // measurementBindingSource2
     //
     this.measurementBindingSource2.DataMember = "measurement";
     this.measurementBindingSource2.DataSource = this.sNUSDataSet;
     //
     // mySqlGeometryBindingSource
     //
     this.mySqlGeometryBindingSource.DataSource = typeof(MySql.Data.Types.MySqlGeometry);
     //
     // resourcesXBindingSource
     //
     this.resourcesXBindingSource.DataSource = typeof(MySql.Data.ResourcesX);
     //
     // resourcesBindingSource
     //
     this.resourcesBindingSource.DataSource = typeof(MySql.Data.Resources);
     //
     // resourcesBindingSource1
     //
     this.resourcesBindingSource1.DataSource = typeof(MySql.Data.Resources);
     //
     // Column1
     //
     this.Column1.HeaderText = "1";
     this.Column1.Name       = "Column1";
     //
     // Column2
     //
     this.Column2.HeaderText = "2";
     this.Column2.Name       = "Column2";
     //
     // Column3
     //
     this.Column3.HeaderText = "3";
     this.Column3.Name       = "Column3";
     //
     // Column4
     //
     this.Column4.HeaderText = "4";
     this.Column4.Name       = "Column4";
     //
     // Column5
     //
     this.Column5.HeaderText = "5";
     this.Column5.Name       = "Column5";
     //
     // Column6
     //
     this.Column6.HeaderText = "6";
     this.Column6.Name       = "Column6";
     //
     // Column7
     //
     this.Column7.HeaderText = "7";
     this.Column7.Name       = "Column7";
     //
     // Column8
     //
     this.Column8.HeaderText = "8";
     this.Column8.Name       = "Column8";
     //
     // Column9
     //
     this.Column9.HeaderText = "9";
     this.Column9.Name       = "Column9";
     //
     // Column10
     //
     this.Column10.HeaderText = "10";
     this.Column10.Name       = "Column10";
     //
     // Form1
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
     this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize          = new System.Drawing.Size(1205, 779);
     this.Controls.Add(this.dataGridView2);
     this.Controls.Add(this.chart);
     this.Margin = new System.Windows.Forms.Padding(4);
     this.Name   = "Form1";
     this.Text   = "Trending";
     ((System.ComponentModel.ISupportInitialize)(this.chart)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.sNUSDataSet)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.measurementBindingSource)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.measurementBindingSource1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.dataGridView2)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.measurementBindingSource3)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.snus_shemaDataSet)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.measurementBindingSource2)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.mySqlGeometryBindingSource)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.resourcesXBindingSource)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.resourcesBindingSource)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.resourcesBindingSource1)).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);
 }
 /// <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.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.ShadowOffset    = new System.Windows.Forms.ComboBox();
     this.BorderDashStyle = new System.Windows.Forms.ComboBox();
     this.BorderSizeCom   = new System.Windows.Forms.ComboBox();
     this.BorderColor     = new System.Windows.Forms.ComboBox();
     this.HatchStyle      = new System.Windows.Forms.ComboBox();
     this.Gradient        = new System.Windows.Forms.ComboBox();
     this.ForeColorCom    = new System.Windows.Forms.ComboBox();
     this.BackColorCom    = new System.Windows.Forms.ComboBox();
     this.label11         = 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.label2          = new System.Windows.Forms.Label();
     this.label10         = new System.Windows.Forms.Label();
     this.label12         = new System.Windows.Forms.Label();
     this.label13         = new System.Windows.Forms.Label();
     this.label14         = new System.Windows.Forms.Label();
     this.label15         = new System.Windows.Forms.Label();
     this.label16         = 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, 8);
     this.label9.Name      = "label9";
     this.label9.Size      = new System.Drawing.Size(702, 34);
     this.label9.TabIndex  = 0;
     this.label9.Text      = "This sample demonstrates how to set the appearance of chart\'s plot area.";
     this.label9.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // panel1
     //
     this.panel1.Controls.Add(this.ShadowOffset);
     this.panel1.Controls.Add(this.BorderDashStyle);
     this.panel1.Controls.Add(this.BorderSizeCom);
     this.panel1.Controls.Add(this.BorderColor);
     this.panel1.Controls.Add(this.HatchStyle);
     this.panel1.Controls.Add(this.Gradient);
     this.panel1.Controls.Add(this.ForeColorCom);
     this.panel1.Controls.Add(this.BackColorCom);
     this.panel1.Controls.Add(this.label11);
     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.label2);
     this.panel1.Controls.Add(this.label10);
     this.panel1.Controls.Add(this.label12);
     this.panel1.Controls.Add(this.label13);
     this.panel1.Controls.Add(this.label14);
     this.panel1.Controls.Add(this.label15);
     this.panel1.Controls.Add(this.label16);
     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;
     //
     // ShadowOffset
     //
     this.ShadowOffset.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.ShadowOffset.Items.AddRange(new object[] {
         "0",
         "1",
         "2",
         "3",
         "4",
         "5"
     });
     this.ShadowOffset.Location              = new System.Drawing.Point(168, 248);
     this.ShadowOffset.Name                  = "ShadowOffset";
     this.ShadowOffset.Size                  = new System.Drawing.Size(120, 22);
     this.ShadowOffset.TabIndex              = 15;
     this.ShadowOffset.SelectedIndexChanged += new System.EventHandler(this.Combo_SelectedIndexChanged);
     //
     // BorderDashStyle
     //
     this.BorderDashStyle.DropDownStyle         = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.BorderDashStyle.Location              = new System.Drawing.Point(168, 208);
     this.BorderDashStyle.Name                  = "BorderDashStyle";
     this.BorderDashStyle.Size                  = new System.Drawing.Size(120, 22);
     this.BorderDashStyle.TabIndex              = 13;
     this.BorderDashStyle.SelectedIndexChanged += new System.EventHandler(this.Combo_SelectedIndexChanged);
     //
     // BorderSizeCom
     //
     this.BorderSizeCom.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.BorderSizeCom.Items.AddRange(new object[] {
         "1",
         "2",
         "3",
         "4",
         "5"
     });
     this.BorderSizeCom.Location              = new System.Drawing.Point(168, 176);
     this.BorderSizeCom.Name                  = "BorderSizeCom";
     this.BorderSizeCom.Size                  = new System.Drawing.Size(120, 22);
     this.BorderSizeCom.TabIndex              = 11;
     this.BorderSizeCom.SelectedIndexChanged += new System.EventHandler(this.Combo_SelectedIndexChanged);
     //
     // BorderColor
     //
     this.BorderColor.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.BorderColor.Items.AddRange(new object[] {
         "Black",
         "DarkGray",
         "White",
         "Blue",
         "Yellow",
         "Red",
         "Green"
     });
     this.BorderColor.Location              = new System.Drawing.Point(168, 144);
     this.BorderColor.Name                  = "BorderColor";
     this.BorderColor.Size                  = new System.Drawing.Size(120, 22);
     this.BorderColor.TabIndex              = 9;
     this.BorderColor.SelectedIndexChanged += new System.EventHandler(this.Combo_SelectedIndexChanged);
     //
     // HatchStyle
     //
     this.HatchStyle.DropDownStyle         = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.HatchStyle.Location              = new System.Drawing.Point(168, 72);
     this.HatchStyle.Name                  = "HatchStyle";
     this.HatchStyle.Size                  = new System.Drawing.Size(120, 22);
     this.HatchStyle.TabIndex              = 7;
     this.HatchStyle.SelectedIndexChanged += new System.EventHandler(this.Combo_SelectedIndexChanged);
     //
     // Gradient
     //
     this.Gradient.DropDownStyle         = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.Gradient.Location              = new System.Drawing.Point(168, 40);
     this.Gradient.Name                  = "Gradient";
     this.Gradient.Size                  = new System.Drawing.Size(120, 22);
     this.Gradient.TabIndex              = 5;
     this.Gradient.SelectedIndexChanged += new System.EventHandler(this.Combo_SelectedIndexChanged);
     //
     // ForeColorCom
     //
     this.ForeColorCom.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.ForeColorCom.Items.AddRange(new object[] {
         "White",
         "Blue",
         "Yellow",
         "Red",
         "Green",
         "Gray"
     });
     this.ForeColorCom.Location              = new System.Drawing.Point(168, 104);
     this.ForeColorCom.Name                  = "ForeColorCom";
     this.ForeColorCom.Size                  = new System.Drawing.Size(120, 22);
     this.ForeColorCom.TabIndex              = 3;
     this.ForeColorCom.SelectedIndexChanged += new System.EventHandler(this.Combo_SelectedIndexChanged);
     //
     // BackColorCom
     //
     this.BackColorCom.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.BackColorCom.Items.AddRange(new object[] {
         "White",
         "Blue",
         "Yellow",
         "Red",
         "Green",
         "Gray",
         "Transparent"
     });
     this.BackColorCom.Location              = new System.Drawing.Point(168, 8);
     this.BackColorCom.Name                  = "BackColorCom";
     this.BackColorCom.Size                  = new System.Drawing.Size(120, 22);
     this.BackColorCom.TabIndex              = 1;
     this.BackColorCom.SelectedIndexChanged += new System.EventHandler(this.Combo_SelectedIndexChanged);
     //
     // label11
     //
     this.label11.Location  = new System.Drawing.Point(24, 248);
     this.label11.Name      = "label11";
     this.label11.Size      = new System.Drawing.Size(142, 23);
     this.label11.TabIndex  = 14;
     this.label11.Text      = "Shadow &Offset:";
     this.label11.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // label1
     //
     this.label1.Location  = new System.Drawing.Point(24, 208);
     this.label1.Name      = "label1";
     this.label1.Size      = new System.Drawing.Size(142, 23);
     this.label1.TabIndex  = 12;
     this.label1.Text      = "Border St&yle:";
     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 = 5;
     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 = 4;
     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 = 3;
     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 = 2;
     this.label3.Text     = "Gradient:";
     //
     // label2
     //
     this.label2.Location  = new System.Drawing.Point(8, 104);
     this.label2.Name      = "label2";
     this.label2.Size      = new System.Drawing.Size(152, 23);
     this.label2.TabIndex  = 2;
     this.label2.Text      = "&Secondary Back Color:";
     this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // label10
     //
     this.label10.Location  = new System.Drawing.Point(24, 176);
     this.label10.Name      = "label10";
     this.label10.Size      = new System.Drawing.Size(142, 23);
     this.label10.TabIndex  = 10;
     this.label10.Text      = "Border &Size:";
     this.label10.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // label12
     //
     this.label12.Location  = new System.Drawing.Point(24, 8);
     this.label12.Name      = "label12";
     this.label12.Size      = new System.Drawing.Size(142, 23);
     this.label12.TabIndex  = 0;
     this.label12.Text      = "&Back Color:";
     this.label12.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // label13
     //
     this.label13.Location  = new System.Drawing.Point(24, 40);
     this.label13.Name      = "label13";
     this.label13.Size      = new System.Drawing.Size(142, 23);
     this.label13.TabIndex  = 4;
     this.label13.Text      = "&Gradient:";
     this.label13.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // label14
     //
     this.label14.Location  = new System.Drawing.Point(24, 144);
     this.label14.Name      = "label14";
     this.label14.Size      = new System.Drawing.Size(142, 23);
     this.label14.TabIndex  = 8;
     this.label14.Text      = "B&order Color:";
     this.label14.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // 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:";
     //
     // label16
     //
     this.label16.Location  = new System.Drawing.Point(24, 72);
     this.label16.Name      = "label16";
     this.label16.Size      = new System.Drawing.Size(142, 23);
     this.label16.TabIndex  = 6;
     this.label16.Text      = "&Hatch Style:";
     this.label16.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;
     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.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.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))));
     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;
     this.Chart1.Legends.Add(legend1);
     this.Chart1.Location     = new System.Drawing.Point(16, 48);
     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.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);
     //
     // Appearance
     //
     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  = "Appearance";
     this.Size  = new System.Drawing.Size(728, 480);
     this.Load += new System.EventHandler(this.Appearance_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.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.TheFont = new System.Windows.Forms.ComboBox();
     this.FontColorCombo = new System.Windows.Forms.ComboBox();
     this.AxisPosition = new System.Windows.Forms.ComboBox();
     this.FontSize = new System.Windows.Forms.ComboBox();
     this.label5 = new System.Windows.Forms.Label();
     this.label6 = new System.Windows.Forms.Label();
     this.label7 = new System.Windows.Forms.Label();
     this.label8 = new System.Windows.Forms.Label();
     this.label9 = new System.Windows.Forms.Label();
     this.panel1 = new System.Windows.Forms.Panel();
     this.label1 = new System.Windows.Forms.Label();
     this.StrikeoutCheck = new System.Windows.Forms.CheckBox();
     this.UnderlineCheck = new System.Windows.Forms.CheckBox();
     this.BoldCheck = new System.Windows.Forms.CheckBox();
     this.Title = new System.Windows.Forms.TextBox();
     this.ItalicCheck = 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();
     //
     // TheFont
     //
     this.TheFont.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.TheFont.Location = new System.Drawing.Point(167, 72);
     this.TheFont.Name = "TheFont";
     this.TheFont.Size = new System.Drawing.Size(121, 22);
     this.TheFont.TabIndex = 5;
     this.TheFont.SelectedIndexChanged += new System.EventHandler(this.ControlChange);
     //
     // FontColorCombo
     //
     this.FontColorCombo.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.FontColorCombo.Location = new System.Drawing.Point(167, 136);
     this.FontColorCombo.Name = "FontColorCombo";
     this.FontColorCombo.Size = new System.Drawing.Size(121, 22);
     this.FontColorCombo.TabIndex = 9;
     this.FontColorCombo.SelectedIndexChanged += new System.EventHandler(this.ControlChange);
     //
     // AxisPosition
     //
     this.AxisPosition.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.AxisPosition.Location = new System.Drawing.Point(167, 40);
     this.AxisPosition.Name = "AxisPosition";
     this.AxisPosition.Size = new System.Drawing.Size(121, 22);
     this.AxisPosition.TabIndex = 3;
     this.AxisPosition.SelectedIndexChanged += new System.EventHandler(this.ControlChange);
     //
     // FontSize
     //
     this.FontSize.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.FontSize.Items.AddRange(new object[] {
     "8",
     "10",
     "12",
     "14",
     "16"});
     this.FontSize.Location = new System.Drawing.Point(167, 104);
     this.FontSize.Name = "FontSize";
     this.FontSize.Size = new System.Drawing.Size(121, 22);
     this.FontSize.TabIndex = 7;
     this.FontSize.SelectedIndexChanged += new System.EventHandler(this.ControlChange);
     //
     // label5
     //
     this.label5.Location = new System.Drawing.Point(8, 80);
     this.label5.Name = "label5";
     this.label5.Size = new System.Drawing.Size(156, 16);
     this.label5.TabIndex = 4;
     this.label5.Text = "&Font:";
     this.label5.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // label6
     //
     this.label6.Location = new System.Drawing.Point(8, 40);
     this.label6.Name = "label6";
     this.label6.Size = new System.Drawing.Size(156, 16);
     this.label6.TabIndex = 2;
     this.label6.Text = "&Axis:";
     this.label6.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // label7
     //
     this.label7.Location = new System.Drawing.Point(8, 144);
     this.label7.Name = "label7";
     this.label7.Size = new System.Drawing.Size(156, 16);
     this.label7.TabIndex = 8;
     this.label7.Text = "Font &Color:";
     this.label7.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // label8
     //
     this.label8.Location = new System.Drawing.Point(8, 104);
     this.label8.Name = "label8";
     this.label8.Size = new System.Drawing.Size(156, 16);
     this.label8.TabIndex = 6;
     this.label8.Text = "&Font Size:";
     this.label8.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // 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, 8);
     this.label9.Name = "label9";
     this.label9.Size = new System.Drawing.Size(702, 34);
     this.label9.TabIndex = 0;
     this.label9.Text = "This sample demonstrates how to set the appearance of the axis title.";
     this.label9.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // panel1
     //
     this.panel1.Controls.Add(this.label1);
     this.panel1.Controls.Add(this.StrikeoutCheck);
     this.panel1.Controls.Add(this.UnderlineCheck);
     this.panel1.Controls.Add(this.BoldCheck);
     this.panel1.Controls.Add(this.Title);
     this.panel1.Controls.Add(this.ItalicCheck);
     this.panel1.Controls.Add(this.AxisPosition);
     this.panel1.Controls.Add(this.label5);
     this.panel1.Controls.Add(this.label6);
     this.panel1.Controls.Add(this.TheFont);
     this.panel1.Controls.Add(this.label7);
     this.panel1.Controls.Add(this.label8);
     this.panel1.Controls.Add(this.FontSize);
     this.panel1.Controls.Add(this.FontColorCombo);
     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;
     //
     // label1
     //
     this.label1.Location = new System.Drawing.Point(8, 8);
     this.label1.Name = "label1";
     this.label1.Size = new System.Drawing.Size(156, 16);
     this.label1.TabIndex = 0;
     this.label1.Text = "Title &Text:";
     this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // StrikeoutCheck
     //
     this.StrikeoutCheck.CheckAlign = System.Drawing.ContentAlignment.MiddleRight;
     this.StrikeoutCheck.Location = new System.Drawing.Point(11, 264);
     this.StrikeoutCheck.Name = "StrikeoutCheck";
     this.StrikeoutCheck.Size = new System.Drawing.Size(169, 24);
     this.StrikeoutCheck.TabIndex = 13;
     this.StrikeoutCheck.Text = "&Strikeout:";
     this.StrikeoutCheck.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     this.StrikeoutCheck.CheckedChanged += new System.EventHandler(this.ControlChange);
     //
     // UnderlineCheck
     //
     this.UnderlineCheck.CheckAlign = System.Drawing.ContentAlignment.MiddleRight;
     this.UnderlineCheck.Location = new System.Drawing.Point(11, 232);
     this.UnderlineCheck.Name = "UnderlineCheck";
     this.UnderlineCheck.Size = new System.Drawing.Size(169, 24);
     this.UnderlineCheck.TabIndex = 12;
     this.UnderlineCheck.Text = "&Underline:";
     this.UnderlineCheck.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     this.UnderlineCheck.CheckedChanged += new System.EventHandler(this.ControlChange);
     //
     // BoldCheck
     //
     this.BoldCheck.CheckAlign = System.Drawing.ContentAlignment.MiddleRight;
     this.BoldCheck.Location = new System.Drawing.Point(11, 200);
     this.BoldCheck.Name = "BoldCheck";
     this.BoldCheck.Size = new System.Drawing.Size(169, 24);
     this.BoldCheck.TabIndex = 11;
     this.BoldCheck.Text = "&Bold:";
     this.BoldCheck.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     this.BoldCheck.CheckedChanged += new System.EventHandler(this.ControlChange);
     //
     // Title
     //
     this.Title.Location = new System.Drawing.Point(168, 4);
     this.Title.Name = "Title";
     this.Title.Size = new System.Drawing.Size(120, 22);
     this.Title.TabIndex = 1;
     this.Title.Text = "Axis Title";
     this.Title.TextChanged += new System.EventHandler(this.ControlChange);
     //
     // ItalicCheck
     //
     this.ItalicCheck.CheckAlign = System.Drawing.ContentAlignment.MiddleRight;
     this.ItalicCheck.Location = new System.Drawing.Point(11, 168);
     this.ItalicCheck.Name = "ItalicCheck";
     this.ItalicCheck.Size = new System.Drawing.Size(169, 24);
     this.ItalicCheck.TabIndex = 10;
     this.ItalicCheck.Text = "&Italic:";
     this.ItalicCheck.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     this.ItalicCheck.CheckedChanged += new System.EventHandler(this.ControlChange);
     //
     // 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.AxisX.TitleFont = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     chartArea1.AxisX2.Enabled = System.Windows.Forms.DataVisualization.Charting.AxisEnabled.True;
     chartArea1.AxisX2.IsLabelAutoFit = false;
     chartArea1.AxisX2.LabelStyle.Font = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold);
     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.AxisY.TitleFont = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     chartArea1.AxisY2.Enabled = System.Windows.Forms.DataVisualization.Charting.AxisEnabled.True;
     chartArea1.AxisY2.IsLabelAutoFit = false;
     chartArea1.AxisY2.LabelStyle.Font = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold);
     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;
     this.Chart1.Legends.Add(legend1);
     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.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 = 55F;
     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";
     title1.Visible = false;
     this.Chart1.Titles.Add(title1);
     //
     // AxisTitle
     //
     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 = "AxisTitle";
     this.Size = new System.Drawing.Size(728, 480);
     this.panel1.ResumeLayout(false);
     this.panel1.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.Chart1)).EndInit();
     this.ResumeLayout(false);
 }
Exemple #34
0
        private void plot(List<double[]> Data)
        {
            ChartWindow form = CreateChartWindow();
            Chart chart1 = new Chart();
            chart1.Titles.Add("Wykres pudełkowy");
            chart1.Titles[0].Font = new Font("Trebuchet MS", 12, FontStyle.Bold);
            string names = "series0";

            //Budowa wykresu
            Series BoxPlotSeries = new Series();
            BoxPlotSeries.Name = "BoxPlotSeries";
            BoxPlotSeries.ChartType = SeriesChartType.BoxPlot;
            BoxPlotSeries.ChartArea = "Box Plot Area";
            ChartArea plotArea = new ChartArea();
            ChartArea boxArea = new ChartArea();
            chart1.ChartAreas.Add(plotArea);
            chart1.ChartAreas.Add(boxArea);
            plotArea.Name = "Data Chart Area";
            boxArea.Name = "Box Plot Area";
            boxArea.AxisY.Title = "Wartość funkcji";
            boxArea.AxisY.TitleFont = new Font("Trebuchet MS", 9, FontStyle.Bold);

            //Wygląd wykresu
            boxArea.AxisY.MajorGrid.LineDashStyle = ChartDashStyle.Dash;
            boxArea.AxisY.MajorGrid.LineColor = Color.Black;
            boxArea.AxisX.MajorGrid.Enabled = false;
            boxArea.BackColor = Color.WhiteSmoke;
            chart1.BackColor = Color.WhiteSmoke;
            BoxPlotSeries.Color = Color.OrangeRed;
            BoxPlotSeries.BackSecondaryColor = Color.Silver;
            BoxPlotSeries.BackGradientStyle = GradientStyle.DiagonalLeft;

            //zoom
            boxArea.CursorX.IsUserEnabled = true;
            boxArea.CursorX.IsUserSelectionEnabled = true;
            boxArea.AxisX.ScaleView.Zoomable = true;
            boxArea.AxisX.ScrollBar.IsPositionedInside = true;
            boxArea.CursorY.IsUserEnabled = true;
            boxArea.CursorY.IsUserSelectionEnabled = true;
            boxArea.AxisY.ScaleView.Zoomable = true;
            boxArea.AxisY.ScrollBar.IsPositionedInside = true;

            //Dodawanie dnaych
            for (int i = 0; i < Data.Count; i++)
            {
                Series newSeries = new Series();
                newSeries.Points.DataBindY(Data[i]);
                newSeries.Name = "series" + i.ToString();
                newSeries.Color = Color.Silver;
                if (i != 0)
                {
                    names = names + ";" + newSeries.Name;
                }
                chart1.Series.Add(newSeries);

                //Etykiety dla pudełek
                CustomLabel myLabel = new CustomLabel();
                myLabel.FromPosition = i + 0.5;
                myLabel.ToPosition = i + 1.5;
                myLabel.Text = "iteracja " + (i + 1);
                boxArea.AxisX.CustomLabels.Add(myLabel);
            }
            chart1.Series.Add(BoxPlotSeries);

            // Ustawienia pudełek
            chart1.Series["BoxPlotSeries"]["BoxPlotSeries"] = names;
            chart1.Series["BoxPlotSeries"]["BoxPlotWhiskerPercentile"] = "5";
            chart1.Series["BoxPlotSeries"]["BoxPlotShowAverage"] = "true";
            chart1.Series["BoxPlotSeries"]["BoxPlotShowMedian"] = "true";
            chart1.Series["BoxPlotSeries"]["BoxPlotShowUnusualValues"] = "false";

            plotArea.Visible = false;

            //Legenda
            //chart1.Series["BoxPlotSeries"].IsVisibleInLegend = false;

            //chart1.Legends.Add(new Legend("Legenda") { Docking = Docking.Bottom });
            //LegendItem legendItem = new LegendItem();

            //legendItem.Name = "Line Style Item";
            //legendItem.ShadowOffset = 1;
            //legendItem.Color = Color.LightBlue;
            //legendItem.MarkerStyle = MarkerStyle.Circle;
            //chart1.Legends["Legenda"].CustomItems.Add(legendItem);

            chart1.Location = new System.Drawing.Point(0, 0);
            chart1.Size = new System.Drawing.Size(form.ClientSize.Width, form.ClientSize.Height);
            form.Controls.AddRange(new System.Windows.Forms.Control[] { chart1 });
        }