Example #1
0
        public static void changeChartType(this Chart chart,SeriesChartType ChartType)
        {
            DataPoint[] points = new DataPoint[chart.Series.Count];
            if (ChartType == SeriesChartType.Pie)
            {
                int i = 0;
                foreach (var serie in chart.Series)
                {
                    points[i] = serie.Points.FirstOrDefault();
                    i++;
                }

                chart.Series.Clear();
                var newSerie = chart.Series.Add("Total");

                newSerie.ChartType = ChartType;

                foreach (var point in points)
                {
                    newSerie.Points.Add(point);
                }
                return;
            }

            foreach (var serie in chart.Series)
            {
                serie.ChartType = ChartType;

            }
        }
 /// <summary>
 ///     Handles the display
 /// </summary>
 /// <param name="maxDistance"></param>
 /// <param name="minDistance"></param>
 /// <param name="height"></param>
 protected override void HandleDisplay(double maxDistance, double minDistance, double height)
 {
     PointFunction pointFunction = Function as PointFunction;
     if (pointFunction != null)
     {
         Data.ChartType = SeriesChartType.Point;
         if (GraphVisualizer.RecordPreviousValuesInTsm)
         {
             DisplayPreviousData(maxDistance);
         }
         if (pointFunction.Point != null && !double.IsNaN(pointFunction.Point.Distance))
         {
             AddPoint(new DataPoint(pointFunction.Point.Distance, pointFunction.Point.Speed));
         }
         else if (pointFunction.SimulatedValues.Count != 0)
         {
             Data.ChartType = SeriesChartType.Line;
             DataPoint dataPoint;
             foreach (SpeedDistanceProfile profile in pointFunction.SimulatedValues)
             {
                 dataPoint = new DataPoint(0, 0);
                 dataPoint.IsEmpty = true;
                 AddPoint(dataPoint);
                 foreach (SpeedDistancePoint point in profile.Points)
                 {
                     dataPoint = new DataPoint(point.Distance, point.Speed);
                     AddPoint(dataPoint);
                 }
             }
         }
     }
 }
    private void getData_Click(object sender, EventArgs ea)
    {
      gradesChart.Series.Clear();
      output.Write(1);
      var grades = new System.Windows.Forms.DataVisualization.Charting.Series
      {
        Name = "Grade",
        Color = System.Drawing.Color.CornflowerBlue,
        IsVisibleInLegend = true,
        IsXValueIndexed = true,
        ChartType = SeriesChartType.Bar,
        XValueType = ChartValueType.String,
        YValueType = ChartValueType.Double
      };

      gradesChart.Series.Add(grades);
      var numEntries = input.ReadInt32();
      for (int i = 0; i < numEntries; i++)
      {
        var name = input.ReadString();
        var grade = input.ReadDouble();
        var point = new DataPoint();
        point.SetValueXY(name, new object[] { grade + 1.0 });
        grades.Points.Add(point);
      }

    }
Example #4
0
 public DataPoint[] InterpolateAll(DataPoint[] points, double start, double end)
 {
     DataPoint[] interpolatedPoints = new DataPoint[Data.ScreenViewSteps];
     for(var n = 0; n < Data.ScreenViewSteps; n++) {
         var x = start + n*(end - start)/Data.ScreenViewSteps;
         var res = points[0].YValues[0];
         for(var i = 1; i < points.Length; i++) {
             double f = 0;
             for(var j = 0; j <= i; j++) {
                 double den = 1;
                 for(var k = 0; k <= i; k++) {
                     if(k != j) {
                         den *= (points[j].XValue - points[k].XValue);
                     }
                 }
                 f += points[j].YValues[0]/den;
             }
             for(var k = 0; k < i; k++) {
                 f *= (x - points[k].XValue);
             }
             res += f;
         }
         interpolatedPoints[n] = new DataPoint(x, res);
     }
     return interpolatedPoints;
 }
Example #5
0
 private static DataPoint CreateDataPoint(double x, string axisLabel, DateTime start, DateTime end, string text, Color color) {
   var point = new DataPoint(x, new double[] { start.ToOADate(), end.ToOADate() });
   point.Color = color;
   point.Label = text;
   point.AxisLabel = axisLabel;
   return point;
 }
Example #6
0
        public GraphWindow(IDictionary<string, decimal> incomes, IDictionary<string, decimal> expenses)
        {
            InitializeComponent();
            labMonth.Visible = false;
            btnNext.Visible = false;
            btnPrev.Visible = false;

            chart.Series.Clear();
            Series s = new Series("Money");
            chart.Legends.Clear();
            s.Color = Color.Green;
            foreach (var i in incomes)
            {
                var dp = new DataPoint(0, (double)i.Value);
                dp.Name = i.Key;
                dp.AxisLabel = i.Key;
                dp.Color = Color.Green;
                s.Points.Add(dp);
            }

            foreach (var i in expenses)
            {
                var dp = new DataPoint(0, (double)i.Value);
                dp.Name = i.Key;
                dp.AxisLabel = i.Key;
                dp.Color = Color.DarkRed;
                s.Points.Add(dp);
            }
            chart.Series.Add(s);
            SetupChartArea();
            chart.DataBind();
        }
Example #7
0
        public MarkUtils()
        {
            InitializeComponent();

            foreach (string s in Data.classes)
            {
                comboBox_classes.Items.Add(s);
                Series series = new Series();
                series.LegendText = s;
                series.ChartType = SeriesChartType.Line;
                series.YValueType = ChartValueType.String;
                int i = 0;
                foreach (Mark m in Data.marks)
                {
                    if (m._class == s)
                    {
                        DataPoint dp = new DataPoint();
                        dp.XValue = i;
                        dp.YValues = new double[] { m.mark };
                        dp.Label = m.name;
                        series.Points.Add(dp);
                    }
                }
                chart_marks.Series.Add(series);
            }
            comboBox_classes.SelectedIndex = 0;
        }
        public MitPie(int miID, int akPro)
        {
            InitializeComponent();
            this.MinimumSize = new Size(300, 300);
            this.MaximumSize = new Size(800, 500);
            chart1.Size = new Size(this.Width - 10, this.Height - 10);
            DataTable arbeiter = SqlConnection.SelectStatement("SELECT prName,sum( zeDauer ) as sum,miName,miVorname FROM tzeiterfassung LEFT JOIN tProjekt using (prID) LEFT JOIN tMitarbeiter using (miID) WHERE miID =" + miID + " GROUP BY prID");
            DataTableReader reader = arbeiter.CreateDataReader();

            Series a = chart1.Series[0];

            if (reader.HasRows)
            {
                while (reader.Read())
                {

                    DataPoint p = new DataPoint();
                    p.SetValueY(Convert.ToDouble(reader["sum"].ToString()));
                    p.AxisLabel = reader["prName"].ToString();
                    p.IsValueShownAsLabel = true;
                    a.Points.Add(p);

                }
                Mitarbeiter.Text = reader["miVorname"].ToString() + " " + reader["miName"].ToString();
            }
        }
        public MainWindow()
        {
            InitializeComponent();

            phone_book_root_node = tv_PhoneBook.Nodes["phone_book_root_node"];
            sessions_root_node = tv_Sessions.Nodes["sessions_root_node"];
            internal_root_node = sessions_root_node.Nodes["internal_root_node"];
            external_root_node = sessions_root_node.Nodes["external_root_node"];
            inbound_root_node = sessions_root_node.Nodes["inbound_root_node"];
            outbound_root_node = sessions_root_node.Nodes["outbound_root_node"];
            sessions_root_node.ExpandAll();

            talk_duration_less_than_a_minute = new DataPoint { Name = "LessThenAMinute", LegendText = "Talk < 1 min", YValues = new[] { 0.0 }, Color = Color.FromArgb(100, 180, 100) };
            c_UserChart.Series[USER_STATES].Points.Add(talk_duration_less_than_a_minute);
            talk_duration_over_a_minute = new DataPoint { Name = "OverAMinute", LegendText = "Talk >= 1 min", YValues = new[] { 0.0 }, Color = Color.FromArgb(180, 80, 80) };
            c_UserChart.Series[USER_STATES].Points.Add(talk_duration_over_a_minute);

            SetState(LoginState.LoggedOut);

            presenter = new MainWindowPresenter(this, SimpleIOCContainer.Instance.Resolve<IOPSClient>());

            c_Statistics.Series[NUMBER_OF_SESSIONS].Points.AddXY(0, 0);
            c_Statistics.Series[NUMBER_OF_DROPPED_SESSIONS].Points.AddXY(0, 0);

            presenter.Connect();

            t_Timer.Start();
        }
        public FragmentDataDisplay(XRayDisplays xrayDisplays)
        {
            InitializeComponent();
            CultureResources.registerDataProvider(this);

            m_XrayImageDisplay = xrayDisplays;

            //============ lisview settings
            _TypeCollection.Add("Not Specified");
            _TypeCollection.Add("Metal");
            _TypeCollection.Add("Organic");
            _TypeCollection.Add("Inorganic");

            _ShapeCollection.Add("Not Specified");
            _ShapeCollection.Add("Cylindical");
            _ShapeCollection.Add("Rectangular");
            _ShapeCollection.Add("C Shape");

            _SizeCollection.Add("Not Specified");
            _SizeCollection.Add(" < 4 mm");
            _SizeCollection.Add("5mm-8mm");
            _SizeCollection.Add("9mm-12mm");
            _SizeCollection.Add("13mm-16mm");
            _SizeCollection.Add("17mm-20mm");
            _SizeCollection.Add(">20mm");

            for (int i = 0; i < 99; i++)
            {
                DataPoint dp = new DataPoint(i + 1, 0);
                UniformityChartSeries.Points.Add(dp);
            }
        }
        private void createSampleChart()
        {
            barChart.ChartAreas.Clear();
            barChart.ChartAreas.Add("area1");
            ChartArea chartArea = barChart.ChartAreas[0];
            chartArea.AxisX.MajorGrid.Enabled = false;
            chartArea.AxisY.MajorGrid.Enabled = false;
            chartArea.AxisY.Minimum = 0;
            chartArea.AxisY.Maximum = 1;
            barChart.Series.Clear();
            barChart.Series.Add("matches");
            Series series = barChart.Series[0];
            series.ChartType = SeriesChartType.Column;
            series.ChartArea = barChart.ChartAreas[0].Name;
            int x = 1;
            DataPoint pt = new DataPoint(series);
            pt.XValue = x;
            x++;
            pt.YValues = new double[] { .75 };
            pt.AxisLabel = "phrase 1";
            series.Points.Add(pt);
            pt.BorderColor = System.Drawing.Color.Black;
            int r = 255 - (int)(pt.YValues[0] * 255.0);
            pt.Color = System.Drawing.Color.FromArgb(r, r, r);

            pt = new DataPoint(series);
            pt.XValue = x;
            x++;
            pt.YValues = new double[] { .5 };
            pt.AxisLabel = "phrase 2";
            series.Points.Add(pt);
            pt.BorderColor = System.Drawing.Color.Black;
            r = 255 - (int)(pt.YValues[0] * 255.0);
            pt.Color = System.Drawing.Color.FromArgb(r, r, r);
        }
Example #12
0
        public void NewTemp(string msg)
        {
            string[] datum = msg.Split(',');
            label1.Text = msg;
            if (datum.Length > 5)
            {
                _lastAmbient = double.Parse(datum[1]);
                DataPoint dp = new DataPoint(double.Parse(datum[0]), _lastAmbient);
                Chart1.Series["Ambient"].Points.Add(dp);
                _lastT1 = double.Parse(datum[2]);
                dp = new DataPoint(double.Parse(datum[0]), _lastT1);
                Chart1.Series["T0"].Points.Add(dp);
                _lastT2 = double.Parse(datum[4]);
                dp = new DataPoint(double.Parse(datum[0]), _lastT2);
                Chart1.Series["T1"].Points.Add(dp);

                if (_showLast50 && Chart1.Series["Ambient"].Points.Count > 50)
                {
                    Chart1.ChartAreas[0].AxisX.ScaleView.Position = Chart1.Series["Ambient"].Points.Count - 50;
                    Chart1.ChartAreas[0].AxisX.ScaleView.Size = 50;
                }
                else
                {
                    Chart1.ChartAreas[0].AxisX.ScaleView.ZoomReset();
                }
                _httpServer.Temps = new double[] { _lastAmbient, _lastT1, _lastT2 };
            }
        }
Example #13
0
        public static DataPoint CreateNamedPoint(string name, double x, double y)
        {
            DataPoint pnt = new DataPoint(x, y);
              pnt.Label = name;

              return pnt;
        }
Example #14
0
        private void phodiemthi_Load(object sender, EventArgs e)
        {
            dataGridView1.Hide();
            dbVeMTDataContext db = new dbVeMTDataContext();
            dataGridView1.Rows.Clear();
            var results = from p in db.vemts
                          group p by p.diem into g
                          select new { diem = g.Key , soluong = g.Count() };
            dataGridView1.DataSource = results;
            db.SubmitChanges();
            //Tìm và đặt giá trị MAX cho trục Y
            int max = Convert.ToInt32(dataGridView1.Rows[0].Cells[0].Value);
            for (int i = 1; i <= dataGridView1.SelectedRows.Count; i++)
                if (max < Convert.ToInt32(dataGridView1.Rows[i].Cells[0].Value))
                    max = Convert.ToInt32(dataGridView1.Rows[i].Cells[0].Value);
            if (chart1.ChartAreas[0].AxisY.Maximum < max) chart1.ChartAreas[0].AxisY.Maximum = max;

            chart1.Series.Clear();

            Series s = new Series();
            for (int i = 0; i < dataGridView1.Rows.Count; i++)
            {
                s.ChartType = SeriesChartType.Line;
                DataPoint p = new DataPoint();
                p.XValue = i;
                p.SetValueY(Convert.ToDouble(dataGridView1.Rows[i].Cells[1].Value));
                //p.AxisLabel = "Điểm " + dataGridView1.Rows[i].Cells[0].Value.ToString() +"";
                p.AxisLabel = "điểm" + i.ToString(); ;
                s.Points.Add(p);
            }
            chart1.Series.Add(s);
        }
Example #15
0
        /// <summary>
        /// Checks to see if two lines intersect
        /// Line 1 is defined by series1_Point1 and series1_Point2
        /// Line 2 is defined by series2_Point1 and series2_Point2
        /// </summary>
        /// <param name="series1_Point1">line's start point for series 1</param>
        /// <param name="series1_Point2">line's end point for series 1</param>
        /// <param name="series2_Point1">line's start point for series 2</param>
        /// <param name="series2_Point2">line's end point for series 2</param>
        /// <returns>DataPoint of where the lines intersect, null otherwise</returns>
        public static DataPoint IsIntersect(DataPoint series1_Point1, DataPoint series1_Point2, DataPoint series2_Point1, DataPoint series2_Point2)
        {
            //find the slope of series 1's line
            double m1 = (series1_Point2.YValues[0] - series1_Point1.YValues[0])
                        /(series1_Point2.XValue - series1_Point1.XValue);

            //find the y intercept of series 1's line
            double b1 = series1_Point2.YValues[0] - m1 * series1_Point2.XValue;

            //find the slope of series 2's line
            double m2 = (series2_Point2.YValues[0] - series2_Point1.YValues[0])
                        / (series2_Point2.XValue - series2_Point1.XValue);

            //check to make sure the lines aren't parallel
            if (m2 == m1)
            {
                //the lines are parallel so they can not intersect
                return null;
            }

            // find the y intercept of series 2's line
            double b2 = series2_Point2.YValues[0] - m2 * series2_Point2.XValue;

            //find where the two lines intersect
            double xIntersection = (b2 - b1) / (m1 - m2);

            //find the max and min X interval of the two line segments

            double xmin=0;
            double xmax=0;
            if (series1_Point1.XValue >= series2_Point1.XValue)
            {
                xmin = series1_Point1.XValue;
            }
            else
            {
                xmin = series2_Point1.XValue;
            }

            if (series1_Point2.XValue >= series2_Point2.XValue)
            {
                xmax = series2_Point2.XValue;
            }
            else
            {
                xmax = series1_Point2.XValue;
            }

            //check to see if the xIntersection falls in this range
            if (xIntersection >= xmin && xIntersection <= xmax)
            {
                //figure out the Y value now

                double yIntersection = m1 * xIntersection + b1;
                return new DataPoint(xIntersection, yIntersection);
            }

            return null;
        }
Example #16
0
        public static DataPoint CreateNamedPoint(string name, double value)
        {
            DataPoint pnt = new DataPoint(value, value);
              pnt.Label = value.ToString();
              pnt.ToolTip = pnt.LegendText = name + ": " + value.ToString();

              return pnt;
        }
Example #17
0
 /// <summary>
 /// Get the absolute location of dp 
 /// </summary>
 /// <param name="cg">for finding the absolute location</param>
 /// <param name="dp"></param>
 /// <returns></returns>
 public static PointF GetAbsolutePoint(ChartGraphics cg, DataPoint dp)
 {
     PointF p1 = new PointF(
     (float)cg.GetPositionFromAxis("Default", AxisName.X, dp.XValue),
     (float)cg.GetPositionFromAxis("Default", AxisName.Y, dp.YValues[0]));
     p1 = cg.GetAbsolutePoint(p1);
     return p1;
 }
Example #18
0
		public DataPoint Clone ()
		{
			DataPoint clone = new DataPoint (XValue, YValue);
			clone.IsEmpty = IsEmpty;
			clone.Name = Name;

			return clone;
		}
 /// <summary>
 /// グラフにデータを追加
 /// </summary>
 /// <param name="name">系列名</param>
 /// <param name="x">X座標データ</param>
 /// <param name="y">Y座標データ</param>
 public void AppendData(string name, double x, double y)
 {
     // データポイントを生成
     DataPoint point = new DataPoint(x, y);
     // 系列名からデータを追加する系列を取得
     Series s = chart.Series.FindByName(name);
     // データを追加
     s.Points.Add(point);
 }
Example #20
0
 public static void plotLineGraph(List<double> values, Chart cart)
 {
     cart.Series["Series1"].Points.Clear();
     for (int i = 0; i < values.Count; i++)
     {
         System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint1 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(i, values[i]);
         cart.Series["Series1"].Points.Add(dataPoint1);
     }
 }
Example #21
0
		public void Constructor3 ()
		{
			DataPoint dp = new DataPoint (1d, new double[] { 2d, 3d });

			Assert.AreEqual (false, dp.IsEmpty, "A1");
			Assert.AreEqual ("DataPoint", dp.Name, "A2");
			Assert.AreEqual (1d, dp.XValue, "A3");
			Assert.AreEqual (new double[] { 2d, 3d }, dp.YValues, "A4");
		}
Example #22
0
 public DataPoint[] Solve(Func<double, double, double> func, double x0, double y0, double end, int steps)
 {
     var sectionLength = end - x0;
     var step = sectionLength / (steps - 1);
     DataPoint[] dataPoints = new DataPoint[steps];
     dataPoints[0] = new DataPoint(x0, y0);
     for(var i = 1; i < steps; i++) {
         dataPoints[i] = new DataPoint(x0 + step * i, dataPoints[i - 1].YValues[0] + func.Invoke(dataPoints[i - 1].XValue, dataPoints[i - 1].YValues[0]) * step);
     }
     return dataPoints;
 }
        void M_Tick(object sender, EventArgs e)
        {
            var DocStatus = MongoDBHelper.ExecuteMongoSvrCommand(MongoDBHelper.serverStatus_Command, SystemManager.GetCurrentServer()).Response;

                DataPoint queryPoint = new DataPoint();
                queryPoint.SetValueXY(DateTime.Now.ToString(), DocStatus.GetElement("opcounters").Value.AsBsonDocument.GetElement("query").Value);
                MonitorGrap.Series[0].Points.Add(queryPoint);

                DataPoint insertPoint = new DataPoint();
                insertPoint.SetValueXY(DateTime.Now.ToString(), DocStatus.GetElement("opcounters").Value.AsBsonDocument.GetElement("insert").Value);
                MonitorGrap.Series[1].Points.Add(insertPoint);
        }
 /// <summary>
 /// Adds a new point
 /// </summary>
 /// <param name="point"></param>
 protected override void AddPoint(SpeedDistancePoint point)
 {
     DataPoint newPoint = new DataPoint(point.Distance, point.Speed);
     if (Data.Points.Count > 0 && Data.Points[Data.Points.Count - 1].XValue == point.Distance)
     {
         Data.Points[Data.Points.Count - 1] = newPoint;
     }
     else
     {
         Data.Points.Add(newPoint);
     }
 }
 // Filtering method
 public bool FilterDataPoint(DataPoint dataPoint, Series series, int pointIndex)
 {
     // Check if point's X value is in one of the intervals
     for(double val = offset; val < 100; val += 2.0 * interval)
     {
         if(dataPoint.XValue >= val && dataPoint.XValue <= (val + interval))
         {
             return true;	// Return true to remove the point
         }
     }
     return false;	// Return false to keep the point
 }
Example #26
0
        private void frmStatus_Load(object sender, EventArgs e)
        {
            this.Icon = GetSystemIcon.ConvertImgToIcon(MagicMongoDBTool.Properties.Resources.KeyInfo);
            String strType = SystemManager.SelectTagType;
            List<BsonDocument> SrvDocList = new List<BsonDocument>();
            BsonDocument cr = new BsonDocument();
            switch (strType)
            {
                case MongoDBHelper.SERVER_TAG:
                case MongoDBHelper.SINGLE_DB_SERVER_TAG:
                    if (SystemManager.GetCurrentServerConfig().LoginAsAdmin)
                    {
                        cr = MongoDBHelper.ExecuteMongoSvrCommand(MongoDBHelper.serverStatus_Command, SystemManager.GetCurrentServer()).Response;
                    }
                    break;
                case MongoDBHelper.DATABASE_TAG:
                case MongoDBHelper.SINGLE_DATABASE_TAG:
                    cr = SystemManager.GetCurrentDataBase().GetStats().Response.ToBsonDocument();
                    //图形化初始化
                    chartResult.Series.Clear();
                    chartResult.Titles.Clear();
                    Series SeriesResult = new Series("Result");
                    foreach (String colName in SystemManager.GetCurrentDataBase().GetCollectionNames())
                    {
                        DataPoint ColPoint = new DataPoint(0, SystemManager.GetCurrentDataBase().GetCollection(colName).GetStats().StorageSize);
                        ColPoint.LegendText = colName;
                        SeriesResult.Points.Add(ColPoint);
                    }
                    //图形化加载

                    SeriesResult.ChartType = SeriesChartType.Pie;
                    chartResult.Series.Add(SeriesResult);
                    chartResult.Titles.Add("StorageSize");
                    break;
                case MongoDBHelper.COLLECTION_TAG:
                    cr = SystemManager.GetCurrentCollection().GetStats().Response.ToBsonDocument();
                    break;
                default:
                    if (SystemManager.GetCurrentServerConfig().LoginAsAdmin)
                    {
                        cr = MongoDBHelper.ExecuteMongoSvrCommand(MongoDBHelper.serverStatus_Command, SystemManager.GetCurrentServer()).Response;
                    }
                    break;
            }
            if (!SystemManager.IsUseDefaultLanguage)
            {
                this.Text = SystemManager.mStringResource.GetText(StringResource.TextType.Main_Menu_Mangt_Status);
            }
            SrvDocList.Add(cr);
            MongoDBHelper.FillDataToTreeView(strType, this.trvStatus, SrvDocList, 0);
            this.trvStatus.DatatreeView.Nodes[0].Expand();
        }
Example #27
0
        public void DrawHistogram(Chart chart)
        {
            chart.Series["Intensity"].Points.Clear();

            for (int i = 0; i < this.intensities.Length; i++)
            {
                DataPoint dataPoint = new DataPoint();

                dataPoint.SetValueXY(i, this.intensities[i]);

                chart.Series["Intensity"].Points.Add(dataPoint);
            }
        }
 /// <summary>
 /// データを追加
 /// </summary>
 /// <param name="log">NXT Log</param>
 public void AppendData(NxtLog log)
 {
     // 全ての系列に対してデータを追加
     foreach (string name in NxtLog.LogDataMember)
     {
         Point p = log.GetTimeSeriesData(name);
         // データポイントを生成
         DataPoint point = new DataPoint(p.X, p.Y);
         // 系列名からデータを追加する系列を取得
         Series s = logSeriesList.Find(o => o.Name == name);
         // データを追加
         s.Points.Add(point);
     }
 }
        private void SetGraphData(List<DailyCompanyData> oStockData)
        {
            chartCompany.Series[0].Points.Clear();
            for (int i = 0; i < oStockData.Count; i++)
            {
                DailyCompanyData obj = oStockData[i];
                DataPoint oPt = new DataPoint(obj.Date.ToOADate(), obj.StackData.ToString());
                oPt.BorderColor = System.Drawing.Color.Red;
                oPt.BorderWidth = 2;
                oPt.Color = obj.StackData.Color;
                oPt.BorderColor = obj.StackData.Color;

                chartCompany.Series[0].Points.Add(oPt);
            }
        }
        private void StartBuilding()
        {
            Series series = new Series("Обработка текста");
            series.ChartType = SeriesChartType.Pie;
            chartOutput.Series.Add(series);

            foreach (var pair in _Source)
            {
                DataPoint dp = new DataPoint(0, pair.Value);
                dp.LegendText = pair.Key.ToUpperInvariant();
                series.Points.Add(dp);
                ++TSSProgressBar.Value;
            }
            TSSLabel.Text = "Построение завершено";
        }
Example #31
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.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, 7.1999998092651367);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint2  = new System.Windows.Forms.DataVisualization.Charting.DataPoint(2, 8);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint3  = new System.Windows.Forms.DataVisualization.Charting.DataPoint(3, 8);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint4  = new System.Windows.Forms.DataVisualization.Charting.DataPoint(4, 9);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint5  = new System.Windows.Forms.DataVisualization.Charting.DataPoint(5, 8);
     System.Windows.Forms.DataVisualization.Charting.Series    series2     = new System.Windows.Forms.DataVisualization.Charting.Series();
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint6  = new System.Windows.Forms.DataVisualization.Charting.DataPoint(1, 3);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint7  = new System.Windows.Forms.DataVisualization.Charting.DataPoint(2, 6.8000001907348633);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint8  = new System.Windows.Forms.DataVisualization.Charting.DataPoint(3, 2);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint9  = new System.Windows.Forms.DataVisualization.Charting.DataPoint(4, 6);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint10 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(5, 3);
     this.label9 = new System.Windows.Forms.Label();
     this.panel1 = new System.Windows.Forms.Panel();
     this.Chart1 = new System.Windows.Forms.DataVisualization.Charting.Chart();
     this.label1 = new System.Windows.Forms.Label();
     ((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, 43);
     this.label9.TabIndex = 18;
     this.label9.Text     = "This sample demonstrates how chart annotations can be grouped together using the " +
                            "AnnotationGroup object.";
     this.label9.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // panel1
     //
     this.panel1.Location = new System.Drawing.Point(432, 73);
     this.panel1.Name     = "panel1";
     this.panel1.Size     = new System.Drawing.Size(292, 288);
     this.panel1.TabIndex = 0;
     //
     // Chart1
     //
     this.Chart1.BackColor                   = System.Drawing.Color.WhiteSmoke;
     this.Chart1.BackGradientStyle           = System.Windows.Forms.DataVisualization.Charting.GradientStyle.TopBottom;
     this.Chart1.BackSecondaryColor          = System.Drawing.Color.White;
     this.Chart1.BorderlineColor             = System.Drawing.Color.FromArgb(((int)(((byte)(26)))), ((int)(((byte)(59)))), ((int)(((byte)(105)))));
     this.Chart1.BorderlineDashStyle         = System.Windows.Forms.DataVisualization.Charting.ChartDashStyle.Solid;
     this.Chart1.BorderlineWidth             = 2;
     this.Chart1.BorderSkin.SkinStyle        = System.Windows.Forms.DataVisualization.Charting.BorderSkinStyle.Emboss;
     chartArea1.Area3DStyle.Enable3D         = true;
     chartArea1.Area3DStyle.Inclination      = 15;
     chartArea1.Area3DStyle.IsClustered      = true;
     chartArea1.Area3DStyle.IsRightAngleAxes = false;
     chartArea1.Area3DStyle.Perspective      = 10;
     chartArea1.Area3DStyle.PointGapDepth    = 0;
     chartArea1.Area3DStyle.Rotation         = 10;
     chartArea1.Area3DStyle.WallWidth        = 0;
     chartArea1.AxisX.IsLabelAutoFit         = false;
     chartArea1.AxisX.LabelStyle.Font        = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold);
     chartArea1.AxisX.LabelStyle.Interval    = 1;
     chartArea1.AxisX.LineColor              = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
     chartArea1.AxisX.MajorGrid.Interval     = 1;
     chartArea1.AxisX.MajorGrid.LineColor    = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
     chartArea1.AxisX.MajorTickMark.Enabled  = false;
     chartArea1.AxisX.MajorTickMark.Interval = 1;
     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.Interval     = 2.5;
     chartArea1.AxisY.MajorGrid.LineColor    = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
     chartArea1.AxisY.MajorTickMark.Enabled  = false;
     chartArea1.AxisY.MajorTickMark.Interval = 1;
     chartArea1.BackColor          = System.Drawing.Color.WhiteSmoke;
     chartArea1.BackSecondaryColor = System.Drawing.Color.White;
     chartArea1.BorderColor        = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
     chartArea1.Name        = "Default";
     chartArea1.ShadowColor = System.Drawing.Color.Transparent;
     this.Chart1.ChartAreas.Add(chartArea1);
     legend1.BackColor       = System.Drawing.Color.Transparent;
     legend1.Enabled         = false;
     legend1.Font            = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold);
     legend1.IsTextAutoFit   = false;
     legend1.Name            = "Default";
     legend1.Position.Auto   = false;
     legend1.Position.Height = 12F;
     legend1.Position.Width  = 16F;
     legend1.Position.X      = 78F;
     legend1.Position.Y      = 8F;
     this.Chart1.Legends.Add(legend1);
     this.Chart1.Location     = new System.Drawing.Point(16, 65);
     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           = "Default";
     series1.Name             = "Series1";
     series1.Points.Add(dataPoint1);
     series1.Points.Add(dataPoint2);
     series1.Points.Add(dataPoint3);
     series1.Points.Add(dataPoint4);
     series1.Points.Add(dataPoint5);
     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             = "Series2";
     series2.Points.Add(dataPoint6);
     series2.Points.Add(dataPoint7);
     series2.Points.Add(dataPoint8);
     series2.Points.Add(dataPoint9);
     series2.Points.Add(dataPoint10);
     series2.XValueType = System.Windows.Forms.DataVisualization.Charting.ChartValueType.Double;
     series2.YValueType = System.Windows.Forms.DataVisualization.Charting.ChartValueType.Double;
     this.Chart1.Series.Add(series1);
     this.Chart1.Series.Add(series2);
     this.Chart1.Size     = new System.Drawing.Size(412, 296);
     this.Chart1.TabIndex = 1;
     this.Chart1.TextAntiAliasingQuality = System.Windows.Forms.DataVisualization.Charting.TextAntiAliasingQuality.Normal;
     //
     // label1
     //
     this.label1.Font      = new System.Drawing.Font("Verdana", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label1.Location  = new System.Drawing.Point(16, 376);
     this.label1.Name      = "label1";
     this.label1.Size      = new System.Drawing.Size(702, 27);
     this.label1.TabIndex  = 19;
     this.label1.Text      = "Click on the star annotation group, and then move or resize it.";
     this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // GroupingAnnotations
     //
     this.BackColor = System.Drawing.Color.White;
     this.Controls.Add(this.label1);
     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 = "GroupingAnnotations";
     this.Size = new System.Drawing.Size(728, 416);
     ((System.ComponentModel.ISupportInitialize)(this.Chart1)).EndInit();
     this.ResumeLayout(false);
 }
Example #32
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.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(0, 14);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint2  = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 18);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint3  = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 14);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint4  = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 18);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint5  = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 16);
     System.Windows.Forms.DataVisualization.Charting.Series    series2     = new System.Windows.Forms.DataVisualization.Charting.Series();
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint6  = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 10);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint7  = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 19);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint8  = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 8);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint9  = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 12);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint10 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 18);
     this.label9             = new System.Windows.Forms.Label();
     this.panel1             = new System.Windows.Forms.Panel();
     this.checkBoxClustered  = new System.Windows.Forms.CheckBox();
     this.numericUpDownGap   = new System.Windows.Forms.NumericUpDown();
     this.numericUpDownDepth = new System.Windows.Forms.NumericUpDown();
     this.numericUpDownWidth = new System.Windows.Forms.NumericUpDown();
     this.checkBox3D         = new System.Windows.Forms.CheckBox();
     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.ZOrder             = new System.Windows.Forms.Label();
     this.Chart1             = new System.Windows.Forms.DataVisualization.Charting.Chart();
     this.label10            = new System.Windows.Forms.Label();
     this.panel1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.numericUpDownGap)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.numericUpDownDepth)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.numericUpDownWidth)).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", 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(696, 40);
     this.label9.TabIndex = 0;
     this.label9.Text     = "This sample demonstrates how to set data point width to a specified number of pix" +
                            "els. It also shows how to set series point depth in pixels.";
     this.label9.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // panel1
     //
     this.panel1.Controls.Add(this.checkBoxClustered);
     this.panel1.Controls.Add(this.numericUpDownGap);
     this.panel1.Controls.Add(this.numericUpDownDepth);
     this.panel1.Controls.Add(this.numericUpDownWidth);
     this.panel1.Controls.Add(this.checkBox3D);
     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.Controls.Add(this.ZOrder);
     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 = 2;
     //
     // checkBoxClustered
     //
     this.checkBoxClustered.CheckAlign      = System.Drawing.ContentAlignment.MiddleRight;
     this.checkBoxClustered.Enabled         = false;
     this.checkBoxClustered.Location        = new System.Drawing.Point(11, 72);
     this.checkBoxClustered.Name            = "checkBoxClustered";
     this.checkBoxClustered.Size            = new System.Drawing.Size(172, 24);
     this.checkBoxClustered.TabIndex        = 3;
     this.checkBoxClustered.Text            = "&Clustered:";
     this.checkBoxClustered.TextAlign       = System.Drawing.ContentAlignment.MiddleRight;
     this.checkBoxClustered.CheckedChanged += new System.EventHandler(this.checkBoxClustered_CheckedChanged);
     //
     // numericUpDownGap
     //
     this.numericUpDownGap.Enabled   = false;
     this.numericUpDownGap.Increment = new decimal(new int[] {
         10,
         0,
         0,
         0
     });
     this.numericUpDownGap.Location = new System.Drawing.Point(168, 136);
     this.numericUpDownGap.Maximum  = new decimal(new int[] {
         500,
         0,
         0,
         0
     });
     this.numericUpDownGap.Minimum = new decimal(new int[] {
         5,
         0,
         0,
         0
     });
     this.numericUpDownGap.Name     = "numericUpDownGap";
     this.numericUpDownGap.Size     = new System.Drawing.Size(72, 22);
     this.numericUpDownGap.TabIndex = 7;
     this.numericUpDownGap.Value    = new decimal(new int[] {
         10,
         0,
         0,
         0
     });
     this.numericUpDownGap.ValueChanged += new System.EventHandler(this.numericUpDownGap_ValueChanged);
     //
     // numericUpDownDepth
     //
     this.numericUpDownDepth.Enabled   = false;
     this.numericUpDownDepth.Increment = new decimal(new int[] {
         10,
         0,
         0,
         0
     });
     this.numericUpDownDepth.Location = new System.Drawing.Point(168, 104);
     this.numericUpDownDepth.Maximum  = new decimal(new int[] {
         500,
         0,
         0,
         0
     });
     this.numericUpDownDepth.Minimum = new decimal(new int[] {
         5,
         0,
         0,
         0
     });
     this.numericUpDownDepth.Name     = "numericUpDownDepth";
     this.numericUpDownDepth.Size     = new System.Drawing.Size(72, 22);
     this.numericUpDownDepth.TabIndex = 5;
     this.numericUpDownDepth.Value    = new decimal(new int[] {
         70,
         0,
         0,
         0
     });
     this.numericUpDownDepth.ValueChanged += new System.EventHandler(this.numericUpDownDepth_ValueChanged);
     //
     // numericUpDownWidth
     //
     this.numericUpDownWidth.Increment = new decimal(new int[] {
         5,
         0,
         0,
         0
     });
     this.numericUpDownWidth.Location = new System.Drawing.Point(168, 6);
     this.numericUpDownWidth.Maximum  = new decimal(new int[] {
         50,
         0,
         0,
         0
     });
     this.numericUpDownWidth.Minimum = new decimal(new int[] {
         5,
         0,
         0,
         0
     });
     this.numericUpDownWidth.Name     = "numericUpDownWidth";
     this.numericUpDownWidth.Size     = new System.Drawing.Size(72, 22);
     this.numericUpDownWidth.TabIndex = 1;
     this.numericUpDownWidth.Value    = new decimal(new int[] {
         45,
         0,
         0,
         0
     });
     this.numericUpDownWidth.ValueChanged += new System.EventHandler(this.numericUpDownWidth_ValueChanged);
     //
     // checkBox3D
     //
     this.checkBox3D.CheckAlign      = System.Drawing.ContentAlignment.MiddleRight;
     this.checkBox3D.Location        = new System.Drawing.Point(11, 40);
     this.checkBox3D.Name            = "checkBox3D";
     this.checkBox3D.Size            = new System.Drawing.Size(172, 24);
     this.checkBox3D.TabIndex        = 2;
     this.checkBox3D.Text            = "3&D Chart: ";
     this.checkBox3D.TextAlign       = System.Drawing.ContentAlignment.MiddleRight;
     this.checkBox3D.CheckedChanged += new System.EventHandler(this.checkBox3D_CheckedChanged);
     //
     // label2
     //
     this.label2.Location  = new System.Drawing.Point(0, 139);
     this.label2.Name      = "label2";
     this.label2.Size      = new System.Drawing.Size(164, 16);
     this.label2.TabIndex  = 6;
     this.label2.Text      = "Point &Gap Depth in Pixels:";
     this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // label1
     //
     this.label1.Location  = new System.Drawing.Point(11, 107);
     this.label1.Name      = "label1";
     this.label1.Size      = new System.Drawing.Size(156, 16);
     this.label1.TabIndex  = 4;
     this.label1.Text      = "Point &Depth in Pixels:";
     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 = 11;
     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 = 10;
     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 = 9;
     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 = 8;
     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:";
     //
     // ZOrder
     //
     this.ZOrder.Location  = new System.Drawing.Point(11, 9);
     this.ZOrder.Name      = "ZOrder";
     this.ZOrder.Size      = new System.Drawing.Size(156, 16);
     this.ZOrder.TabIndex  = 0;
     this.ZOrder.Text      = "Point &Width in Pixels:";
     this.ZOrder.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.IsRightAngleAxes = false;
     chartArea1.Area3DStyle.Perspective      = 10;
     chartArea1.Area3DStyle.Rotation         = 10;
     chartArea1.Area3DStyle.WallWidth        = 0;
     chartArea1.AxisX.IsLabelAutoFit         = false;
     chartArea1.AxisX.LabelStyle.Font        = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold);
     chartArea1.AxisX.LineColor              = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
     chartArea1.AxisX.MajorGrid.LineColor    = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
     chartArea1.AxisY.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.Transparent;
     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.Alignment         = System.Drawing.StringAlignment.Center;
     legend1.BackColor         = System.Drawing.Color.Transparent;
     legend1.DockedToChartArea = "Default";
     legend1.Docking           = System.Windows.Forms.DataVisualization.Charting.Docking.Bottom;
     legend1.Font = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold);
     legend1.IsDockedInsideChartArea = false;
     legend1.IsTextAutoFit           = false;
     legend1.LegendStyle             = System.Windows.Forms.DataVisualization.Charting.LegendStyle.Row;
     legend1.Name = "Default";
     this.Chart1.Legends.Add(legend1);
     this.Chart1.Location     = new System.Drawing.Point(16, 68);
     this.Chart1.Name         = "Chart1";
     series1.BorderColor      = System.Drawing.Color.FromArgb(((int)(((byte)(180)))), ((int)(((byte)(26)))), ((int)(((byte)(59)))), ((int)(((byte)(105)))));
     series1.ChartArea        = "Default";
     series1.Color            = System.Drawing.Color.FromArgb(((int)(((byte)(220)))), ((int)(((byte)(252)))), ((int)(((byte)(180)))), ((int)(((byte)(65)))));
     series1.CustomProperties = "PixelPointWidth=45, PixelPointDepth=70, PixelPointGapDepth=10";
     series1.Legend           = "Default";
     series1.Name             = "Series 2";
     series1.Points.Add(dataPoint1);
     series1.Points.Add(dataPoint2);
     series1.Points.Add(dataPoint3);
     series1.Points.Add(dataPoint4);
     series1.Points.Add(dataPoint5);
     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)(220)))), ((int)(((byte)(65)))), ((int)(((byte)(140)))), ((int)(((byte)(240)))));
     series2.CustomProperties = "PixelPointWidth=45, PixelPointDepth=70, PixelPointGapDepth=10";
     series2.Legend           = "Default";
     series2.Name             = "Series 1";
     series2.Points.Add(dataPoint6);
     series2.Points.Add(dataPoint7);
     series2.Points.Add(dataPoint8);
     series2.Points.Add(dataPoint9);
     series2.Points.Add(dataPoint10);
     series2.XValueType = System.Windows.Forms.DataVisualization.Charting.ChartValueType.Double;
     series2.YValueType = System.Windows.Forms.DataVisualization.Charting.ChartValueType.Double;
     this.Chart1.Series.Add(series1);
     this.Chart1.Series.Add(series2);
     this.Chart1.Size     = new System.Drawing.Size(412, 296);
     this.Chart1.TabIndex = 1;
     //
     // label10
     //
     this.label10.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                                 | System.Windows.Forms.AnchorStyles.Right)));
     this.label10.Font     = new System.Drawing.Font("Verdana", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label10.Location = new System.Drawing.Point(20, 376);
     this.label10.Name     = "label10";
     this.label10.Size     = new System.Drawing.Size(696, 40);
     this.label10.TabIndex = 3;
     this.label10.Text     = "The point width and depth are set to absolute values and do not depend on the num" +
                             "ber of points in the series.";
     this.label10.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // PointWidthAndDepth
     //
     this.Controls.Add(this.label10);
     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 = "PointWidthAndDepth";
     this.Size = new System.Drawing.Size(728, 480);
     this.panel1.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.numericUpDownGap)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.numericUpDownDepth)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.numericUpDownWidth)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.Chart1)).EndInit();
     this.ResumeLayout(false);
 }
Example #33
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.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(0, 400);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint2 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 600);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint3 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 1700);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint4 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 3000);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint5 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 950);
     this.Appearance       = new System.Windows.Forms.ComboBox();
     this.EmptyPointValue  = new System.Windows.Forms.ComboBox();
     this.label5           = new System.Windows.Forms.Label();
     this.label6           = new System.Windows.Forms.Label();
     this.label9           = new System.Windows.Forms.Label();
     this.panel1           = new System.Windows.Forms.Panel();
     this.LineSize         = new System.Windows.Forms.ComboBox();
     this.label10          = new System.Windows.Forms.Label();
     this.MarkerSize       = new System.Windows.Forms.ComboBox();
     this.label8           = new System.Windows.Forms.Label();
     this.MarkerColor      = new System.Windows.Forms.ComboBox();
     this.label4           = new System.Windows.Forms.Label();
     this.LineColor        = new System.Windows.Forms.ComboBox();
     this.label7           = new System.Windows.Forms.Label();
     this.MarkerStyleCombo = new System.Windows.Forms.ComboBox();
     this.label3           = new System.Windows.Forms.Label();
     this.LineDashStyle    = new System.Windows.Forms.ComboBox();
     this.label2           = new System.Windows.Forms.Label();
     this.Chart1           = new System.Windows.Forms.DataVisualization.Charting.Chart();
     this.label1           = new System.Windows.Forms.Label();
     this.panel1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.Chart1)).BeginInit();
     this.SuspendLayout();
     //
     // Appearance
     //
     this.Appearance.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.Appearance.Items.AddRange(new object[] {
         "Transparent",
         "Line",
         "Marker",
         "Line and Marker"
     });
     this.Appearance.Location              = new System.Drawing.Point(168, 40);
     this.Appearance.Name                  = "Appearance";
     this.Appearance.Size                  = new System.Drawing.Size(121, 22);
     this.Appearance.TabIndex              = 3;
     this.Appearance.SelectedIndexChanged += new System.EventHandler(this.ControlChange);
     //
     // EmptyPointValue
     //
     this.EmptyPointValue.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.EmptyPointValue.Items.AddRange(new object[] {
         "Zero",
         "Average"
     });
     this.EmptyPointValue.Location              = new System.Drawing.Point(168, 8);
     this.EmptyPointValue.Name                  = "EmptyPointValue";
     this.EmptyPointValue.Size                  = new System.Drawing.Size(121, 22);
     this.EmptyPointValue.TabIndex              = 1;
     this.EmptyPointValue.SelectedIndexChanged += new System.EventHandler(this.ControlChange);
     //
     // label5
     //
     this.label5.Location  = new System.Drawing.Point(56, 43);
     this.label5.Name      = "label5";
     this.label5.Size      = new System.Drawing.Size(112, 16);
     this.label5.TabIndex  = 2;
     this.label5.Text      = "&Appearance:";
     this.label5.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // label6
     //
     this.label6.Location  = new System.Drawing.Point(32, 11);
     this.label6.Name      = "label6";
     this.label6.Size      = new System.Drawing.Size(136, 16);
     this.label6.TabIndex  = 0;
     this.label6.Text      = "Empty Point &Value:";
     this.label6.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // 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, 43);
     this.label9.TabIndex = 0;
     this.label9.Text     = "This sample demonstrates one method of�setting empty points, and also shows how�t" +
                            "o set the visual attributes of the empty points.";
     this.label9.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // panel1
     //
     this.panel1.Controls.Add(this.LineSize);
     this.panel1.Controls.Add(this.label10);
     this.panel1.Controls.Add(this.MarkerSize);
     this.panel1.Controls.Add(this.label8);
     this.panel1.Controls.Add(this.MarkerColor);
     this.panel1.Controls.Add(this.label4);
     this.panel1.Controls.Add(this.LineColor);
     this.panel1.Controls.Add(this.label7);
     this.panel1.Controls.Add(this.MarkerStyleCombo);
     this.panel1.Controls.Add(this.label3);
     this.panel1.Controls.Add(this.LineDashStyle);
     this.panel1.Controls.Add(this.label2);
     this.panel1.Controls.Add(this.EmptyPointValue);
     this.panel1.Controls.Add(this.label5);
     this.panel1.Controls.Add(this.label6);
     this.panel1.Controls.Add(this.Appearance);
     this.panel1.Location = new System.Drawing.Point(432, 73);
     this.panel1.Name     = "panel1";
     this.panel1.Size     = new System.Drawing.Size(292, 288);
     this.panel1.TabIndex = 2;
     //
     // LineSize
     //
     this.LineSize.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.LineSize.Items.AddRange(new object[] {
         "1",
         "2",
         "3",
         "4",
         "5"
     });
     this.LineSize.Location              = new System.Drawing.Point(168, 144);
     this.LineSize.Name                  = "LineSize";
     this.LineSize.Size                  = new System.Drawing.Size(121, 22);
     this.LineSize.TabIndex              = 17;
     this.LineSize.SelectedIndexChanged += new System.EventHandler(this.ControlChange);
     //
     // label10
     //
     this.label10.Location  = new System.Drawing.Point(32, 152);
     this.label10.Name      = "label10";
     this.label10.Size      = new System.Drawing.Size(136, 16);
     this.label10.TabIndex  = 16;
     this.label10.Text      = " Line S&ize:";
     this.label10.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // MarkerSize
     //
     this.MarkerSize.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.MarkerSize.Items.AddRange(new object[] {
         "5",
         "9",
         "14",
         "18"
     });
     this.MarkerSize.Location              = new System.Drawing.Point(168, 216);
     this.MarkerSize.Name                  = "MarkerSize";
     this.MarkerSize.Size                  = new System.Drawing.Size(121, 22);
     this.MarkerSize.TabIndex              = 15;
     this.MarkerSize.SelectedIndexChanged += new System.EventHandler(this.ControlChange);
     //
     // label8
     //
     this.label8.Location  = new System.Drawing.Point(32, 219);
     this.label8.Name      = "label8";
     this.label8.Size      = new System.Drawing.Size(136, 16);
     this.label8.TabIndex  = 14;
     this.label8.Text      = "Marker &Size:";
     this.label8.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // MarkerColor
     //
     this.MarkerColor.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.MarkerColor.Items.AddRange(new object[] {
         "Red",
         "DarkGray",
         "Navy",
         "Blue",
         "Black"
     });
     this.MarkerColor.Location              = new System.Drawing.Point(168, 248);
     this.MarkerColor.Name                  = "MarkerColor";
     this.MarkerColor.Size                  = new System.Drawing.Size(121, 22);
     this.MarkerColor.TabIndex              = 13;
     this.MarkerColor.SelectedIndexChanged += new System.EventHandler(this.ControlChange);
     //
     // label4
     //
     this.label4.Location  = new System.Drawing.Point(32, 251);
     this.label4.Name      = "label4";
     this.label4.Size      = new System.Drawing.Size(136, 16);
     this.label4.TabIndex  = 12;
     this.label4.Text      = "M&arker Color:";
     this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // LineColor
     //
     this.LineColor.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.LineColor.Items.AddRange(new object[] {
         "DarkGray",
         "Red",
         "Navy",
         "Blue",
         "Black"
     });
     this.LineColor.Location              = new System.Drawing.Point(168, 112);
     this.LineColor.Name                  = "LineColor";
     this.LineColor.Size                  = new System.Drawing.Size(121, 22);
     this.LineColor.TabIndex              = 11;
     this.LineColor.SelectedIndexChanged += new System.EventHandler(this.ControlChange);
     //
     // label7
     //
     this.label7.Location  = new System.Drawing.Point(32, 115);
     this.label7.Name      = "label7";
     this.label7.Size      = new System.Drawing.Size(136, 16);
     this.label7.TabIndex  = 10;
     this.label7.Text      = " Line &Color:";
     this.label7.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // MarkerStyleCombo
     //
     this.MarkerStyleCombo.DropDownStyle         = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.MarkerStyleCombo.Location              = new System.Drawing.Point(168, 184);
     this.MarkerStyleCombo.Name                  = "MarkerStyleCombo";
     this.MarkerStyleCombo.Size                  = new System.Drawing.Size(121, 22);
     this.MarkerStyleCombo.TabIndex              = 7;
     this.MarkerStyleCombo.SelectedIndexChanged += new System.EventHandler(this.ControlChange);
     //
     // label3
     //
     this.label3.Location  = new System.Drawing.Point(32, 187);
     this.label3.Name      = "label3";
     this.label3.Size      = new System.Drawing.Size(136, 16);
     this.label3.TabIndex  = 6;
     this.label3.Text      = "&Marker Style:";
     this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // LineDashStyle
     //
     this.LineDashStyle.DropDownStyle         = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.LineDashStyle.Location              = new System.Drawing.Point(168, 80);
     this.LineDashStyle.Name                  = "LineDashStyle";
     this.LineDashStyle.Size                  = new System.Drawing.Size(121, 22);
     this.LineDashStyle.TabIndex              = 5;
     this.LineDashStyle.SelectedIndexChanged += new System.EventHandler(this.ControlChange);
     //
     // label2
     //
     this.label2.Location  = new System.Drawing.Point(32, 83);
     this.label2.Name      = "label2";
     this.label2.Size      = new System.Drawing.Size(136, 16);
     this.label2.TabIndex  = 4;
     this.label2.Text      = " &Line Style:";
     this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // Chart1
     //
     this.Chart1.BackColor                   = System.Drawing.Color.WhiteSmoke;
     this.Chart1.BackGradientStyle           = System.Windows.Forms.DataVisualization.Charting.GradientStyle.TopBottom;
     this.Chart1.BackSecondaryColor          = System.Drawing.Color.White;
     this.Chart1.BorderlineColor             = System.Drawing.Color.FromArgb(((int)(((byte)(26)))), ((int)(((byte)(59)))), ((int)(((byte)(105)))));
     this.Chart1.BorderlineDashStyle         = System.Windows.Forms.DataVisualization.Charting.ChartDashStyle.Solid;
     this.Chart1.BorderlineWidth             = 2;
     this.Chart1.BorderSkin.SkinStyle        = System.Windows.Forms.DataVisualization.Charting.BorderSkinStyle.Emboss;
     chartArea1.Area3DStyle.Inclination      = 15;
     chartArea1.Area3DStyle.IsClustered      = true;
     chartArea1.Area3DStyle.IsRightAngleAxes = false;
     chartArea1.Area3DStyle.Perspective      = 10;
     chartArea1.Area3DStyle.Rotation         = 10;
     chartArea1.Area3DStyle.WallWidth        = 0;
     chartArea1.AxisX.LabelAutoFitStyle      = ((System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles)((((System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles.DecreaseFont | System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles.StaggeredLabels)
                                                                                                                       | System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles.LabelsAngleStep30)
                                                                                                                      | System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles.WordWrap)));
     chartArea1.AxisX.LabelStyle.Font     = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold);
     chartArea1.AxisX.LabelStyle.Format   = "#";
     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", 10F, System.Drawing.FontStyle.Bold);
     chartArea1.AxisX2.Enabled            = System.Windows.Forms.DataVisualization.Charting.AxisEnabled.False;
     chartArea1.AxisX2.MajorGrid.Enabled  = false;
     chartArea1.AxisY.LabelAutoFitStyle   = ((System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles)((((System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles.DecreaseFont | System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles.StaggeredLabels)
                                                                                                                    | System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles.LabelsAngleStep30)
                                                                                                                   | System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles.WordWrap)));
     chartArea1.AxisY.LabelStyle.Font     = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold);
     chartArea1.AxisY.LineColor           = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
     chartArea1.AxisY.MajorGrid.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
     chartArea1.AxisY2.Enabled            = System.Windows.Forms.DataVisualization.Charting.AxisEnabled.False;
     chartArea1.AxisY2.MajorGrid.Enabled  = false;
     chartArea1.BackColor          = System.Drawing.Color.Gainsboro;
     chartArea1.BackGradientStyle  = System.Windows.Forms.DataVisualization.Charting.GradientStyle.TopBottom;
     chartArea1.BackSecondaryColor = System.Drawing.Color.White;
     chartArea1.BorderColor        = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
     chartArea1.BorderDashStyle    = System.Windows.Forms.DataVisualization.Charting.ChartDashStyle.Solid;
     chartArea1.Name        = "Default";
     chartArea1.ShadowColor = System.Drawing.Color.Transparent;
     this.Chart1.ChartAreas.Add(chartArea1);
     legend1.BackColor     = System.Drawing.Color.Transparent;
     legend1.Enabled       = false;
     legend1.Font          = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold);
     legend1.IsTextAutoFit = false;
     legend1.Name          = "Default";
     this.Chart1.Legends.Add(legend1);
     this.Chart1.Location = new System.Drawing.Point(16, 65);
     this.Chart1.Name     = "Chart1";
     series1.BorderColor  = System.Drawing.Color.FromArgb(((int)(((byte)(180)))), ((int)(((byte)(26)))), ((int)(((byte)(59)))), ((int)(((byte)(105)))));
     series1.BorderWidth  = 2;
     series1.ChartArea    = "Default";
     series1.ChartType    = System.Windows.Forms.DataVisualization.Charting.SeriesChartType.Line;
     series1.Legend       = "Default";
     series1.Name         = "Default";
     series1.Points.Add(dataPoint1);
     series1.Points.Add(dataPoint2);
     series1.Points.Add(dataPoint3);
     series1.Points.Add(dataPoint4);
     series1.Points.Add(dataPoint5);
     series1.ShadowOffset = 1;
     this.Chart1.Series.Add(series1);
     this.Chart1.Size     = new System.Drawing.Size(412, 296);
     this.Chart1.TabIndex = 1;
     //
     // label1
     //
     this.label1.Font     = new System.Drawing.Font("Verdana", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label1.Location = new System.Drawing.Point(16, 373);
     this.label1.Name     = "label1";
     this.label1.Size     = new System.Drawing.Size(702, 43);
     this.label1.TabIndex = 3;
     this.label1.Text     = "The custom attribute EmptyPointValue determines if�empty points are treated as ze" +
                            "ros or as an average value between neighboring points.";
     this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // EmptyPointAppearance
     //
     this.Controls.Add(this.label1);
     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 = "EmptyPointAppearance";
     this.Size = new System.Drawing.Size(728, 480);
     this.panel1.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.Chart1)).EndInit();
     this.ResumeLayout(false);
 }
Example #34
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.StripLine stripLine1  = new System.Windows.Forms.DataVisualization.Charting.StripLine();
     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, 400);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint2  = new System.Windows.Forms.DataVisualization.Charting.DataPoint(2, 200);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint3  = new System.Windows.Forms.DataVisualization.Charting.DataPoint(3, 700);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint4  = new System.Windows.Forms.DataVisualization.Charting.DataPoint(4, 300);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint5  = new System.Windows.Forms.DataVisualization.Charting.DataPoint(5, 450);
     System.Windows.Forms.DataVisualization.Charting.Series    series2     = new System.Windows.Forms.DataVisualization.Charting.Series();
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint6  = new System.Windows.Forms.DataVisualization.Charting.DataPoint(1, 200);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint7  = new System.Windows.Forms.DataVisualization.Charting.DataPoint(2, 300);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint8  = new System.Windows.Forms.DataVisualization.Charting.DataPoint(3, 350);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint9  = new System.Windows.Forms.DataVisualization.Charting.DataPoint(4, 80);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint10 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(5, 400);
     System.Windows.Forms.DataVisualization.Charting.Series    series3     = new System.Windows.Forms.DataVisualization.Charting.Series();
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint11 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(1, 500);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint12 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(2, 120);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint13 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(3, 300);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint14 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(4, 50);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint15 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(5, 130);
     this.TheFont           = new System.Windows.Forms.ComboBox();
     this.FontColorCombo    = new System.Windows.Forms.ComboBox();
     this.TitlePosition     = 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.label2            = new System.Windows.Forms.Label();
     this.TitleLinePosition = new System.Windows.Forms.ComboBox();
     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.AntiAliasingCheck = 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(168, 104);
     this.TheFont.Name                  = "TheFont";
     this.TheFont.Size                  = new System.Drawing.Size(116, 22);
     this.TheFont.TabIndex              = 7;
     this.TheFont.SelectedIndexChanged += new System.EventHandler(this.ControlChange);
     //
     // FontColorCombo
     //
     this.FontColorCombo.DropDownStyle         = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.FontColorCombo.Location              = new System.Drawing.Point(168, 168);
     this.FontColorCombo.Name                  = "FontColorCombo";
     this.FontColorCombo.Size                  = new System.Drawing.Size(116, 22);
     this.FontColorCombo.TabIndex              = 11;
     this.FontColorCombo.SelectedIndexChanged += new System.EventHandler(this.ControlChange);
     //
     // TitlePosition
     //
     this.TitlePosition.DropDownStyle         = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.TitlePosition.Location              = new System.Drawing.Point(168, 40);
     this.TitlePosition.Name                  = "TitlePosition";
     this.TitlePosition.Size                  = new System.Drawing.Size(116, 22);
     this.TitlePosition.TabIndex              = 3;
     this.TitlePosition.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(168, 136);
     this.FontSize.Name                  = "FontSize";
     this.FontSize.Size                  = new System.Drawing.Size(116, 22);
     this.FontSize.TabIndex              = 9;
     this.FontSize.SelectedIndexChanged += new System.EventHandler(this.ControlChange);
     //
     // label5
     //
     this.label5.Location  = new System.Drawing.Point(20, 107);
     this.label5.Name      = "label5";
     this.label5.Size      = new System.Drawing.Size(144, 16);
     this.label5.TabIndex  = 6;
     this.label5.Text      = "&Font:";
     this.label5.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // label6
     //
     this.label6.Location  = new System.Drawing.Point(20, 43);
     this.label6.Name      = "label6";
     this.label6.Size      = new System.Drawing.Size(144, 16);
     this.label6.TabIndex  = 2;
     this.label6.Text      = "Horizontal &Alignment:";
     this.label6.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // label7
     //
     this.label7.Location  = new System.Drawing.Point(20, 171);
     this.label7.Name      = "label7";
     this.label7.Size      = new System.Drawing.Size(144, 16);
     this.label7.TabIndex  = 10;
     this.label7.Text      = "Font &Color:";
     this.label7.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // label8
     //
     this.label8.Location  = new System.Drawing.Point(20, 139);
     this.label8.Name      = "label8";
     this.label8.Size      = new System.Drawing.Size(144, 16);
     this.label8.TabIndex  = 8;
     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 a StripLine object\'s title.";
     this.label9.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // panel1
     //
     this.panel1.Controls.Add(this.label2);
     this.panel1.Controls.Add(this.TitleLinePosition);
     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.TitlePosition);
     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.Controls.Add(this.AntiAliasingCheck);
     this.panel1.Location = new System.Drawing.Point(432, 56);
     this.panel1.Name     = "panel1";
     this.panel1.Size     = new System.Drawing.Size(292, 360);
     this.panel1.TabIndex = 2;
     //
     // label2
     //
     this.label2.Location  = new System.Drawing.Point(20, 7);
     this.label2.Name      = "label2";
     this.label2.Size      = new System.Drawing.Size(144, 16);
     this.label2.TabIndex  = 0;
     this.label2.Text      = "Title &Text:";
     this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // TitleLinePosition
     //
     this.TitleLinePosition.DropDownStyle         = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.TitleLinePosition.Location              = new System.Drawing.Point(168, 72);
     this.TitleLinePosition.Name                  = "TitleLinePosition";
     this.TitleLinePosition.Size                  = new System.Drawing.Size(116, 22);
     this.TitleLinePosition.TabIndex              = 5;
     this.TitleLinePosition.SelectedIndexChanged += new System.EventHandler(this.ControlChange);
     //
     // label1
     //
     this.label1.Location  = new System.Drawing.Point(20, 75);
     this.label1.Name      = "label1";
     this.label1.Size      = new System.Drawing.Size(144, 16);
     this.label1.TabIndex  = 4;
     this.label1.Text      = "&Vertical Alignment:";
     this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // StrikeoutCheck
     //
     this.StrikeoutCheck.CheckAlign      = System.Drawing.ContentAlignment.MiddleRight;
     this.StrikeoutCheck.Location        = new System.Drawing.Point(19, 296);
     this.StrikeoutCheck.Name            = "StrikeoutCheck";
     this.StrikeoutCheck.Size            = new System.Drawing.Size(162, 24);
     this.StrikeoutCheck.TabIndex        = 15;
     this.StrikeoutCheck.Text            = "S&trikeout:";
     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(19, 264);
     this.UnderlineCheck.Name            = "UnderlineCheck";
     this.UnderlineCheck.Size            = new System.Drawing.Size(162, 24);
     this.UnderlineCheck.TabIndex        = 14;
     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(19, 232);
     this.BoldCheck.Name            = "BoldCheck";
     this.BoldCheck.Size            = new System.Drawing.Size(162, 24);
     this.BoldCheck.TabIndex        = 13;
     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(116, 22);
     this.Title.TabIndex     = 1;
     this.Title.Text         = "Strip Line Title";
     this.Title.TextChanged += new System.EventHandler(this.ControlChange);
     //
     // ItalicCheck
     //
     this.ItalicCheck.CheckAlign      = System.Drawing.ContentAlignment.MiddleRight;
     this.ItalicCheck.Location        = new System.Drawing.Point(19, 200);
     this.ItalicCheck.Name            = "ItalicCheck";
     this.ItalicCheck.Size            = new System.Drawing.Size(162, 24);
     this.ItalicCheck.TabIndex        = 12;
     this.ItalicCheck.Text            = "&Italic:";
     this.ItalicCheck.TextAlign       = System.Drawing.ContentAlignment.MiddleRight;
     this.ItalicCheck.CheckedChanged += new System.EventHandler(this.ControlChange);
     //
     // AntiAliasingCheck
     //
     this.AntiAliasingCheck.CheckAlign      = System.Drawing.ContentAlignment.MiddleRight;
     this.AntiAliasingCheck.Checked         = true;
     this.AntiAliasingCheck.CheckState      = System.Windows.Forms.CheckState.Checked;
     this.AntiAliasingCheck.Location        = new System.Drawing.Point(16, 328);
     this.AntiAliasingCheck.Name            = "AntiAliasingCheck";
     this.AntiAliasingCheck.Size            = new System.Drawing.Size(162, 24);
     this.AntiAliasingCheck.TabIndex        = 16;
     this.AntiAliasingCheck.Text            = "Anti Alia&sing:";
     this.AntiAliasingCheck.TextAlign       = System.Drawing.ContentAlignment.MiddleRight;
     this.AntiAliasingCheck.CheckedChanged += new System.EventHandler(this.ControlChange);
     //
     // 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;
     chartArea1.AxisX.IsLabelAutoFit         = false;
     chartArea1.AxisX.LabelStyle.Font        = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold);
     chartArea1.AxisX.LineColor              = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
     chartArea1.AxisX.MajorGrid.LineColor    = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
     stripLine1.BackColor      = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(191)))), ((int)(((byte)(191)))), ((int)(((byte)(191)))));
     stripLine1.Interval       = 3;
     stripLine1.IntervalOffset = 0.5;
     stripLine1.StripWidth     = 2;
     chartArea1.AxisX.StripLines.Add(stripLine1);
     chartArea1.AxisX2.MajorGrid.Enabled  = false;
     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.AxisY2.MajorGrid.Enabled  = false;
     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.Enabled   = false;
     legend1.Name      = "Default";
     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.BorderWidth  = 3;
     series1.ChartArea    = "Default";
     series1.ChartType    = System.Windows.Forms.DataVisualization.Charting.SeriesChartType.Line;
     series1.Legend       = "Default";
     series1.Name         = "Default";
     series1.Points.Add(dataPoint1);
     series1.Points.Add(dataPoint2);
     series1.Points.Add(dataPoint3);
     series1.Points.Add(dataPoint4);
     series1.Points.Add(dataPoint5);
     series1.ShadowColor = System.Drawing.Color.Transparent;
     series1.XValueType  = System.Windows.Forms.DataVisualization.Charting.ChartValueType.Double;
     series1.YValueType  = System.Windows.Forms.DataVisualization.Charting.ChartValueType.Double;
     series2.BorderWidth = 3;
     series2.ChartArea   = "Default";
     series2.ChartType   = System.Windows.Forms.DataVisualization.Charting.SeriesChartType.Line;
     series2.Legend      = "Default";
     series2.Name        = "Series2";
     series2.Points.Add(dataPoint6);
     series2.Points.Add(dataPoint7);
     series2.Points.Add(dataPoint8);
     series2.Points.Add(dataPoint9);
     series2.Points.Add(dataPoint10);
     series3.BorderWidth = 3;
     series3.ChartArea   = "Default";
     series3.ChartType   = System.Windows.Forms.DataVisualization.Charting.SeriesChartType.Line;
     series3.Legend      = "Default";
     series3.Name        = "Series3";
     series3.Points.Add(dataPoint11);
     series3.Points.Add(dataPoint12);
     series3.Points.Add(dataPoint13);
     series3.Points.Add(dataPoint14);
     series3.Points.Add(dataPoint15);
     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;
     //
     // StripLineTitle
     //
     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 = "StripLineTitle";
     this.Size = new System.Drawing.Size(728, 480);
     this.panel1.ResumeLayout(false);
     this.panel1.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.Chart1)).EndInit();
     this.ResumeLayout(false);
 }
Example #35
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.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(0, "15,8");
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint2  = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, "18,14");
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint3  = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, "15,8");
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint4  = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, "16,13");
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint5  = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, "14,11");
     System.Windows.Forms.DataVisualization.Charting.Series    series2     = new System.Windows.Forms.DataVisualization.Charting.Series();
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint6  = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, "9,15");
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint7  = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, "8,14");
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint8  = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, "12,10");
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint9  = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, "9,14");
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint10 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, "7,12");
     System.Windows.Forms.DataVisualization.Charting.Title     title1      = new System.Windows.Forms.DataVisualization.Charting.Title();
     this.chart1                  = new System.Windows.Forms.DataVisualization.Charting.Chart();
     this.labelSampleComment      = new System.Windows.Forms.Label();
     this.panel1                  = new System.Windows.Forms.Panel();
     this.checkBoxShow3D          = new System.Windows.Forms.CheckBox();
     this.checkBoxShowSizeInLabel = new System.Windows.Forms.CheckBox();
     this.comboBoxMinScale        = new System.Windows.Forms.ComboBox();
     this.label4                  = new System.Windows.Forms.Label();
     this.comboBoxMaxScale        = new System.Windows.Forms.ComboBox();
     this.label3                  = new System.Windows.Forms.Label();
     this.comboBoxMaxSize         = new System.Windows.Forms.ComboBox();
     this.label2                  = new System.Windows.Forms.Label();
     this.comboBoxShape           = new System.Windows.Forms.ComboBox();
     this.label1                  = new System.Windows.Forms.Label();
     ((System.ComponentModel.ISupportInitialize)(this.chart1)).BeginInit();
     this.panel1.SuspendLayout();
     this.SuspendLayout();
     //
     // chart1
     //
     this.chart1.BackColor                   = System.Drawing.Color.FromArgb(((int)(((byte)(243)))), ((int)(((byte)(223)))), ((int)(((byte)(193)))));
     this.chart1.BackGradientStyle           = System.Windows.Forms.DataVisualization.Charting.GradientStyle.TopBottom;
     this.chart1.BorderlineColor             = System.Drawing.Color.FromArgb(((int)(((byte)(181)))), ((int)(((byte)(64)))), ((int)(((byte)(1)))));
     this.chart1.BorderlineDashStyle         = System.Windows.Forms.DataVisualization.Charting.ChartDashStyle.Solid;
     this.chart1.BorderlineWidth             = 2;
     this.chart1.BorderSkin.SkinStyle        = System.Windows.Forms.DataVisualization.Charting.BorderSkinStyle.Emboss;
     chartArea1.Area3DStyle.Enable3D         = true;
     chartArea1.Area3DStyle.Inclination      = 15;
     chartArea1.Area3DStyle.IsClustered      = true;
     chartArea1.Area3DStyle.IsRightAngleAxes = false;
     chartArea1.Area3DStyle.Perspective      = 10;
     chartArea1.Area3DStyle.Rotation         = 10;
     chartArea1.Area3DStyle.WallWidth        = 0;
     chartArea1.AxisX.LabelStyle.Font        = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold);
     chartArea1.AxisX.LineColor              = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
     chartArea1.AxisX.MajorGrid.LineColor    = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
     chartArea1.AxisY.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.BorderDashStyle    = System.Windows.Forms.DataVisualization.Charting.ChartDashStyle.Solid;
     chartArea1.Name        = "Default";
     chartArea1.ShadowColor = System.Drawing.Color.Transparent;
     this.chart1.ChartAreas.Add(chartArea1);
     legend1.BackColor     = System.Drawing.Color.Transparent;
     legend1.Enabled       = false;
     legend1.Font          = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold);
     legend1.IsTextAutoFit = false;
     legend1.Name          = "Default";
     this.chart1.Legends.Add(legend1);
     this.chart1.Location        = new System.Drawing.Point(16, 63);
     this.chart1.Name            = "chart1";
     series1.BorderColor         = System.Drawing.Color.FromArgb(((int)(((byte)(180)))), ((int)(((byte)(26)))), ((int)(((byte)(59)))), ((int)(((byte)(105)))));
     series1.ChartArea           = "Default";
     series1.ChartType           = System.Windows.Forms.DataVisualization.Charting.SeriesChartType.Bubble;
     series1.Color               = System.Drawing.Color.FromArgb(((int)(((byte)(220)))), ((int)(((byte)(65)))), ((int)(((byte)(140)))), ((int)(((byte)(240)))));
     series1.Font                = new System.Drawing.Font("Trebuchet MS", 9F);
     series1.IsValueShownAsLabel = true;
     series1.Legend              = "Default";
     series1.Name                = "Default";
     series1.Points.Add(dataPoint1);
     series1.Points.Add(dataPoint2);
     series1.Points.Add(dataPoint3);
     series1.Points.Add(dataPoint4);
     series1.Points.Add(dataPoint5);
     series1.YValuesPerPoint     = 2;
     series2.BorderColor         = System.Drawing.Color.FromArgb(((int)(((byte)(180)))), ((int)(((byte)(26)))), ((int)(((byte)(59)))), ((int)(((byte)(105)))));
     series2.ChartArea           = "Default";
     series2.ChartType           = System.Windows.Forms.DataVisualization.Charting.SeriesChartType.Bubble;
     series2.Color               = System.Drawing.Color.FromArgb(((int)(((byte)(220)))), ((int)(((byte)(255)))), ((int)(((byte)(64)))), ((int)(((byte)(10)))));
     series2.Font                = new System.Drawing.Font("Trebuchet MS", 9F);
     series2.IsValueShownAsLabel = true;
     series2.Legend              = "Default";
     series2.Name                = "Series2";
     series2.Points.Add(dataPoint6);
     series2.Points.Add(dataPoint7);
     series2.Points.Add(dataPoint8);
     series2.Points.Add(dataPoint9);
     series2.Points.Add(dataPoint10);
     series2.YValuesPerPoint = 2;
     this.chart1.Series.Add(series1);
     this.chart1.Series.Add(series2);
     this.chart1.Size     = new System.Drawing.Size(412, 296);
     this.chart1.TabIndex = 0;
     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          = "Bubble Chart";
     this.chart1.Titles.Add(title1);
     //
     // labelSampleComment
     //
     this.labelSampleComment.Font     = new System.Drawing.Font("Verdana", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.labelSampleComment.Location = new System.Drawing.Point(16, 0);
     this.labelSampleComment.Name     = "labelSampleComment";
     this.labelSampleComment.Size     = new System.Drawing.Size(702, 56);
     this.labelSampleComment.TabIndex = 2;
     this.labelSampleComment.Text     = "This sample displays a Bubble chart that uses different shapes, including an imag" +
                                        "e, for the bubble. It demonstrates how to control the maximum bubble size and sc" +
                                        "ale as well as how to enable 3D.";
     this.labelSampleComment.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // panel1
     //
     this.panel1.Controls.Add(this.checkBoxShow3D);
     this.panel1.Controls.Add(this.checkBoxShowSizeInLabel);
     this.panel1.Controls.Add(this.comboBoxMinScale);
     this.panel1.Controls.Add(this.label4);
     this.panel1.Controls.Add(this.comboBoxMaxScale);
     this.panel1.Controls.Add(this.label3);
     this.panel1.Controls.Add(this.comboBoxMaxSize);
     this.panel1.Controls.Add(this.label2);
     this.panel1.Controls.Add(this.comboBoxShape);
     this.panel1.Controls.Add(this.label1);
     this.panel1.Location = new System.Drawing.Point(432, 63);
     this.panel1.Name     = "panel1";
     this.panel1.Size     = new System.Drawing.Size(292, 280);
     this.panel1.TabIndex = 1;
     //
     // checkBoxShow3D
     //
     this.checkBoxShow3D.CheckAlign      = System.Drawing.ContentAlignment.MiddleRight;
     this.checkBoxShow3D.Location        = new System.Drawing.Point(13, 170);
     this.checkBoxShow3D.Name            = "checkBoxShow3D";
     this.checkBoxShow3D.Size            = new System.Drawing.Size(168, 24);
     this.checkBoxShow3D.TabIndex        = 9;
     this.checkBoxShow3D.Text            = "Display chart as 3&D:";
     this.checkBoxShow3D.TextAlign       = System.Drawing.ContentAlignment.MiddleRight;
     this.checkBoxShow3D.CheckedChanged += new System.EventHandler(this.checkBoxShow3D_CheckedChanged);
     //
     // checkBoxShowSizeInLabel
     //
     this.checkBoxShowSizeInLabel.CheckAlign      = System.Drawing.ContentAlignment.MiddleRight;
     this.checkBoxShowSizeInLabel.Location        = new System.Drawing.Point(-27, 138);
     this.checkBoxShowSizeInLabel.Name            = "checkBoxShowSizeInLabel";
     this.checkBoxShowSizeInLabel.Size            = new System.Drawing.Size(208, 24);
     this.checkBoxShowSizeInLabel.TabIndex        = 8;
     this.checkBoxShowSizeInLabel.Text            = "Show Size in &Labels:";
     this.checkBoxShowSizeInLabel.TextAlign       = System.Drawing.ContentAlignment.MiddleRight;
     this.checkBoxShowSizeInLabel.CheckedChanged += new System.EventHandler(this.checkBoxShowSizeInLabel_CheckedChanged);
     //
     // comboBoxMinScale
     //
     this.comboBoxMinScale.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.comboBoxMinScale.Items.AddRange(new object[] {
         "Auto",
         "-4",
         "0",
         "4"
     });
     this.comboBoxMinScale.Location              = new System.Drawing.Point(168, 104);
     this.comboBoxMinScale.Name                  = "comboBoxMinScale";
     this.comboBoxMinScale.Size                  = new System.Drawing.Size(120, 22);
     this.comboBoxMinScale.TabIndex              = 7;
     this.comboBoxMinScale.SelectedIndexChanged += new System.EventHandler(this.comboBoxMaxScale_SelectedIndexChanged);
     //
     // label4
     //
     this.label4.Location  = new System.Drawing.Point(4, 104);
     this.label4.Name      = "label4";
     this.label4.Size      = new System.Drawing.Size(160, 23);
     this.label4.TabIndex  = 6;
     this.label4.Text      = "Bubble Size M&in. Scale:";
     this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // comboBoxMaxScale
     //
     this.comboBoxMaxScale.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.comboBoxMaxScale.Items.AddRange(new object[] {
         "Auto",
         "20",
         "25",
         "30",
         "40"
     });
     this.comboBoxMaxScale.Location              = new System.Drawing.Point(168, 72);
     this.comboBoxMaxScale.Name                  = "comboBoxMaxScale";
     this.comboBoxMaxScale.Size                  = new System.Drawing.Size(120, 22);
     this.comboBoxMaxScale.TabIndex              = 5;
     this.comboBoxMaxScale.SelectedIndexChanged += new System.EventHandler(this.comboBoxMaxScale_SelectedIndexChanged);
     //
     // label3
     //
     this.label3.Location  = new System.Drawing.Point(4, 72);
     this.label3.Name      = "label3";
     this.label3.Size      = new System.Drawing.Size(160, 23);
     this.label3.TabIndex  = 4;
     this.label3.Text      = "Bubble Size Ma&x. Scale:";
     this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // comboBoxMaxSize
     //
     this.comboBoxMaxSize.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.comboBoxMaxSize.Items.AddRange(new object[] {
         "5",
         "10",
         "15",
         "20",
         "25"
     });
     this.comboBoxMaxSize.Location              = new System.Drawing.Point(168, 40);
     this.comboBoxMaxSize.Name                  = "comboBoxMaxSize";
     this.comboBoxMaxSize.Size                  = new System.Drawing.Size(120, 22);
     this.comboBoxMaxSize.TabIndex              = 3;
     this.comboBoxMaxSize.SelectedIndexChanged += new System.EventHandler(this.comboBoxMaxScale_SelectedIndexChanged);
     //
     // label2
     //
     this.label2.Location  = new System.Drawing.Point(4, 40);
     this.label2.Name      = "label2";
     this.label2.Size      = new System.Drawing.Size(160, 23);
     this.label2.TabIndex  = 2;
     this.label2.Text      = "&Max. Bubble Size:";
     this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // comboBoxShape
     //
     this.comboBoxShape.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.comboBoxShape.Items.AddRange(new object[] {
         "Circle",
         "Square",
         "Diamond",
         "Triangle",
         "Cross",
         "Image"
     });
     this.comboBoxShape.Location              = new System.Drawing.Point(168, 8);
     this.comboBoxShape.Name                  = "comboBoxShape";
     this.comboBoxShape.Size                  = new System.Drawing.Size(120, 22);
     this.comboBoxShape.TabIndex              = 1;
     this.comboBoxShape.SelectedIndexChanged += new System.EventHandler(this.comboBoxMaxScale_SelectedIndexChanged);
     //
     // label1
     //
     this.label1.Location  = new System.Drawing.Point(4, 8);
     this.label1.Name      = "label1";
     this.label1.Size      = new System.Drawing.Size(160, 23);
     this.label1.TabIndex  = 0;
     this.label1.Text      = "Bubble &Shape:";
     this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // BubbleChartType
     //
     this.BackColor = System.Drawing.Color.White;
     this.Controls.Add(this.panel1);
     this.Controls.Add(this.labelSampleComment);
     this.Controls.Add(this.chart1);
     this.Font  = new System.Drawing.Font("Verdana", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.Name  = "BubbleChartType";
     this.Size  = new System.Drawing.Size(728, 392);
     this.Load += new System.EventHandler(this.BubbleChartType_Load);
     ((System.ComponentModel.ISupportInitialize)(this.chart1)).EndInit();
     this.panel1.ResumeLayout(false);
     this.ResumeLayout(false);
 }
Example #36
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.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(0, 6);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint2  = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 9);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint3  = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 5);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint4  = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 7.5);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint5  = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 5.6999998092651367);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint6  = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 7);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint7  = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 8.5);
     System.Windows.Forms.DataVisualization.Charting.Series    series2     = new System.Windows.Forms.DataVisualization.Charting.Series();
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint8  = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 6);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint9  = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 9);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint10 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 2);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint11 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 7);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint12 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 3);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint13 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 5);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint14 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 8);
     System.Windows.Forms.DataVisualization.Charting.Series    series3     = new System.Windows.Forms.DataVisualization.Charting.Series();
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint15 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 4);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint16 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 2);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint17 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 1);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint18 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 3);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint19 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 2);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint20 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 3);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint21 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 5);
     System.Windows.Forms.DataVisualization.Charting.Title     title1      = new System.Windows.Forms.DataVisualization.Charting.Title();
     this.chart1                     = new System.Windows.Forms.DataVisualization.Charting.Chart();
     this.labelSampleComment         = new System.Windows.Forms.Label();
     this.panel1                     = new System.Windows.Forms.Panel();
     this.numericUpDownPointGapDepth = new System.Windows.Forms.NumericUpDown();
     this.numericUpDownPointDepth    = new System.Windows.Forms.NumericUpDown();
     this.label3                     = new System.Windows.Forms.Label();
     this.label4                     = new System.Windows.Forms.Label();
     this.checkClustered             = new System.Windows.Forms.CheckBox();
     this.radioButtonColumn          = new System.Windows.Forms.RadioButton();
     this.radioButtonBar             = new System.Windows.Forms.RadioButton();
     this.label1                     = new System.Windows.Forms.Label();
     ((System.ComponentModel.ISupportInitialize)(this.chart1)).BeginInit();
     this.panel1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.numericUpDownPointGapDepth)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.numericUpDownPointDepth)).BeginInit();
     this.SuspendLayout();
     //
     // chart1
     //
     this.chart1.BackColor                   = System.Drawing.Color.WhiteSmoke;
     this.chart1.BackGradientStyle           = System.Windows.Forms.DataVisualization.Charting.GradientStyle.TopBottom;
     this.chart1.BackSecondaryColor          = System.Drawing.Color.White;
     this.chart1.BorderlineColor             = System.Drawing.Color.FromArgb(((int)(((byte)(26)))), ((int)(((byte)(59)))), ((int)(((byte)(105)))));
     this.chart1.BorderlineDashStyle         = System.Windows.Forms.DataVisualization.Charting.ChartDashStyle.Solid;
     this.chart1.BorderlineWidth             = 2;
     this.chart1.BorderSkin.SkinStyle        = System.Windows.Forms.DataVisualization.Charting.BorderSkinStyle.Emboss;
     chartArea1.Area3DStyle.Enable3D         = true;
     chartArea1.Area3DStyle.Inclination      = 15;
     chartArea1.Area3DStyle.IsClustered      = true;
     chartArea1.Area3DStyle.IsRightAngleAxes = false;
     chartArea1.Area3DStyle.PointGapDepth    = 0;
     chartArea1.Area3DStyle.Rotation         = 10;
     chartArea1.Area3DStyle.WallWidth        = 0;
     chartArea1.AxisX.LabelStyle.Font        = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold);
     chartArea1.AxisX.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.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.WhiteSmoke;
     chartArea1.BackSecondaryColor = System.Drawing.Color.White;
     chartArea1.BorderColor        = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
     chartArea1.Name        = "Default";
     chartArea1.ShadowColor = System.Drawing.Color.Transparent;
     this.chart1.ChartAreas.Add(chartArea1);
     this.chart1.Cursor    = System.Windows.Forms.Cursors.Hand;
     legend1.BackColor     = System.Drawing.Color.Transparent;
     legend1.Enabled       = false;
     legend1.Font          = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold);
     legend1.IsTextAutoFit = false;
     legend1.Name          = "Default";
     this.chart1.Legends.Add(legend1);
     this.chart1.Location = new System.Drawing.Point(16, 53);
     this.chart1.Name     = "chart1";
     series1.BorderColor  = System.Drawing.Color.FromArgb(((int)(((byte)(180)))), ((int)(((byte)(26)))), ((int)(((byte)(59)))), ((int)(((byte)(105)))));
     series1.ChartArea    = "Default";
     series1.Color        = System.Drawing.Color.FromArgb(((int)(((byte)(220)))), ((int)(((byte)(65)))), ((int)(((byte)(140)))), ((int)(((byte)(240)))));
     series1.Legend       = "Default";
     series1.Name         = "Default";
     series1.Points.Add(dataPoint1);
     series1.Points.Add(dataPoint2);
     series1.Points.Add(dataPoint3);
     series1.Points.Add(dataPoint4);
     series1.Points.Add(dataPoint5);
     series1.Points.Add(dataPoint6);
     series1.Points.Add(dataPoint7);
     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)(220)))), ((int)(((byte)(252)))), ((int)(((byte)(180)))), ((int)(((byte)(65)))));
     series2.Legend      = "Default";
     series2.Name        = "Series2";
     series2.Points.Add(dataPoint8);
     series2.Points.Add(dataPoint9);
     series2.Points.Add(dataPoint10);
     series2.Points.Add(dataPoint11);
     series2.Points.Add(dataPoint12);
     series2.Points.Add(dataPoint13);
     series2.Points.Add(dataPoint14);
     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)(220)))), ((int)(((byte)(224)))), ((int)(((byte)(64)))), ((int)(((byte)(10)))));
     series3.Legend      = "Default";
     series3.Name        = "Series3";
     series3.Points.Add(dataPoint15);
     series3.Points.Add(dataPoint16);
     series3.Points.Add(dataPoint17);
     series3.Points.Add(dataPoint18);
     series3.Points.Add(dataPoint19);
     series3.Points.Add(dataPoint20);
     series3.Points.Add(dataPoint21);
     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.Font          = new System.Drawing.Font("Trebuchet MS", 14.25F, System.Drawing.FontStyle.Bold);
     title1.ForeColor     = System.Drawing.Color.FromArgb(((int)(((byte)(26)))), ((int)(((byte)(59)))), ((int)(((byte)(105)))));
     title1.Name          = "Title1";
     title1.ShadowColor   = System.Drawing.Color.FromArgb(((int)(((byte)(32)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))));
     title1.ShadowOffset  = 3;
     title1.Text          = "3D Cylinder";
     this.chart1.Titles.Add(title1);
     this.chart1.MouseUp   += new System.Windows.Forms.MouseEventHandler(this.chart1_MouseUp);
     this.chart1.MouseMove += new System.Windows.Forms.MouseEventHandler(this.chart1_MouseMove);
     this.chart1.MouseDown += new System.Windows.Forms.MouseEventHandler(this.chart1_MouseDown);
     //
     // labelSampleComment
     //
     this.labelSampleComment.Font     = new System.Drawing.Font("Verdana", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.labelSampleComment.Location = new System.Drawing.Point(16, 8);
     this.labelSampleComment.Name     = "labelSampleComment";
     this.labelSampleComment.Size     = new System.Drawing.Size(702, 37);
     this.labelSampleComment.TabIndex = 0;
     this.labelSampleComment.Text     = "This sample demonstrates how to display 3D Bar and Column charts as cylinders. Cy" +
                                        "linders may be applied to an entire data series or to specific points within a s" +
                                        "eries. ";
     this.labelSampleComment.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // panel1
     //
     this.panel1.Controls.Add(this.numericUpDownPointGapDepth);
     this.panel1.Controls.Add(this.numericUpDownPointDepth);
     this.panel1.Controls.Add(this.label3);
     this.panel1.Controls.Add(this.label4);
     this.panel1.Controls.Add(this.checkClustered);
     this.panel1.Controls.Add(this.radioButtonColumn);
     this.panel1.Controls.Add(this.radioButtonBar);
     this.panel1.Location = new System.Drawing.Point(432, 61);
     this.panel1.Name     = "panel1";
     this.panel1.Size     = new System.Drawing.Size(292, 280);
     this.panel1.TabIndex = 2;
     //
     // numericUpDownPointGapDepth
     //
     this.numericUpDownPointGapDepth.Increment = new decimal(new int[] {
         50,
         0,
         0,
         0
     });
     this.numericUpDownPointGapDepth.Location = new System.Drawing.Point(168, 136);
     this.numericUpDownPointGapDepth.Maximum  = new decimal(new int[] {
         1000,
         0,
         0,
         0
     });
     this.numericUpDownPointGapDepth.Name     = "numericUpDownPointGapDepth";
     this.numericUpDownPointGapDepth.Size     = new System.Drawing.Size(56, 22);
     this.numericUpDownPointGapDepth.TabIndex = 6;
     this.numericUpDownPointGapDepth.Value    = new decimal(new int[] {
         100,
         0,
         0,
         0
     });
     this.numericUpDownPointGapDepth.ValueChanged += new System.EventHandler(this.numericUpDownPointGapDepth_ValueChanged);
     //
     // numericUpDownPointDepth
     //
     this.numericUpDownPointDepth.Increment = new decimal(new int[] {
         25,
         0,
         0,
         0
     });
     this.numericUpDownPointDepth.Location = new System.Drawing.Point(168, 104);
     this.numericUpDownPointDepth.Maximum  = new decimal(new int[] {
         1000,
         0,
         0,
         0
     });
     this.numericUpDownPointDepth.Name     = "numericUpDownPointDepth";
     this.numericUpDownPointDepth.Size     = new System.Drawing.Size(56, 22);
     this.numericUpDownPointDepth.TabIndex = 4;
     this.numericUpDownPointDepth.Value    = new decimal(new int[] {
         100,
         0,
         0,
         0
     });
     this.numericUpDownPointDepth.ValueChanged += new System.EventHandler(this.numericUpDownPointDepth_ValueChanged);
     //
     // label3
     //
     this.label3.Location  = new System.Drawing.Point(18, 136);
     this.label3.Name      = "label3";
     this.label3.Size      = new System.Drawing.Size(144, 23);
     this.label3.TabIndex  = 5;
     this.label3.Text      = "&Gap Depth:";
     this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // label4
     //
     this.label4.Location  = new System.Drawing.Point(10, 104);
     this.label4.Name      = "label4";
     this.label4.Size      = new System.Drawing.Size(152, 23);
     this.label4.TabIndex  = 3;
     this.label4.Text      = "Point &Depth:";
     this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // checkClustered
     //
     this.checkClustered.CheckAlign      = System.Drawing.ContentAlignment.MiddleRight;
     this.checkClustered.Checked         = true;
     this.checkClustered.CheckState      = System.Windows.Forms.CheckState.Checked;
     this.checkClustered.Location        = new System.Drawing.Point(45, 72);
     this.checkClustered.Name            = "checkClustered";
     this.checkClustered.Size            = new System.Drawing.Size(136, 24);
     this.checkClustered.TabIndex        = 2;
     this.checkClustered.Text            = "C&lustered:";
     this.checkClustered.TextAlign       = System.Drawing.ContentAlignment.MiddleRight;
     this.checkClustered.CheckedChanged += new System.EventHandler(this.checkClustered_CheckedChanged);
     //
     // radioButtonColumn
     //
     this.radioButtonColumn.CheckAlign      = System.Drawing.ContentAlignment.MiddleRight;
     this.radioButtonColumn.Checked         = true;
     this.radioButtonColumn.Location        = new System.Drawing.Point(13, 40);
     this.radioButtonColumn.Name            = "radioButtonColumn";
     this.radioButtonColumn.Size            = new System.Drawing.Size(168, 24);
     this.radioButtonColumn.TabIndex        = 1;
     this.radioButtonColumn.TabStop         = true;
     this.radioButtonColumn.Text            = "3D &Column Cylinder:";
     this.radioButtonColumn.TextAlign       = System.Drawing.ContentAlignment.MiddleRight;
     this.radioButtonColumn.CheckedChanged += new System.EventHandler(this.radioButtonColumn_CheckedChanged);
     //
     // radioButtonBar
     //
     this.radioButtonBar.CheckAlign      = System.Drawing.ContentAlignment.MiddleRight;
     this.radioButtonBar.Location        = new System.Drawing.Point(29, 8);
     this.radioButtonBar.Name            = "radioButtonBar";
     this.radioButtonBar.Size            = new System.Drawing.Size(152, 24);
     this.radioButtonBar.TabIndex        = 0;
     this.radioButtonBar.Text            = "3D &Bar Cylinder:";
     this.radioButtonBar.TextAlign       = System.Drawing.ContentAlignment.MiddleRight;
     this.radioButtonBar.CheckedChanged += new System.EventHandler(this.radioButtonBar_CheckedChanged);
     //
     // label1
     //
     this.label1.Font      = new System.Drawing.Font("Verdana", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label1.Location  = new System.Drawing.Point(16, 349);
     this.label1.Name      = "label1";
     this.label1.Size      = new System.Drawing.Size(702, 32);
     this.label1.TabIndex  = 3;
     this.label1.Text      = "Click on the chart and drag the mouse to rotate the chart.";
     this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // Cylinder3D
     //
     this.BackColor = System.Drawing.Color.White;
     this.Controls.Add(this.label1);
     this.Controls.Add(this.panel1);
     this.Controls.Add(this.labelSampleComment);
     this.Controls.Add(this.chart1);
     this.Font  = new System.Drawing.Font("Verdana", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.Name  = "Cylinder3D";
     this.Size  = new System.Drawing.Size(728, 480);
     this.Load += new System.EventHandler(this.Cylinder3D_Load);
     ((System.ComponentModel.ISupportInitialize)(this.chart1)).EndInit();
     this.panel1.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.numericUpDownPointGapDepth)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.numericUpDownPointDepth)).EndInit();
     this.ResumeLayout(false);
 }
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     System.Windows.Forms.DataVisualization.Charting.ChartArea chartArea1 = new System.Windows.Forms.DataVisualization.Charting.ChartArea();
     System.Windows.Forms.DataVisualization.Charting.Legend    legend1    = new System.Windows.Forms.DataVisualization.Charting.Legend();
     System.Windows.Forms.DataVisualization.Charting.Series    series1    = new System.Windows.Forms.DataVisualization.Charting.Series();
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint1 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(1, 578);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint2 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(2, 220);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint3 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(3, 890);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint4 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(4, 725);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint5 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(5, 350);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint6 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(6, 100);
     this.label9            = new System.Windows.Forms.Label();
     this.panel1            = new System.Windows.Forms.Panel();
     this.comboBoxChartType = 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", 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, 40);
     this.label9.TabIndex = 0;
     this.label9.Text     = "This sample demonstrates how to interactively change series data values. Click an" +
                            "d drag the data points within the plot area.";
     this.label9.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // panel1
     //
     this.panel1.Controls.Add(this.comboBoxChartType);
     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 = 19;
     //
     // comboBoxChartType
     //
     this.comboBoxChartType.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.comboBoxChartType.Items.AddRange(new object[] {
         "Point",
         "Line",
         "Spline",
         "Column",
         "Cylinder",
         "Area",
         "SplineArea"
     });
     this.comboBoxChartType.Location              = new System.Drawing.Point(168, 8);
     this.comboBoxChartType.Name                  = "comboBoxChartType";
     this.comboBoxChartType.Size                  = new System.Drawing.Size(120, 22);
     this.comboBoxChartType.TabIndex              = 9;
     this.comboBoxChartType.SelectedIndexChanged += new System.EventHandler(this.comboBoxChartType_SelectedIndexChanged);
     //
     // label1
     //
     this.label1.Location  = new System.Drawing.Point(24, 8);
     this.label1.Name      = "label1";
     this.label1.Size      = new System.Drawing.Size(136, 23);
     this.label1.TabIndex  = 8;
     this.label1.Text      = "Chart &Type:";
     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 = 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:";
     //
     // 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.WhiteSmoke;
     this.Chart1.BackGradientStyle      = System.Windows.Forms.DataVisualization.Charting.GradientStyle.TopBottom;
     this.Chart1.BackSecondaryColor     = System.Drawing.Color.White;
     this.Chart1.BorderlineColor        = System.Drawing.Color.FromArgb(((int)(((byte)(26)))), ((int)(((byte)(59)))), ((int)(((byte)(105)))));
     this.Chart1.BorderlineDashStyle    = System.Windows.Forms.DataVisualization.Charting.ChartDashStyle.Solid;
     this.Chart1.BorderlineWidth        = 2;
     this.Chart1.BorderSkin.SkinStyle   = System.Windows.Forms.DataVisualization.Charting.BorderSkinStyle.Emboss;
     chartArea1.Area3DStyle.Enable3D    = true;
     chartArea1.Area3DStyle.Inclination = 15;
     chartArea1.Area3DStyle.IsClustered = true;
     chartArea1.Area3DStyle.LightStyle  = System.Windows.Forms.DataVisualization.Charting.LightStyle.Realistic;
     chartArea1.Area3DStyle.Rotation    = 10;
     chartArea1.Area3DStyle.WallWidth   = 0;
     chartArea1.AxisX.LabelAutoFitStyle = ((System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles)((((System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles.IncreaseFont | System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles.DecreaseFont)
                                                                                                                  | System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles.LabelsAngleStep30)
                                                                                                                 | System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles.WordWrap)));
     chartArea1.AxisX.LabelStyle.Font        = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold);
     chartArea1.AxisX.LabelStyle.IsStaggered = true;
     chartArea1.AxisX.LineColor           = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
     chartArea1.AxisX.MajorGrid.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
     chartArea1.AxisX2.LabelStyle.Enabled = false;
     chartArea1.AxisX2.MajorGrid.Enabled  = false;
     chartArea1.AxisX2.MajorTickMark.Size = 2F;
     chartArea1.AxisY.LabelStyle.Font     = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold);
     chartArea1.AxisY.LineColor           = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
     chartArea1.AxisY.MajorGrid.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
     chartArea1.AxisY2.Enabled            = System.Windows.Forms.DataVisualization.Charting.AxisEnabled.False;
     chartArea1.BackColor          = System.Drawing.Color.WhiteSmoke;
     chartArea1.BackSecondaryColor = System.Drawing.Color.White;
     chartArea1.BorderColor        = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
     chartArea1.BorderDashStyle    = System.Windows.Forms.DataVisualization.Charting.ChartDashStyle.Solid;
     chartArea1.Name        = "Default";
     chartArea1.ShadowColor = System.Drawing.Color.Transparent;
     this.Chart1.ChartAreas.Add(chartArea1);
     legend1.BackColor     = System.Drawing.Color.Transparent;
     legend1.Enabled       = false;
     legend1.Font          = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold);
     legend1.IsTextAutoFit = false;
     legend1.Name          = "Default";
     this.Chart1.Legends.Add(legend1);
     this.Chart1.Location = new System.Drawing.Point(16, 60);
     this.Chart1.Name     = "Chart1";
     series1.BorderColor  = System.Drawing.Color.FromArgb(((int)(((byte)(180)))), ((int)(((byte)(26)))), ((int)(((byte)(59)))), ((int)(((byte)(105)))));
     series1.ChartArea    = "Default";
     series1.ChartType    = System.Windows.Forms.DataVisualization.Charting.SeriesChartType.Point;
     series1.Color        = System.Drawing.Color.FromArgb(((int)(((byte)(220)))), ((int)(((byte)(65)))), ((int)(((byte)(140)))), ((int)(((byte)(240)))));
     series1.LabelFormat  = "N2";
     series1.Legend       = "Default";
     series1.MarkerSize   = 20;
     series1.Name         = "Default";
     series1.Points.Add(dataPoint1);
     series1.Points.Add(dataPoint2);
     series1.Points.Add(dataPoint3);
     series1.Points.Add(dataPoint4);
     series1.Points.Add(dataPoint5);
     series1.Points.Add(dataPoint6);
     this.Chart1.Series.Add(series1);
     this.Chart1.Size       = new System.Drawing.Size(412, 296);
     this.Chart1.TabIndex   = 0;
     this.Chart1.MouseUp   += new System.Windows.Forms.MouseEventHandler(this.Chart1_MouseUp);
     this.Chart1.MouseMove += new System.Windows.Forms.MouseEventHandler(this.Chart1_MouseMove);
     this.Chart1.MouseDown += new System.Windows.Forms.MouseEventHandler(this.Chart1_MouseDown);
     //
     // PointsDragging
     //
     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  = "PointsDragging";
     this.Size  = new System.Drawing.Size(728, 376);
     this.Load += new System.EventHandler(this.Form1_Load);
     this.panel1.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.Chart1)).EndInit();
     this.ResumeLayout(false);
 }
Example #38
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.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.ArrowStyleCombo    = new System.Windows.Forms.ComboBox();
     this.LineColor          = new System.Windows.Forms.ComboBox();
     this.LineDashStyle      = new System.Windows.Forms.ComboBox();
     this.LineWidth          = 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.textBoxAxisTooltip = new System.Windows.Forms.TextBox();
     this.label2             = new System.Windows.Forms.Label();
     this.AxisEnabledCheck   = new System.Windows.Forms.CheckBox();
     this.Chart1             = new System.Windows.Forms.DataVisualization.Charting.Chart();
     this.label1             = new System.Windows.Forms.Label();
     this.panel1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.Chart1)).BeginInit();
     this.SuspendLayout();
     //
     // ArrowStyleCombo
     //
     this.ArrowStyleCombo.DropDownStyle         = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.ArrowStyleCombo.Location              = new System.Drawing.Point(168, 128);
     this.ArrowStyleCombo.Name                  = "ArrowStyleCombo";
     this.ArrowStyleCombo.Size                  = new System.Drawing.Size(121, 22);
     this.ArrowStyleCombo.TabIndex              = 8;
     this.ArrowStyleCombo.SelectedIndexChanged += new System.EventHandler(this.ArrowStyleCombo_SelectedIndexChanged);
     //
     // LineColor
     //
     this.LineColor.DropDownStyle         = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.LineColor.Location              = new System.Drawing.Point(168, 64);
     this.LineColor.Name                  = "LineColor";
     this.LineColor.Size                  = new System.Drawing.Size(121, 22);
     this.LineColor.TabIndex              = 4;
     this.LineColor.SelectedIndexChanged += new System.EventHandler(this.LineColor_SelectedIndexChanged);
     //
     // LineDashStyle
     //
     this.LineDashStyle.DropDownStyle         = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.LineDashStyle.Location              = new System.Drawing.Point(168, 96);
     this.LineDashStyle.Name                  = "LineDashStyle";
     this.LineDashStyle.Size                  = new System.Drawing.Size(121, 22);
     this.LineDashStyle.TabIndex              = 6;
     this.LineDashStyle.SelectedIndexChanged += new System.EventHandler(this.LineDashStyle_SelectedIndexChanged);
     //
     // LineWidth
     //
     this.LineWidth.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.LineWidth.Items.AddRange(new object[] {
         "1",
         "2",
         "3",
         "4"
     });
     this.LineWidth.Location              = new System.Drawing.Point(168, 32);
     this.LineWidth.Name                  = "LineWidth";
     this.LineWidth.Size                  = new System.Drawing.Size(121, 22);
     this.LineWidth.TabIndex              = 2;
     this.LineWidth.SelectedIndexChanged += new System.EventHandler(this.LineWidth_SelectedIndexChanged);
     //
     // label5
     //
     this.label5.Location  = new System.Drawing.Point(8, 128);
     this.label5.Name      = "label5";
     this.label5.Size      = new System.Drawing.Size(156, 16);
     this.label5.TabIndex  = 7;
     this.label5.Text      = "&Arrow Style:";
     this.label5.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // label6
     //
     this.label6.Location  = new System.Drawing.Point(0, 96);
     this.label6.Name      = "label6";
     this.label6.Size      = new System.Drawing.Size(164, 16);
     this.label6.TabIndex  = 5;
     this.label6.Text      = "Axis &Line Style:";
     this.label6.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // label7
     //
     this.label7.Location  = new System.Drawing.Point(8, 64);
     this.label7.Name      = "label7";
     this.label7.Size      = new System.Drawing.Size(156, 16);
     this.label7.TabIndex  = 3;
     this.label7.Text      = "Line &Color:";
     this.label7.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // label8
     //
     this.label8.Location  = new System.Drawing.Point(8, 35);
     this.label8.Name      = "label8";
     this.label8.Size      = new System.Drawing.Size(156, 16);
     this.label8.TabIndex  = 1;
     this.label8.Text      = "Line &Width:";
     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  = 1;
     this.label9.Text      = "This sample demonstrates how to set the appearance of axis lines.";
     this.label9.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // panel1
     //
     this.panel1.Controls.Add(this.textBoxAxisTooltip);
     this.panel1.Controls.Add(this.label2);
     this.panel1.Controls.Add(this.AxisEnabledCheck);
     this.panel1.Controls.Add(this.LineDashStyle);
     this.panel1.Controls.Add(this.label5);
     this.panel1.Controls.Add(this.label6);
     this.panel1.Controls.Add(this.ArrowStyleCombo);
     this.panel1.Controls.Add(this.label7);
     this.panel1.Controls.Add(this.label8);
     this.panel1.Controls.Add(this.LineWidth);
     this.panel1.Controls.Add(this.LineColor);
     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 = 0;
     //
     // textBoxAxisTooltip
     //
     this.textBoxAxisTooltip.Location     = new System.Drawing.Point(168, 160);
     this.textBoxAxisTooltip.MaxLength    = 15;
     this.textBoxAxisTooltip.Name         = "textBoxAxisTooltip";
     this.textBoxAxisTooltip.Size         = new System.Drawing.Size(120, 22);
     this.textBoxAxisTooltip.TabIndex     = 10;
     this.textBoxAxisTooltip.Text         = "Axis tooltip";
     this.textBoxAxisTooltip.TextChanged += new System.EventHandler(this.textBoxAxisTooltip_TextChanged);
     //
     // label2
     //
     this.label2.Location  = new System.Drawing.Point(45, 162);
     this.label2.Name      = "label2";
     this.label2.Size      = new System.Drawing.Size(120, 16);
     this.label2.TabIndex  = 9;
     this.label2.Text      = "Axis &Tooltip:";
     this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // AxisEnabledCheck
     //
     this.AxisEnabledCheck.CheckAlign      = System.Drawing.ContentAlignment.MiddleRight;
     this.AxisEnabledCheck.Checked         = true;
     this.AxisEnabledCheck.CheckState      = System.Windows.Forms.CheckState.Checked;
     this.AxisEnabledCheck.Location        = new System.Drawing.Point(77, 4);
     this.AxisEnabledCheck.Name            = "AxisEnabledCheck";
     this.AxisEnabledCheck.Size            = new System.Drawing.Size(104, 24);
     this.AxisEnabledCheck.TabIndex        = 0;
     this.AxisEnabledCheck.Text            = "&Visible:";
     this.AxisEnabledCheck.TextAlign       = System.Drawing.ContentAlignment.MiddleRight;
     this.AxisEnabledCheck.CheckedChanged += new System.EventHandler(this.Enabled_CheckedChanged);
     //
     // Chart1
     //
     this.Chart1.BackColor                   = System.Drawing.Color.WhiteSmoke;
     this.Chart1.BackGradientStyle           = System.Windows.Forms.DataVisualization.Charting.GradientStyle.TopBottom;
     this.Chart1.BackSecondaryColor          = System.Drawing.Color.White;
     this.Chart1.BorderlineColor             = System.Drawing.Color.FromArgb(((int)(((byte)(26)))), ((int)(((byte)(59)))), ((int)(((byte)(105)))));
     this.Chart1.BorderlineDashStyle         = System.Windows.Forms.DataVisualization.Charting.ChartDashStyle.Solid;
     this.Chart1.BorderlineWidth             = 2;
     this.Chart1.BorderSkin.SkinStyle        = System.Windows.Forms.DataVisualization.Charting.BorderSkinStyle.Emboss;
     chartArea1.Area3DStyle.Inclination      = 15;
     chartArea1.Area3DStyle.IsClustered      = true;
     chartArea1.Area3DStyle.IsRightAngleAxes = false;
     chartArea1.Area3DStyle.Perspective      = 10;
     chartArea1.Area3DStyle.Rotation         = 10;
     chartArea1.Area3DStyle.WallWidth        = 0;
     chartArea1.AxisX.IsLabelAutoFit         = false;
     chartArea1.AxisX.LabelStyle.Font        = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold);
     chartArea1.AxisX.LineColor              = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
     chartArea1.AxisX.MajorGrid.LineColor    = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
     chartArea1.AxisX2.Enabled               = System.Windows.Forms.DataVisualization.Charting.AxisEnabled.False;
     chartArea1.AxisX2.IsLabelAutoFit        = false;
     chartArea1.AxisX2.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.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, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     chartArea1.AxisY2.LineColor             = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
     chartArea1.AxisY2.MajorGrid.Enabled     = false;
     chartArea1.AxisY2.ToolTip               = "Axis tooltip";
     chartArea1.BackColor   = System.Drawing.Color.WhiteSmoke;
     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.Enabled       = false;
     legend1.Font          = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold);
     legend1.IsTextAutoFit = false;
     legend1.Name          = "Default";
     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.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.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.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.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 = 2;
     title1.Alignment     = System.Drawing.ContentAlignment.MiddleLeft;
     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";
     this.Chart1.Titles.Add(title1);
     //
     // 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, 352);
     this.label1.Name     = "label1";
     this.label1.Size     = new System.Drawing.Size(702, 64);
     this.label1.TabIndex = 3;
     this.label1.Text     = "Note that each axis can have different visual attributes, including visibility. I" +
                            "n this sample, changes are applied to the secondary Y axis.";
     this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // AxisAppearance
     //
     this.BackColor = System.Drawing.Color.White;
     this.Controls.Add(this.label1);
     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 = "AxisAppearance";
     this.Size = new System.Drawing.Size(728, 424);
     this.panel1.ResumeLayout(false);
     this.panel1.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.Chart1)).EndInit();
     this.ResumeLayout(false);
 }
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     System.Windows.Forms.DataVisualization.Charting.ChartArea chartArea1 = new System.Windows.Forms.DataVisualization.Charting.ChartArea();
     System.Windows.Forms.DataVisualization.Charting.Legend    legend1    = new System.Windows.Forms.DataVisualization.Charting.Legend();
     System.Windows.Forms.DataVisualization.Charting.Series    series1    = new System.Windows.Forms.DataVisualization.Charting.Series();
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint1 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(1, 5);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint2 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(2, 8);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint3 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(4, 3);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint4 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(5, 6);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint5 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(7, 4);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint6 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(8, 7);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint7 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(9, 2);
     System.ComponentModel.ComponentResourceManager            resources  = new System.ComponentModel.ComponentResourceManager(typeof(IndexedX));
     this.label9   = new System.Windows.Forms.Label();
     this.panel1   = new System.Windows.Forms.Panel();
     this.XIndexed = new System.Windows.Forms.CheckBox();
     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.label1   = 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, 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 draw the data points of a series using their inde" +
                            "xes instead of their X values. ";
     this.label9.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // panel1
     //
     this.panel1.Controls.Add(this.XIndexed);
     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, 73);
     this.panel1.Name     = "panel1";
     this.panel1.Size     = new System.Drawing.Size(292, 296);
     this.panel1.TabIndex = 19;
     //
     // XIndexed
     //
     this.XIndexed.Location        = new System.Drawing.Point(48, 8);
     this.XIndexed.Name            = "XIndexed";
     this.XIndexed.Size            = new System.Drawing.Size(168, 24);
     this.XIndexed.TabIndex        = 8;
     this.XIndexed.Text            = "&X Values Indexed";
     this.XIndexed.CheckedChanged += new System.EventHandler(this.XValuesIndexed_CheckedChanged);
     //
     // 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:";
     //
     // 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)(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.Rotation               = 10;
     chartArea1.Area3DStyle.WallWidth              = 0;
     chartArea1.AxisX.IsLabelAutoFit               = false;
     chartArea1.AxisX.LabelStyle.Font              = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold);
     chartArea1.AxisX.LabelStyle.IsEndLabelVisible = false;
     chartArea1.AxisX.LineColor                    = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
     chartArea1.AxisX.MajorGrid.LineColor          = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
     chartArea1.AxisY.IsLabelAutoFit               = false;
     chartArea1.AxisY.LabelStyle.Font              = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold);
     chartArea1.AxisY.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.ShadowColor = System.Drawing.Color.Transparent;
     this.Chart1.ChartAreas.Add(chartArea1);
     legend1.BackColor     = System.Drawing.Color.Transparent;
     legend1.Enabled       = false;
     legend1.Font          = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold);
     legend1.IsTextAutoFit = false;
     legend1.Name          = "Default";
     this.Chart1.Legends.Add(legend1);
     this.Chart1.Location = new System.Drawing.Point(16, 65);
     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)(220)))), ((int)(((byte)(65)))), ((int)(((byte)(140)))), ((int)(((byte)(240)))));
     series1.Font         = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold);
     series1.Legend       = "Default";
     series1.Name         = "Series1";
     dataPoint1.Label     = "1";
     dataPoint2.Label     = "2";
     dataPoint3.Label     = "3";
     dataPoint4.Label     = "4";
     dataPoint5.Label     = "5";
     dataPoint6.Label     = "6";
     dataPoint7.Label     = "7";
     series1.Points.Add(dataPoint1);
     series1.Points.Add(dataPoint2);
     series1.Points.Add(dataPoint3);
     series1.Points.Add(dataPoint4);
     series1.Points.Add(dataPoint5);
     series1.Points.Add(dataPoint6);
     series1.Points.Add(dataPoint7);
     this.Chart1.Series.Add(series1);
     this.Chart1.Size     = new System.Drawing.Size(412, 306);
     this.Chart1.TabIndex = 0;
     this.Chart1.Click   += new System.EventHandler(this.Chart1_Click);
     //
     // label1
     //
     this.label1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                                | System.Windows.Forms.AnchorStyles.Right)));
     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(12, 381);
     this.label1.Name      = "label1";
     this.label1.Size      = new System.Drawing.Size(704, 79);
     this.label1.TabIndex  = 20;
     this.label1.Text      = resources.GetString("label1.Text");
     this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // IndexedX
     //
     this.Controls.Add(this.label1);
     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 = "IndexedX";
     this.Size = new System.Drawing.Size(728, 480);
     this.panel1.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.Chart1)).EndInit();
     this.ResumeLayout(false);
 }
Example #40
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.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(38859, 1627.000244140625);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint2  = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38872, 1597.524658203125);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint3  = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38885, 1573.083740234375);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint4  = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38900, 1565.8377685546875);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint5  = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38914, 1602.314453125);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint6  = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38937, 1642.5465087890625);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint7  = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38952, 1672.42822265625);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint8  = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38955, 1648.5418701171875);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint9  = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38972, 1621.2138671875);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint10 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(38999, 1572.0396728515625);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint11 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(39013, 1578.5050048828125);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint12 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(39023, 1558.218017578125);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint13 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(39028, 1573.986083984375);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint14 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(39040, 1576.890869140625);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint15 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(39066, 1529.220458984375);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint16 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(39086, 1564.6845703125);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint17 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(39107, 1578.4237060546875);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint18 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(39126, 1576.835205078125);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint19 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(39148, 1596.8394775390625);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint20 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(39164, 1597.822509765625);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint21 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(39189, 1609.9180908203125);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint22 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(39210, 1621.64306640625);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint23 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(39225, 1652.377197265625);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint24 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(39239, 1642.6414794921875);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint25 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(39265, 1657.52587890625);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint26 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(39280, 1696.0537109375);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint27 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(39295, 1738.0972900390625);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint28 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(39301, 1702.7032470703125);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint29 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(39302, 1667.0447998046875);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint30 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(39304, 1694.8780517578125);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint31 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(39330, 1740.7620849609375);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint32 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(39346, 1734.49072265625);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint33 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(39352, 1778.2821044921875);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint34 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(39359, 1815.655029296875);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint35 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(39364, 1824.577392578125);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint36 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(39380, 1860.8177490234375);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint37 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(39400, 1852.8516845703125);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint38 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(39406, 1888.8582763671875);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint39 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(39432, 1908.6798095703125);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint40 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(39456, 1891.787841796875);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint41 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(39463, 1940.2855224609375);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint42 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(39483, 1913.6676025390625);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint43 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(39498, 1943.043701171875);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint44 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(39509, 1970.134033203125);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint45 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(39522, 1970.98876953125);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint46 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(39536, 1979.9300537109375);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint47 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(39555, 2006.0057373046875);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint48 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(39574, 2043.123779296875);
     System.ComponentModel.ComponentResourceManager            resources   = new System.ComponentModel.ComponentResourceManager(typeof(AxisVarLabelsInterval));
     this.label9      = new System.Windows.Forms.Label();
     this.panel1      = new System.Windows.Forms.Panel();
     this.XAxisFormat = new System.Windows.Forms.ComboBox();
     this.label1      = new System.Windows.Forms.Label();
     this.checkBox1   = new System.Windows.Forms.CheckBox();
     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.chart2      = new System.Windows.Forms.DataVisualization.Charting.Chart();
     this.label2      = new System.Windows.Forms.Label();
     this.panel1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.chart2)).BeginInit();
     this.SuspendLayout();
     //
     // label9
     //
     this.label9.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                                | System.Windows.Forms.AnchorStyles.Right)));
     this.label9.Font      = new System.Drawing.Font("Verdana", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label9.Location  = new System.Drawing.Point(16, 14);
     this.label9.Name      = "label9";
     this.label9.Size      = new System.Drawing.Size(702, 34);
     this.label9.TabIndex  = 0;
     this.label9.Text      = "This sample demonstrates how to set variable label intervals.";
     this.label9.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // panel1
     //
     this.panel1.Controls.Add(this.XAxisFormat);
     this.panel1.Controls.Add(this.label1);
     this.panel1.Controls.Add(this.checkBox1);
     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(440, 64);
     this.panel1.Name     = "panel1";
     this.panel1.Size     = new System.Drawing.Size(280, 296);
     this.panel1.TabIndex = 2;
     //
     // XAxisFormat
     //
     this.XAxisFormat.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.XAxisFormat.Items.AddRange(new object[] {
         "Short Date",
         "Full Date",
         "Week Day"
     });
     this.XAxisFormat.Location              = new System.Drawing.Point(168, 48);
     this.XAxisFormat.Name                  = "XAxisFormat";
     this.XAxisFormat.Size                  = new System.Drawing.Size(102, 22);
     this.XAxisFormat.TabIndex              = 15;
     this.XAxisFormat.SelectedIndexChanged += new System.EventHandler(this.XAxisFormat_SelectedIndexChanged);
     //
     // label1
     //
     this.label1.Location = new System.Drawing.Point(24, 52);
     this.label1.Name     = "label1";
     this.label1.Size     = new System.Drawing.Size(142, 23);
     this.label1.TabIndex = 14;
     this.label1.Text     = "&X Axis Labels Format:";
     //
     // checkBox1
     //
     this.checkBox1.Checked         = true;
     this.checkBox1.CheckState      = System.Windows.Forms.CheckState.Checked;
     this.checkBox1.Location        = new System.Drawing.Point(8, 16);
     this.checkBox1.Name            = "checkBox1";
     this.checkBox1.RightToLeft     = System.Windows.Forms.RightToLeft.Yes;
     this.checkBox1.Size            = new System.Drawing.Size(176, 24);
     this.checkBox1.TabIndex        = 11;
     this.checkBox1.Text            = "Variable Label Intervals";
     this.checkBox1.CheckedChanged += new System.EventHandler(this.checkBox1_CheckedChanged);
     //
     // 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 = 10;
     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 = 9;
     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 = 8;
     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 = 7;
     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:";
     //
     // chart2
     //
     this.chart2.BackColor                   = System.Drawing.Color.WhiteSmoke;
     this.chart2.BackGradientStyle           = System.Windows.Forms.DataVisualization.Charting.GradientStyle.TopBottom;
     this.chart2.BackSecondaryColor          = System.Drawing.Color.White;
     this.chart2.BorderlineColor             = System.Drawing.Color.FromArgb(((int)(((byte)(26)))), ((int)(((byte)(59)))), ((int)(((byte)(105)))));
     this.chart2.BorderlineDashStyle         = System.Windows.Forms.DataVisualization.Charting.ChartDashStyle.Solid;
     this.chart2.BorderlineWidth             = 2;
     this.chart2.BorderSkin.SkinStyle        = System.Windows.Forms.DataVisualization.Charting.BorderSkinStyle.Emboss;
     chartArea1.Area3DStyle.Inclination      = 15;
     chartArea1.Area3DStyle.IsClustered      = true;
     chartArea1.Area3DStyle.IsRightAngleAxes = false;
     chartArea1.Area3DStyle.Perspective      = 10;
     chartArea1.Area3DStyle.Rotation         = 10;
     chartArea1.Area3DStyle.WallWidth        = 0;
     chartArea1.AxisX.IntervalAutoMode       = System.Windows.Forms.DataVisualization.Charting.IntervalAutoMode.VariableCount;
     chartArea1.AxisX.LabelAutoFitStyle      = ((System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles)(((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.LabelStyle.Format   = "ddd,d";
     chartArea1.AxisX.LineColor           = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
     chartArea1.AxisX.MajorGrid.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
     chartArea1.AxisX2.Enabled            = System.Windows.Forms.DataVisualization.Charting.AxisEnabled.False;
     chartArea1.AxisY.IsLabelAutoFit      = false;
     chartArea1.AxisY.IsStartedFromZero   = false;
     chartArea1.AxisY.LabelStyle.Font     = new System.Drawing.Font("Trebuchet MS", 8.25F);
     chartArea1.AxisY.LineColor           = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
     chartArea1.AxisY.MajorGrid.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
     chartArea1.AxisY2.Enabled            = System.Windows.Forms.DataVisualization.Charting.AxisEnabled.False;
     chartArea1.AxisY2.MajorGrid.Enabled  = false;
     chartArea1.BackColor          = System.Drawing.Color.Gainsboro;
     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.chart2.ChartAreas.Add(chartArea1);
     legend1.BackColor     = System.Drawing.Color.Transparent;
     legend1.Enabled       = false;
     legend1.Font          = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold);
     legend1.IsTextAutoFit = false;
     legend1.Name          = "Default";
     this.chart2.Legends.Add(legend1);
     this.chart2.Location     = new System.Drawing.Point(16, 60);
     this.chart2.Name         = "chart2";
     series1.BorderColor      = System.Drawing.Color.FromArgb(((int)(((byte)(180)))), ((int)(((byte)(26)))), ((int)(((byte)(59)))), ((int)(((byte)(105)))));
     series1.ChartArea        = "Default";
     series1.ChartType        = System.Windows.Forms.DataVisualization.Charting.SeriesChartType.Point;
     series1.Color            = System.Drawing.Color.FromArgb(((int)(((byte)(220)))), ((int)(((byte)(65)))), ((int)(((byte)(140)))), ((int)(((byte)(240)))));
     series1.CustomProperties = "DrawingStyle=Emboss, PointWidth=0.9";
     series1.Legend           = "Default";
     series1.Name             = "Series1";
     series1.Points.Add(dataPoint1);
     series1.Points.Add(dataPoint2);
     series1.Points.Add(dataPoint3);
     series1.Points.Add(dataPoint4);
     series1.Points.Add(dataPoint5);
     series1.Points.Add(dataPoint6);
     series1.Points.Add(dataPoint7);
     series1.Points.Add(dataPoint8);
     series1.Points.Add(dataPoint9);
     series1.Points.Add(dataPoint10);
     series1.Points.Add(dataPoint11);
     series1.Points.Add(dataPoint12);
     series1.Points.Add(dataPoint13);
     series1.Points.Add(dataPoint14);
     series1.Points.Add(dataPoint15);
     series1.Points.Add(dataPoint16);
     series1.Points.Add(dataPoint17);
     series1.Points.Add(dataPoint18);
     series1.Points.Add(dataPoint19);
     series1.Points.Add(dataPoint20);
     series1.Points.Add(dataPoint21);
     series1.Points.Add(dataPoint22);
     series1.Points.Add(dataPoint23);
     series1.Points.Add(dataPoint24);
     series1.Points.Add(dataPoint25);
     series1.Points.Add(dataPoint26);
     series1.Points.Add(dataPoint27);
     series1.Points.Add(dataPoint28);
     series1.Points.Add(dataPoint29);
     series1.Points.Add(dataPoint30);
     series1.Points.Add(dataPoint31);
     series1.Points.Add(dataPoint32);
     series1.Points.Add(dataPoint33);
     series1.Points.Add(dataPoint34);
     series1.Points.Add(dataPoint35);
     series1.Points.Add(dataPoint36);
     series1.Points.Add(dataPoint37);
     series1.Points.Add(dataPoint38);
     series1.Points.Add(dataPoint39);
     series1.Points.Add(dataPoint40);
     series1.Points.Add(dataPoint41);
     series1.Points.Add(dataPoint42);
     series1.Points.Add(dataPoint43);
     series1.Points.Add(dataPoint44);
     series1.Points.Add(dataPoint45);
     series1.Points.Add(dataPoint46);
     series1.Points.Add(dataPoint47);
     series1.Points.Add(dataPoint48);
     series1.XValueType = System.Windows.Forms.DataVisualization.Charting.ChartValueType.DateTime;
     series1.YValueType = System.Windows.Forms.DataVisualization.Charting.ChartValueType.Double;
     this.chart2.Series.Add(series1);
     this.chart2.Size     = new System.Drawing.Size(412, 296);
     this.chart2.TabIndex = 1;
     //
     // label2
     //
     this.label2.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                                | System.Windows.Forms.AnchorStyles.Right)));
     this.label2.Font      = new System.Drawing.Font("Verdana", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label2.Location  = new System.Drawing.Point(16, 368);
     this.label2.Name      = "label2";
     this.label2.Size      = new System.Drawing.Size(702, 64);
     this.label2.TabIndex  = 3;
     this.label2.Text      = resources.GetString("label2.Text");
     this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // AxisVarLabelsInterval
     //
     this.Controls.Add(this.label2);
     this.Controls.Add(this.chart2);
     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 = "AxisVarLabelsInterval";
     this.Size = new System.Drawing.Size(728, 480);
     this.panel1.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.chart2)).EndInit();
     this.ResumeLayout(false);
 }
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     System.Windows.Forms.DataVisualization.Charting.ChartArea   chartArea1   = new System.Windows.Forms.DataVisualization.Charting.ChartArea();
     System.Windows.Forms.DataVisualization.Charting.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 chartArea3  = new System.Windows.Forms.DataVisualization.Charting.ChartArea();
     System.Windows.Forms.DataVisualization.Charting.Legend    legend3     = new System.Windows.Forms.DataVisualization.Charting.Legend();
     System.Windows.Forms.DataVisualization.Charting.Series    series7     = new System.Windows.Forms.DataVisualization.Charting.Series();
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint31 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 3);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint32 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 7);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint33 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 8);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint34 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 6);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint35 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 7);
     System.Windows.Forms.DataVisualization.Charting.Series    series8     = new System.Windows.Forms.DataVisualization.Charting.Series();
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint36 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 4);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint37 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 2);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint38 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 3);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint39 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 1);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint40 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 6);
     System.Windows.Forms.DataVisualization.Charting.Series    series9     = new System.Windows.Forms.DataVisualization.Charting.Series();
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint41 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 1);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint42 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 2);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint43 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 4);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint44 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 5);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint45 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 1);
     this.label9      = new System.Windows.Forms.Label();
     this.panel1      = new System.Windows.Forms.Panel();
     this.Transparent = new System.Windows.Forms.CheckBox();
     this.ZOrder      = new System.Windows.Forms.Label();
     this.SeriesOrder = new System.Windows.Forms.ComboBox();
     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.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 change the Z-order of each series.";
     this.label9.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // panel1
     //
     this.panel1.Controls.Add(this.Transparent);
     this.panel1.Controls.Add(this.ZOrder);
     this.panel1.Controls.Add(this.SeriesOrder);
     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 = 2;
     //
     // Transparent
     //
     this.Transparent.Location        = new System.Drawing.Point(7, 40);
     this.Transparent.Name            = "Transparent";
     this.Transparent.RightToLeft     = System.Windows.Forms.RightToLeft.Yes;
     this.Transparent.Size            = new System.Drawing.Size(144, 24);
     this.Transparent.TabIndex        = 2;
     this.Transparent.Text            = "Use Solid Colors:";
     this.Transparent.CheckedChanged += new System.EventHandler(this.SeriesOrder_SelectedIndexChanged);
     //
     // ZOrder
     //
     this.ZOrder.Location  = new System.Drawing.Point(7, 9);
     this.ZOrder.Name      = "ZOrder";
     this.ZOrder.Size      = new System.Drawing.Size(125, 20);
     this.ZOrder.TabIndex  = 0;
     this.ZOrder.Text      = "Series &Z Order:";
     this.ZOrder.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // SeriesOrder
     //
     this.SeriesOrder.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.SeriesOrder.Items.AddRange(new object[] {
         "Column-Spline-Area",
         "Column-Area-Spline",
         "Area-Column-Spline",
         "Area-Spline-Column",
         "Spline-Area-Column",
         "Spline-Column-Area"
     });
     this.SeriesOrder.Location              = new System.Drawing.Point(136, 8);
     this.SeriesOrder.Name                  = "SeriesOrder";
     this.SeriesOrder.Size                  = new System.Drawing.Size(152, 22);
     this.SeriesOrder.TabIndex              = 1;
     this.SeriesOrder.SelectedIndexChanged += new System.EventHandler(this.SeriesOrder_SelectedIndexChanged);
     //
     // 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 = 6;
     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 = 5;
     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 = 4;
     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 = 3;
     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.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;
     chartArea3.Area3DStyle.Enable3D         = true;
     chartArea3.Area3DStyle.Inclination      = 15;
     chartArea3.Area3DStyle.IsClustered      = true;
     chartArea3.Area3DStyle.IsRightAngleAxes = false;
     chartArea3.Area3DStyle.Perspective      = 10;
     chartArea3.Area3DStyle.Rotation         = 10;
     chartArea3.Area3DStyle.WallWidth        = 0;
     chartArea3.AxisX.LabelStyle.Font        = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold);
     chartArea3.AxisX.LabelStyle.Format      = "dd MMM";
     chartArea3.AxisX.LineColor              = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
     chartArea3.AxisX.MajorGrid.LineColor    = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
     chartArea3.AxisY.LabelStyle.Font        = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold);
     chartArea3.AxisY.LineColor              = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
     chartArea3.AxisY.MajorGrid.LineColor    = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
     chartArea3.BackColor          = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(165)))), ((int)(((byte)(191)))), ((int)(((byte)(228)))));
     chartArea3.BackGradientStyle  = System.Windows.Forms.DataVisualization.Charting.GradientStyle.TopBottom;
     chartArea3.BackSecondaryColor = System.Drawing.Color.Transparent;
     chartArea3.BorderColor        = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
     chartArea3.Name        = "Default";
     chartArea3.ShadowColor = System.Drawing.Color.Transparent;
     this.Chart1.ChartAreas.Add(chartArea3);
     legend3.BackColor     = System.Drawing.Color.Transparent;
     legend3.Font          = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold);
     legend3.IsTextAutoFit = false;
     legend3.Name          = "Default";
     this.Chart1.Legends.Add(legend3);
     this.Chart1.Location = new System.Drawing.Point(16, 48);
     this.Chart1.Name     = "Chart1";
     series7.BorderColor  = System.Drawing.Color.FromArgb(((int)(((byte)(180)))), ((int)(((byte)(26)))), ((int)(((byte)(59)))), ((int)(((byte)(105)))));
     series7.ChartArea    = "Default";
     series7.Color        = System.Drawing.Color.FromArgb(((int)(((byte)(220)))), ((int)(((byte)(65)))), ((int)(((byte)(140)))), ((int)(((byte)(240)))));
     series7.Legend       = "Default";
     series7.Name         = "Series1";
     series7.Points.Add(dataPoint31);
     series7.Points.Add(dataPoint32);
     series7.Points.Add(dataPoint33);
     series7.Points.Add(dataPoint34);
     series7.Points.Add(dataPoint35);
     series7.XValueType  = System.Windows.Forms.DataVisualization.Charting.ChartValueType.DateTime;
     series8.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(180)))), ((int)(((byte)(26)))), ((int)(((byte)(59)))), ((int)(((byte)(105)))));
     series8.ChartArea   = "Default";
     series8.ChartType   = System.Windows.Forms.DataVisualization.Charting.SeriesChartType.Spline;
     series8.Color       = System.Drawing.Color.FromArgb(((int)(((byte)(220)))), ((int)(((byte)(252)))), ((int)(((byte)(180)))), ((int)(((byte)(65)))));
     series8.Legend      = "Default";
     series8.Name        = "Series2";
     series8.Points.Add(dataPoint36);
     series8.Points.Add(dataPoint37);
     series8.Points.Add(dataPoint38);
     series8.Points.Add(dataPoint39);
     series8.Points.Add(dataPoint40);
     series8.XValueType  = System.Windows.Forms.DataVisualization.Charting.ChartValueType.DateTime;
     series9.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(180)))), ((int)(((byte)(26)))), ((int)(((byte)(59)))), ((int)(((byte)(105)))));
     series9.ChartArea   = "Default";
     series9.ChartType   = System.Windows.Forms.DataVisualization.Charting.SeriesChartType.SplineArea;
     series9.Color       = System.Drawing.Color.FromArgb(((int)(((byte)(220)))), ((int)(((byte)(224)))), ((int)(((byte)(64)))), ((int)(((byte)(10)))));
     series9.Legend      = "Default";
     series9.Name        = "Series3";
     series9.Points.Add(dataPoint41);
     series9.Points.Add(dataPoint42);
     series9.Points.Add(dataPoint43);
     series9.Points.Add(dataPoint44);
     series9.Points.Add(dataPoint45);
     series9.XValueType = System.Windows.Forms.DataVisualization.Charting.ChartValueType.DateTime;
     this.Chart1.Series.Add(series7);
     this.Chart1.Series.Add(series8);
     this.Chart1.Series.Add(series9);
     this.Chart1.Size     = new System.Drawing.Size(412, 296);
     this.Chart1.TabIndex = 1;
     this.Chart1.Click   += new System.EventHandler(this.Chart1_Click);
     //
     // SeriesZOrder
     //
     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  = "SeriesZOrder";
     this.Size  = new System.Drawing.Size(728, 480);
     this.Load += new System.EventHandler(this.SeriesZOrder_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.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(0, 1);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint2  = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 6);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint3  = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 3);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint4  = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 4);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint5  = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 3);
     System.Windows.Forms.DataVisualization.Charting.Series    series2     = new System.Windows.Forms.DataVisualization.Charting.Series();
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint6  = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 3.5999999046325684);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint7  = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 3);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint8  = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 5);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint9  = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 3);
     System.Windows.Forms.DataVisualization.Charting.Series    series3     = new System.Windows.Forms.DataVisualization.Charting.Series();
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint10 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 9);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint11 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 7);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint12 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 4);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint13 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 5);
     System.ComponentModel.ComponentResourceManager            resources   = new System.ComponentModel.ComponentResourceManager(typeof(ChartInDoughnut));
     this.panel1          = new System.Windows.Forms.Panel();
     this.PsychCheckbox   = new System.Windows.Forms.CheckBox();
     this.Series3Checkbox = new System.Windows.Forms.CheckBox();
     this.Series2Checkbox = new System.Windows.Forms.CheckBox();
     this.Chart1          = new System.Windows.Forms.DataVisualization.Charting.Chart();
     this.RotateTimer     = new System.Timers.Timer();
     this.label1          = new System.Windows.Forms.Label();
     this.label2          = new System.Windows.Forms.Label();
     this.panel1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.Chart1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.RotateTimer)).BeginInit();
     this.SuspendLayout();
     //
     // panel1
     //
     this.panel1.Controls.Add(this.PsychCheckbox);
     this.panel1.Controls.Add(this.Series3Checkbox);
     this.panel1.Controls.Add(this.Series2Checkbox);
     this.panel1.Location = new System.Drawing.Point(432, 76);
     this.panel1.Name     = "panel1";
     this.panel1.Size     = new System.Drawing.Size(292, 288);
     this.panel1.TabIndex = 2;
     //
     // PsychCheckbox
     //
     this.PsychCheckbox.Location        = new System.Drawing.Point(48, 72);
     this.PsychCheckbox.Name            = "PsychCheckbox";
     this.PsychCheckbox.Size            = new System.Drawing.Size(200, 24);
     this.PsychCheckbox.TabIndex        = 2;
     this.PsychCheckbox.Text            = "&Psychedelic";
     this.PsychCheckbox.CheckedChanged += new System.EventHandler(this.PsychCheckbox_CheckedChanged);
     //
     // Series3Checkbox
     //
     this.Series3Checkbox.Location        = new System.Drawing.Point(48, 40);
     this.Series3Checkbox.Name            = "Series3Checkbox";
     this.Series3Checkbox.RightToLeft     = System.Windows.Forms.RightToLeft.No;
     this.Series3Checkbox.Size            = new System.Drawing.Size(200, 24);
     this.Series3Checkbox.TabIndex        = 1;
     this.Series3Checkbox.Text            = "Show Series &3";
     this.Series3Checkbox.CheckedChanged += new System.EventHandler(this.Series2Checkbox_CheckedChanged);
     //
     // Series2Checkbox
     //
     this.Series2Checkbox.Location        = new System.Drawing.Point(48, 8);
     this.Series2Checkbox.Name            = "Series2Checkbox";
     this.Series2Checkbox.RightToLeft     = System.Windows.Forms.RightToLeft.No;
     this.Series2Checkbox.Size            = new System.Drawing.Size(200, 24);
     this.Series2Checkbox.TabIndex        = 0;
     this.Series2Checkbox.Text            = "Show Series &2";
     this.Series2Checkbox.CheckedChanged += new System.EventHandler(this.Series2Checkbox_CheckedChanged);
     //
     // 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;
     this.Chart1.IsSoftShadows        = false;
     legend1.BackColor     = System.Drawing.Color.Transparent;
     legend1.Enabled       = false;
     legend1.Font          = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold);
     legend1.IsTextAutoFit = false;
     legend1.Name          = "Default";
     this.Chart1.Legends.Add(legend1);
     this.Chart1.Location        = new System.Drawing.Point(16, 68);
     this.Chart1.Name            = "Chart1";
     series1.BorderColor         = System.Drawing.Color.FromArgb(((int)(((byte)(180)))), ((int)(((byte)(26)))), ((int)(((byte)(59)))), ((int)(((byte)(105)))));
     series1.ChartType           = System.Windows.Forms.DataVisualization.Charting.SeriesChartType.Doughnut;
     series1.Color               = System.Drawing.Color.FromArgb(((int)(((byte)(220)))), ((int)(((byte)(65)))), ((int)(((byte)(140)))), ((int)(((byte)(240)))));
     series1.IsValueShownAsLabel = true;
     series1.Legend              = "Default";
     series1.Name = "Series1";
     series1.Points.Add(dataPoint1);
     series1.Points.Add(dataPoint2);
     series1.Points.Add(dataPoint3);
     series1.Points.Add(dataPoint4);
     series1.Points.Add(dataPoint5);
     series1.ShadowOffset        = 2;
     series2.BorderColor         = System.Drawing.Color.FromArgb(((int)(((byte)(180)))), ((int)(((byte)(26)))), ((int)(((byte)(59)))), ((int)(((byte)(105)))));
     series2.ChartType           = System.Windows.Forms.DataVisualization.Charting.SeriesChartType.Doughnut;
     series2.Color               = System.Drawing.Color.FromArgb(((int)(((byte)(220)))), ((int)(((byte)(252)))), ((int)(((byte)(180)))), ((int)(((byte)(65)))));
     series2.Enabled             = false;
     series2.IsValueShownAsLabel = true;
     series2.Legend              = "Default";
     series2.Name = "Series2";
     series2.Points.Add(dataPoint6);
     series2.Points.Add(dataPoint7);
     series2.Points.Add(dataPoint8);
     series2.Points.Add(dataPoint9);
     series2.ShadowOffset        = 2;
     series3.BorderColor         = System.Drawing.Color.FromArgb(((int)(((byte)(180)))), ((int)(((byte)(26)))), ((int)(((byte)(59)))), ((int)(((byte)(105)))));
     series3.ChartType           = System.Windows.Forms.DataVisualization.Charting.SeriesChartType.Doughnut;
     series3.Color               = System.Drawing.Color.FromArgb(((int)(((byte)(220)))), ((int)(((byte)(224)))), ((int)(((byte)(64)))), ((int)(((byte)(10)))));
     series3.Enabled             = false;
     series3.IsValueShownAsLabel = true;
     series3.Legend              = "Default";
     series3.Name = "Series3";
     series3.Points.Add(dataPoint10);
     series3.Points.Add(dataPoint11);
     series3.Points.Add(dataPoint12);
     series3.Points.Add(dataPoint13);
     series3.ShadowOffset = 2;
     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;
     //
     // RotateTimer
     //
     this.RotateTimer.Enabled             = true;
     this.RotateTimer.SynchronizingObject = this;
     this.RotateTimer.Elapsed            += new System.Timers.ElapsedEventHandler(this.RotateTimer_Elapsed);
     //
     // label1
     //
     this.label1.Font     = new System.Drawing.Font("Verdana", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label1.Location = new System.Drawing.Point(16, 14);
     this.label1.Name     = "label1";
     this.label1.Size     = new System.Drawing.Size(702, 43);
     this.label1.TabIndex = 0;
     this.label1.Text     = "This sample demonstrates how to overlay chart areas to create a more complicated " +
                            "chart type.";
     this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // label2
     //
     this.label2.Font     = new System.Drawing.Font("Verdana", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label2.Location = new System.Drawing.Point(16, 376);
     this.label2.Name     = "label2";
     this.label2.Size     = new System.Drawing.Size(702, 72);
     this.label2.TabIndex = 22;
     this.label2.Text     = resources.GetString("label2.Text");
     //
     // ChartInDoughnut
     //
     this.Controls.Add(this.label2);
     this.Controls.Add(this.label1);
     this.Controls.Add(this.Chart1);
     this.Controls.Add(this.panel1);
     this.Font  = new System.Drawing.Font("Verdana", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.Name  = "ChartInDoughnut";
     this.Size  = new System.Drawing.Size(728, 480);
     this.Load += new System.EventHandler(this.ChartInDataPoint_Load);
     this.panel1.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.Chart1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.RotateTimer)).EndInit();
     this.ResumeLayout(false);
 }
Example #44
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.Legend     legend1      = new System.Windows.Forms.DataVisualization.Charting.Legend();
     System.Windows.Forms.DataVisualization.Charting.LegendItem legendItem1  = new System.Windows.Forms.DataVisualization.Charting.LegendItem();
     System.Windows.Forms.DataVisualization.Charting.LegendCell legendCell1  = new System.Windows.Forms.DataVisualization.Charting.LegendCell();
     System.Windows.Forms.DataVisualization.Charting.Margins    margins1     = new System.Windows.Forms.DataVisualization.Charting.Margins();
     System.Windows.Forms.DataVisualization.Charting.LegendCell legendCell2  = new System.Windows.Forms.DataVisualization.Charting.LegendCell();
     System.Windows.Forms.DataVisualization.Charting.LegendItem legendItem2  = new System.Windows.Forms.DataVisualization.Charting.LegendItem();
     System.Windows.Forms.DataVisualization.Charting.LegendCell legendCell3  = new System.Windows.Forms.DataVisualization.Charting.LegendCell();
     System.Windows.Forms.DataVisualization.Charting.LegendCell legendCell4  = new System.Windows.Forms.DataVisualization.Charting.LegendCell();
     System.Windows.Forms.DataVisualization.Charting.LegendItem legendItem3  = new System.Windows.Forms.DataVisualization.Charting.LegendItem();
     System.Windows.Forms.DataVisualization.Charting.LegendCell legendCell5  = new System.Windows.Forms.DataVisualization.Charting.LegendCell();
     System.Windows.Forms.DataVisualization.Charting.LegendCell legendCell6  = new System.Windows.Forms.DataVisualization.Charting.LegendCell();
     System.Windows.Forms.DataVisualization.Charting.LegendItem legendItem4  = new System.Windows.Forms.DataVisualization.Charting.LegendItem();
     System.Windows.Forms.DataVisualization.Charting.LegendCell legendCell7  = new System.Windows.Forms.DataVisualization.Charting.LegendCell();
     System.Windows.Forms.DataVisualization.Charting.Margins    margins2     = new System.Windows.Forms.DataVisualization.Charting.Margins();
     System.Windows.Forms.DataVisualization.Charting.LegendCell legendCell8  = new System.Windows.Forms.DataVisualization.Charting.LegendCell();
     System.Windows.Forms.DataVisualization.Charting.LegendItem legendItem5  = new System.Windows.Forms.DataVisualization.Charting.LegendItem();
     System.Windows.Forms.DataVisualization.Charting.LegendCell legendCell9  = new System.Windows.Forms.DataVisualization.Charting.LegendCell();
     System.Windows.Forms.DataVisualization.Charting.LegendCell legendCell10 = new System.Windows.Forms.DataVisualization.Charting.LegendCell();
     System.Windows.Forms.DataVisualization.Charting.LegendItem legendItem6  = new System.Windows.Forms.DataVisualization.Charting.LegendItem();
     System.Windows.Forms.DataVisualization.Charting.LegendCell legendCell11 = new System.Windows.Forms.DataVisualization.Charting.LegendCell();
     System.Windows.Forms.DataVisualization.Charting.LegendCell legendCell12 = new System.Windows.Forms.DataVisualization.Charting.LegendCell();
     System.Windows.Forms.DataVisualization.Charting.Series     series1      = new System.Windows.Forms.DataVisualization.Charting.Series();
     System.Windows.Forms.DataVisualization.Charting.DataPoint  dataPoint1   = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 8);
     System.Windows.Forms.DataVisualization.Charting.DataPoint  dataPoint2   = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 14);
     System.Windows.Forms.DataVisualization.Charting.DataPoint  dataPoint3   = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 10);
     System.Windows.Forms.DataVisualization.Charting.DataPoint  dataPoint4   = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 16);
     System.Windows.Forms.DataVisualization.Charting.DataPoint  dataPoint5   = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 13);
     System.Windows.Forms.DataVisualization.Charting.Series     series2      = new System.Windows.Forms.DataVisualization.Charting.Series();
     System.Windows.Forms.DataVisualization.Charting.DataPoint  dataPoint6   = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 11);
     System.Windows.Forms.DataVisualization.Charting.DataPoint  dataPoint7   = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 7);
     System.Windows.Forms.DataVisualization.Charting.DataPoint  dataPoint8   = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 8);
     System.Windows.Forms.DataVisualization.Charting.DataPoint  dataPoint9   = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 6);
     System.Windows.Forms.DataVisualization.Charting.DataPoint  dataPoint10  = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 7);
     System.Windows.Forms.DataVisualization.Charting.Series     series3      = new System.Windows.Forms.DataVisualization.Charting.Series();
     System.Windows.Forms.DataVisualization.Charting.DataPoint  dataPoint11  = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 4);
     System.Windows.Forms.DataVisualization.Charting.DataPoint  dataPoint12  = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 3);
     System.Windows.Forms.DataVisualization.Charting.DataPoint  dataPoint13  = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 6);
     System.Windows.Forms.DataVisualization.Charting.DataPoint  dataPoint14  = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 5);
     System.Windows.Forms.DataVisualization.Charting.DataPoint  dataPoint15  = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 3);
     System.Windows.Forms.DataVisualization.Charting.Series     series4      = new System.Windows.Forms.DataVisualization.Charting.Series();
     System.Windows.Forms.DataVisualization.Charting.DataPoint  dataPoint16  = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 5);
     System.Windows.Forms.DataVisualization.Charting.DataPoint  dataPoint17  = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 6);
     System.Windows.Forms.DataVisualization.Charting.DataPoint  dataPoint18  = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 14);
     System.Windows.Forms.DataVisualization.Charting.DataPoint  dataPoint19  = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 8);
     System.Windows.Forms.DataVisualization.Charting.DataPoint  dataPoint20  = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 9);
     this.label9 = new System.Windows.Forms.Label();
     this.chart2 = new System.Windows.Forms.DataVisualization.Charting.Chart();
     this.panel1 = new System.Windows.Forms.Panel();
     ((System.ComponentModel.ISupportInitialize)(this.chart2)).BeginInit();
     this.SuspendLayout();
     //
     // label9
     //
     this.label9.Font      = new System.Drawing.Font("Verdana", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.label9.Location  = new System.Drawing.Point(16, 16);
     this.label9.Name      = "label9";
     this.label9.Size      = new System.Drawing.Size(702, 32);
     this.label9.TabIndex  = 0;
     this.label9.Text      = "This sample demonstrates the cell span feature of the legend.";
     this.label9.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // chart2
     //
     this.chart2.BackColor                         = System.Drawing.Color.FromArgb(((System.Byte)(211)), ((System.Byte)(223)), ((System.Byte)(240)));
     this.chart2.BackSecondaryColor                = System.Drawing.Color.White;
     this.chart2.BackGradientStyle                 = System.Windows.Forms.DataVisualization.Charting.GradientStyle.TopBottom;
     this.chart2.BorderlineColor                   = System.Drawing.Color.FromArgb(((System.Byte)(26)), ((System.Byte)(59)), ((System.Byte)(105)));
     this.chart2.BorderlineDashStyle               = System.Windows.Forms.DataVisualization.Charting.ChartDashStyle.Solid;
     this.chart2.BorderlineWidth                   = 2;
     this.chart2.BorderSkin.SkinStyle              = System.Windows.Forms.DataVisualization.Charting.BorderSkinStyle.Emboss;
     chartArea1.Area3DStyle.IsClustered            = true;
     chartArea1.Area3DStyle.Enable3D               = true;
     chartArea1.Area3DStyle.Perspective            = 10;
     chartArea1.Area3DStyle.IsRightAngleAxes       = false;
     chartArea1.Area3DStyle.WallWidth              = 0;
     chartArea1.Area3DStyle.Inclination            = 15;
     chartArea1.Area3DStyle.Rotation               = 10;
     chartArea1.AxisX.LabelAutoFitMaxFontSize      = 8;
     chartArea1.AxisX.LabelStyle.Font              = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold);
     chartArea1.AxisX.LabelStyle.Format            = "MMM dd";
     chartArea1.AxisX.LabelStyle.IsEndLabelVisible = false;
     chartArea1.AxisX.LineColor                    = System.Drawing.Color.FromArgb(((System.Byte)(64)), ((System.Byte)(64)), ((System.Byte)(64)), ((System.Byte)(64)));
     chartArea1.AxisX.MajorGrid.LineColor          = System.Drawing.Color.FromArgb(((System.Byte)(64)), ((System.Byte)(64)), ((System.Byte)(64)), ((System.Byte)(64)));
     chartArea1.AxisY.LabelAutoFitMaxFontSize      = 7;
     chartArea1.AxisY.LabelStyle.Font              = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold);
     chartArea1.AxisY.LineColor                    = System.Drawing.Color.FromArgb(((System.Byte)(64)), ((System.Byte)(64)), ((System.Byte)(64)), ((System.Byte)(64)));
     chartArea1.AxisY.MajorGrid.LineColor          = System.Drawing.Color.FromArgb(((System.Byte)(64)), ((System.Byte)(64)), ((System.Byte)(64)), ((System.Byte)(64)));
     chartArea1.BackColor          = System.Drawing.Color.FromArgb(((System.Byte)(64)), ((System.Byte)(165)), ((System.Byte)(191)), ((System.Byte)(228)));
     chartArea1.BackSecondaryColor = System.Drawing.Color.White;
     chartArea1.BackGradientStyle  = System.Windows.Forms.DataVisualization.Charting.GradientStyle.TopBottom;
     chartArea1.BorderColor        = System.Drawing.Color.FromArgb(((System.Byte)(64)), ((System.Byte)(64)), ((System.Byte)(64)), ((System.Byte)(64)));
     chartArea1.Name        = "Default";
     chartArea1.ShadowColor = System.Drawing.Color.Transparent;
     this.chart2.ChartAreas.Add(chartArea1);
     legend1.Alignment     = System.Drawing.StringAlignment.Center;
     legend1.IsTextAutoFit = false;
     legend1.BackColor     = System.Drawing.Color.Transparent;
     legendCell1.Alignment = System.Drawing.ContentAlignment.MiddleLeft;
     legendCell1.CellSpan  = 2;
     margins1.Bottom       = 15;
     margins1.Left         = 15;
     margins1.Right        = 15;
     legendCell1.Margins   = margins1;
     legendCell1.Name      = "Cell1";
     legendCell1.Text      = "North America";
     legendCell2.Name      = "Cell2";
     legendItem1.Cells.Add(legendCell1);
     legendItem1.Cells.Add(legendCell2);
     legendItem1.Name             = "North America";
     legendItem2.BorderColor      = System.Drawing.Color.FromArgb(((System.Byte)(200)), ((System.Byte)(26)), ((System.Byte)(59)), ((System.Byte)(105)));
     legendCell3.Alignment        = System.Drawing.ContentAlignment.MiddleLeft;
     legendCell3.CellType         = System.Windows.Forms.DataVisualization.Charting.LegendCellType.SeriesSymbol;
     legendCell3.Name             = "Cell1";
     legendCell3.SeriesSymbolSize = new System.Drawing.Size(200, 50);
     legendCell4.Alignment        = System.Drawing.ContentAlignment.MiddleLeft;
     legendCell4.Name             = "Cell2";
     legendCell4.SeriesSymbolSize = new System.Drawing.Size(200, 100);
     legendCell4.Text             = "Country 1";
     legendItem2.Cells.Add(legendCell3);
     legendItem2.Cells.Add(legendCell4);
     legendItem2.Color            = System.Drawing.Color.FromArgb(((System.Byte)(200)), ((System.Byte)(65)), ((System.Byte)(140)), ((System.Byte)(240)));
     legendItem2.Name             = "LightBlue";
     legendItem3.BorderColor      = System.Drawing.Color.FromArgb(((System.Byte)(200)), ((System.Byte)(26)), ((System.Byte)(59)), ((System.Byte)(105)));
     legendCell5.Alignment        = System.Drawing.ContentAlignment.MiddleLeft;
     legendCell5.CellType         = System.Windows.Forms.DataVisualization.Charting.LegendCellType.SeriesSymbol;
     legendCell5.Name             = "Cell1";
     legendCell5.SeriesSymbolSize = new System.Drawing.Size(200, 50);
     legendCell6.Alignment        = System.Drawing.ContentAlignment.MiddleLeft;
     legendCell6.Name             = "Cell2";
     legendCell6.Text             = "Country 2";
     legendItem3.Cells.Add(legendCell5);
     legendItem3.Cells.Add(legendCell6);
     legendItem3.Color     = System.Drawing.Color.FromArgb(((System.Byte)(200)), ((System.Byte)(252)), ((System.Byte)(180)), ((System.Byte)(65)));
     legendItem3.Name      = "Gold";
     legendCell7.Alignment = System.Drawing.ContentAlignment.MiddleLeft;
     legendCell7.CellSpan  = 2;
     legendCell7.Font      = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     margins2.Bottom       = 15;
     margins2.Left         = 15;
     margins2.Right        = 15;
     margins2.Top          = 200;
     legendCell7.Margins   = margins2;
     legendCell7.Name      = "Cell1";
     legendCell7.Text      = "South America";
     legendCell8.Name      = "Cell2";
     legendItem4.Cells.Add(legendCell7);
     legendItem4.Cells.Add(legendCell8);
     legendItem4.Name             = "South America";
     legendItem5.BorderColor      = System.Drawing.Color.FromArgb(((System.Byte)(200)), ((System.Byte)(26)), ((System.Byte)(59)), ((System.Byte)(105)));
     legendCell9.Alignment        = System.Drawing.ContentAlignment.MiddleLeft;
     legendCell9.CellType         = System.Windows.Forms.DataVisualization.Charting.LegendCellType.SeriesSymbol;
     legendCell9.Name             = "Cell1";
     legendCell9.SeriesSymbolSize = new System.Drawing.Size(200, 50);
     legendCell10.Alignment       = System.Drawing.ContentAlignment.MiddleLeft;
     legendCell10.Name            = "Cell2";
     legendCell10.Text            = "Country 3";
     legendItem5.Cells.Add(legendCell9);
     legendItem5.Cells.Add(legendCell10);
     legendItem5.Color             = System.Drawing.Color.FromArgb(((System.Byte)(224)), ((System.Byte)(64)), ((System.Byte)(10)));
     legendItem5.Name              = "Red";
     legendItem6.BorderColor       = System.Drawing.Color.FromArgb(((System.Byte)(200)), ((System.Byte)(26)), ((System.Byte)(59)), ((System.Byte)(105)));
     legendCell11.Alignment        = System.Drawing.ContentAlignment.MiddleLeft;
     legendCell11.CellType         = System.Windows.Forms.DataVisualization.Charting.LegendCellType.SeriesSymbol;
     legendCell11.Name             = "Cell1";
     legendCell11.SeriesSymbolSize = new System.Drawing.Size(200, 50);
     legendCell12.Alignment        = System.Drawing.ContentAlignment.MiddleLeft;
     legendCell12.Name             = "Cell2";
     legendCell12.Text             = "Country 4";
     legendItem6.Cells.Add(legendCell11);
     legendItem6.Cells.Add(legendCell12);
     legendItem6.Color = System.Drawing.Color.FromArgb(((System.Byte)(26)), ((System.Byte)(59)), ((System.Byte)(105)));
     legendItem6.Name  = "DarkBlue";
     legend1.CustomItems.Add(legendItem1);
     legend1.CustomItems.Add(legendItem2);
     legend1.CustomItems.Add(legendItem3);
     legend1.CustomItems.Add(legendItem4);
     legend1.CustomItems.Add(legendItem5);
     legend1.CustomItems.Add(legendItem6);
     legend1.Font      = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold);
     legend1.Name      = "Default";
     legend1.TitleFont = new System.Drawing.Font("Microsoft Sans Serif", 8F, System.Drawing.FontStyle.Bold);
     this.chart2.Legends.Add(legend1);
     this.chart2.Location     = new System.Drawing.Point(16, 56);
     this.chart2.Name         = "chart2";
     this.chart2.Palette      = System.Windows.Forms.DataVisualization.Charting.ChartColorPalette.BrightPastel;
     series1.BorderColor      = System.Drawing.Color.FromArgb(((System.Byte)(180)), ((System.Byte)(26)), ((System.Byte)(59)), ((System.Byte)(105)));
     series1.ChartArea        = "Default";
     series1.ChartType        = SeriesChartType.StackedBar;
     series1.CustomProperties = "DrawingStyle=Cylinder";
     series1.Name             = "B-1";
     series1.Points.Add(dataPoint1);
     series1.Points.Add(dataPoint2);
     series1.Points.Add(dataPoint3);
     series1.Points.Add(dataPoint4);
     series1.Points.Add(dataPoint5);
     series1.ShadowColor       = System.Drawing.Color.FromArgb(((System.Byte)(64)), ((System.Byte)(0)), ((System.Byte)(0)), ((System.Byte)(0)));
     series1.IsVisibleInLegend = false;
     series1.XValueType        = System.Windows.Forms.DataVisualization.Charting.ChartValueType.DateTime;
     series1.YValueType        = System.Windows.Forms.DataVisualization.Charting.ChartValueType.Double;
     series2.BorderColor       = System.Drawing.Color.FromArgb(((System.Byte)(180)), ((System.Byte)(26)), ((System.Byte)(59)), ((System.Byte)(105)));
     series2.ChartArea         = "Default";
     series2.ChartType         = SeriesChartType.StackedBar;
     series2.CustomProperties  = "DrawingStyle=Cylinder";
     series2.Name = "A-1";
     series2.Points.Add(dataPoint6);
     series2.Points.Add(dataPoint7);
     series2.Points.Add(dataPoint8);
     series2.Points.Add(dataPoint9);
     series2.Points.Add(dataPoint10);
     series2.IsVisibleInLegend = false;
     series2.XValueType        = System.Windows.Forms.DataVisualization.Charting.ChartValueType.DateTime;
     series2.YValueType        = System.Windows.Forms.DataVisualization.Charting.ChartValueType.Double;
     series3.BorderColor       = System.Drawing.Color.FromArgb(((System.Byte)(180)), ((System.Byte)(26)), ((System.Byte)(59)), ((System.Byte)(105)));
     series3.ChartArea         = "Default";
     series3.ChartType         = SeriesChartType.StackedBar;
     series3.CustomProperties  = "DrawingStyle=Cylinder";
     series3.Name = "A-2";
     series3.Points.Add(dataPoint11);
     series3.Points.Add(dataPoint12);
     series3.Points.Add(dataPoint13);
     series3.Points.Add(dataPoint14);
     series3.Points.Add(dataPoint15);
     series3.IsVisibleInLegend = false;
     series3.XValueType        = System.Windows.Forms.DataVisualization.Charting.ChartValueType.DateTime;
     series3.YValueType        = System.Windows.Forms.DataVisualization.Charting.ChartValueType.Double;
     series4.BorderColor       = System.Drawing.Color.FromArgb(((System.Byte)(180)), ((System.Byte)(26)), ((System.Byte)(59)), ((System.Byte)(105)));
     series4.ChartArea         = "Default";
     series4.ChartType         = SeriesChartType.StackedBar;
     series4.Color             = System.Drawing.Color.FromArgb(((System.Byte)(26)), ((System.Byte)(59)), ((System.Byte)(105)));
     series4.CustomProperties  = "DrawingStyle=Cylinder";
     series4.Name = "B-2";
     series4.Points.Add(dataPoint16);
     series4.Points.Add(dataPoint17);
     series4.Points.Add(dataPoint18);
     series4.Points.Add(dataPoint19);
     series4.Points.Add(dataPoint20);
     series4.ShadowColor       = System.Drawing.Color.FromArgb(((System.Byte)(64)), ((System.Byte)(0)), ((System.Byte)(0)), ((System.Byte)(0)));
     series4.IsVisibleInLegend = false;
     series4.XValueType        = System.Windows.Forms.DataVisualization.Charting.ChartValueType.DateTime;
     series4.YValueType        = System.Windows.Forms.DataVisualization.Charting.ChartValueType.Double;
     this.chart2.Series.Add(series1);
     this.chart2.Series.Add(series2);
     this.chart2.Series.Add(series3);
     this.chart2.Series.Add(series4);
     this.chart2.Size     = new System.Drawing.Size(412, 296);
     this.chart2.TabIndex = 1;
     //
     // panel1
     //
     this.panel1.Location = new System.Drawing.Point(432, 56);
     this.panel1.Name     = "panel1";
     this.panel1.Size     = new System.Drawing.Size(292, 296);
     this.panel1.TabIndex = 2;
     //
     // LegendCellSpan
     //
     this.Controls.AddRange(new System.Windows.Forms.Control[] {
         this.panel1,
         this.chart2,
         this.label9
     });
     this.Font = new System.Drawing.Font("Verdana", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.Name = "LegendCellSpan";
     this.Size = new System.Drawing.Size(728, 392);
     ((System.ComponentModel.ISupportInitialize)(this.chart2)).EndInit();
     this.ResumeLayout(false);
 }
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     System.Windows.Forms.DataVisualization.Charting.ChartArea chartArea1 = new System.Windows.Forms.DataVisualization.Charting.ChartArea();
     System.Windows.Forms.DataVisualization.Charting.Legend    legend1    = new System.Windows.Forms.DataVisualization.Charting.Legend();
     System.Windows.Forms.DataVisualization.Charting.Series    series1    = new System.Windows.Forms.DataVisualization.Charting.Series();
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint1 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, "9,20");
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint2 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, "2,30");
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint3 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, "5,50");
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint4 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, "7,5");
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint5 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, "4,60");
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint6 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, "2,25");
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint7 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, "6,50");
     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.checkBoxHideOriginalSeries = new System.Windows.Forms.CheckBox();
     this.comboBoxOriginalChartType  = new System.Windows.Forms.ComboBox();
     this.label2            = new System.Windows.Forms.Label();
     this.comboBoxChartType = new System.Windows.Forms.ComboBox();
     this.label1            = new System.Windows.Forms.Label();
     this.Chart1            = new System.Windows.Forms.DataVisualization.Charting.Chart();
     this.label3            = 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", 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, 34);
     this.label9.TabIndex = 0;
     this.label9.Text     = "This sample demonstrates how to create a mini-chart for every point on the origin" +
                            "al chart.";
     this.label9.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // panel1
     //
     this.panel1.Controls.Add(this.checkBoxHideOriginalSeries);
     this.panel1.Controls.Add(this.comboBoxOriginalChartType);
     this.panel1.Controls.Add(this.label2);
     this.panel1.Controls.Add(this.comboBoxChartType);
     this.panel1.Controls.Add(this.label1);
     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;
     //
     // checkBoxHideOriginalSeries
     //
     this.checkBoxHideOriginalSeries.CheckAlign      = System.Drawing.ContentAlignment.MiddleRight;
     this.checkBoxHideOriginalSeries.Location        = new System.Drawing.Point(15, 72);
     this.checkBoxHideOriginalSeries.Name            = "checkBoxHideOriginalSeries";
     this.checkBoxHideOriginalSeries.Size            = new System.Drawing.Size(168, 24);
     this.checkBoxHideOriginalSeries.TabIndex        = 4;
     this.checkBoxHideOriginalSeries.Text            = "&Hide Original Series:";
     this.checkBoxHideOriginalSeries.TextAlign       = System.Drawing.ContentAlignment.MiddleRight;
     this.checkBoxHideOriginalSeries.CheckedChanged += new System.EventHandler(this.checkBoxHideOriginalSeries_CheckedChanged);
     //
     // comboBoxOriginalChartType
     //
     this.comboBoxOriginalChartType.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.comboBoxOriginalChartType.Items.AddRange(new object[] {
         "Point",
         "Bubble"
     });
     this.comboBoxOriginalChartType.Location              = new System.Drawing.Point(168, 40);
     this.comboBoxOriginalChartType.Name                  = "comboBoxOriginalChartType";
     this.comboBoxOriginalChartType.Size                  = new System.Drawing.Size(120, 22);
     this.comboBoxOriginalChartType.TabIndex              = 3;
     this.comboBoxOriginalChartType.SelectedIndexChanged += new System.EventHandler(this.comboBoxOriginalChartType_SelectedIndexChanged);
     //
     // label2
     //
     this.label2.Location  = new System.Drawing.Point(14, 40);
     this.label2.Name      = "label2";
     this.label2.Size      = new System.Drawing.Size(152, 23);
     this.label2.TabIndex  = 2;
     this.label2.Text      = "&Original Chart Type:";
     this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // comboBoxChartType
     //
     this.comboBoxChartType.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.comboBoxChartType.Items.AddRange(new object[] {
         "None",
         "Column",
         "Pie",
         "Doughnut",
         "Area"
     });
     this.comboBoxChartType.Location              = new System.Drawing.Point(168, 8);
     this.comboBoxChartType.Name                  = "comboBoxChartType";
     this.comboBoxChartType.Size                  = new System.Drawing.Size(120, 22);
     this.comboBoxChartType.TabIndex              = 1;
     this.comboBoxChartType.SelectedIndexChanged += new System.EventHandler(this.comboBoxChartType_SelectedIndexChanged);
     //
     // label1
     //
     this.label1.Location  = new System.Drawing.Point(14, 8);
     this.label1.Name      = "label1";
     this.label1.Size      = new System.Drawing.Size(152, 23);
     this.label1.TabIndex  = 0;
     this.label1.Text      = "In &Point Chart Type:";
     this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // Chart1
     //
     this.Chart1.BackColor                   = System.Drawing.Color.WhiteSmoke;
     this.Chart1.BackGradientStyle           = System.Windows.Forms.DataVisualization.Charting.GradientStyle.TopBottom;
     this.Chart1.BackSecondaryColor          = System.Drawing.Color.White;
     this.Chart1.BorderlineColor             = System.Drawing.Color.FromArgb(((int)(((byte)(26)))), ((int)(((byte)(59)))), ((int)(((byte)(105)))));
     this.Chart1.BorderlineDashStyle         = System.Windows.Forms.DataVisualization.Charting.ChartDashStyle.Solid;
     this.Chart1.BorderlineWidth             = 2;
     this.Chart1.BorderSkin.SkinStyle        = System.Windows.Forms.DataVisualization.Charting.BorderSkinStyle.Emboss;
     chartArea1.Area3DStyle.Inclination      = 15;
     chartArea1.Area3DStyle.IsClustered      = true;
     chartArea1.Area3DStyle.IsRightAngleAxes = false;
     chartArea1.Area3DStyle.Perspective      = 10;
     chartArea1.Area3DStyle.Rotation         = 10;
     chartArea1.Area3DStyle.WallWidth        = 0;
     chartArea1.AxisX.IsLabelAutoFit         = false;
     chartArea1.AxisX.LabelStyle.Font        = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold);
     chartArea1.AxisX.LineColor              = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
     chartArea1.AxisX.MajorGrid.LineColor    = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
     chartArea1.AxisY.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.Gainsboro;
     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.Enabled       = false;
     legend1.Font          = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold);
     legend1.IsTextAutoFit = false;
     legend1.Name          = "Default";
     this.Chart1.Legends.Add(legend1);
     this.Chart1.Location     = new System.Drawing.Point(16, 60);
     this.Chart1.Name         = "Chart1";
     series1.BorderColor      = System.Drawing.Color.FromArgb(((int)(((byte)(180)))), ((int)(((byte)(26)))), ((int)(((byte)(59)))), ((int)(((byte)(105)))));
     series1.ChartArea        = "Default";
     series1.ChartType        = System.Windows.Forms.DataVisualization.Charting.SeriesChartType.Point;
     series1.Color            = System.Drawing.Color.FromArgb(((int)(((byte)(220)))), ((int)(((byte)(65)))), ((int)(((byte)(140)))), ((int)(((byte)(240)))));
     series1.CustomProperties = "BubbleScaleMin=-60";
     series1.Legend           = "Default";
     series1.MarkerSize       = 22;
     series1.Name             = "Default";
     series1.Points.Add(dataPoint1);
     series1.Points.Add(dataPoint2);
     series1.Points.Add(dataPoint3);
     series1.Points.Add(dataPoint4);
     series1.Points.Add(dataPoint5);
     series1.Points.Add(dataPoint6);
     series1.Points.Add(dataPoint7);
     series1.ShadowOffset    = 2;
     series1.YValuesPerPoint = 2;
     this.Chart1.Series.Add(series1);
     this.Chart1.Size     = new System.Drawing.Size(412, 296);
     this.Chart1.TabIndex = 1;
     title1.Font          = new System.Drawing.Font("Trebuchet MS", 14.25F, System.Drawing.FontStyle.Bold);
     title1.ForeColor     = System.Drawing.Color.FromArgb(((int)(((byte)(26)))), ((int)(((byte)(59)))), ((int)(((byte)(105)))));
     title1.Name          = "Title1";
     title1.ShadowColor   = System.Drawing.Color.FromArgb(((int)(((byte)(32)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))));
     title1.ShadowOffset  = 3;
     title1.Text          = "Mini-Charts!";
     this.Chart1.Titles.Add(title1);
     //
     // label3
     //
     this.label3.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                                | System.Windows.Forms.AnchorStyles.Right)));
     this.label3.Font     = new System.Drawing.Font("Verdana", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label3.Location = new System.Drawing.Point(16, 368);
     this.label3.Name     = "label3";
     this.label3.Size     = new System.Drawing.Size(688, 44);
     this.label3.TabIndex = 3;
     this.label3.Text     = "In this example, a separate chart area is created for each data point and then po" +
                            "sitioned on top of the original data point.";
     this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // ChartInDataPoint
     //
     this.Controls.Add(this.label3);
     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  = "ChartInDataPoint";
     this.Size  = new System.Drawing.Size(728, 480);
     this.Load += new System.EventHandler(this.ChartInDataPoint_Load);
     this.panel1.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.Chart1)).EndInit();
     this.ResumeLayout(false);
 }
Example #46
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.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(0, 5);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint2 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 8);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint3 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 9);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint4 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 12);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint5 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 14);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint6 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 12);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint7 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 17);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint8 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 14);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint9 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 18);
     this.label9            = new System.Windows.Forms.Label();
     this.panel1            = new System.Windows.Forms.Panel();
     this.PointToolTip      = new System.Windows.Forms.TextBox();
     this.label8            = new System.Windows.Forms.Label();
     this.PointLabelToolTip = new System.Windows.Forms.TextBox();
     this.label1            = new System.Windows.Forms.Label();
     this.LegendToolTip     = new System.Windows.Forms.TextBox();
     this.SeriesToolTip     = new System.Windows.Forms.TextBox();
     this.label7            = new System.Windows.Forms.Label();
     this.label2            = 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", 11F);
     this.label9.Location = new System.Drawing.Point(16, 14);
     this.label9.Name     = "label9";
     this.label9.Size     = new System.Drawing.Size(702, 34);
     this.label9.TabIndex = 0;
     this.label9.Text     = "This sample demonstrates how to use tooltips. To see a tooltip, place the cursor " +
                            "over a pie slice or legend item.";
     this.label9.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // panel1
     //
     this.panel1.Controls.Add(this.PointToolTip);
     this.panel1.Controls.Add(this.label8);
     this.panel1.Controls.Add(this.PointLabelToolTip);
     this.panel1.Controls.Add(this.label1);
     this.panel1.Controls.Add(this.LegendToolTip);
     this.panel1.Controls.Add(this.SeriesToolTip);
     this.panel1.Controls.Add(this.label7);
     this.panel1.Controls.Add(this.label2);
     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 = 19;
     //
     // PointToolTip
     //
     this.PointToolTip.Location     = new System.Drawing.Point(48, 200);
     this.PointToolTip.Name         = "PointToolTip";
     this.PointToolTip.Size         = new System.Drawing.Size(216, 22);
     this.PointToolTip.TabIndex     = 12;
     this.PointToolTip.Text         = "Unknown";
     this.PointToolTip.TextChanged += new System.EventHandler(this.textBox1_TextChanged);
     //
     // label8
     //
     this.label8.Location  = new System.Drawing.Point(48, 176);
     this.label8.Name      = "label8";
     this.label8.Size      = new System.Drawing.Size(232, 23);
     this.label8.TabIndex  = 13;
     this.label8.Text      = "Second Data Point Tooltip (&China):";
     this.label8.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // PointLabelToolTip
     //
     this.PointLabelToolTip.Location     = new System.Drawing.Point(48, 144);
     this.PointLabelToolTip.Name         = "PointLabelToolTip";
     this.PointLabelToolTip.Size         = new System.Drawing.Size(216, 22);
     this.PointLabelToolTip.TabIndex     = 2;
     this.PointLabelToolTip.Text         = "#PERCENT";
     this.PointLabelToolTip.TextChanged += new System.EventHandler(this.ToolTip_TextChanged);
     //
     // label1
     //
     this.label1.Location  = new System.Drawing.Point(48, 120);
     this.label1.Name      = "label1";
     this.label1.Size      = new System.Drawing.Size(192, 23);
     this.label1.TabIndex  = 11;
     this.label1.Text      = "&Data Point Labels Tooltip:";
     this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // LegendToolTip
     //
     this.LegendToolTip.Location     = new System.Drawing.Point(48, 88);
     this.LegendToolTip.Name         = "LegendToolTip";
     this.LegendToolTip.Size         = new System.Drawing.Size(216, 22);
     this.LegendToolTip.TabIndex     = 1;
     this.LegendToolTip.Text         = "Income in #LABEL  is #VAL million";
     this.LegendToolTip.TextChanged += new System.EventHandler(this.ToolTip_TextChanged);
     //
     // SeriesToolTip
     //
     this.SeriesToolTip.Location     = new System.Drawing.Point(48, 32);
     this.SeriesToolTip.Name         = "SeriesToolTip";
     this.SeriesToolTip.Size         = new System.Drawing.Size(216, 22);
     this.SeriesToolTip.TabIndex     = 0;
     this.SeriesToolTip.Text         = "Percent: #PERCENT";
     this.SeriesToolTip.TextChanged += new System.EventHandler(this.ToolTip_TextChanged);
     //
     // label7
     //
     this.label7.Location  = new System.Drawing.Point(48, 64);
     this.label7.Name      = "label7";
     this.label7.Size      = new System.Drawing.Size(208, 23);
     this.label7.TabIndex  = 8;
     this.label7.Text      = "&Legend ToolTip Text Or Format:";
     this.label7.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // label2
     //
     this.label2.Location  = new System.Drawing.Point(48, 8);
     this.label2.Name      = "label2";
     this.label2.Size      = new System.Drawing.Size(216, 23);
     this.label2.TabIndex  = 7;
     this.label2.Text      = "&Series ToolTip Text Or Format:";
     this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // 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:";
     //
     // 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)(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      = 38;
     chartArea1.Area3DStyle.IsClustered      = true;
     chartArea1.Area3DStyle.IsRightAngleAxes = false;
     chartArea1.Area3DStyle.Perspective      = 10;
     chartArea1.Area3DStyle.Rotation         = 9;
     chartArea1.Area3DStyle.WallWidth        = 0;
     chartArea1.AxisX.ArrowStyle             = System.Windows.Forms.DataVisualization.Charting.AxisArrowStyle.Triangle;
     chartArea1.AxisX.LabelStyle.Font        = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold);
     chartArea1.AxisX.LineColor              = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
     chartArea1.AxisX.MajorGrid.LineColor    = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
     chartArea1.AxisX2.Enabled               = System.Windows.Forms.DataVisualization.Charting.AxisEnabled.False;
     chartArea1.AxisY.ArrowStyle             = System.Windows.Forms.DataVisualization.Charting.AxisArrowStyle.Triangle;
     chartArea1.AxisY.LabelStyle.Font        = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold);
     chartArea1.AxisY.LineColor              = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
     chartArea1.AxisY.MajorGrid.LineColor    = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
     chartArea1.AxisY2.Enabled               = System.Windows.Forms.DataVisualization.Charting.AxisEnabled.False;
     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.BorderDashStyle    = System.Windows.Forms.DataVisualization.Charting.ChartDashStyle.Solid;
     chartArea1.Name        = "Default";
     chartArea1.ShadowColor = System.Drawing.Color.Transparent;
     this.Chart1.ChartAreas.Add(chartArea1);
     legend1.BackColor     = System.Drawing.Color.Transparent;
     legend1.Font          = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold);
     legend1.IsTextAutoFit = false;
     legend1.Name          = "Default";
     this.Chart1.Legends.Add(legend1);
     this.Chart1.Location     = new System.Drawing.Point(16, 60);
     this.Chart1.Name         = "Chart1";
     series1.BorderColor      = System.Drawing.Color.FromArgb(((int)(((byte)(180)))), ((int)(((byte)(26)))), ((int)(((byte)(59)))), ((int)(((byte)(105)))));
     series1.ChartArea        = "Default";
     series1.ChartType        = System.Windows.Forms.DataVisualization.Charting.SeriesChartType.Doughnut;
     series1.Color            = System.Drawing.Color.FromArgb(((int)(((byte)(220)))), ((int)(((byte)(65)))), ((int)(((byte)(140)))), ((int)(((byte)(240)))));
     series1.CustomProperties = "PieStartAngle=120, PieDrawingStyle=Concave";
     series1.Font             = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     series1.Legend           = "Default";
     series1.Name             = "Series1";
     dataPoint1.AxisLabel     = "Japan";
     dataPoint1.Label         = "Japan";
     dataPoint2.Label         = "China";
     dataPoint3.Label         = "Russia";
     dataPoint4.Label         = "USA";
     dataPoint5.Label         = "Germany";
     dataPoint6.Label         = "Italy";
     dataPoint7.Label         = "Sweden";
     dataPoint8.Label         = "Spain";
     dataPoint9.Label         = "France";
     series1.Points.Add(dataPoint1);
     series1.Points.Add(dataPoint2);
     series1.Points.Add(dataPoint3);
     series1.Points.Add(dataPoint4);
     series1.Points.Add(dataPoint5);
     series1.Points.Add(dataPoint6);
     series1.Points.Add(dataPoint7);
     series1.Points.Add(dataPoint8);
     series1.Points.Add(dataPoint9);
     series1.ToolTip    = "#VALX: #VAL{C} million";
     series1.XValueType = System.Windows.Forms.DataVisualization.Charting.ChartValueType.Double;
     series1.YValueType = System.Windows.Forms.DataVisualization.Charting.ChartValueType.Double;
     this.Chart1.Series.Add(series1);
     this.Chart1.Size     = new System.Drawing.Size(412, 296);
     this.Chart1.TabIndex = 0;
     this.Chart1.Click   += new System.EventHandler(this.Chart1_Click);
     //
     // UsingToolTips
     //
     this.Controls.Add(this.Chart1);
     this.Controls.Add(this.panel1);
     this.Controls.Add(this.label9);
     this.Font  = new System.Drawing.Font("Verdana", 9F);
     this.Name  = "UsingToolTips";
     this.Size  = new System.Drawing.Size(728, 480);
     this.Load += new System.EventHandler(this.UsingToolTips_Load);
     this.panel1.ResumeLayout(false);
     this.panel1.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.Chart1)).EndInit();
     this.ResumeLayout(false);
 }
Example #47
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.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(0, 1.2999999523162842);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint2 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 1.7999999523162842);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint3 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 2.2999999523162842);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint4 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 1.5);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint5 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 1.2000000476837158);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint6 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 1.7999999523162842);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint7 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 1.2000000476837158);
     System.ComponentModel.ComponentResourceManager            resources  = new System.ComponentModel.ComponentResourceManager(typeof(LabelsKeywords));
     this.label9          = new System.Windows.Forms.Label();
     this.panel1          = new System.Windows.Forms.Panel();
     this.AxisLabelsList  = new System.Windows.Forms.ComboBox();
     this.label2          = new System.Windows.Forms.Label();
     this.PointLabelsList = 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.label7          = 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 demonstrates how to use keywords within axis and data point labels.";
     this.label9.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // panel1
     //
     this.panel1.Controls.Add(this.AxisLabelsList);
     this.panel1.Controls.Add(this.label2);
     this.panel1.Controls.Add(this.PointLabelsList);
     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, 56);
     this.panel1.Name     = "panel1";
     this.panel1.Size     = new System.Drawing.Size(292, 288);
     this.panel1.TabIndex = 2;
     //
     // AxisLabelsList
     //
     this.AxisLabelsList.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.AxisLabelsList.Items.AddRange(new object[] {
         "Month: #VALX{MMM}\\nDay: #VALX{dd}",
         "#VALX{dd}\\n#VALX{MMM}\\n#VALX{yyy}",
         "#INDEX"
     });
     this.AxisLabelsList.Location              = new System.Drawing.Point(8, 80);
     this.AxisLabelsList.Name                  = "AxisLabelsList";
     this.AxisLabelsList.Size                  = new System.Drawing.Size(280, 22);
     this.AxisLabelsList.TabIndex              = 3;
     this.AxisLabelsList.SelectedIndexChanged += new System.EventHandler(this.Combo_SelectedIndexChanged);
     //
     // label2
     //
     this.label2.Location = new System.Drawing.Point(8, 58);
     this.label2.Name     = "label2";
     this.label2.Size     = new System.Drawing.Size(192, 20);
     this.label2.TabIndex = 2;
     this.label2.Text     = "&X Axis Label with Keywords:";
     //
     // PointLabelsList
     //
     this.PointLabelsList.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.PointLabelsList.Items.AddRange(new object[] {
         "#PERCENT",
         "Y = #VALY\\nX = #VALX",
         "#VALX{ddd}"
     });
     this.PointLabelsList.Location              = new System.Drawing.Point(8, 24);
     this.PointLabelsList.Name                  = "PointLabelsList";
     this.PointLabelsList.Size                  = new System.Drawing.Size(280, 22);
     this.PointLabelsList.TabIndex              = 1;
     this.PointLabelsList.SelectedIndexChanged += new System.EventHandler(this.Combo_SelectedIndexChanged);
     //
     // label1
     //
     this.label1.Location = new System.Drawing.Point(5, 3);
     this.label1.Name     = "label1";
     this.label1.Size     = new System.Drawing.Size(212, 20);
     this.label1.TabIndex = 0;
     this.label1.Text     = "Data Point &Label with Keywords:";
     //
     // 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 = 7;
     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 = 6;
     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 = 5;
     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 = 4;
     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)(243)))), ((int)(((byte)(223)))), ((int)(((byte)(193)))));
     this.Chart1.BackGradientStyle           = System.Windows.Forms.DataVisualization.Charting.GradientStyle.TopBottom;
     this.Chart1.BorderlineColor             = System.Drawing.Color.FromArgb(((int)(((byte)(181)))), ((int)(((byte)(64)))), ((int)(((byte)(1)))));
     this.Chart1.BorderlineDashStyle         = System.Windows.Forms.DataVisualization.Charting.ChartDashStyle.Solid;
     this.Chart1.BorderlineWidth             = 2;
     this.Chart1.BorderSkin.SkinStyle        = System.Windows.Forms.DataVisualization.Charting.BorderSkinStyle.Emboss;
     chartArea1.Area3DStyle.Inclination      = 15;
     chartArea1.Area3DStyle.IsClustered      = true;
     chartArea1.Area3DStyle.IsRightAngleAxes = false;
     chartArea1.Area3DStyle.Perspective      = 10;
     chartArea1.Area3DStyle.Rotation         = 10;
     chartArea1.Area3DStyle.WallWidth        = 0;
     chartArea1.AxisX.IsLabelAutoFit         = false;
     chartArea1.AxisX.LabelStyle.Font        = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold);
     chartArea1.AxisX.LineColor              = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
     chartArea1.AxisX.MajorGrid.LineColor    = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
     chartArea1.AxisX2.Enabled               = System.Windows.Forms.DataVisualization.Charting.AxisEnabled.False;
     chartArea1.AxisY.IsLabelAutoFit         = false;
     chartArea1.AxisY.IsStartedFromZero      = false;
     chartArea1.AxisY.LabelStyle.Font        = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold);
     chartArea1.AxisY.LabelStyle.Format      = "N2";
     chartArea1.AxisY.LineColor              = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
     chartArea1.AxisY.MajorGrid.LineColor    = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
     chartArea1.AxisY.Maximum                = 2.7999999523162842;
     chartArea1.AxisY.Minimum                = 0.800000011920929;
     chartArea1.AxisY2.Enabled               = System.Windows.Forms.DataVisualization.Charting.AxisEnabled.False;
     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.Enabled       = false;
     legend1.Font          = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold);
     legend1.IsTextAutoFit = false;
     legend1.Name          = "Default";
     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.BorderWidth  = 2;
     series1.ChartArea    = "Default";
     series1.ChartType    = System.Windows.Forms.DataVisualization.Charting.SeriesChartType.Spline;
     series1.Font         = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     series1.Legend       = "Default";
     series1.MarkerColor  = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(64)))), ((int)(((byte)(10)))));
     series1.MarkerSize   = 7;
     series1.MarkerStyle  = System.Windows.Forms.DataVisualization.Charting.MarkerStyle.Square;
     series1.Name         = "Series1";
     series1.Points.Add(dataPoint1);
     series1.Points.Add(dataPoint2);
     series1.Points.Add(dataPoint3);
     series1.Points.Add(dataPoint4);
     series1.Points.Add(dataPoint5);
     series1.Points.Add(dataPoint6);
     series1.Points.Add(dataPoint7);
     series1.ShadowOffset = 1;
     series1.XValueType   = System.Windows.Forms.DataVisualization.Charting.ChartValueType.DateTime;
     this.Chart1.Series.Add(series1);
     this.Chart1.Size     = new System.Drawing.Size(412, 296);
     this.Chart1.TabIndex = 1;
     this.Chart1.Click   += new System.EventHandler(this.Chart1_Click);
     //
     // label7
     //
     this.label7.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                                | System.Windows.Forms.AnchorStyles.Right)));
     this.label7.Font      = new System.Drawing.Font("Verdana", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label7.Location  = new System.Drawing.Point(16, 356);
     this.label7.Name      = "label7";
     this.label7.Size      = new System.Drawing.Size(704, 60);
     this.label7.TabIndex  = 3;
     this.label7.Text      = resources.GetString("label7.Text");
     this.label7.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // LabelsKeywords
     //
     this.Controls.Add(this.label7);
     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  = "LabelsKeywords";
     this.Size  = new System.Drawing.Size(728, 480);
     this.Load += new System.EventHandler(this.CustomLabels_Load);
     this.panel1.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.Chart1)).EndInit();
     this.ResumeLayout(false);
 }
Example #48
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.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, 400);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint2  = new System.Windows.Forms.DataVisualization.Charting.DataPoint(2, 200);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint3  = new System.Windows.Forms.DataVisualization.Charting.DataPoint(3, 700);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint4  = new System.Windows.Forms.DataVisualization.Charting.DataPoint(4, 300);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint5  = new System.Windows.Forms.DataVisualization.Charting.DataPoint(5, 450);
     System.Windows.Forms.DataVisualization.Charting.Series    series2     = new System.Windows.Forms.DataVisualization.Charting.Series();
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint6  = new System.Windows.Forms.DataVisualization.Charting.DataPoint(1, 200);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint7  = new System.Windows.Forms.DataVisualization.Charting.DataPoint(2, 300);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint8  = new System.Windows.Forms.DataVisualization.Charting.DataPoint(3, 350);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint9  = new System.Windows.Forms.DataVisualization.Charting.DataPoint(4, 80);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint10 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(5, 400);
     System.Windows.Forms.DataVisualization.Charting.Series    series3     = new System.Windows.Forms.DataVisualization.Charting.Series();
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint11 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(1, 500);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint12 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(2, 120);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint13 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(3, 300);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint14 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(4, 50);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint15 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(5, 130);
     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.FontSize       = new System.Windows.Forms.ComboBox();
     this.label5         = 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.ToolTip        = new System.Windows.Forms.TextBox();
     this.label4         = new System.Windows.Forms.Label();
     this.label3         = new System.Windows.Forms.Label();
     this.Alignment      = new System.Windows.Forms.ComboBox();
     this.label2         = new System.Windows.Forms.Label();
     this.BorderColor    = new System.Windows.Forms.ComboBox();
     this.label1         = new System.Windows.Forms.Label();
     this.BackColorCom   = new System.Windows.Forms.ComboBox();
     this.Title          = new System.Windows.Forms.TextBox();
     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(168, 32);
     this.TheFont.Name                  = "TheFont";
     this.TheFont.Size                  = new System.Drawing.Size(121, 22);
     this.TheFont.TabIndex              = 2;
     this.TheFont.SelectedIndexChanged += new System.EventHandler(this.ControlChange);
     //
     // FontColorCombo
     //
     this.FontColorCombo.DropDownStyle         = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.FontColorCombo.Location              = new System.Drawing.Point(168, 88);
     this.FontColorCombo.Name                  = "FontColorCombo";
     this.FontColorCombo.Size                  = new System.Drawing.Size(121, 22);
     this.FontColorCombo.TabIndex              = 6;
     this.FontColorCombo.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(168, 60);
     this.FontSize.Name                  = "FontSize";
     this.FontSize.Size                  = new System.Drawing.Size(121, 22);
     this.FontSize.TabIndex              = 4;
     this.FontSize.SelectedIndexChanged += new System.EventHandler(this.ControlChange);
     //
     // label5
     //
     this.label5.Location  = new System.Drawing.Point(8, 35);
     this.label5.Name      = "label5";
     this.label5.Size      = new System.Drawing.Size(156, 16);
     this.label5.TabIndex  = 1;
     this.label5.Text      = "&Font:";
     this.label5.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // label7
     //
     this.label7.Location  = new System.Drawing.Point(8, 91);
     this.label7.Name      = "label7";
     this.label7.Size      = new System.Drawing.Size(156, 16);
     this.label7.TabIndex  = 5;
     this.label7.Text      = "Font &Color:";
     this.label7.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // label8
     //
     this.label8.Location  = new System.Drawing.Point(8, 63);
     this.label8.Name      = "label8";
     this.label8.Size      = new System.Drawing.Size(156, 16);
     this.label8.TabIndex  = 3;
     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, 14);
     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 chart title\'s text, font and color. Note that th" +
                            "e PrePaint and PostPaint events allow for custom drawing of the chart\'s title. ";
     this.label9.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // panel1
     //
     this.panel1.Controls.Add(this.ToolTip);
     this.panel1.Controls.Add(this.label4);
     this.panel1.Controls.Add(this.label3);
     this.panel1.Controls.Add(this.Alignment);
     this.panel1.Controls.Add(this.label2);
     this.panel1.Controls.Add(this.BorderColor);
     this.panel1.Controls.Add(this.label1);
     this.panel1.Controls.Add(this.BackColorCom);
     this.panel1.Controls.Add(this.Title);
     this.panel1.Controls.Add(this.label5);
     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, 68);
     this.panel1.Name     = "panel1";
     this.panel1.Size     = new System.Drawing.Size(292, 296);
     this.panel1.TabIndex = 2;
     //
     // ToolTip
     //
     this.ToolTip.Location     = new System.Drawing.Point(169, 200);
     this.ToolTip.Name         = "ToolTip";
     this.ToolTip.Size         = new System.Drawing.Size(120, 22);
     this.ToolTip.TabIndex     = 14;
     this.ToolTip.Text         = "Title Tooltip";
     this.ToolTip.TextChanged += new System.EventHandler(this.ControlChange);
     //
     // label4
     //
     this.label4.Location  = new System.Drawing.Point(8, 204);
     this.label4.Name      = "label4";
     this.label4.Size      = new System.Drawing.Size(156, 16);
     this.label4.TabIndex  = 13;
     this.label4.Text      = "&ToolTip:";
     this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // label3
     //
     this.label3.Location  = new System.Drawing.Point(8, 175);
     this.label3.Name      = "label3";
     this.label3.Size      = new System.Drawing.Size(156, 16);
     this.label3.TabIndex  = 11;
     this.label3.Text      = "&Alignment:";
     this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // Alignment
     //
     this.Alignment.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.Alignment.Items.AddRange(new object[] {
         "Left",
         "Center",
         "Right"
     });
     this.Alignment.Location              = new System.Drawing.Point(168, 172);
     this.Alignment.Name                  = "Alignment";
     this.Alignment.Size                  = new System.Drawing.Size(121, 22);
     this.Alignment.TabIndex              = 12;
     this.Alignment.SelectedIndexChanged += new System.EventHandler(this.ControlChange);
     //
     // label2
     //
     this.label2.Location  = new System.Drawing.Point(8, 147);
     this.label2.Name      = "label2";
     this.label2.Size      = new System.Drawing.Size(156, 16);
     this.label2.TabIndex  = 9;
     this.label2.Text      = "B&order Color:";
     this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // BorderColor
     //
     this.BorderColor.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.BorderColor.Items.AddRange(new object[] {
         "None",
         "Red",
         "Green",
         "Blue",
         "Yellow"
     });
     this.BorderColor.Location              = new System.Drawing.Point(168, 144);
     this.BorderColor.Name                  = "BorderColor";
     this.BorderColor.Size                  = new System.Drawing.Size(121, 22);
     this.BorderColor.TabIndex              = 10;
     this.BorderColor.SelectedIndexChanged += new System.EventHandler(this.ControlChange);
     //
     // label1
     //
     this.label1.Location  = new System.Drawing.Point(8, 119);
     this.label1.Name      = "label1";
     this.label1.Size      = new System.Drawing.Size(156, 16);
     this.label1.TabIndex  = 7;
     this.label1.Text      = "&Back Color:";
     this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // BackColorCom
     //
     this.BackColorCom.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.BackColorCom.Items.AddRange(new object[] {
         "None",
         "Red",
         "Green",
         "Blue",
         "Yellow"
     });
     this.BackColorCom.Location              = new System.Drawing.Point(168, 116);
     this.BackColorCom.Name                  = "BackColorCom";
     this.BackColorCom.Size                  = new System.Drawing.Size(121, 22);
     this.BackColorCom.TabIndex              = 8;
     this.BackColorCom.SelectedIndexChanged += new System.EventHandler(this.ControlChange);
     //
     // Title
     //
     this.Title.Location     = new System.Drawing.Point(8, 4);
     this.Title.Name         = "Title";
     this.Title.Size         = new System.Drawing.Size(280, 22);
     this.Title.TabIndex     = 0;
     this.Title.Text         = "Sales Report\\nYear 2001";
     this.Title.TextChanged += 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.BorderlineColor             = System.Drawing.Color.FromArgb(((int)(((byte)(26)))), ((int)(((byte)(59)))), ((int)(((byte)(105)))));
     this.Chart1.BorderlineDashStyle         = System.Windows.Forms.DataVisualization.Charting.ChartDashStyle.Solid;
     this.Chart1.BorderlineWidth             = 2;
     this.Chart1.BorderSkin.SkinStyle        = System.Windows.Forms.DataVisualization.Charting.BorderSkinStyle.Emboss;
     chartArea1.Area3DStyle.Enable3D         = true;
     chartArea1.Area3DStyle.Inclination      = 15;
     chartArea1.Area3DStyle.IsClustered      = true;
     chartArea1.Area3DStyle.IsRightAngleAxes = false;
     chartArea1.Area3DStyle.Perspective      = 10;
     chartArea1.Area3DStyle.PointGapDepth    = 0;
     chartArea1.Area3DStyle.Rotation         = 5;
     chartArea1.Area3DStyle.WallWidth        = 0;
     chartArea1.AxisX.IsLabelAutoFit         = false;
     chartArea1.AxisX.IsMarginVisible        = false;
     chartArea1.AxisX.IsStartedFromZero      = 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", 10F, System.Drawing.FontStyle.Bold);
     chartArea1.AxisX2.MajorGrid.Enabled     = false;
     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.AxisY2.MajorGrid.Enabled     = false;
     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.Transparent;
     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.Enabled   = false;
     legend1.Name      = "Default";
     this.Chart1.Legends.Add(legend1);
     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.ChartType    = System.Windows.Forms.DataVisualization.Charting.SeriesChartType.SplineArea;
     series1.Color        = System.Drawing.Color.FromArgb(((int)(((byte)(220)))), ((int)(((byte)(65)))), ((int)(((byte)(140)))), ((int)(((byte)(240)))));
     series1.Legend       = "Default";
     series1.Name         = "Default";
     series1.Points.Add(dataPoint1);
     series1.Points.Add(dataPoint2);
     series1.Points.Add(dataPoint3);
     series1.Points.Add(dataPoint4);
     series1.Points.Add(dataPoint5);
     series1.ShadowColor = System.Drawing.Color.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.ChartType   = System.Windows.Forms.DataVisualization.Charting.SeriesChartType.SplineArea;
     series2.Color       = System.Drawing.Color.FromArgb(((int)(((byte)(220)))), ((int)(((byte)(252)))), ((int)(((byte)(180)))), ((int)(((byte)(65)))));
     series2.Legend      = "Default";
     series2.Name        = "Series2";
     series2.Points.Add(dataPoint6);
     series2.Points.Add(dataPoint7);
     series2.Points.Add(dataPoint8);
     series2.Points.Add(dataPoint9);
     series2.Points.Add(dataPoint10);
     series3.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))));
     series3.ChartArea   = "Default";
     series3.ChartType   = System.Windows.Forms.DataVisualization.Charting.SeriesChartType.SplineArea;
     series3.Color       = System.Drawing.Color.FromArgb(((int)(((byte)(220)))), ((int)(((byte)(224)))), ((int)(((byte)(64)))), ((int)(((byte)(10)))));
     series3.Legend      = "Default";
     series3.Name        = "Series3";
     series3.Points.Add(dataPoint11);
     series3.Points.Add(dataPoint12);
     series3.Points.Add(dataPoint13);
     series3.Points.Add(dataPoint14);
     series3.Points.Add(dataPoint15);
     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.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          = "Sales Report\\nYear 2001";
     this.Chart1.Titles.Add(title1);
     //
     // ChartTitle
     //
     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 = "ChartTitle";
     this.Size = new System.Drawing.Size(728, 480);
     this.panel1.ResumeLayout(false);
     this.panel1.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.Chart1)).EndInit();
     this.ResumeLayout(false);
 }
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     System.Windows.Forms.DataVisualization.Charting.ChartArea chartArea1  = new System.Windows.Forms.DataVisualization.Charting.ChartArea();
     System.Windows.Forms.DataVisualization.Charting.Legend    legend1     = new System.Windows.Forms.DataVisualization.Charting.Legend();
     System.Windows.Forms.DataVisualization.Charting.Series    series1     = new System.Windows.Forms.DataVisualization.Charting.Series();
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint1  = new System.Windows.Forms.DataVisualization.Charting.DataPoint(37530, 3);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint2  = new System.Windows.Forms.DataVisualization.Charting.DataPoint(37531, 7);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint3  = new System.Windows.Forms.DataVisualization.Charting.DataPoint(37532, 8);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint4  = new System.Windows.Forms.DataVisualization.Charting.DataPoint(37533, 6);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint5  = new System.Windows.Forms.DataVisualization.Charting.DataPoint(37534, 7);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint6  = new System.Windows.Forms.DataVisualization.Charting.DataPoint(37535, 7);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint7  = new System.Windows.Forms.DataVisualization.Charting.DataPoint(37536, 8);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint8  = new System.Windows.Forms.DataVisualization.Charting.DataPoint(37537, 9);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint9  = new System.Windows.Forms.DataVisualization.Charting.DataPoint(37539, 4);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint10 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(37541, 6);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint11 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(37542, 3);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint12 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(37543, 6);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint13 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(37544, 2);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint14 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(37545, 1);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint15 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(37546, 5);
     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.label10       = new System.Windows.Forms.Label();
     this.XIntervalType = new System.Windows.Forms.ComboBox();
     this.label2        = new System.Windows.Forms.Label();
     this.label1        = new System.Windows.Forms.Label();
     this.YInterval     = new System.Windows.Forms.ComboBox();
     this.XInterval     = new System.Windows.Forms.ComboBox();
     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.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, 14);
     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 cursor interval so that the cursor will \"" +
                            "step\" as it moves across the data view. To move the cursor, left-click on the ch" +
                            "art and drag the mouse.";
     this.label9.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // panel1
     //
     this.panel1.Controls.Add(this.label10);
     this.panel1.Controls.Add(this.XIntervalType);
     this.panel1.Controls.Add(this.label2);
     this.panel1.Controls.Add(this.label1);
     this.panel1.Controls.Add(this.YInterval);
     this.panel1.Controls.Add(this.XInterval);
     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, 68);
     this.panel1.Name     = "panel1";
     this.panel1.Size     = new System.Drawing.Size(292, 288);
     this.panel1.TabIndex = 2;
     //
     // label10
     //
     this.label10.Location  = new System.Drawing.Point(32, 40);
     this.label10.Name      = "label10";
     this.label10.Size      = new System.Drawing.Size(136, 23);
     this.label10.TabIndex  = 2;
     this.label10.Text      = "Interval &Type:";
     this.label10.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // XIntervalType
     //
     this.XIntervalType.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.XIntervalType.Items.AddRange(new object[] {
         "Hours",
         "Days",
         "Weeks"
     });
     this.XIntervalType.Location              = new System.Drawing.Point(168, 40);
     this.XIntervalType.Name                  = "XIntervalType";
     this.XIntervalType.Size                  = new System.Drawing.Size(121, 22);
     this.XIntervalType.TabIndex              = 3;
     this.XIntervalType.SelectedIndexChanged += new System.EventHandler(this.Series_SelectedIndexChanged);
     //
     // label2
     //
     this.label2.Location  = new System.Drawing.Point(32, 72);
     this.label2.Name      = "label2";
     this.label2.Size      = new System.Drawing.Size(136, 23);
     this.label2.TabIndex  = 4;
     this.label2.Text      = "&Y Interval:";
     this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // label1
     //
     this.label1.Location  = new System.Drawing.Point(32, 8);
     this.label1.Name      = "label1";
     this.label1.Size      = new System.Drawing.Size(136, 23);
     this.label1.TabIndex  = 0;
     this.label1.Text      = "&X Interval:";
     this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // YInterval
     //
     this.YInterval.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.YInterval.Items.AddRange(new object[] {
         "0",
         "1",
         "2"
     });
     this.YInterval.Location              = new System.Drawing.Point(168, 72);
     this.YInterval.Name                  = "YInterval";
     this.YInterval.Size                  = new System.Drawing.Size(121, 22);
     this.YInterval.TabIndex              = 5;
     this.YInterval.SelectedIndexChanged += new System.EventHandler(this.Series_SelectedIndexChanged);
     //
     // XInterval
     //
     this.XInterval.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.XInterval.Items.AddRange(new object[] {
         "0",
         "1",
         "2",
         "12"
     });
     this.XInterval.Location              = new System.Drawing.Point(168, 8);
     this.XInterval.Name                  = "XInterval";
     this.XInterval.Size                  = new System.Drawing.Size(121, 22);
     this.XInterval.TabIndex              = 1;
     this.XInterval.SelectedIndexChanged += new System.EventHandler(this.Series_SelectedIndexChanged);
     //
     // 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:";
     //
     // 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.WhiteSmoke;
     this.Chart1.BackGradientStyle                 = System.Windows.Forms.DataVisualization.Charting.GradientStyle.TopBottom;
     this.Chart1.BackSecondaryColor                = System.Drawing.Color.White;
     this.Chart1.BorderlineColor                   = System.Drawing.Color.FromArgb(((int)(((byte)(26)))), ((int)(((byte)(59)))), ((int)(((byte)(105)))));
     this.Chart1.BorderlineDashStyle               = System.Windows.Forms.DataVisualization.Charting.ChartDashStyle.Solid;
     this.Chart1.BorderlineWidth                   = 2;
     this.Chart1.BorderSkin.SkinStyle              = System.Windows.Forms.DataVisualization.Charting.BorderSkinStyle.Emboss;
     chartArea1.Area3DStyle.Inclination            = 15;
     chartArea1.Area3DStyle.IsClustered            = true;
     chartArea1.Area3DStyle.IsRightAngleAxes       = false;
     chartArea1.Area3DStyle.Perspective            = 10;
     chartArea1.Area3DStyle.Rotation               = 10;
     chartArea1.Area3DStyle.WallWidth              = 0;
     chartArea1.AxisX.IntervalAutoMode             = System.Windows.Forms.DataVisualization.Charting.IntervalAutoMode.VariableCount;
     chartArea1.AxisX.IsLabelAutoFit               = false;
     chartArea1.AxisX.LabelStyle.Font              = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold);
     chartArea1.AxisX.LabelStyle.Format            = "dd/MM";
     chartArea1.AxisX.LabelStyle.Interval          = 0;
     chartArea1.AxisX.LabelStyle.IntervalType      = System.Windows.Forms.DataVisualization.Charting.DateTimeIntervalType.Days;
     chartArea1.AxisX.LabelStyle.IsEndLabelVisible = false;
     chartArea1.AxisX.LineColor                    = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
     chartArea1.AxisX.MajorGrid.Interval           = 1;
     chartArea1.AxisX.MajorGrid.IntervalType       = System.Windows.Forms.DataVisualization.Charting.DateTimeIntervalType.Days;
     chartArea1.AxisX.MajorGrid.LineColor          = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
     chartArea1.AxisX.MajorTickMark.Interval       = 1;
     chartArea1.AxisX.MajorTickMark.IntervalType   = System.Windows.Forms.DataVisualization.Charting.DateTimeIntervalType.Days;
     chartArea1.AxisX.MinorTickMark.Interval       = 12;
     chartArea1.AxisX.MinorTickMark.IntervalType   = System.Windows.Forms.DataVisualization.Charting.DateTimeIntervalType.Hours;
     chartArea1.AxisX.ScrollBar.LineColor          = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
     chartArea1.AxisY.IsLabelAutoFit               = false;
     chartArea1.AxisY.LabelStyle.Font              = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold);
     chartArea1.AxisY.LabelStyle.Format            = "N0";
     chartArea1.AxisY.LabelStyle.Interval          = 0;
     chartArea1.AxisY.LabelStyle.IntervalType      = System.Windows.Forms.DataVisualization.Charting.DateTimeIntervalType.Number;
     chartArea1.AxisY.LineColor                    = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
     chartArea1.AxisY.MajorGrid.Interval           = 1;
     chartArea1.AxisY.MajorGrid.IntervalType       = System.Windows.Forms.DataVisualization.Charting.DateTimeIntervalType.Number;
     chartArea1.AxisY.MajorGrid.LineColor          = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
     chartArea1.AxisY.MajorTickMark.IntervalType   = System.Windows.Forms.DataVisualization.Charting.DateTimeIntervalType.Number;
     chartArea1.AxisY.MinorTickMark.Interval       = 1;
     chartArea1.AxisY.ScrollBar.LineColor          = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
     chartArea1.BackColor                      = System.Drawing.Color.Gainsboro;
     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.CursorX.IsUserEnabled          = true;
     chartArea1.CursorX.IsUserSelectionEnabled = true;
     chartArea1.CursorX.SelectionColor         = System.Drawing.SystemColors.Highlight;
     chartArea1.CursorY.IsUserEnabled          = true;
     chartArea1.CursorY.IsUserSelectionEnabled = true;
     chartArea1.CursorY.SelectionColor         = System.Drawing.SystemColors.Highlight;
     chartArea1.Name        = "Default";
     chartArea1.ShadowColor = System.Drawing.Color.Transparent;
     this.Chart1.ChartAreas.Add(chartArea1);
     legend1.BackColor     = System.Drawing.Color.Transparent;
     legend1.Enabled       = false;
     legend1.Font          = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold);
     legend1.IsTextAutoFit = false;
     legend1.Name          = "Default";
     this.Chart1.Legends.Add(legend1);
     this.Chart1.Location = new System.Drawing.Point(16, 60);
     this.Chart1.Name     = "Chart1";
     series1.BorderColor  = System.Drawing.Color.FromArgb(((int)(((byte)(180)))), ((int)(((byte)(26)))), ((int)(((byte)(59)))), ((int)(((byte)(105)))));
     series1.ChartArea    = "Default";
     series1.ChartType    = System.Windows.Forms.DataVisualization.Charting.SeriesChartType.Point;
     series1.Legend       = "Default";
     series1.Name         = "Series1";
     series1.Points.Add(dataPoint1);
     series1.Points.Add(dataPoint2);
     series1.Points.Add(dataPoint3);
     series1.Points.Add(dataPoint4);
     series1.Points.Add(dataPoint5);
     series1.Points.Add(dataPoint6);
     series1.Points.Add(dataPoint7);
     series1.Points.Add(dataPoint8);
     series1.Points.Add(dataPoint9);
     series1.Points.Add(dataPoint10);
     series1.Points.Add(dataPoint11);
     series1.Points.Add(dataPoint12);
     series1.Points.Add(dataPoint13);
     series1.Points.Add(dataPoint14);
     series1.Points.Add(dataPoint15);
     series1.ShadowColor  = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))));
     series1.ShadowOffset = 2;
     series1.XValueType   = System.Windows.Forms.DataVisualization.Charting.ChartValueType.DateTime;
     this.Chart1.Series.Add(series1);
     this.Chart1.Size     = new System.Drawing.Size(412, 296);
     this.Chart1.TabIndex = 1;
     title1.Alignment     = System.Drawing.ContentAlignment.MiddleLeft;
     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          = "Cursor Intervals";
     this.Chart1.Titles.Add(title1);
     //
     // CursorInterval
     //
     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  = "CursorInterval";
     this.Size  = new System.Drawing.Size(728, 376);
     this.Load += new System.EventHandler(this.CursorInterval_Load);
     this.panel1.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.Chart1)).EndInit();
     this.ResumeLayout(false);
 }
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     System.Windows.Forms.DataVisualization.Charting.ChartArea chartArea1  = new System.Windows.Forms.DataVisualization.Charting.ChartArea();
     System.Windows.Forms.DataVisualization.Charting.Legend    legend1     = new System.Windows.Forms.DataVisualization.Charting.Legend();
     System.Windows.Forms.DataVisualization.Charting.Series    series1     = new System.Windows.Forms.DataVisualization.Charting.Series();
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint1  = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 400);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint2  = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 2600);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint3  = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 1700);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint4  = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 3000);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint5  = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 200);
     System.Windows.Forms.DataVisualization.Charting.Series    series2     = new System.Windows.Forms.DataVisualization.Charting.Series();
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint6  = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 1600);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint7  = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 2400);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint8  = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 2500);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint9  = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 2800);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint10 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 1000);
     System.Windows.Forms.DataVisualization.Charting.Series    series3     = new System.Windows.Forms.DataVisualization.Charting.Series();
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint11 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 2100);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint12 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 2100);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint13 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 3200);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint14 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 2500);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint15 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 1500);
     this.label9        = new System.Windows.Forms.Label();
     this.panel1        = new System.Windows.Forms.Panel();
     this.label3        = new System.Windows.Forms.Label();
     this.MajorInterval = new System.Windows.Forms.ComboBox();
     this.label2        = new System.Windows.Forms.Label();
     this.MinorInterval = new System.Windows.Forms.ComboBox();
     this.label1        = new System.Windows.Forms.Label();
     this.Base          = new System.Windows.Forms.ComboBox();
     this.Logaritmic    = 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, ((System.Byte)(0)));
     this.label9.Location  = new System.Drawing.Point(16, 14);
     this.label9.Name      = "label9";
     this.label9.Size      = new System.Drawing.Size(702, 34);
     this.label9.TabIndex  = 0;
     this.label9.Text      = "This sample demonstrates how to use a logarithmic scale and a logarithmic base.";
     this.label9.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // panel1
     //
     this.panel1.Controls.AddRange(new System.Windows.Forms.Control[] {
         this.label3,
         this.MajorInterval,
         this.label2,
         this.MinorInterval,
         this.label1,
         this.Base,
         this.Logaritmic
     });
     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;
     this.panel1.Paint   += new System.Windows.Forms.PaintEventHandler(this.panel1_Paint);
     //
     // label3
     //
     this.label3.Location  = new System.Drawing.Point(4, 64);
     this.label3.Name      = "label3";
     this.label3.Size      = new System.Drawing.Size(160, 23);
     this.label3.TabIndex  = 3;
     this.label3.Text      = "Ma&jor Interval:";
     this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // MajorInterval
     //
     this.MajorInterval.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.MajorInterval.Items.AddRange(new object[] {
         "1",
         "2",
         "3"
     });
     this.MajorInterval.Location              = new System.Drawing.Point(168, 64);
     this.MajorInterval.Name                  = "MajorInterval";
     this.MajorInterval.Size                  = new System.Drawing.Size(112, 22);
     this.MajorInterval.TabIndex              = 4;
     this.MajorInterval.SelectedIndexChanged += new System.EventHandler(this.MajorInterval_SelectedIndexChanged);
     //
     // label2
     //
     this.label2.Location  = new System.Drawing.Point(4, 96);
     this.label2.Name      = "label2";
     this.label2.Size      = new System.Drawing.Size(160, 23);
     this.label2.TabIndex  = 5;
     this.label2.Text      = "Mi&nor Interval:";
     this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // MinorInterval
     //
     this.MinorInterval.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.MinorInterval.Items.AddRange(new object[] {
         "1",
         "2",
         "5"
     });
     this.MinorInterval.Location              = new System.Drawing.Point(168, 96);
     this.MinorInterval.Name                  = "MinorInterval";
     this.MinorInterval.Size                  = new System.Drawing.Size(112, 22);
     this.MinorInterval.TabIndex              = 6;
     this.MinorInterval.SelectedIndexChanged += new System.EventHandler(this.MinorInterval_SelectedIndexChanged);
     //
     // label1
     //
     this.label1.Location  = new System.Drawing.Point(8, 32);
     this.label1.Name      = "label1";
     this.label1.Size      = new System.Drawing.Size(156, 23);
     this.label1.TabIndex  = 1;
     this.label1.Text      = "Logarithmic &Base:";
     this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // Base
     //
     this.Base.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.Base.Items.AddRange(new object[] {
         "10",
         "2",
         "e"
     });
     this.Base.Location              = new System.Drawing.Point(168, 32);
     this.Base.Name                  = "Base";
     this.Base.Size                  = new System.Drawing.Size(112, 22);
     this.Base.TabIndex              = 2;
     this.Base.SelectedIndexChanged += new System.EventHandler(this.Base_SelectedIndexChanged);
     //
     // Logaritmic
     //
     this.Logaritmic.CheckAlign      = System.Drawing.ContentAlignment.MiddleRight;
     this.Logaritmic.Location        = new System.Drawing.Point(12, 8);
     this.Logaritmic.Name            = "Logaritmic";
     this.Logaritmic.Size            = new System.Drawing.Size(168, 16);
     this.Logaritmic.TabIndex        = 0;
     this.Logaritmic.Text            = "&Logarithmic:";
     this.Logaritmic.TextAlign       = System.Drawing.ContentAlignment.MiddleRight;
     this.Logaritmic.CheckedChanged += new System.EventHandler(this.Logaritmic_CheckedChanged);
     //
     // Chart1
     //
     this.Chart1.BackColor                    = System.Drawing.Color.WhiteSmoke;
     this.Chart1.BackSecondaryColor           = System.Drawing.Color.White;
     this.Chart1.BackGradientStyle            = System.Windows.Forms.DataVisualization.Charting.GradientStyle.TopBottom;
     this.Chart1.BorderlineColor              = System.Drawing.Color.FromArgb(((System.Byte)(26)), ((System.Byte)(59)), ((System.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.IsClustered       = true;
     chartArea1.Area3DStyle.Perspective       = 10;
     chartArea1.Area3DStyle.IsRightAngleAxes  = false;
     chartArea1.Area3DStyle.WallWidth         = 0;
     chartArea1.Area3DStyle.Inclination       = 15;
     chartArea1.Area3DStyle.Rotation          = 10;
     chartArea1.AxisX.ArrowStyle              = System.Windows.Forms.DataVisualization.Charting.AxisArrowStyle.Triangle;
     chartArea1.AxisX.IsLabelAutoFit          = false;
     chartArea1.AxisX.LabelStyle.Font         = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold);
     chartArea1.AxisX.LabelStyle.Format       = "N0";
     chartArea1.AxisX.LineColor               = System.Drawing.Color.FromArgb(((System.Byte)(64)), ((System.Byte)(64)), ((System.Byte)(64)), ((System.Byte)(64)));
     chartArea1.AxisX.MajorGrid.LineColor     = System.Drawing.Color.FromArgb(((System.Byte)(64)), ((System.Byte)(64)), ((System.Byte)(64)), ((System.Byte)(64)));
     chartArea1.AxisX.MinorGrid.LineColor     = System.Drawing.Color.FromArgb(((System.Byte)(64)), ((System.Byte)(64)), ((System.Byte)(64)), ((System.Byte)(64)));
     chartArea1.AxisX.TitleFont               = new System.Drawing.Font("Microsoft Sans Serif", 10F, System.Drawing.FontStyle.Bold);
     chartArea1.AxisX2.Enabled                = System.Windows.Forms.DataVisualization.Charting.AxisEnabled.False;
     chartArea1.AxisX2.MajorGrid.Enabled      = false;
     chartArea1.AxisY.ArrowStyle              = System.Windows.Forms.DataVisualization.Charting.AxisArrowStyle.Triangle;
     chartArea1.AxisY.IsLabelAutoFit          = false;
     chartArea1.AxisY.LabelStyle.Font         = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold);
     chartArea1.AxisY.LabelStyle.Format       = "N0";
     chartArea1.AxisY.LineColor               = System.Drawing.Color.FromArgb(((System.Byte)(64)), ((System.Byte)(64)), ((System.Byte)(64)), ((System.Byte)(64)));
     chartArea1.AxisY.MajorGrid.LineColor     = System.Drawing.Color.FromArgb(((System.Byte)(64)), ((System.Byte)(64)), ((System.Byte)(64)), ((System.Byte)(64)));
     chartArea1.AxisY.MajorTickMark.LineColor = System.Drawing.Color.FromArgb(((System.Byte)(64)), ((System.Byte)(64)), ((System.Byte)(64)), ((System.Byte)(64)));
     chartArea1.AxisY.MinorGrid.Enabled       = true;
     chartArea1.AxisY.MinorGrid.LineColor     = System.Drawing.Color.FromArgb(((System.Byte)(64)), ((System.Byte)(64)), ((System.Byte)(64)), ((System.Byte)(64)));
     chartArea1.AxisY.MinorTickMark.Enabled   = true;
     chartArea1.AxisY.MinorTickMark.LineColor = System.Drawing.Color.FromArgb(((System.Byte)(64)), ((System.Byte)(64)), ((System.Byte)(64)), ((System.Byte)(64)));
     chartArea1.AxisY2.Enabled                = System.Windows.Forms.DataVisualization.Charting.AxisEnabled.False;
     chartArea1.AxisY2.MajorGrid.Enabled      = false;
     chartArea1.BackColor          = System.Drawing.Color.Gainsboro;
     chartArea1.BackSecondaryColor = System.Drawing.Color.White;
     chartArea1.BackGradientStyle  = System.Windows.Forms.DataVisualization.Charting.GradientStyle.TopBottom;
     chartArea1.BorderColor        = System.Drawing.Color.FromArgb(((System.Byte)(64)), ((System.Byte)(64)), ((System.Byte)(64)), ((System.Byte)(64)));
     chartArea1.Name        = "Default";
     chartArea1.ShadowColor = System.Drawing.Color.Transparent;
     this.Chart1.ChartAreas.Add(chartArea1);
     legend1.IsTextAutoFit = false;
     legend1.BackColor     = System.Drawing.Color.Transparent;
     legend1.Enabled       = false;
     legend1.Font          = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold);
     legend1.Name          = "Default";
     this.Chart1.Legends.Add(legend1);
     this.Chart1.Location = new System.Drawing.Point(16, 60);
     this.Chart1.Name     = "Chart1";
     this.Chart1.Palette  = System.Windows.Forms.DataVisualization.Charting.ChartColorPalette.BrightPastel;
     series1.BorderColor  = System.Drawing.Color.FromArgb(((System.Byte)(180)), ((System.Byte)(26)), ((System.Byte)(59)), ((System.Byte)(105)));
     series1.Name         = "Series1";
     series1.Points.Add(dataPoint1);
     series1.Points.Add(dataPoint2);
     series1.Points.Add(dataPoint3);
     series1.Points.Add(dataPoint4);
     series1.Points.Add(dataPoint5);
     series2.Name = "Series2";
     series2.Points.Add(dataPoint6);
     series2.Points.Add(dataPoint7);
     series2.Points.Add(dataPoint8);
     series2.Points.Add(dataPoint9);
     series2.Points.Add(dataPoint10);
     series3.Name = "Series3";
     series3.Points.Add(dataPoint11);
     series3.Points.Add(dataPoint12);
     series3.Points.Add(dataPoint13);
     series3.Points.Add(dataPoint14);
     series3.Points.Add(dataPoint15);
     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;
     this.Chart1.Click   += new System.EventHandler(this.Chart1_Click);
     //
     // LogarithmicScale
     //
     this.Controls.AddRange(new System.Windows.Forms.Control[] {
         this.Chart1,
         this.panel1,
         this.label9
     });
     this.Font  = new System.Drawing.Font("Verdana", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.Name  = "LogarithmicScale";
     this.Size  = new System.Drawing.Size(728, 480);
     this.Load += new System.EventHandler(this.LogarithmicScale_Load);
     this.panel1.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.Chart1)).EndInit();
     this.ResumeLayout(false);
 }
Example #51
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.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(0, 6);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint2 =
         new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 9);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint3 =
         new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 5);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint4 =
         new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 7.5);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint5 =
         new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 5.6999998092651367);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint6 =
         new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 3.2000000476837158);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint7 =
         new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 8.5);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint8 =
         new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 7.5);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint9 =
         new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 6.5);
     System.Windows.Forms.DataVisualization.Charting.Series series2 =
         new System.Windows.Forms.DataVisualization.Charting.Series();
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint10 =
         new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 6);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint11 =
         new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 9);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint12 =
         new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 2);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint13 =
         new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 7);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint14 =
         new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 3);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint15 =
         new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 5);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint16 =
         new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 8);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint17 =
         new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 2);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint18 =
         new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 6);
     System.Windows.Forms.DataVisualization.Charting.Series series3 =
         new System.Windows.Forms.DataVisualization.Charting.Series();
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint19 =
         new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 4);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint20 =
         new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 5);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint21 =
         new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 2);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint22 =
         new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 6);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint23 =
         new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 1);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint24 =
         new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 2);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint25 =
         new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 3);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint26 =
         new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 1);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint27 =
         new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 2);
     System.Windows.Forms.DataVisualization.Charting.Title title1 =
         new System.Windows.Forms.DataVisualization.Charting.Title();
     this._chart1             = new System.Windows.Forms.DataVisualization.Charting.Chart();
     this._labelSampleComment = new System.Windows.Forms.Label();
     this._panel1             = new System.Windows.Forms.Panel();
     this._checkClustered     = new System.Windows.Forms.CheckBox();
     this._rotation           = new System.Windows.Forms.NumericUpDown();
     this._inclination        = new System.Windows.Forms.NumericUpDown();
     this._label2             = new System.Windows.Forms.Label();
     this._label1             = new System.Windows.Forms.Label();
     this._rightAngleAxis     = new System.Windows.Forms.CheckBox();
     this._checkBoxShowMargin = new System.Windows.Forms.CheckBox();
     this._radioButtonColumn  = new System.Windows.Forms.RadioButton();
     this._radioButtonBar     = new System.Windows.Forms.RadioButton();
     ((System.ComponentModel.ISupportInitialize)(this._chart1)).BeginInit();
     this._panel1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this._rotation)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this._inclination)).BeginInit();
     this.SuspendLayout();
     //
     // chart1
     //
     this._chart1.BackColor = System.Drawing.Color.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.Enable3D         = true;
     chartArea1.Area3DStyle.Inclination      = 15;
     chartArea1.Area3DStyle.IsClustered      = true;
     chartArea1.Area3DStyle.IsRightAngleAxes = false;
     chartArea1.Area3DStyle.Perspective      = 10;
     chartArea1.Area3DStyle.Rotation         = 10;
     chartArea1.Area3DStyle.WallWidth        = 0;
     chartArea1.AxisX.LabelStyle.Font        =
         new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold);
     chartArea1.AxisX.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))),
                                                                ((int)(((byte)(64)))), ((int)(((byte)(64)))));
     chartArea1.AxisX.MajorGrid.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))),
                                                                          ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
     chartArea1.AxisY.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.Transparent;
     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.Enabled       = false;
     legend1.Font          = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold);
     legend1.IsTextAutoFit = false;
     legend1.Name          = "Default";
     this._chart1.Legends.Add(legend1);
     this._chart1.Location = new System.Drawing.Point(16, 58);
     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)(220)))), ((int)(((byte)(65)))),
                                                       ((int)(((byte)(140)))), ((int)(((byte)(240)))));
     series1.Legend = "Default";
     series1.Name   = "Default";
     series1.Points.Add(dataPoint1);
     series1.Points.Add(dataPoint2);
     series1.Points.Add(dataPoint3);
     series1.Points.Add(dataPoint4);
     series1.Points.Add(dataPoint5);
     series1.Points.Add(dataPoint6);
     series1.Points.Add(dataPoint7);
     series1.Points.Add(dataPoint8);
     series1.Points.Add(dataPoint9);
     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)(220)))), ((int)(((byte)(252)))),
                                                       ((int)(((byte)(180)))), ((int)(((byte)(65)))));
     series2.Legend = "Default";
     series2.Name   = "Series2";
     series2.Points.Add(dataPoint10);
     series2.Points.Add(dataPoint11);
     series2.Points.Add(dataPoint12);
     series2.Points.Add(dataPoint13);
     series2.Points.Add(dataPoint14);
     series2.Points.Add(dataPoint15);
     series2.Points.Add(dataPoint16);
     series2.Points.Add(dataPoint17);
     series2.Points.Add(dataPoint18);
     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)(220)))), ((int)(((byte)(224)))),
                                                       ((int)(((byte)(64)))), ((int)(((byte)(10)))));
     series3.Legend = "Default";
     series3.Name   = "Series3";
     series3.Points.Add(dataPoint19);
     series3.Points.Add(dataPoint20);
     series3.Points.Add(dataPoint21);
     series3.Points.Add(dataPoint22);
     series3.Points.Add(dataPoint23);
     series3.Points.Add(dataPoint24);
     series3.Points.Add(dataPoint25);
     series3.Points.Add(dataPoint26);
     series3.Points.Add(dataPoint27);
     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.Font           = new System.Drawing.Font("Trebuchet MS", 14.25F, System.Drawing.FontStyle.Bold);
     title1.ForeColor      = System.Drawing.Color.FromArgb(((int)(((byte)(26)))), ((int)(((byte)(59)))),
                                                           ((int)(((byte)(105)))));
     title1.Name        = "Title1";
     title1.ShadowColor = System.Drawing.Color.FromArgb(((int)(((byte)(32)))), ((int)(((byte)(0)))),
                                                        ((int)(((byte)(0)))), ((int)(((byte)(0)))));
     title1.ShadowOffset = 3;
     title1.Text         = "3D Bar and Column charts.";
     this._chart1.Titles.Add(title1);
     //
     // labelSampleComment
     //
     this._labelSampleComment.Font = new System.Drawing.Font("Verdana", 11F, System.Drawing.FontStyle.Regular,
                                                             System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this._labelSampleComment.Location = new System.Drawing.Point(16, 8);
     this._labelSampleComment.Name     = "_labelSampleComment";
     this._labelSampleComment.Size     = new System.Drawing.Size(702, 42);
     this._labelSampleComment.TabIndex = 0;
     this._labelSampleComment.Text     =
         "This sample demonstrates 3D Column and Bar charts. It also shows chart area rotat" +
         "ion and isometric projection,�as well as clustering of�series. ";
     this._labelSampleComment.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // panel1
     //
     this._panel1.Controls.Add(this._checkClustered);
     this._panel1.Controls.Add(this._rotation);
     this._panel1.Controls.Add(this._inclination);
     this._panel1.Controls.Add(this._label2);
     this._panel1.Controls.Add(this._label1);
     this._panel1.Controls.Add(this._rightAngleAxis);
     this._panel1.Controls.Add(this._checkBoxShowMargin);
     this._panel1.Controls.Add(this._radioButtonColumn);
     this._panel1.Controls.Add(this._radioButtonBar);
     this._panel1.Location = new System.Drawing.Point(432, 66);
     this._panel1.Name     = "_panel1";
     this._panel1.Size     = new System.Drawing.Size(292, 288);
     this._panel1.TabIndex = 2;
     //
     // checkClustered
     //
     this._checkClustered.CheckAlign      = System.Drawing.ContentAlignment.MiddleRight;
     this._checkClustered.Checked         = true;
     this._checkClustered.CheckState      = System.Windows.Forms.CheckState.Checked;
     this._checkClustered.Location        = new System.Drawing.Point(37, 136);
     this._checkClustered.Name            = "_checkClustered";
     this._checkClustered.Size            = new System.Drawing.Size(144, 24);
     this._checkClustered.TabIndex        = 4;
     this._checkClustered.Text            = "&Clustered:";
     this._checkClustered.TextAlign       = System.Drawing.ContentAlignment.MiddleRight;
     this._checkClustered.CheckedChanged += new System.EventHandler(this.checkClustered_CheckedChanged);
     //
     // Rotation
     //
     this._rotation.Increment = new decimal(new int[]
     {
         10,
         0,
         0,
         0
     });
     this._rotation.Location = new System.Drawing.Point(168, 200);
     this._rotation.Maximum  = new decimal(new int[]
     {
         1000,
         0,
         0,
         0
     });
     this._rotation.Minimum = new decimal(new int[]
     {
         1000,
         0,
         0,
         -2147483648
     });
     this._rotation.Name     = "_rotation";
     this._rotation.Size     = new System.Drawing.Size(56, 22);
     this._rotation.TabIndex = 8;
     this._rotation.Value    = new decimal(new int[]
     {
         15,
         0,
         0,
         0
     });
     this._rotation.ValueChanged += new System.EventHandler(this.Rotation_ValueChanged);
     //
     // Inclination
     //
     this._inclination.Increment = new decimal(new int[]
     {
         10,
         0,
         0,
         0
     });
     this._inclination.Location = new System.Drawing.Point(168, 168);
     this._inclination.Maximum  = new decimal(new int[]
     {
         1000,
         0,
         0,
         0
     });
     this._inclination.Minimum = new decimal(new int[]
     {
         1000,
         0,
         0,
         -2147483648
     });
     this._inclination.Name     = "_inclination";
     this._inclination.Size     = new System.Drawing.Size(56, 22);
     this._inclination.TabIndex = 6;
     this._inclination.Value    = new decimal(new int[]
     {
         15,
         0,
         0,
         0
     });
     this._inclination.ValueChanged += new System.EventHandler(this.Inclination_ValueChanged);
     //
     // label2
     //
     this._label2.Location  = new System.Drawing.Point(61, 200);
     this._label2.Name      = "_label2";
     this._label2.Size      = new System.Drawing.Size(104, 23);
     this._label2.TabIndex  = 7;
     this._label2.Text      = "Rotate &Y:";
     this._label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // label1
     //
     this._label1.Location  = new System.Drawing.Point(69, 168);
     this._label1.Name      = "_label1";
     this._label1.Size      = new System.Drawing.Size(96, 23);
     this._label1.TabIndex  = 5;
     this._label1.Text      = "Rotate &X:";
     this._label1.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // RightAngleAxis
     //
     this._rightAngleAxis.CheckAlign      = System.Drawing.ContentAlignment.MiddleRight;
     this._rightAngleAxis.Location        = new System.Drawing.Point(37, 104);
     this._rightAngleAxis.Name            = "_rightAngleAxis";
     this._rightAngleAxis.Size            = new System.Drawing.Size(144, 24);
     this._rightAngleAxis.TabIndex        = 3;
     this._rightAngleAxis.Text            = "&Right Angle Axes:";
     this._rightAngleAxis.TextAlign       = System.Drawing.ContentAlignment.MiddleRight;
     this._rightAngleAxis.CheckedChanged += new System.EventHandler(this.RightAngleAxis_CheckedChanged);
     //
     // checkBoxShowMargin
     //
     this._checkBoxShowMargin.CheckAlign      = System.Drawing.ContentAlignment.MiddleRight;
     this._checkBoxShowMargin.Checked         = true;
     this._checkBoxShowMargin.CheckState      = System.Windows.Forms.CheckState.Checked;
     this._checkBoxShowMargin.Location        = new System.Drawing.Point(5, 72);
     this._checkBoxShowMargin.Name            = "_checkBoxShowMargin";
     this._checkBoxShowMargin.Size            = new System.Drawing.Size(176, 24);
     this._checkBoxShowMargin.TabIndex        = 2;
     this._checkBoxShowMargin.Text            = "Show X Axis &Margin:";
     this._checkBoxShowMargin.TextAlign       = System.Drawing.ContentAlignment.MiddleRight;
     this._checkBoxShowMargin.CheckedChanged += new System.EventHandler(this.checkBoxShowMargin_CheckedChanged);
     //
     // radioButtonColumn
     //
     this._radioButtonColumn.CheckAlign      = System.Drawing.ContentAlignment.MiddleRight;
     this._radioButtonColumn.Checked         = true;
     this._radioButtonColumn.Location        = new System.Drawing.Point(27, 40);
     this._radioButtonColumn.Name            = "_radioButtonColumn";
     this._radioButtonColumn.Size            = new System.Drawing.Size(152, 24);
     this._radioButtonColumn.TabIndex        = 1;
     this._radioButtonColumn.TabStop         = true;
     this._radioButtonColumn.Text            = "3D C&olumn Chart:";
     this._radioButtonColumn.TextAlign       = System.Drawing.ContentAlignment.MiddleRight;
     this._radioButtonColumn.CheckedChanged += new System.EventHandler(this.radioButtonColumn_CheckedChanged);
     //
     // radioButtonBar
     //
     this._radioButtonBar.CheckAlign      = System.Drawing.ContentAlignment.MiddleRight;
     this._radioButtonBar.Location        = new System.Drawing.Point(43, 8);
     this._radioButtonBar.Name            = "_radioButtonBar";
     this._radioButtonBar.Size            = new System.Drawing.Size(136, 24);
     this._radioButtonBar.TabIndex        = 0;
     this._radioButtonBar.Text            = "3D &Bar Chart:";
     this._radioButtonBar.TextAlign       = System.Drawing.ContentAlignment.MiddleRight;
     this._radioButtonBar.CheckedChanged += new System.EventHandler(this.radioButtonBar_CheckedChanged);
     //
     // BarColumn3D
     //
     this.BackColor = System.Drawing.Color.White;
     this.Controls.Add(this._panel1);
     this.Controls.Add(this._labelSampleComment);
     this.Controls.Add(this._chart1);
     this.Font = new System.Drawing.Font("Verdana", 9F, System.Drawing.FontStyle.Regular,
                                         System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.Name  = "BarColumn3D";
     this.Size  = new System.Drawing.Size(728, 480);
     this.Load += new System.EventHandler(this.BarColumn3D_Load);
     ((System.ComponentModel.ISupportInitialize)(this._chart1)).EndInit();
     this._panel1.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this._rotation)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this._inclination)).EndInit();
     this.ResumeLayout(false);
 }
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     System.Windows.Forms.DataVisualization.Charting.CalloutAnnotation calloutAnnotation1 = new System.Windows.Forms.DataVisualization.Charting.CalloutAnnotation();
     System.Windows.Forms.DataVisualization.Charting.ChartArea         chartArea1         = new System.Windows.Forms.DataVisualization.Charting.ChartArea();
     System.Windows.Forms.DataVisualization.Charting.Legend            legend1            = new System.Windows.Forms.DataVisualization.Charting.Legend();
     System.Windows.Forms.DataVisualization.Charting.Series            series1            = new System.Windows.Forms.DataVisualization.Charting.Series();
     System.Windows.Forms.DataVisualization.Charting.DataPoint         dataPoint1         = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 70);
     System.Windows.Forms.DataVisualization.Charting.DataPoint         dataPoint2         = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 40);
     System.Windows.Forms.DataVisualization.Charting.DataPoint         dataPoint3         = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 30);
     System.Windows.Forms.DataVisualization.Charting.DataPoint         dataPoint4         = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 79);
     System.Windows.Forms.DataVisualization.Charting.DataPoint         dataPoint5         = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 91);
     System.Windows.Forms.DataVisualization.Charting.Series            series2            = new System.Windows.Forms.DataVisualization.Charting.Series();
     System.Windows.Forms.DataVisualization.Charting.DataPoint         dataPoint6         = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 78);
     System.Windows.Forms.DataVisualization.Charting.DataPoint         dataPoint7         = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 39);
     System.Windows.Forms.DataVisualization.Charting.DataPoint         dataPoint8         = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 67);
     System.Windows.Forms.DataVisualization.Charting.DataPoint         dataPoint9         = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 34);
     System.Windows.Forms.DataVisualization.Charting.DataPoint         dataPoint10        = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 60);
     System.Windows.Forms.DataVisualization.Charting.Series            series3            = new System.Windows.Forms.DataVisualization.Charting.Series();
     System.Windows.Forms.DataVisualization.Charting.DataPoint         dataPoint11        = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 81);
     System.Windows.Forms.DataVisualization.Charting.DataPoint         dataPoint12        = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 55);
     System.Windows.Forms.DataVisualization.Charting.DataPoint         dataPoint13        = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 47);
     System.Windows.Forms.DataVisualization.Charting.DataPoint         dataPoint14        = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 67);
     System.Windows.Forms.DataVisualization.Charting.DataPoint         dataPoint15        = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 87);
     this.label9          = new System.Windows.Forms.Label();
     this.panel1          = new System.Windows.Forms.Panel();
     this.ClipToChartArea = new System.Windows.Forms.CheckBox();
     this.AnnotationY     = new System.Windows.Forms.TextBox();
     this.AnnotationX     = new System.Windows.Forms.TextBox();
     this.label2          = new System.Windows.Forms.Label();
     this.label3          = new System.Windows.Forms.Label();
     this.AllowMoving     = new System.Windows.Forms.CheckBox();
     this.Chart1          = new System.Windows.Forms.DataVisualization.Charting.Chart();
     this.label1          = new System.Windows.Forms.Label();
     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, 8);
     this.label9.Name      = "label9";
     this.label9.Size      = new System.Drawing.Size(702, 34);
     this.label9.TabIndex  = 2;
     this.label9.Text      = "This sample demonstrates the AnnotationPositionChanged event.";
     this.label9.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // panel1
     //
     this.panel1.Controls.Add(this.ClipToChartArea);
     this.panel1.Controls.Add(this.AnnotationY);
     this.panel1.Controls.Add(this.AnnotationX);
     this.panel1.Controls.Add(this.label2);
     this.panel1.Controls.Add(this.label3);
     this.panel1.Controls.Add(this.AllowMoving);
     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 = 1;
     //
     // ClipToChartArea
     //
     this.ClipToChartArea.CheckAlign      = System.Drawing.ContentAlignment.MiddleRight;
     this.ClipToChartArea.Location        = new System.Drawing.Point(29, 40);
     this.ClipToChartArea.Name            = "ClipToChartArea";
     this.ClipToChartArea.Size            = new System.Drawing.Size(152, 24);
     this.ClipToChartArea.TabIndex        = 1;
     this.ClipToChartArea.Text            = "&Clip To Chart Area:  ";
     this.ClipToChartArea.TextAlign       = System.Drawing.ContentAlignment.MiddleRight;
     this.ClipToChartArea.CheckedChanged += new System.EventHandler(this.ClipToChartArea_CheckedChanged);
     //
     // AnnotationY
     //
     this.AnnotationY.Location = new System.Drawing.Point(168, 104);
     this.AnnotationY.Name     = "AnnotationY";
     this.AnnotationY.ReadOnly = true;
     this.AnnotationY.Size     = new System.Drawing.Size(40, 22);
     this.AnnotationY.TabIndex = 5;
     this.AnnotationY.Text     = "0";
     //
     // AnnotationX
     //
     this.AnnotationX.Location = new System.Drawing.Point(168, 72);
     this.AnnotationX.Name     = "AnnotationX";
     this.AnnotationX.ReadOnly = true;
     this.AnnotationX.Size     = new System.Drawing.Size(40, 22);
     this.AnnotationX.TabIndex = 3;
     this.AnnotationX.Text     = "0";
     //
     // label2
     //
     this.label2.Location  = new System.Drawing.Point(99, 104);
     this.label2.Name      = "label2";
     this.label2.Size      = new System.Drawing.Size(64, 23);
     this.label2.TabIndex  = 4;
     this.label2.Text      = "&Y:";
     this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // label3
     //
     this.label3.Location  = new System.Drawing.Point(99, 72);
     this.label3.Name      = "label3";
     this.label3.Size      = new System.Drawing.Size(64, 23);
     this.label3.TabIndex  = 2;
     this.label3.Text      = "&X:";
     this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     this.label3.Click    += new System.EventHandler(this.label3_Click);
     //
     // AllowMoving
     //
     this.AllowMoving.CheckAlign      = System.Drawing.ContentAlignment.MiddleRight;
     this.AllowMoving.Checked         = true;
     this.AllowMoving.CheckState      = System.Windows.Forms.CheckState.Checked;
     this.AllowMoving.Location        = new System.Drawing.Point(61, 8);
     this.AllowMoving.Name            = "AllowMoving";
     this.AllowMoving.Size            = new System.Drawing.Size(120, 24);
     this.AllowMoving.TabIndex        = 0;
     this.AllowMoving.Text            = "Allow &Moving:";
     this.AllowMoving.TextAlign       = System.Drawing.ContentAlignment.MiddleRight;
     this.AllowMoving.CheckedChanged += new System.EventHandler(this.AllowMoving_CheckedChanged);
     //
     // Chart1
     //
     calloutAnnotation1.AllowMoving    = true;
     calloutAnnotation1.AllowSelecting = true;
     calloutAnnotation1.BackColor      = System.Drawing.Color.FromArgb(((int)(((byte)(210)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(192)))));
     calloutAnnotation1.CalloutStyle   = System.Windows.Forms.DataVisualization.Charting.CalloutStyle.RoundedRectangle;
     calloutAnnotation1.Font           = new System.Drawing.Font("Tahoma", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     calloutAnnotation1.Name           = "MyAnnotation";
     calloutAnnotation1.Text           = "Select and Reposition Me\\nusing the mouse";
     calloutAnnotation1.X = 0;
     calloutAnnotation1.Y = 0;
     this.Chart1.Annotations.Add(calloutAnnotation1);
     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.Rotation         = 10;
     chartArea1.Area3DStyle.WallWidth        = 0;
     chartArea1.AxisX.IsLabelAutoFit         = false;
     chartArea1.AxisX.LabelAutoFitStyle      = ((System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles)((((System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles.IncreaseFont | System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles.DecreaseFont)
                                                                                                                       | System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles.LabelsAngleStep30)
                                                                                                                      | System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles.WordWrap)));
     chartArea1.AxisX.LabelStyle.Font              = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold);
     chartArea1.AxisX.LabelStyle.Interval          = 1;
     chartArea1.AxisX.LabelStyle.IsEndLabelVisible = false;
     chartArea1.AxisX.LineColor           = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
     chartArea1.AxisX.MajorGrid.Enabled   = false;
     chartArea1.AxisX.MajorGrid.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
     chartArea1.AxisX2.Enabled            = System.Windows.Forms.DataVisualization.Charting.AxisEnabled.False;
     chartArea1.AxisX2.IsLabelAutoFit     = false;
     chartArea1.AxisX2.MajorGrid.Enabled  = false;
     chartArea1.AxisX2.Maximum            = 100;
     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.Enabled   = false;
     chartArea1.AxisY.MajorGrid.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
     chartArea1.AxisY2.Enabled            = System.Windows.Forms.DataVisualization.Charting.AxisEnabled.False;
     chartArea1.AxisY2.IsLabelAutoFit     = false;
     chartArea1.AxisY2.MajorGrid.Enabled  = false;
     chartArea1.AxisY2.Maximum            = 1000;
     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.BorderDashStyle    = System.Windows.Forms.DataVisualization.Charting.ChartDashStyle.Solid;
     chartArea1.Name        = "Default";
     chartArea1.ShadowColor = System.Drawing.Color.Transparent;
     this.Chart1.ChartAreas.Add(chartArea1);
     legend1.BackColor     = System.Drawing.Color.Transparent;
     legend1.Enabled       = false;
     legend1.Font          = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold);
     legend1.IsTextAutoFit = false;
     legend1.Name          = "Default";
     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.Legend       = "Default";
     series1.Name         = "Default";
     series1.Points.Add(dataPoint1);
     series1.Points.Add(dataPoint2);
     series1.Points.Add(dataPoint3);
     series1.Points.Add(dataPoint4);
     series1.Points.Add(dataPoint5);
     series1.ShadowOffset      = 1;
     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.BorderWidth       = 4;
     series2.ChartArea         = "Default";
     series2.ChartType         = System.Windows.Forms.DataVisualization.Charting.SeriesChartType.Spline;
     series2.Legend            = "Default";
     series2.MarkerBorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(26)))), ((int)(((byte)(59)))), ((int)(((byte)(105)))));
     series2.MarkerColor       = System.Drawing.Color.Gold;
     series2.MarkerSize        = 8;
     series2.MarkerStyle       = System.Windows.Forms.DataVisualization.Charting.MarkerStyle.Circle;
     series2.Name = "Series2";
     series2.Points.Add(dataPoint6);
     series2.Points.Add(dataPoint7);
     series2.Points.Add(dataPoint8);
     series2.Points.Add(dataPoint9);
     series2.Points.Add(dataPoint10);
     series2.ShadowOffset = 1;
     series3.BorderColor  = System.Drawing.Color.FromArgb(((int)(((byte)(180)))), ((int)(((byte)(26)))), ((int)(((byte)(59)))), ((int)(((byte)(105)))));
     series3.ChartArea    = "Default";
     series3.Legend       = "Default";
     series3.Name         = "Series3";
     series3.Points.Add(dataPoint11);
     series3.Points.Add(dataPoint12);
     series3.Points.Add(dataPoint13);
     series3.Points.Add(dataPoint14);
     series3.Points.Add(dataPoint15);
     series3.ShadowOffset = 1;
     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;
     this.Chart1.AnnotationPositionChanged += new System.EventHandler(this.Chart1_AnnotationPositionChanged);
     //
     // label1
     //
     this.label1.Font     = new System.Drawing.Font("Verdana", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label1.Location = new System.Drawing.Point(16, 360);
     this.label1.Name     = "label1";
     this.label1.Size     = new System.Drawing.Size(702, 39);
     this.label1.TabIndex = 3;
     this.label1.Text     = "Click on the annotation, and then move it with the mouse. This sample uses the An" +
                            "notationPositionChanged event to update X and Y coordinates to the right of the " +
                            "chart.";
     this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // PositionChangedEvent
     //
     this.BackColor = System.Drawing.Color.White;
     this.Controls.Add(this.label1);
     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 = "PositionChangedEvent";
     this.Size = new System.Drawing.Size(728, 480);
     this.panel1.ResumeLayout(false);
     this.panel1.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.Chart1)).EndInit();
     this.ResumeLayout(false);
 }
Example #53
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.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(0, 216.19999694824219);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint2 =
         new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 125.80000305175781);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint3 =
         new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 90);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint4 =
         new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 2.5999999046325684);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint5 =
         new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 55.700000762939453);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint6 =
         new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 25.299999237060547);
     System.Windows.Forms.DataVisualization.Charting.Title title1 =
         new System.Windows.Forms.DataVisualization.Charting.Title();
     this._chart1                      = new System.Windows.Forms.DataVisualization.Charting.Chart();
     this._labelSampleComment          = new System.Windows.Forms.Label();
     this._panel1                      = new System.Windows.Forms.Panel();
     this._comboBox3DDrawingStyle      = new System.Windows.Forms.ComboBox();
     this._label3DDrawingStyle         = new System.Windows.Forms.Label();
     this._numericUpDownAngle          = new System.Windows.Forms.NumericUpDown();
     this._labelAngle                  = new System.Windows.Forms.Label();
     this._numericUpDownMinHeight      = new System.Windows.Forms.NumericUpDown();
     this._label4                      = new System.Windows.Forms.Label();
     this._numericUpDownGap            = new System.Windows.Forms.NumericUpDown();
     this._label3                      = new System.Windows.Forms.Label();
     this._comboBoxLabelsPlacement     = new System.Windows.Forms.ComboBox();
     this._labelOutsideLabelsPlacement = new System.Windows.Forms.Label();
     this._checkBoxShow3D              = new System.Windows.Forms.CheckBox();
     this._comboBoxLabelsStyle         = new System.Windows.Forms.ComboBox();
     this._label2                      = new System.Windows.Forms.Label();
     this._comboBoxFunnelStyle         = new System.Windows.Forms.ComboBox();
     this._label1                      = new System.Windows.Forms.Label();
     ((System.ComponentModel.ISupportInitialize)(this._chart1)).BeginInit();
     this._panel1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this._numericUpDownAngle)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this._numericUpDownMinHeight)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this._numericUpDownGap)).BeginInit();
     this.SuspendLayout();
     //
     // chart1
     //
     this._chart1.BackColor =
         System.Drawing.Color.FromArgb(((System.Byte)(211)), ((System.Byte)(223)), ((System.Byte)(240)));
     this._chart1.BackSecondaryColor = System.Drawing.Color.White;
     this._chart1.BackGradientStyle  = System.Windows.Forms.DataVisualization.Charting.GradientStyle.TopBottom;
     this._chart1.BorderlineColor    =
         System.Drawing.Color.FromArgb(((System.Byte)(26)), ((System.Byte)(59)), ((System.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.IsClustered      = true;
     chartArea1.Area3DStyle.Perspective      = 10;
     chartArea1.Area3DStyle.IsRightAngleAxes = false;
     chartArea1.Area3DStyle.WallWidth        = 0;
     chartArea1.Area3DStyle.Inclination      = 15;
     chartArea1.Area3DStyle.Rotation         = 10;
     chartArea1.AxisX.LabelStyle.Font        =
         new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold);
     chartArea1.AxisX.LineColor = System.Drawing.Color.FromArgb(((System.Byte)(64)), ((System.Byte)(64)),
                                                                ((System.Byte)(64)), ((System.Byte)(64)));
     chartArea1.AxisX.MajorGrid.LineColor = System.Drawing.Color.FromArgb(((System.Byte)(64)),
                                                                          ((System.Byte)(64)), ((System.Byte)(64)), ((System.Byte)(64)));
     chartArea1.AxisY.LabelStyle.Font =
         new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold);
     chartArea1.AxisY.LineColor = System.Drawing.Color.FromArgb(((System.Byte)(64)), ((System.Byte)(64)),
                                                                ((System.Byte)(64)), ((System.Byte)(64)));
     chartArea1.AxisY.MajorGrid.LineColor = System.Drawing.Color.FromArgb(((System.Byte)(64)),
                                                                          ((System.Byte)(64)), ((System.Byte)(64)), ((System.Byte)(64)));
     chartArea1.BackColor          = System.Drawing.Color.Transparent;
     chartArea1.BackSecondaryColor = System.Drawing.Color.White;
     chartArea1.BorderColor        = System.Drawing.Color.FromArgb(((System.Byte)(64)), ((System.Byte)(64)),
                                                                   ((System.Byte)(64)), ((System.Byte)(64)));
     chartArea1.BorderWidth     = 0;
     chartArea1.Name            = "Default";
     chartArea1.Position.Auto   = false;
     chartArea1.Position.Height = 81F;
     chartArea1.Position.Width  = 89.43796F;
     chartArea1.Position.X      = 5F;
     chartArea1.Position.Y      = 12F;
     chartArea1.ShadowColor     = System.Drawing.Color.Transparent;
     this._chart1.ChartAreas.Add(chartArea1);
     legend1.IsTextAutoFit = false;
     legend1.BackColor     = System.Drawing.Color.Transparent;
     legend1.Enabled       = false;
     legend1.Font          = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold);
     legend1.Name          = "Default";
     this._chart1.Legends.Add(legend1);
     this._chart1.Location = new System.Drawing.Point(16, 40);
     this._chart1.Name     = "_chart1";
     this._chart1.Palette  = System.Windows.Forms.DataVisualization.Charting.ChartColorPalette.BrightPastel;
     series1.BorderColor   = System.Drawing.Color.FromArgb(((System.Byte)(180)), ((System.Byte)(26)),
                                                           ((System.Byte)(59)), ((System.Byte)(105)));
     series1.ChartType        = SeriesChartType.Funnel;
     series1.CustomProperties = "FunnelMinPointHeight=1";
     series1.LabelFormat      = "F1";
     series1.Name             = "Default";
     series1.Points.Add(dataPoint1);
     series1.Points.Add(dataPoint2);
     series1.Points.Add(dataPoint3);
     series1.Points.Add(dataPoint4);
     series1.Points.Add(dataPoint5);
     series1.Points.Add(dataPoint6);
     series1.IsValueShownAsLabel = true;
     series1.XValueType          = System.Windows.Forms.DataVisualization.Charting.ChartValueType.Double;
     series1.YValueType          = System.Windows.Forms.DataVisualization.Charting.ChartValueType.Double;
     this._chart1.Series.Add(series1);
     this._chart1.Size     = new System.Drawing.Size(412, 296);
     this._chart1.TabIndex = 0;
     title1.ForeColor      =
         System.Drawing.Color.FromArgb(((System.Byte)(26)), ((System.Byte)(59)), ((System.Byte)(105)));
     title1.Font            = new System.Drawing.Font("Trebuchet MS", 14.25F, System.Drawing.FontStyle.Bold);
     title1.Position.Auto   = false;
     title1.Position.Height = 6.470197F;
     title1.Position.Width  = 90F;
     title1.Position.Y      = 3F;
     title1.ShadowColor     = System.Drawing.Color.FromArgb(((System.Byte)(32)), ((System.Byte)(0)),
                                                            ((System.Byte)(0)), ((System.Byte)(0)));
     title1.ShadowOffset = 3;
     title1.Text         = "Funnel chart";
     this._chart1.Titles.Add(title1);
     //
     // labelSampleComment
     //
     this._labelSampleComment.Font = new System.Drawing.Font("Verdana", 11F, System.Drawing.FontStyle.Regular,
                                                             System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this._labelSampleComment.Location  = new System.Drawing.Point(16, 8);
     this._labelSampleComment.Name      = "_labelSampleComment";
     this._labelSampleComment.Size      = new System.Drawing.Size(702, 24);
     this._labelSampleComment.TabIndex  = 2;
     this._labelSampleComment.Text      = "A Funnel chart is used to display data that adds up to 100%.";
     this._labelSampleComment.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // panel1
     //
     this._panel1.Controls.AddRange(new System.Windows.Forms.Control[]
     {
         this._comboBox3DDrawingStyle,
         this._label3DDrawingStyle,
         this._numericUpDownAngle,
         this._labelAngle,
         this._numericUpDownMinHeight,
         this._label4,
         this._numericUpDownGap,
         this._label3,
         this._comboBoxLabelsPlacement,
         this._labelOutsideLabelsPlacement,
         this._checkBoxShow3D,
         this._comboBoxLabelsStyle,
         this._label2,
         this._comboBoxFunnelStyle,
         this._label1
     });
     this._panel1.Location = new System.Drawing.Point(432, 48);
     this._panel1.Name     = "_panel1";
     this._panel1.Size     = new System.Drawing.Size(312, 288);
     this._panel1.TabIndex = 0;
     //
     // comboBox3DDrawingStyle
     //
     this._comboBox3DDrawingStyle.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this._comboBox3DDrawingStyle.Items.AddRange(new object[]
     {
         "CircularBase",
         "SquareBase"
     });
     this._comboBox3DDrawingStyle.Location              = new System.Drawing.Point(168, 232);
     this._comboBox3DDrawingStyle.Name                  = "_comboBox3DDrawingStyle";
     this._comboBox3DDrawingStyle.Size                  = new System.Drawing.Size(144, 22);
     this._comboBox3DDrawingStyle.TabIndex              = 14;
     this._comboBox3DDrawingStyle.SelectedIndexChanged +=
         new System.EventHandler(this.comboBox3DDrawingStyle_SelectedIndexChanged);
     //
     // label3DDrawingStyle
     //
     this._label3DDrawingStyle.Location  = new System.Drawing.Point(20, 232);
     this._label3DDrawingStyle.Name      = "_label3DDrawingStyle";
     this._label3DDrawingStyle.Size      = new System.Drawing.Size(144, 23);
     this._label3DDrawingStyle.TabIndex  = 13;
     this._label3DDrawingStyle.Text      = "&Drawing Style:";
     this._label3DDrawingStyle.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // numericUpDownAngle
     //
     this._numericUpDownAngle.Location = new System.Drawing.Point(168, 200);
     this._numericUpDownAngle.Maximum  = new System.Decimal(new int[]
     {
         10,
         0,
         0,
         0
     });
     this._numericUpDownAngle.Minimum = new System.Decimal(new int[]
     {
         10,
         0,
         0,
         -2147483648
     });
     this._numericUpDownAngle.Name     = "_numericUpDownAngle";
     this._numericUpDownAngle.Size     = new System.Drawing.Size(144, 22);
     this._numericUpDownAngle.TabIndex = 12;
     this._numericUpDownAngle.Value    = new System.Decimal(new int[]
     {
         5,
         0,
         0,
         0
     });
     this._numericUpDownAngle.ValueChanged += new System.EventHandler(this.numericUpDownAngle_ValueChanged);
     //
     // labelAngle
     //
     this._labelAngle.Location  = new System.Drawing.Point(20, 200);
     this._labelAngle.Name      = "_labelAngle";
     this._labelAngle.Size      = new System.Drawing.Size(144, 23);
     this._labelAngle.TabIndex  = 11;
     this._labelAngle.Text      = "Rotation &Angle:";
     this._labelAngle.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // numericUpDownMinHeight
     //
     this._numericUpDownMinHeight.Location = new System.Drawing.Point(168, 136);
     this._numericUpDownMinHeight.Maximum  = new System.Decimal(new int[]
     {
         10,
         0,
         0,
         0
     });
     this._numericUpDownMinHeight.Name          = "_numericUpDownMinHeight";
     this._numericUpDownMinHeight.Size          = new System.Drawing.Size(144, 22);
     this._numericUpDownMinHeight.TabIndex      = 9;
     this._numericUpDownMinHeight.ValueChanged +=
         new System.EventHandler(this.numericUpDownMinHeight_ValueChanged);
     //
     // label4
     //
     this._label4.Location  = new System.Drawing.Point(20, 136);
     this._label4.Name      = "_label4";
     this._label4.Size      = new System.Drawing.Size(144, 23);
     this._label4.TabIndex  = 8;
     this._label4.Text      = "&Min. Point Height:";
     this._label4.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // numericUpDownGap
     //
     this._numericUpDownGap.Location = new System.Drawing.Point(168, 104);
     this._numericUpDownGap.Maximum  = new System.Decimal(new int[]
     {
         5,
         0,
         0,
         0
     });
     this._numericUpDownGap.Name          = "_numericUpDownGap";
     this._numericUpDownGap.Size          = new System.Drawing.Size(144, 22);
     this._numericUpDownGap.TabIndex      = 7;
     this._numericUpDownGap.ValueChanged += new System.EventHandler(this.numericUpDownGap_ValueChanged);
     //
     // label3
     //
     this._label3.Location  = new System.Drawing.Point(20, 104);
     this._label3.Name      = "_label3";
     this._label3.Size      = new System.Drawing.Size(144, 23);
     this._label3.TabIndex  = 6;
     this._label3.Text      = "Points &Gap:";
     this._label3.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // comboBoxLabelsPlacement
     //
     this._comboBoxLabelsPlacement.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this._comboBoxLabelsPlacement.Items.AddRange(new object[]
     {
         "Right",
         "Left"
     });
     this._comboBoxLabelsPlacement.Location              = new System.Drawing.Point(168, 72);
     this._comboBoxLabelsPlacement.Name                  = "_comboBoxLabelsPlacement";
     this._comboBoxLabelsPlacement.Size                  = new System.Drawing.Size(144, 22);
     this._comboBoxLabelsPlacement.TabIndex              = 5;
     this._comboBoxLabelsPlacement.SelectedIndexChanged +=
         new System.EventHandler(this.comboBoxLabelsPlacement_SelectedIndexChanged);
     //
     // labelOutsideLabelsPlacement
     //
     this._labelOutsideLabelsPlacement.Location  = new System.Drawing.Point(20, 72);
     this._labelOutsideLabelsPlacement.Name      = "_labelOutsideLabelsPlacement";
     this._labelOutsideLabelsPlacement.Size      = new System.Drawing.Size(144, 23);
     this._labelOutsideLabelsPlacement.TabIndex  = 4;
     this._labelOutsideLabelsPlacement.Text      = "Labels &Placement:";
     this._labelOutsideLabelsPlacement.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // checkBoxShow3D
     //
     this._checkBoxShow3D.CheckAlign      = System.Drawing.ContentAlignment.MiddleRight;
     this._checkBoxShow3D.Location        = new System.Drawing.Point(6, 168);
     this._checkBoxShow3D.Name            = "_checkBoxShow3D";
     this._checkBoxShow3D.Size            = new System.Drawing.Size(176, 24);
     this._checkBoxShow3D.TabIndex        = 10;
     this._checkBoxShow3D.Text            = "Display chart as &3D:";
     this._checkBoxShow3D.TextAlign       = System.Drawing.ContentAlignment.MiddleRight;
     this._checkBoxShow3D.CheckedChanged += new System.EventHandler(this.checkBoxShow3D_CheckedChanged);
     //
     // comboBoxLabelsStyle
     //
     this._comboBoxLabelsStyle.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this._comboBoxLabelsStyle.Items.AddRange(new object[]
     {
         "OutsideInColumn",
         "Outside",
         "Inside",
         "Disabled"
     });
     this._comboBoxLabelsStyle.Location              = new System.Drawing.Point(168, 40);
     this._comboBoxLabelsStyle.Name                  = "_comboBoxLabelsStyle";
     this._comboBoxLabelsStyle.Size                  = new System.Drawing.Size(144, 22);
     this._comboBoxLabelsStyle.TabIndex              = 3;
     this._comboBoxLabelsStyle.SelectedIndexChanged +=
         new System.EventHandler(this.comboBoxLabelsStyle_SelectedIndexChanged);
     //
     // label2
     //
     this._label2.Location  = new System.Drawing.Point(20, 40);
     this._label2.Name      = "_label2";
     this._label2.Size      = new System.Drawing.Size(144, 23);
     this._label2.TabIndex  = 2;
     this._label2.Text      = "&Labels Style:";
     this._label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // comboBoxFunnelStyle
     //
     this._comboBoxFunnelStyle.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this._comboBoxFunnelStyle.Items.AddRange(new object[]
     {
         "YIsHeight",
         "YIsWidth"
     });
     this._comboBoxFunnelStyle.Location              = new System.Drawing.Point(168, 8);
     this._comboBoxFunnelStyle.Name                  = "_comboBoxFunnelStyle";
     this._comboBoxFunnelStyle.Size                  = new System.Drawing.Size(144, 22);
     this._comboBoxFunnelStyle.TabIndex              = 1;
     this._comboBoxFunnelStyle.SelectedIndexChanged +=
         new System.EventHandler(this.comboBoxFunnelStyle_SelectedIndexChanged);
     //
     // label1
     //
     this._label1.Location  = new System.Drawing.Point(4, 8);
     this._label1.Name      = "_label1";
     this._label1.Size      = new System.Drawing.Size(160, 23);
     this._label1.TabIndex  = 0;
     this._label1.Text      = "Funnel &Style:";
     this._label1.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // FunnelChartType
     //
     this.BackColor = System.Drawing.Color.White;
     this.Controls.AddRange(new System.Windows.Forms.Control[]
     {
         this._panel1,
         this._labelSampleComment,
         this._chart1
     });
     this.Font = new System.Drawing.Font("Verdana", 9F, System.Drawing.FontStyle.Regular,
                                         System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.Name  = "FunnelChartType";
     this.Size  = new System.Drawing.Size(744, 360);
     this.Load += new System.EventHandler(this.PieChartType_Load);
     ((System.ComponentModel.ISupportInitialize)(this._chart1)).EndInit();
     this._panel1.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this._numericUpDownAngle)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this._numericUpDownMinHeight)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this._numericUpDownGap)).EndInit();
     this.ResumeLayout(false);
 }
Example #54
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.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(0, 4);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint2 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 7);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint3 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 6);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint4 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 9);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint5 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 6);
     System.Windows.Forms.DataVisualization.Charting.Title     title1     = new System.Windows.Forms.DataVisualization.Charting.Title();
     this.chart1             = new System.Windows.Forms.DataVisualization.Charting.Chart();
     this.labelSampleComment = new System.Windows.Forms.Label();
     this.panel1             = new System.Windows.Forms.Panel();
     this.CursorY            = new System.Windows.Forms.TextBox();
     this.label2             = new System.Windows.Forms.Label();
     this.CursorX            = new System.Windows.Forms.TextBox();
     this.label1             = new System.Windows.Forms.Label();
     ((System.ComponentModel.ISupportInitialize)(this.chart1)).BeginInit();
     this.panel1.SuspendLayout();
     this.SuspendLayout();
     //
     // chart1
     //
     this.chart1.BackColor                   = System.Drawing.Color.WhiteSmoke;
     this.chart1.BackGradientStyle           = System.Windows.Forms.DataVisualization.Charting.GradientStyle.TopBottom;
     this.chart1.BackSecondaryColor          = System.Drawing.Color.White;
     this.chart1.BorderlineColor             = System.Drawing.Color.FromArgb(((int)(((byte)(26)))), ((int)(((byte)(59)))), ((int)(((byte)(105)))));
     this.chart1.BorderlineDashStyle         = System.Windows.Forms.DataVisualization.Charting.ChartDashStyle.Solid;
     this.chart1.BorderlineWidth             = 2;
     this.chart1.BorderSkin.SkinStyle        = System.Windows.Forms.DataVisualization.Charting.BorderSkinStyle.Emboss;
     chartArea1.Area3DStyle.Inclination      = 15;
     chartArea1.Area3DStyle.IsClustered      = true;
     chartArea1.Area3DStyle.IsRightAngleAxes = false;
     chartArea1.Area3DStyle.Perspective      = 10;
     chartArea1.Area3DStyle.Rotation         = 10;
     chartArea1.Area3DStyle.WallWidth        = 0;
     chartArea1.AxisX.IsLabelAutoFit         = false;
     chartArea1.AxisX.LabelStyle.Font        = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold);
     chartArea1.AxisX.LabelStyle.Format      = "MMM dd";
     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.MajorTickMark.Size     = 2F;
     chartArea1.AxisX.ScrollBar.LineColor    = System.Drawing.Color.FromArgb(((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.AxisY.ScrollBar.LineColor    = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
     chartArea1.BackColor                      = System.Drawing.Color.Gainsboro;
     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.CursorX.IsUserEnabled          = true;
     chartArea1.CursorX.IsUserSelectionEnabled = true;
     chartArea1.CursorX.Position               = 2;
     chartArea1.CursorX.SelectionColor         = System.Drawing.Color.Gray;
     chartArea1.CursorY.IsUserEnabled          = true;
     chartArea1.CursorY.IsUserSelectionEnabled = true;
     chartArea1.CursorY.Position               = 2;
     chartArea1.CursorY.SelectionColor         = System.Drawing.Color.Gray;
     chartArea1.Name            = "Default";
     chartArea1.Position.Auto   = false;
     chartArea1.Position.Height = 76.3605F;
     chartArea1.Position.Width  = 86F;
     chartArea1.Position.X      = 4.824818F;
     chartArea1.Position.Y      = 16.82594F;
     chartArea1.ShadowColor     = System.Drawing.Color.Transparent;
     this.chart1.ChartAreas.Add(chartArea1);
     legend1.BackColor     = System.Drawing.Color.Transparent;
     legend1.Enabled       = false;
     legend1.Font          = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold);
     legend1.IsTextAutoFit = false;
     legend1.Name          = "Default";
     this.chart1.Legends.Add(legend1);
     this.chart1.Location = new System.Drawing.Point(16, 60);
     this.chart1.Name     = "chart1";
     series1.BorderColor  = System.Drawing.Color.FromArgb(((int)(((byte)(180)))), ((int)(((byte)(26)))), ((int)(((byte)(59)))), ((int)(((byte)(105)))));
     series1.ChartArea    = "Default";
     series1.ChartType    = System.Windows.Forms.DataVisualization.Charting.SeriesChartType.Line;
     series1.Legend       = "Default";
     series1.Name         = "Default";
     series1.Points.Add(dataPoint1);
     series1.Points.Add(dataPoint2);
     series1.Points.Add(dataPoint3);
     series1.Points.Add(dataPoint4);
     series1.Points.Add(dataPoint5);
     series1.XValueType = System.Windows.Forms.DataVisualization.Charting.ChartValueType.DateTime;
     this.chart1.Series.Add(series1);
     this.chart1.Size     = new System.Drawing.Size(412, 296);
     this.chart1.TabIndex = 0;
     title1.Alignment     = System.Drawing.ContentAlignment.MiddleLeft;
     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";
     this.chart1.Titles.Add(title1);
     this.chart1.CursorPositionChanging += new System.EventHandler <System.Windows.Forms.DataVisualization.Charting.CursorEventArgs>(this.chart1_CursorPositionChanging);
     this.chart1.CursorPositionChanged  += new System.EventHandler <System.Windows.Forms.DataVisualization.Charting.CursorEventArgs>(this.chart1_CursorPositionChanged);
     //
     // labelSampleComment
     //
     this.labelSampleComment.Font     = new System.Drawing.Font("Verdana", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.labelSampleComment.Location = new System.Drawing.Point(16, 14);
     this.labelSampleComment.Name     = "labelSampleComment";
     this.labelSampleComment.Size     = new System.Drawing.Size(702, 43);
     this.labelSampleComment.TabIndex = 2;
     this.labelSampleComment.Text     = "This sample demonstrates how to retrieve the cursor\'s coordinates using the Curso" +
                                        "rPositionChanging event.";
     this.labelSampleComment.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // panel1
     //
     this.panel1.Controls.Add(this.CursorY);
     this.panel1.Controls.Add(this.label2);
     this.panel1.Controls.Add(this.CursorX);
     this.panel1.Controls.Add(this.label1);
     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 = 1;
     //
     // CursorY
     //
     this.CursorY.BackColor = System.Drawing.Color.White;
     this.CursorY.Location  = new System.Drawing.Point(168, 40);
     this.CursorY.Name      = "CursorY";
     this.CursorY.ReadOnly  = true;
     this.CursorY.Size      = new System.Drawing.Size(120, 22);
     this.CursorY.TabIndex  = 3;
     //
     // label2
     //
     this.label2.Location  = new System.Drawing.Point(16, 40);
     this.label2.Name      = "label2";
     this.label2.Size      = new System.Drawing.Size(144, 24);
     this.label2.TabIndex  = 2;
     this.label2.Text      = "&Y Cursor Position:";
     this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // CursorX
     //
     this.CursorX.BackColor = System.Drawing.Color.White;
     this.CursorX.Location  = new System.Drawing.Point(168, 8);
     this.CursorX.Name      = "CursorX";
     this.CursorX.ReadOnly  = true;
     this.CursorX.Size      = new System.Drawing.Size(120, 22);
     this.CursorX.TabIndex  = 1;
     //
     // label1
     //
     this.label1.Location  = new System.Drawing.Point(16, 8);
     this.label1.Name      = "label1";
     this.label1.Size      = new System.Drawing.Size(144, 24);
     this.label1.TabIndex  = 0;
     this.label1.Text      = "&X Cursor Position:";
     this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // CursorPositionChanged
     //
     this.Controls.Add(this.panel1);
     this.Controls.Add(this.labelSampleComment);
     this.Controls.Add(this.chart1);
     this.Font  = new System.Drawing.Font("Verdana", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.Name  = "CursorPositionChanged";
     this.Size  = new System.Drawing.Size(728, 408);
     this.Load += new System.EventHandler(this.CursorPositionChanged_Load);
     ((System.ComponentModel.ISupportInitialize)(this.chart1)).EndInit();
     this.panel1.ResumeLayout(false);
     this.panel1.PerformLayout();
     this.ResumeLayout(false);
 }
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     System.Windows.Forms.DataVisualization.Charting.ChartArea chartArea1  = new System.Windows.Forms.DataVisualization.Charting.ChartArea();
     System.Windows.Forms.DataVisualization.Charting.Legend    legend1     = new System.Windows.Forms.DataVisualization.Charting.Legend();
     System.Windows.Forms.DataVisualization.Charting.Series    series1     = new System.Windows.Forms.DataVisualization.Charting.Series();
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint1  = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 14);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint2  = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 13);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint3  = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 14);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint4  = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 18);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint5  = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 16);
     System.Windows.Forms.DataVisualization.Charting.Series    series2     = new System.Windows.Forms.DataVisualization.Charting.Series();
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint6  = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 10);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint7  = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 15);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint8  = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 8);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint9  = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 12);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint10 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 18);
     this.label9   = new System.Windows.Forms.Label();
     this.panel1   = new System.Windows.Forms.Panel();
     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.Series2Y = new System.Windows.Forms.ComboBox();
     this.Series2X = new System.Windows.Forms.ComboBox();
     this.Series1Y = new System.Windows.Forms.ComboBox();
     this.Series1X = new System.Windows.Forms.ComboBox();
     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.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, 32);
     this.label9.TabIndex = 0;
     this.label9.Text     = "This sample demonstrates how to plot a series on either�the primary�or secondary " +
                            "axis.";
     this.label9.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // panel1
     //
     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.Series2Y);
     this.panel1.Controls.Add(this.Series2X);
     this.panel1.Controls.Add(this.Series1Y);
     this.panel1.Controls.Add(this.Series1X);
     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 = 2;
     //
     // label11
     //
     this.label11.Location  = new System.Drawing.Point(8, 104);
     this.label11.Name      = "label11";
     this.label11.Size      = new System.Drawing.Size(156, 23);
     this.label11.TabIndex  = 6;
     this.label11.Text      = "Series2 Y &Axis:";
     this.label11.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // label10
     //
     this.label10.Location  = new System.Drawing.Point(8, 72);
     this.label10.Name      = "label10";
     this.label10.Size      = new System.Drawing.Size(156, 23);
     this.label10.TabIndex  = 4;
     this.label10.Text      = "Series&2 X Axis:";
     this.label10.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // label2
     //
     this.label2.Location  = new System.Drawing.Point(8, 40);
     this.label2.Name      = "label2";
     this.label2.Size      = new System.Drawing.Size(156, 23);
     this.label2.TabIndex  = 2;
     this.label2.Text      = "Series1 &Y Axis:";
     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(156, 23);
     this.label1.TabIndex  = 0;
     this.label1.Text      = "Series&1 X Axis:";
     this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // Series2Y
     //
     this.Series2Y.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.Series2Y.Items.AddRange(new object[] {
         "Primary",
         "Secondary"
     });
     this.Series2Y.Location              = new System.Drawing.Point(168, 104);
     this.Series2Y.Name                  = "Series2Y";
     this.Series2Y.Size                  = new System.Drawing.Size(121, 22);
     this.Series2Y.TabIndex              = 7;
     this.Series2Y.SelectedIndexChanged += new System.EventHandler(this.Series_SelectedIndexChanged);
     //
     // Series2X
     //
     this.Series2X.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.Series2X.Items.AddRange(new object[] {
         "Primary",
         "Secondary"
     });
     this.Series2X.Location              = new System.Drawing.Point(168, 72);
     this.Series2X.Name                  = "Series2X";
     this.Series2X.Size                  = new System.Drawing.Size(121, 22);
     this.Series2X.TabIndex              = 5;
     this.Series2X.SelectedIndexChanged += new System.EventHandler(this.Series_SelectedIndexChanged);
     //
     // Series1Y
     //
     this.Series1Y.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.Series1Y.Items.AddRange(new object[] {
         "Primary",
         "Secondary"
     });
     this.Series1Y.Location              = new System.Drawing.Point(168, 40);
     this.Series1Y.Name                  = "Series1Y";
     this.Series1Y.Size                  = new System.Drawing.Size(121, 22);
     this.Series1Y.TabIndex              = 3;
     this.Series1Y.SelectedIndexChanged += new System.EventHandler(this.Series_SelectedIndexChanged);
     //
     // Series1X
     //
     this.Series1X.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.Series1X.Items.AddRange(new object[] {
         "Primary",
         "Secondary"
     });
     this.Series1X.Location              = new System.Drawing.Point(168, 8);
     this.Series1X.Name                  = "Series1X";
     this.Series1X.Size                  = new System.Drawing.Size(121, 22);
     this.Series1X.TabIndex              = 1;
     this.Series1X.SelectedIndexChanged += new System.EventHandler(this.Series_SelectedIndexChanged);
     //
     // 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 = 11;
     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 = 10;
     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 = 9;
     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 = 8;
     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)(243)))), ((int)(((byte)(223)))), ((int)(((byte)(193)))));
     this.Chart1.BackGradientStyle           = System.Windows.Forms.DataVisualization.Charting.GradientStyle.TopBottom;
     this.Chart1.BorderlineColor             = System.Drawing.Color.FromArgb(((int)(((byte)(181)))), ((int)(((byte)(64)))), ((int)(((byte)(1)))));
     this.Chart1.BorderlineDashStyle         = System.Windows.Forms.DataVisualization.Charting.ChartDashStyle.Solid;
     this.Chart1.BorderlineWidth             = 2;
     this.Chart1.BorderSkin.SkinStyle        = System.Windows.Forms.DataVisualization.Charting.BorderSkinStyle.Emboss;
     chartArea1.Area3DStyle.Inclination      = 15;
     chartArea1.Area3DStyle.IsClustered      = true;
     chartArea1.Area3DStyle.IsRightAngleAxes = false;
     chartArea1.Area3DStyle.Perspective      = 10;
     chartArea1.Area3DStyle.Rotation         = 10;
     chartArea1.Area3DStyle.WallWidth        = 0;
     chartArea1.AxisX.IsLabelAutoFit         = false;
     chartArea1.AxisX.LabelStyle.Font        = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold);
     chartArea1.AxisX.LineColor              = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
     chartArea1.AxisX.MajorGrid.LineColor    = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
     chartArea1.AxisX2.IsLabelAutoFit        = false;
     chartArea1.AxisX2.LabelStyle.Font       = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold);
     chartArea1.AxisX2.LineColor             = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
     chartArea1.AxisX2.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.AxisY2.IsLabelAutoFit        = false;
     chartArea1.AxisY2.LabelStyle.Font       = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold);
     chartArea1.AxisY2.LineColor             = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
     chartArea1.AxisY2.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.DockedToChartArea = "Default";
     legend1.Docking           = System.Windows.Forms.DataVisualization.Charting.Docking.Left;
     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, 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.CustomProperties = "DrawingStyle=LightToDark";
     series1.Legend           = "Default";
     series1.Name             = "Series1";
     series1.Points.Add(dataPoint1);
     series1.Points.Add(dataPoint2);
     series1.Points.Add(dataPoint3);
     series1.Points.Add(dataPoint4);
     series1.Points.Add(dataPoint5);
     series2.BorderColor      = System.Drawing.Color.FromArgb(((int)(((byte)(180)))), ((int)(((byte)(26)))), ((int)(((byte)(59)))), ((int)(((byte)(105)))));
     series2.ChartArea        = "Default";
     series2.CustomProperties = "DrawingStyle=LightToDark";
     series2.Legend           = "Default";
     series2.Name             = "Series2";
     series2.Points.Add(dataPoint6);
     series2.Points.Add(dataPoint7);
     series2.Points.Add(dataPoint8);
     series2.Points.Add(dataPoint9);
     series2.Points.Add(dataPoint10);
     this.Chart1.Series.Add(series1);
     this.Chart1.Series.Add(series2);
     this.Chart1.Size     = new System.Drawing.Size(412, 296);
     this.Chart1.TabIndex = 1;
     //
     // SecondaryAxis
     //
     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  = "SecondaryAxis";
     this.Size  = new System.Drawing.Size(728, 480);
     this.Load += new System.EventHandler(this.SecondaryAxis_Load);
     this.panel1.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.Chart1)).EndInit();
     this.ResumeLayout(false);
 }
Example #56
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);
 }
Example #57
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.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(0, "340,0");
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint2  = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, "760,0");
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint3  = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, "230,0");
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint4  = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, "470,0");
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint5  = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, "350,0");
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint6  = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, "840,0");
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint7  = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, "220,0");
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint8  = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, "750,0");
     System.Windows.Forms.DataVisualization.Charting.Series    series2     = new System.Windows.Forms.DataVisualization.Charting.Series();
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint9  = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, "780,0");
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint10 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, "670,0");
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint11 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, "100,0");
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint12 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, "560,0");
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint13 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, "640,0");
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint14 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, "230,0");
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint15 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, "560,0");
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint16 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, "440,0");
     System.Windows.Forms.DataVisualization.Charting.Title     title1      = new System.Windows.Forms.DataVisualization.Charting.Title();
     this.LineColor          = new System.Windows.Forms.ComboBox();
     this.label7             = new System.Windows.Forms.Label();
     this.label9             = new System.Windows.Forms.Label();
     this.panel1             = new System.Windows.Forms.Panel();
     this.StripsEnabledCheck = 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();
     //
     // LineColor
     //
     this.LineColor.DropDownStyle         = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.LineColor.Location              = new System.Drawing.Point(168, 37);
     this.LineColor.Name                  = "LineColor";
     this.LineColor.Size                  = new System.Drawing.Size(121, 22);
     this.LineColor.TabIndex              = 2;
     this.LineColor.SelectedIndexChanged += new System.EventHandler(this.LineColor_SelectedIndexChanged);
     //
     // label7
     //
     this.label7.Location  = new System.Drawing.Point(9, 40);
     this.label7.Name      = "label7";
     this.label7.Size      = new System.Drawing.Size(156, 16);
     this.label7.TabIndex  = 1;
     this.label7.Text      = "Strip &Color:";
     this.label7.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(24, 16);
     this.label9.Name     = "label9";
     this.label9.Size     = new System.Drawing.Size(702, 41);
     this.label9.TabIndex = 0;
     this.label9.Text     = "This sample demonstrates how to add interlaced strip lines to an axis, and how to" +
                            " set the appearance of strip lines.";
     this.label9.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // panel1
     //
     this.panel1.Controls.Add(this.StripsEnabledCheck);
     this.panel1.Controls.Add(this.label7);
     this.panel1.Controls.Add(this.LineColor);
     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;
     //
     // StripsEnabledCheck
     //
     this.StripsEnabledCheck.CheckAlign      = System.Drawing.ContentAlignment.MiddleRight;
     this.StripsEnabledCheck.Checked         = true;
     this.StripsEnabledCheck.CheckState      = System.Windows.Forms.CheckState.Checked;
     this.StripsEnabledCheck.Location        = new System.Drawing.Point(8, 8);
     this.StripsEnabledCheck.Name            = "StripsEnabledCheck";
     this.StripsEnabledCheck.Size            = new System.Drawing.Size(176, 24);
     this.StripsEnabledCheck.TabIndex        = 0;
     this.StripsEnabledCheck.Text            = "Show &Strips:";
     this.StripsEnabledCheck.TextAlign       = System.Drawing.ContentAlignment.MiddleRight;
     this.StripsEnabledCheck.CheckedChanged += new System.EventHandler(this.Enabled_CheckedChanged);
     //
     // Chart1
     //
     this.Chart1.BackColor                   = System.Drawing.Color.FromArgb(((int)(((byte)(243)))), ((int)(((byte)(223)))), ((int)(((byte)(193)))));
     this.Chart1.BackGradientStyle           = System.Windows.Forms.DataVisualization.Charting.GradientStyle.TopBottom;
     this.Chart1.BorderlineColor             = System.Drawing.Color.FromArgb(((int)(((byte)(181)))), ((int)(((byte)(64)))), ((int)(((byte)(1)))));
     this.Chart1.BorderlineDashStyle         = System.Windows.Forms.DataVisualization.Charting.ChartDashStyle.Solid;
     this.Chart1.BorderlineWidth             = 2;
     this.Chart1.BorderSkin.SkinStyle        = System.Windows.Forms.DataVisualization.Charting.BorderSkinStyle.Emboss;
     chartArea1.Area3DStyle.Inclination      = 15;
     chartArea1.Area3DStyle.IsClustered      = true;
     chartArea1.Area3DStyle.IsRightAngleAxes = false;
     chartArea1.Area3DStyle.Perspective      = 10;
     chartArea1.Area3DStyle.Rotation         = 10;
     chartArea1.Area3DStyle.WallWidth        = 0;
     chartArea1.AxisX.IsLabelAutoFit         = false;
     chartArea1.AxisX.LabelStyle.Font        = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold);
     chartArea1.AxisX.LineColor              = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
     chartArea1.AxisX.MajorGrid.LineColor    = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
     chartArea1.AxisY.InterlacedColor        = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(255)))), ((int)(((byte)(227)))), ((int)(((byte)(130)))));
     chartArea1.AxisY.IsInterlaced           = true;
     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.Alignment     = System.Drawing.StringAlignment.Center;
     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);
     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";
     series1.BorderColor  = System.Drawing.Color.FromArgb(((int)(((byte)(180)))), ((int)(((byte)(26)))), ((int)(((byte)(59)))), ((int)(((byte)(105)))));
     series1.ChartArea    = "Default";
     series1.ChartType    = System.Windows.Forms.DataVisualization.Charting.SeriesChartType.Point;
     series1.Legend       = "Default";
     series1.MarkerSize   = 8;
     series1.Name         = "Series1";
     series1.Points.Add(dataPoint1);
     series1.Points.Add(dataPoint2);
     series1.Points.Add(dataPoint3);
     series1.Points.Add(dataPoint4);
     series1.Points.Add(dataPoint5);
     series1.Points.Add(dataPoint6);
     series1.Points.Add(dataPoint7);
     series1.Points.Add(dataPoint8);
     series1.ShadowOffset    = 2;
     series1.YValuesPerPoint = 2;
     series2.BorderColor     = System.Drawing.Color.FromArgb(((int)(((byte)(180)))), ((int)(((byte)(26)))), ((int)(((byte)(59)))), ((int)(((byte)(105)))));
     series2.ChartArea       = "Default";
     series2.ChartType       = System.Windows.Forms.DataVisualization.Charting.SeriesChartType.Point;
     series2.Legend          = "Default";
     series2.MarkerSize      = 8;
     series2.Name            = "Series2";
     series2.Points.Add(dataPoint9);
     series2.Points.Add(dataPoint10);
     series2.Points.Add(dataPoint11);
     series2.Points.Add(dataPoint12);
     series2.Points.Add(dataPoint13);
     series2.Points.Add(dataPoint14);
     series2.Points.Add(dataPoint15);
     series2.Points.Add(dataPoint16);
     series2.ShadowOffset    = 2;
     series2.YValuesPerPoint = 2;
     this.Chart1.Series.Add(series1);
     this.Chart1.Series.Add(series2);
     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.ShadowColor   = System.Drawing.Color.FromArgb(((int)(((byte)(32)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))));
     title1.ShadowOffset  = 3;
     title1.Text          = "Interlaced Strips";
     this.Chart1.Titles.Add(title1);
     //
     // InterlacedStrips
     //
     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 = "InterlacedStrips";
     this.Size = new System.Drawing.Size(728, 480);
     this.panel1.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.Chart1)).EndInit();
     this.ResumeLayout(false);
 }
Example #58
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.StripLine stripLine1  = new System.Windows.Forms.DataVisualization.Charting.StripLine();
     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(0, 700);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint2  = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 400);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint3  = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 200);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint4  = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 450);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint5  = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 300);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint6  = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 245);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint7  = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 568);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint8  = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 345);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint9  = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 789);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint10 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 834);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint11 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 382);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint12 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 599);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint13 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 123);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint14 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 223);
     System.Windows.Forms.DataVisualization.Charting.Title     title1      = new System.Windows.Forms.DataVisualization.Charting.Title();
     this.StripEndColor   = new System.Windows.Forms.ComboBox();
     this.StripColor      = new System.Windows.Forms.ComboBox();
     this.HatchStyle      = new System.Windows.Forms.ComboBox();
     this.Gradient        = new System.Windows.Forms.ComboBox();
     this.LineColor       = new System.Windows.Forms.ComboBox();
     this.StripLinesStyle = new System.Windows.Forms.ComboBox();
     this.LineWidth       = new System.Windows.Forms.ComboBox();
     this.label2          = new System.Windows.Forms.Label();
     this.label3          = new System.Windows.Forms.Label();
     this.label4          = new System.Windows.Forms.Label();
     this.label5          = new System.Windows.Forms.Label();
     this.label6          = new System.Windows.Forms.Label();
     this.label7          = 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.Interval        = new System.Windows.Forms.ComboBox();
     this.label11         = new System.Windows.Forms.Label();
     this.Chart1          = new System.Windows.Forms.DataVisualization.Charting.Chart();
     this.label10         = new System.Windows.Forms.Label();
     this.panel1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.Chart1)).BeginInit();
     this.SuspendLayout();
     //
     // StripEndColor
     //
     this.StripEndColor.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.StripEndColor.Items.AddRange(new object[] {
         "DarkRed",
         "Green",
         "Yellow",
         "SlateGray",
         "Gold"
     });
     this.StripEndColor.Location              = new System.Drawing.Point(168, 120);
     this.StripEndColor.Name                  = "StripEndColor";
     this.StripEndColor.Size                  = new System.Drawing.Size(121, 22);
     this.StripEndColor.TabIndex              = 9;
     this.StripEndColor.SelectedIndexChanged += new System.EventHandler(this.ControlChanged);
     //
     // StripColor
     //
     this.StripColor.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.StripColor.Items.AddRange(new object[] {
         "Red",
         "Gainsboro",
         "Khaki",
         "LightSteelBlue"
     });
     this.StripColor.Location              = new System.Drawing.Point(168, 48);
     this.StripColor.Name                  = "StripColor";
     this.StripColor.Size                  = new System.Drawing.Size(121, 22);
     this.StripColor.TabIndex              = 3;
     this.StripColor.SelectedIndexChanged += new System.EventHandler(this.ControlChanged);
     //
     // HatchStyle
     //
     this.HatchStyle.DropDownStyle         = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.HatchStyle.Location              = new System.Drawing.Point(168, 96);
     this.HatchStyle.Name                  = "HatchStyle";
     this.HatchStyle.Size                  = new System.Drawing.Size(121, 22);
     this.HatchStyle.TabIndex              = 7;
     this.HatchStyle.SelectedIndexChanged += new System.EventHandler(this.HatchControlChanged);
     //
     // Gradient
     //
     this.Gradient.DropDownStyle         = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.Gradient.Location              = new System.Drawing.Point(168, 72);
     this.Gradient.Name                  = "Gradient";
     this.Gradient.Size                  = new System.Drawing.Size(121, 22);
     this.Gradient.TabIndex              = 5;
     this.Gradient.SelectedIndexChanged += new System.EventHandler(this.GradienControlChanged);
     //
     // LineColor
     //
     this.LineColor.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.LineColor.Items.AddRange(new object[] {
         "MidnightBlue",
         "Green",
         "Black",
         "Red"
     });
     this.LineColor.Location              = new System.Drawing.Point(168, 184);
     this.LineColor.Name                  = "LineColor";
     this.LineColor.Size                  = new System.Drawing.Size(121, 22);
     this.LineColor.TabIndex              = 13;
     this.LineColor.SelectedIndexChanged += new System.EventHandler(this.ControlChanged);
     //
     // StripLinesStyle
     //
     this.StripLinesStyle.DropDownStyle         = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.StripLinesStyle.Location              = new System.Drawing.Point(168, 160);
     this.StripLinesStyle.Name                  = "StripLinesStyle";
     this.StripLinesStyle.Size                  = new System.Drawing.Size(121, 22);
     this.StripLinesStyle.TabIndex              = 11;
     this.StripLinesStyle.SelectedIndexChanged += new System.EventHandler(this.ControlChanged);
     //
     // LineWidth
     //
     this.LineWidth.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.LineWidth.Items.AddRange(new object[] {
         "1",
         "2",
         "3",
         "4",
         "5"
     });
     this.LineWidth.Location              = new System.Drawing.Point(168, 208);
     this.LineWidth.Name                  = "LineWidth";
     this.LineWidth.Size                  = new System.Drawing.Size(121, 22);
     this.LineWidth.TabIndex              = 15;
     this.LineWidth.SelectedIndexChanged += new System.EventHandler(this.ControlChanged);
     //
     // label2
     //
     this.label2.Location  = new System.Drawing.Point(20, 50);
     this.label2.Name      = "label2";
     this.label2.Size      = new System.Drawing.Size(148, 16);
     this.label2.TabIndex  = 2;
     this.label2.Text      = "Back &Color:";
     this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // label3
     //
     this.label3.Location  = new System.Drawing.Point(20, 122);
     this.label3.Name      = "label3";
     this.label3.Size      = new System.Drawing.Size(148, 16);
     this.label3.TabIndex  = 8;
     this.label3.Text      = "S&econdary Back Color:";
     this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // label4
     //
     this.label4.Location  = new System.Drawing.Point(20, 74);
     this.label4.Name      = "label4";
     this.label4.Size      = new System.Drawing.Size(148, 16);
     this.label4.TabIndex  = 4;
     this.label4.Text      = "&Gradient Style:";
     this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // label5
     //
     this.label5.Location  = new System.Drawing.Point(20, 98);
     this.label5.Name      = "label5";
     this.label5.Size      = new System.Drawing.Size(148, 16);
     this.label5.TabIndex  = 6;
     this.label5.Text      = "&Hatch Style:";
     this.label5.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // label6
     //
     this.label6.Location  = new System.Drawing.Point(19, 162);
     this.label6.Name      = "label6";
     this.label6.Size      = new System.Drawing.Size(148, 16);
     this.label6.TabIndex  = 10;
     this.label6.Text      = "Border &Style:";
     this.label6.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // label7
     //
     this.label7.Location  = new System.Drawing.Point(18, 186);
     this.label7.Name      = "label7";
     this.label7.Size      = new System.Drawing.Size(148, 16);
     this.label7.TabIndex  = 12;
     this.label7.Text      = "&Border Color:";
     this.label7.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 properties of the StripLine ob" +
                            "ject.";
     this.label9.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // panel1
     //
     this.panel1.Controls.Add(this.label1);
     this.panel1.Controls.Add(this.Interval);
     this.panel1.Controls.Add(this.StripLinesStyle);
     this.panel1.Controls.Add(this.label5);
     this.panel1.Controls.Add(this.Gradient);
     this.panel1.Controls.Add(this.label6);
     this.panel1.Controls.Add(this.label4);
     this.panel1.Controls.Add(this.HatchStyle);
     this.panel1.Controls.Add(this.label7);
     this.panel1.Controls.Add(this.label3);
     this.panel1.Controls.Add(this.label2);
     this.panel1.Controls.Add(this.LineWidth);
     this.panel1.Controls.Add(this.StripEndColor);
     this.panel1.Controls.Add(this.StripColor);
     this.panel1.Controls.Add(this.LineColor);
     this.panel1.Controls.Add(this.label11);
     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(20, 11);
     this.label1.Name      = "label1";
     this.label1.Size      = new System.Drawing.Size(148, 16);
     this.label1.TabIndex  = 0;
     this.label1.Text      = "Strip &Interval:";
     this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // Interval
     //
     this.Interval.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.Interval.Items.AddRange(new object[] {
         "2",
         "3",
         "4",
         "5"
     });
     this.Interval.Location              = new System.Drawing.Point(168, 8);
     this.Interval.Name                  = "Interval";
     this.Interval.Size                  = new System.Drawing.Size(121, 22);
     this.Interval.TabIndex              = 1;
     this.Interval.SelectedIndexChanged += new System.EventHandler(this.ControlChanged);
     //
     // label11
     //
     this.label11.Location  = new System.Drawing.Point(18, 211);
     this.label11.Name      = "label11";
     this.label11.Size      = new System.Drawing.Size(148, 16);
     this.label11.TabIndex  = 14;
     this.label11.Text      = "Border Si&ze:";
     this.label11.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // Chart1
     //
     this.Chart1.BackColor                   = System.Drawing.Color.WhiteSmoke;
     this.Chart1.BackGradientStyle           = System.Windows.Forms.DataVisualization.Charting.GradientStyle.TopBottom;
     this.Chart1.BackSecondaryColor          = System.Drawing.Color.White;
     this.Chart1.BorderlineColor             = System.Drawing.Color.FromArgb(((int)(((byte)(26)))), ((int)(((byte)(59)))), ((int)(((byte)(105)))));
     this.Chart1.BorderlineDashStyle         = System.Windows.Forms.DataVisualization.Charting.ChartDashStyle.Solid;
     this.Chart1.BorderlineWidth             = 2;
     this.Chart1.BorderSkin.SkinStyle        = System.Windows.Forms.DataVisualization.Charting.BorderSkinStyle.Emboss;
     chartArea1.Area3DStyle.Inclination      = 15;
     chartArea1.Area3DStyle.IsClustered      = true;
     chartArea1.Area3DStyle.IsRightAngleAxes = false;
     chartArea1.Area3DStyle.Perspective      = 10;
     chartArea1.Area3DStyle.Rotation         = 10;
     chartArea1.Area3DStyle.WallWidth        = 0;
     chartArea1.AxisX.IsLabelAutoFit         = false;
     chartArea1.AxisX.LabelStyle.Font        = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold);
     chartArea1.AxisX.LineColor              = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
     chartArea1.AxisX.MajorGrid.LineColor    = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
     stripLine1.BackColor      = System.Drawing.Color.Gainsboro;
     stripLine1.Interval       = 2;
     stripLine1.IntervalOffset = 0.5;
     stripLine1.StripWidth     = 1;
     chartArea1.AxisX.StripLines.Add(stripLine1);
     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.WhiteSmoke;
     chartArea1.BackSecondaryColor = System.Drawing.Color.White;
     chartArea1.BorderColor        = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
     chartArea1.Name        = "Default";
     chartArea1.ShadowColor = System.Drawing.Color.Transparent;
     this.Chart1.ChartAreas.Add(chartArea1);
     legend1.BackColor     = System.Drawing.Color.Transparent;
     legend1.Enabled       = false;
     legend1.Font          = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold);
     legend1.IsTextAutoFit = false;
     legend1.Name          = "Default";
     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.BorderWidth       = 2;
     series1.ChartArea         = "Default";
     series1.ChartType         = System.Windows.Forms.DataVisualization.Charting.SeriesChartType.Line;
     series1.Legend            = "Default";
     series1.MarkerBorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(64)))), ((int)(((byte)(10)))));
     series1.MarkerColor       = System.Drawing.Color.FromArgb(((int)(((byte)(252)))), ((int)(((byte)(180)))), ((int)(((byte)(65)))));
     series1.MarkerSize        = 8;
     series1.MarkerStyle       = System.Windows.Forms.DataVisualization.Charting.MarkerStyle.Circle;
     series1.Name = "Default";
     series1.Points.Add(dataPoint1);
     series1.Points.Add(dataPoint2);
     series1.Points.Add(dataPoint3);
     series1.Points.Add(dataPoint4);
     series1.Points.Add(dataPoint5);
     series1.Points.Add(dataPoint6);
     series1.Points.Add(dataPoint7);
     series1.Points.Add(dataPoint8);
     series1.Points.Add(dataPoint9);
     series1.Points.Add(dataPoint10);
     series1.Points.Add(dataPoint11);
     series1.Points.Add(dataPoint12);
     series1.Points.Add(dataPoint13);
     series1.Points.Add(dataPoint14);
     this.Chart1.Series.Add(series1);
     this.Chart1.Size     = new System.Drawing.Size(412, 306);
     this.Chart1.TabIndex = 1;
     title1.Alignment     = System.Drawing.ContentAlignment.MiddleLeft;
     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          = "Strip Lines";
     this.Chart1.Titles.Add(title1);
     //
     // label10
     //
     this.label10.Font     = new System.Drawing.Font("Verdana", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label10.Location = new System.Drawing.Point(16, 367);
     this.label10.Name     = "label10";
     this.label10.Size     = new System.Drawing.Size(702, 34);
     this.label10.TabIndex = 3;
     this.label10.Text     = "Chart interlaced strip lines can also be enabled setting the Axis.IsInterlaced pr" +
                             "operty.";
     this.label10.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // StripLines
     //
     this.BackColor = System.Drawing.Color.White;
     this.Controls.Add(this.label10);
     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 = "StripLines";
     this.Size = new System.Drawing.Size(728, 424);
     this.panel1.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.Chart1)).EndInit();
     this.ResumeLayout(false);
 }
Example #59
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.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, 2);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint2  = new System.Windows.Forms.DataVisualization.Charting.DataPoint(2, 3);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint3  = new System.Windows.Forms.DataVisualization.Charting.DataPoint(3, 5);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint4  = new System.Windows.Forms.DataVisualization.Charting.DataPoint(4, 3);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint5  = new System.Windows.Forms.DataVisualization.Charting.DataPoint(5, 6);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint6  = new System.Windows.Forms.DataVisualization.Charting.DataPoint(6, 5);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint7  = new System.Windows.Forms.DataVisualization.Charting.DataPoint(7, 7);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint8  = new System.Windows.Forms.DataVisualization.Charting.DataPoint(8, 9);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint9  = new System.Windows.Forms.DataVisualization.Charting.DataPoint(9, 9);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint10 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(10, 6);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint11 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(11, 9);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint12 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(12, 3);
     System.Windows.Forms.DataVisualization.Charting.Series    series2     = new System.Windows.Forms.DataVisualization.Charting.Series();
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint13 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(1, 2);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint14 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(2, 8);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint15 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(3, 3);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint16 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(4, 4);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint17 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(5, 7);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint18 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(6, 0.5);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint19 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(7, 5);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint20 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(8, 6);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint21 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(9, 1);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint22 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(10, 7);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint23 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(11, 3);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint24 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(12, 8);
     this.chart1             = new System.Windows.Forms.DataVisualization.Charting.Chart();
     this.ShowTitle          = new System.Windows.Forms.CheckBox();
     this.label1             = new System.Windows.Forms.Label();
     this.label2             = new System.Windows.Forms.Label();
     this.RotateAxisLabel    = new System.Windows.Forms.ComboBox();
     this.label3             = new System.Windows.Forms.Label();
     this.label4             = new System.Windows.Forms.Label();
     this.FontSize           = new System.Windows.Forms.ComboBox();
     this.TableColor         = new System.Windows.Forms.ComboBox();
     this.BorderColor        = new System.Windows.Forms.ComboBox();
     this.panel1             = new System.Windows.Forms.Panel();
     this.EnableScrollBar    = new System.Windows.Forms.CheckBox();
     this.IsPositionedInside = new System.Windows.Forms.CheckBox();
     this.DataTable1         = new System.Windows.Forms.CheckBox();
     this.label9             = new System.Windows.Forms.Label();
     ((System.ComponentModel.ISupportInitialize)(this.chart1)).BeginInit();
     this.panel1.SuspendLayout();
     this.SuspendLayout();
     //
     // chart1
     //
     this.chart1.BackColor                         = System.Drawing.Color.FromArgb(((int)(((byte)(243)))), ((int)(((byte)(223)))), ((int)(((byte)(193)))));
     this.chart1.BackGradientStyle                 = System.Windows.Forms.DataVisualization.Charting.GradientStyle.TopBottom;
     this.chart1.BorderlineColor                   = System.Drawing.Color.FromArgb(((int)(((byte)(181)))), ((int)(((byte)(64)))), ((int)(((byte)(1)))));
     this.chart1.BorderlineDashStyle               = System.Windows.Forms.DataVisualization.Charting.ChartDashStyle.Solid;
     this.chart1.BorderlineWidth                   = 2;
     this.chart1.BorderSkin.SkinStyle              = System.Windows.Forms.DataVisualization.Charting.BorderSkinStyle.Emboss;
     chartArea1.Area3DStyle.Inclination            = 15;
     chartArea1.Area3DStyle.IsClustered            = true;
     chartArea1.Area3DStyle.IsRightAngleAxes       = false;
     chartArea1.Area3DStyle.Perspective            = 10;
     chartArea1.Area3DStyle.Rotation               = 10;
     chartArea1.Area3DStyle.WallWidth              = 0;
     chartArea1.AxisX.IsLabelAutoFit               = false;
     chartArea1.AxisX.LabelStyle.Font              = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold);
     chartArea1.AxisX.LabelStyle.Interval          = 1;
     chartArea1.AxisX.LabelStyle.IsEndLabelVisible = false;
     chartArea1.AxisX.LineColor                    = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
     chartArea1.AxisX.MajorGrid.Interval           = 1;
     chartArea1.AxisX.MajorGrid.IntervalOffset     = 0.5;
     chartArea1.AxisX.MajorGrid.LineColor          = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
     chartArea1.AxisX.MajorTickMark.Enabled        = false;
     chartArea1.AxisX.MajorTickMark.Interval       = 1;
     chartArea1.AxisX.MajorTickMark.IntervalOffset = 0.5;
     chartArea1.AxisX.ScaleView.Size               = 5;
     chartArea1.AxisX.ScrollBar.IsPositionedInside = false;
     chartArea1.AxisX.ScrollBar.LineColor          = System.Drawing.Color.Black;
     chartArea1.AxisX.Title                        = "This is the X Axis";
     chartArea1.AxisX.TitleFont                    = new System.Drawing.Font("Arial", 8F);
     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.MajorTickMark.Enabled        = false;
     chartArea1.BackColor                      = System.Drawing.Color.OldLace;
     chartArea1.BackGradientStyle              = System.Windows.Forms.DataVisualization.Charting.GradientStyle.TopBottom;
     chartArea1.BackSecondaryColor             = System.Drawing.Color.White;
     chartArea1.BorderColor                    = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
     chartArea1.BorderDashStyle                = System.Windows.Forms.DataVisualization.Charting.ChartDashStyle.Solid;
     chartArea1.CursorX.IntervalOffset         = 0.5;
     chartArea1.CursorX.IsUserEnabled          = true;
     chartArea1.CursorX.IsUserSelectionEnabled = true;
     chartArea1.Name        = "Default";
     chartArea1.ShadowColor = System.Drawing.Color.Transparent;
     this.chart1.ChartAreas.Add(chartArea1);
     legend1.BackColor         = System.Drawing.Color.Transparent;
     legend1.DockedToChartArea = "Default";
     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(8, 53);
     this.chart1.Name     = "chart1";
     series1.BorderColor  = System.Drawing.Color.FromArgb(((int)(((byte)(180)))), ((int)(((byte)(26)))), ((int)(((byte)(59)))), ((int)(((byte)(105)))));
     series1.ChartArea    = "Default";
     series1.Legend       = "Default";
     series1.Name         = "Series1";
     dataPoint2.AxisLabel = "";
     series1.Points.Add(dataPoint1);
     series1.Points.Add(dataPoint2);
     series1.Points.Add(dataPoint3);
     series1.Points.Add(dataPoint4);
     series1.Points.Add(dataPoint5);
     series1.Points.Add(dataPoint6);
     series1.Points.Add(dataPoint7);
     series1.Points.Add(dataPoint8);
     series1.Points.Add(dataPoint9);
     series1.Points.Add(dataPoint10);
     series1.Points.Add(dataPoint11);
     series1.Points.Add(dataPoint12);
     series1.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.Legend      = "Default";
     series2.Name        = "Series2";
     series2.Points.Add(dataPoint13);
     series2.Points.Add(dataPoint14);
     series2.Points.Add(dataPoint15);
     series2.Points.Add(dataPoint16);
     series2.Points.Add(dataPoint17);
     series2.Points.Add(dataPoint18);
     series2.Points.Add(dataPoint19);
     series2.Points.Add(dataPoint20);
     series2.Points.Add(dataPoint21);
     series2.Points.Add(dataPoint22);
     series2.Points.Add(dataPoint23);
     series2.Points.Add(dataPoint24);
     this.chart1.Series.Add(series1);
     this.chart1.Series.Add(series2);
     this.chart1.Size     = new System.Drawing.Size(412, 296);
     this.chart1.TabIndex = 1;
     //
     // ShowTitle
     //
     this.ShowTitle.CheckAlign = System.Drawing.ContentAlignment.MiddleRight;
     this.ShowTitle.Location   = new System.Drawing.Point(5, 37);
     this.ShowTitle.Name       = "ShowTitle";
     this.ShowTitle.Size       = new System.Drawing.Size(176, 24);
     this.ShowTitle.TabIndex   = 1;
     this.ShowTitle.Text       = "Show Axis T&itle:";
     this.ShowTitle.TextAlign  = System.Drawing.ContentAlignment.MiddleRight;
     this.ShowTitle.Click     += new System.EventHandler(this.ShowTitle_Click);
     //
     // label1
     //
     this.label1.Location  = new System.Drawing.Point(11, 123);
     this.label1.Name      = "label1";
     this.label1.Size      = new System.Drawing.Size(152, 23);
     this.label1.TabIndex  = 4;
     this.label1.Text      = "&Rotate Labels:";
     this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // label2
     //
     this.label2.Location  = new System.Drawing.Point(11, 149);
     this.label2.Name      = "label2";
     this.label2.Size      = new System.Drawing.Size(152, 23);
     this.label2.TabIndex  = 6;
     this.label2.Text      = "Title Si&ze:";
     this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // RotateAxisLabel
     //
     this.RotateAxisLabel.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.RotateAxisLabel.Items.AddRange(new object[] {
         "0",
         "30",
         "45",
         "60",
         "90"
     });
     this.RotateAxisLabel.Location = new System.Drawing.Point(168, 124);
     this.RotateAxisLabel.Name     = "RotateAxisLabel";
     this.RotateAxisLabel.Size     = new System.Drawing.Size(64, 22);
     this.RotateAxisLabel.TabIndex = 5;
     this.RotateAxisLabel.SelectionChangeCommitted += new System.EventHandler(this.comboBox1_SelectionChangeCommitted);
     //
     // label3
     //
     this.label3.Location  = new System.Drawing.Point(27, 175);
     this.label3.Name      = "label3";
     this.label3.Size      = new System.Drawing.Size(136, 23);
     this.label3.TabIndex  = 8;
     this.label3.Text      = "Table C&olor:";
     this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // label4
     //
     this.label4.Location  = new System.Drawing.Point(19, 200);
     this.label4.Name      = "label4";
     this.label4.Size      = new System.Drawing.Size(144, 23);
     this.label4.TabIndex  = 10;
     this.label4.Text      = "Table &Border:";
     this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // FontSize
     //
     this.FontSize.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.FontSize.Items.AddRange(new object[] {
         "8",
         "10",
         "12",
         "14",
         "18"
     });
     this.FontSize.Location = new System.Drawing.Point(168, 150);
     this.FontSize.Name     = "FontSize";
     this.FontSize.Size     = new System.Drawing.Size(64, 22);
     this.FontSize.TabIndex = 7;
     this.FontSize.SelectionChangeCommitted += new System.EventHandler(this.FontSize_SelectionChangeCommitted);
     //
     // TableColor
     //
     this.TableColor.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.TableColor.Items.AddRange(new object[] {
         "Control",
         "Yellow",
         "OldLace",
         "White",
         "Transparent"
     });
     this.TableColor.Location              = new System.Drawing.Point(168, 176);
     this.TableColor.Name                  = "TableColor";
     this.TableColor.Size                  = new System.Drawing.Size(120, 22);
     this.TableColor.TabIndex              = 9;
     this.TableColor.SelectedIndexChanged += new System.EventHandler(this.TableColor_SelectedIndexChanged);
     //
     // BorderColor
     //
     this.BorderColor.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.BorderColor.Items.AddRange(new object[] {
         "Control",
         "Black",
         "Red",
         "Yellow",
         "DimGray",
         "White",
         "Transparent"
     });
     this.BorderColor.Location              = new System.Drawing.Point(168, 202);
     this.BorderColor.Name                  = "BorderColor";
     this.BorderColor.Size                  = new System.Drawing.Size(121, 22);
     this.BorderColor.TabIndex              = 11;
     this.BorderColor.SelectedIndexChanged += new System.EventHandler(this.BorderColor_SelectedIndexChanged);
     //
     // panel1
     //
     this.panel1.Controls.Add(this.EnableScrollBar);
     this.panel1.Controls.Add(this.IsPositionedInside);
     this.panel1.Controls.Add(this.DataTable1);
     this.panel1.Controls.Add(this.RotateAxisLabel);
     this.panel1.Controls.Add(this.ShowTitle);
     this.panel1.Controls.Add(this.FontSize);
     this.panel1.Controls.Add(this.label2);
     this.panel1.Controls.Add(this.BorderColor);
     this.panel1.Controls.Add(this.label1);
     this.panel1.Controls.Add(this.label3);
     this.panel1.Controls.Add(this.TableColor);
     this.panel1.Controls.Add(this.label4);
     this.panel1.Location = new System.Drawing.Point(432, 61);
     this.panel1.Name     = "panel1";
     this.panel1.Size     = new System.Drawing.Size(292, 288);
     this.panel1.TabIndex = 2;
     //
     // EnableScrollBar
     //
     this.EnableScrollBar.CheckAlign      = System.Drawing.ContentAlignment.MiddleRight;
     this.EnableScrollBar.Checked         = true;
     this.EnableScrollBar.CheckState      = System.Windows.Forms.CheckState.Checked;
     this.EnableScrollBar.Location        = new System.Drawing.Point(5, 66);
     this.EnableScrollBar.Name            = "EnableScrollBar";
     this.EnableScrollBar.Size            = new System.Drawing.Size(176, 24);
     this.EnableScrollBar.TabIndex        = 2;
     this.EnableScrollBar.Text            = "Enable &ScrollBar:";
     this.EnableScrollBar.TextAlign       = System.Drawing.ContentAlignment.MiddleRight;
     this.EnableScrollBar.CheckedChanged += new System.EventHandler(this.EnableScrollBar_CheckedChanged);
     //
     // IsPositionedInside
     //
     this.IsPositionedInside.CheckAlign      = System.Drawing.ContentAlignment.MiddleRight;
     this.IsPositionedInside.Location        = new System.Drawing.Point(13, 95);
     this.IsPositionedInside.Name            = "IsPositionedInside";
     this.IsPositionedInside.Size            = new System.Drawing.Size(168, 24);
     this.IsPositionedInside.TabIndex        = 3;
     this.IsPositionedInside.Text            = "ScrollBar I&nside:";
     this.IsPositionedInside.TextAlign       = System.Drawing.ContentAlignment.MiddleRight;
     this.IsPositionedInside.CheckedChanged += new System.EventHandler(this.IsPositionedInside_CheckedChanged);
     //
     // DataTable1
     //
     this.DataTable1.CheckAlign      = System.Drawing.ContentAlignment.MiddleRight;
     this.DataTable1.Location        = new System.Drawing.Point(5, 8);
     this.DataTable1.Name            = "DataTable1";
     this.DataTable1.Size            = new System.Drawing.Size(176, 24);
     this.DataTable1.TabIndex        = 0;
     this.DataTable1.Text            = "Show Data &Table:";
     this.DataTable1.TextAlign       = System.Drawing.ContentAlignment.MiddleRight;
     this.DataTable1.CheckedChanged += new System.EventHandler(this.DataTable1_CheckedChanged_1);
     //
     // 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, 8);
     this.label9.Name     = "label9";
     this.label9.Size     = new System.Drawing.Size(702, 37);
     this.label9.TabIndex = 0;
     this.label9.Text     = "This sample demonstrates how to draw a custom data table using the PrePaint and P" +
                            "ostPaint events.";
     this.label9.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // PaintingDataTable
     //
     this.BackColor = System.Drawing.Color.White;
     this.Controls.Add(this.label9);
     this.Controls.Add(this.panel1);
     this.Controls.Add(this.chart1);
     this.Font  = new System.Drawing.Font("Verdana", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.Name  = "PaintingDataTable";
     this.Size  = new System.Drawing.Size(728, 376);
     this.Load += new System.EventHandler(this.PaintingDataTable_Load);
     ((System.ComponentModel.ISupportInitialize)(this.chart1)).EndInit();
     this.panel1.ResumeLayout(false);
     this.ResumeLayout(false);
 }
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     System.Windows.Forms.DataVisualization.Charting.ChartArea chartArea1  = new System.Windows.Forms.DataVisualization.Charting.ChartArea();
     System.Windows.Forms.DataVisualization.Charting.Legend    legend1     = new System.Windows.Forms.DataVisualization.Charting.Legend();
     System.Windows.Forms.DataVisualization.Charting.Series    series1     = new System.Windows.Forms.DataVisualization.Charting.Series();
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint1  = new System.Windows.Forms.DataVisualization.Charting.DataPoint(37622, 345);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint2  = new System.Windows.Forms.DataVisualization.Charting.DataPoint(37623, 634);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint3  = new System.Windows.Forms.DataVisualization.Charting.DataPoint(37624, 154);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint4  = new System.Windows.Forms.DataVisualization.Charting.DataPoint(37625, 765);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint5  = new System.Windows.Forms.DataVisualization.Charting.DataPoint(37626, 376);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint6  = new System.Windows.Forms.DataVisualization.Charting.DataPoint(37627, 600);
     System.Windows.Forms.DataVisualization.Charting.ChartArea chartArea2  = new System.Windows.Forms.DataVisualization.Charting.ChartArea();
     System.Windows.Forms.DataVisualization.Charting.Legend    legend2     = new System.Windows.Forms.DataVisualization.Charting.Legend();
     System.Windows.Forms.DataVisualization.Charting.Series    series2     = new System.Windows.Forms.DataVisualization.Charting.Series();
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint7  = new System.Windows.Forms.DataVisualization.Charting.DataPoint(37622, 345);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint8  = new System.Windows.Forms.DataVisualization.Charting.DataPoint(37623, 634);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint9  = new System.Windows.Forms.DataVisualization.Charting.DataPoint(37624, 154);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint10 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(37625, 765);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint11 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(37626, 376);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint12 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(37627, 457);
     this.label9               = new System.Windows.Forms.Label();
     this.panel1               = new System.Windows.Forms.Panel();
     this.groupBox1            = new System.Windows.Forms.GroupBox();
     this.checkBoxFontSize     = new System.Windows.Forms.CheckBox();
     this.labelAngle           = new System.Windows.Forms.Label();
     this.checkBoxWordWrap     = new System.Windows.Forms.CheckBox();
     this.checkBoxOffsetLabels = new System.Windows.Forms.CheckBox();
     this.comboBoInclination   = new System.Windows.Forms.ComboBox();
     this.checkBoxAutoFit      = new System.Windows.Forms.CheckBox();
     this.Chart1               = new System.Windows.Forms.DataVisualization.Charting.Chart();
     this.chart2               = new System.Windows.Forms.DataVisualization.Charting.Chart();
     this.label2               = new System.Windows.Forms.Label();
     this.panel1.SuspendLayout();
     this.groupBox1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.Chart1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.chart2)).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 automatically fit labels along an axis. ";
     this.label9.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // panel1
     //
     this.panel1.Controls.Add(this.groupBox1);
     this.panel1.Controls.Add(this.checkBoxAutoFit);
     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;
     //
     // groupBox1
     //
     this.groupBox1.Controls.Add(this.checkBoxFontSize);
     this.groupBox1.Controls.Add(this.labelAngle);
     this.groupBox1.Controls.Add(this.checkBoxWordWrap);
     this.groupBox1.Controls.Add(this.checkBoxOffsetLabels);
     this.groupBox1.Controls.Add(this.comboBoInclination);
     this.groupBox1.Location = new System.Drawing.Point(16, 40);
     this.groupBox1.Name     = "groupBox1";
     this.groupBox1.Size     = new System.Drawing.Size(272, 160);
     this.groupBox1.TabIndex = 11;
     this.groupBox1.TabStop  = false;
     this.groupBox1.Text     = "Automatic Fitting Style:";
     //
     // checkBoxFontSize
     //
     this.checkBoxFontSize.Checked         = true;
     this.checkBoxFontSize.CheckState      = System.Windows.Forms.CheckState.Checked;
     this.checkBoxFontSize.Enabled         = false;
     this.checkBoxFontSize.Location        = new System.Drawing.Point(32, 24);
     this.checkBoxFontSize.Name            = "checkBoxFontSize";
     this.checkBoxFontSize.Size            = new System.Drawing.Size(216, 24);
     this.checkBoxFontSize.TabIndex        = 2;
     this.checkBoxFontSize.Text            = "Modify Font &Size";
     this.checkBoxFontSize.CheckedChanged += new System.EventHandler(this.checkBoxFontSize_CheckedChanged);
     //
     // labelAngle
     //
     this.labelAngle.Enabled   = false;
     this.labelAngle.Location  = new System.Drawing.Point(24, 120);
     this.labelAngle.Name      = "labelAngle";
     this.labelAngle.Size      = new System.Drawing.Size(96, 23);
     this.labelAngle.TabIndex  = 5;
     this.labelAngle.Text      = "Labels &Angle:";
     this.labelAngle.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // checkBoxWordWrap
     //
     this.checkBoxWordWrap.Checked         = true;
     this.checkBoxWordWrap.CheckState      = System.Windows.Forms.CheckState.Checked;
     this.checkBoxWordWrap.Enabled         = false;
     this.checkBoxWordWrap.Location        = new System.Drawing.Point(32, 88);
     this.checkBoxWordWrap.Name            = "checkBoxWordWrap";
     this.checkBoxWordWrap.Size            = new System.Drawing.Size(216, 24);
     this.checkBoxWordWrap.TabIndex        = 4;
     this.checkBoxWordWrap.Text            = "Use Word &Wrap";
     this.checkBoxWordWrap.CheckedChanged += new System.EventHandler(this.checkBoxWordWrap_CheckedChanged);
     //
     // checkBoxOffsetLabels
     //
     this.checkBoxOffsetLabels.Checked         = true;
     this.checkBoxOffsetLabels.CheckState      = System.Windows.Forms.CheckState.Checked;
     this.checkBoxOffsetLabels.Enabled         = false;
     this.checkBoxOffsetLabels.Location        = new System.Drawing.Point(32, 56);
     this.checkBoxOffsetLabels.Name            = "checkBoxOffsetLabels";
     this.checkBoxOffsetLabels.Size            = new System.Drawing.Size(216, 24);
     this.checkBoxOffsetLabels.TabIndex        = 3;
     this.checkBoxOffsetLabels.Text            = "Use &Offset Labels";
     this.checkBoxOffsetLabels.CheckedChanged += new System.EventHandler(this.checkBoxOffsetLabels_CheckedChanged);
     //
     // comboBoInclination
     //
     this.comboBoInclination.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.comboBoInclination.Enabled       = false;
     this.comboBoInclination.Items.AddRange(new object[] {
         "Not Changed",
         "0-30-60-90",
         "0-45-90",
         "0-90"
     });
     this.comboBoInclination.Location              = new System.Drawing.Point(128, 120);
     this.comboBoInclination.Name                  = "comboBoInclination";
     this.comboBoInclination.Size                  = new System.Drawing.Size(120, 22);
     this.comboBoInclination.TabIndex              = 6;
     this.comboBoInclination.SelectedIndexChanged += new System.EventHandler(this.comboBoInclination_SelectedIndexChanged);
     //
     // checkBoxAutoFit
     //
     this.checkBoxAutoFit.Checked         = true;
     this.checkBoxAutoFit.CheckState      = System.Windows.Forms.CheckState.Checked;
     this.checkBoxAutoFit.Location        = new System.Drawing.Point(48, 8);
     this.checkBoxAutoFit.Name            = "checkBoxAutoFit";
     this.checkBoxAutoFit.Size            = new System.Drawing.Size(228, 24);
     this.checkBoxAutoFit.TabIndex        = 0;
     this.checkBoxAutoFit.Text            = "Automatically Fit &X Axis Labels";
     this.checkBoxAutoFit.CheckedChanged += new System.EventHandler(this.checkBoxAutoFit_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.Rotation         = 10;
     chartArea1.Area3DStyle.WallWidth        = 0;
     chartArea1.AxisX.LabelStyle.Font        = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold);
     chartArea1.AxisX.LabelStyle.Format      = "ddd, MMM dd";
     chartArea1.AxisX.LineColor              = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
     chartArea1.AxisX.MajorGrid.LineColor    = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
     chartArea1.AxisX2.Enabled               = System.Windows.Forms.DataVisualization.Charting.AxisEnabled.False;
     chartArea1.AxisY.IsLabelAutoFit         = false;
     chartArea1.AxisY.LabelStyle.Font        = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold);
     chartArea1.AxisY.LabelStyle.Format      = "C";
     chartArea1.AxisY.LineColor              = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
     chartArea1.AxisY.MajorGrid.LineColor    = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
     chartArea1.AxisY2.Enabled               = System.Windows.Forms.DataVisualization.Charting.AxisEnabled.False;
     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.ShadowColor = System.Drawing.Color.Transparent;
     this.Chart1.ChartAreas.Add(chartArea1);
     legend1.BackColor     = System.Drawing.Color.Transparent;
     legend1.Enabled       = false;
     legend1.Font          = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold);
     legend1.IsTextAutoFit = false;
     legend1.Name          = "Default";
     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.Legend       = "Default";
     series1.Name         = "Series1";
     dataPoint1.AxisLabel = "";
     dataPoint2.AxisLabel = "";
     dataPoint3.AxisLabel = "";
     dataPoint4.AxisLabel = "";
     series1.Points.Add(dataPoint1);
     series1.Points.Add(dataPoint2);
     series1.Points.Add(dataPoint3);
     series1.Points.Add(dataPoint4);
     series1.Points.Add(dataPoint5);
     series1.Points.Add(dataPoint6);
     series1.XValueType = System.Windows.Forms.DataVisualization.Charting.ChartValueType.DateTime;
     this.Chart1.Series.Add(series1);
     this.Chart1.Size     = new System.Drawing.Size(412, 296);
     this.Chart1.TabIndex = 1;
     this.Chart1.Click   += new System.EventHandler(this.Chart1_Click);
     //
     // chart2
     //
     this.chart2.BorderlineColor               = System.Drawing.Color.DimGray;
     this.chart2.BorderlineDashStyle           = System.Windows.Forms.DataVisualization.Charting.ChartDashStyle.Solid;
     this.chart2.BorderSkin.BackSecondaryColor = System.Drawing.Color.White;
     this.chart2.BorderSkin.PageColor          = System.Drawing.SystemColors.Control;
     chartArea2.AxisX.IsLabelAutoFit           = false;
     chartArea2.AxisX.LabelStyle.Format        = "ddd, MMM dd";
     chartArea2.AxisX2.Enabled          = System.Windows.Forms.DataVisualization.Charting.AxisEnabled.False;
     chartArea2.AxisY.LabelStyle.Format = "C";
     chartArea2.AxisY2.Enabled          = System.Windows.Forms.DataVisualization.Charting.AxisEnabled.False;
     chartArea2.BackColor       = System.Drawing.Color.LightGray;
     chartArea2.BorderDashStyle = System.Windows.Forms.DataVisualization.Charting.ChartDashStyle.Solid;
     chartArea2.Name            = "Default";
     chartArea2.ShadowOffset    = 1;
     this.chart2.ChartAreas.Add(chartArea2);
     legend2.BackColor   = System.Drawing.Color.White;
     legend2.BorderColor = System.Drawing.Color.Black;
     legend2.Enabled     = false;
     legend2.Name        = "Default";
     this.chart2.Legends.Add(legend2);
     this.chart2.Location       = new System.Drawing.Point(16, 48);
     this.chart2.Name           = "chart2";
     this.chart2.Palette        = System.Windows.Forms.DataVisualization.Charting.ChartColorPalette.Excel;
     series2.BackGradientStyle  = System.Windows.Forms.DataVisualization.Charting.GradientStyle.VerticalCenter;
     series2.BackSecondaryColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(255)))));
     series2.BorderColor        = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
     series2.ChartArea          = "Default";
     series2.Legend             = "Default";
     series2.Name          = "Series1";
     dataPoint7.AxisLabel  = "";
     dataPoint8.AxisLabel  = "";
     dataPoint9.AxisLabel  = "";
     dataPoint10.AxisLabel = "";
     series2.Points.Add(dataPoint7);
     series2.Points.Add(dataPoint8);
     series2.Points.Add(dataPoint9);
     series2.Points.Add(dataPoint10);
     series2.Points.Add(dataPoint11);
     series2.Points.Add(dataPoint12);
     series2.ShadowOffset = 1;
     series2.XValueType   = System.Windows.Forms.DataVisualization.Charting.ChartValueType.DateTime;
     this.chart2.Series.Add(series2);
     this.chart2.Size     = new System.Drawing.Size(360, 260);
     this.chart2.TabIndex = 0;
     //
     // label2
     //
     this.label2.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                                | System.Windows.Forms.AnchorStyles.Right)));
     this.label2.Font     = new System.Drawing.Font("Verdana", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label2.Location = new System.Drawing.Point(20, 360);
     this.label2.Name     = "label2";
     this.label2.Size     = new System.Drawing.Size(692, 34);
     this.label2.TabIndex = 3;
     this.label2.Text     = "For more information on this sample, Click the Overview tab at the top of this fr" +
                            "ame.";
     //
     // AutoFitAxesLabels
     //
     this.Controls.Add(this.panel1);
     this.Controls.Add(this.label2);
     this.Controls.Add(this.Chart1);
     this.Controls.Add(this.label9);
     this.Controls.Add(this.chart2);
     this.Font  = new System.Drawing.Font("Verdana", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.Name  = "AutoFitAxesLabels";
     this.Size  = new System.Drawing.Size(728, 480);
     this.Load += new System.EventHandler(this.CustomLabels_Load);
     this.panel1.ResumeLayout(false);
     this.groupBox1.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.Chart1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.chart2)).EndInit();
     this.ResumeLayout(false);
 }