public HistoricalDataManager(IBClient ibClient, Chart chart, DataGridView gridView) : base(ibClient, chart) 
 {
     Chart historicalChart = (Chart)uiControl;
     historicalChart.Series[0]["PriceUpColor"] = "Green";
     historicalChart.Series[0]["PriceDownColor"] = "Red";
     this.gridView = gridView;
 }
        public static void ParseSnapshot( Chart TimeLineChart, FStreamSnapshot Snapshot )
        {
            // Progress bar.
            OwnerWindow.UpdateStatus( "Updating time line view for " + OwnerWindow.CurrentFilename );

            TimeLineChart.Annotations.Clear();

            bool bIsXbox360 = FStreamInfo.GlobalInstance.Platform == EPlatformType.Xbox360;
            bool bIsPS3 = FStreamInfo.GlobalInstance.Platform == EPlatformType.PS3;

            AddSeries( TimeLineChart, "Allocated Memory", Snapshot, ESliceTypes.TotalUsed, true );

            AddSeries( TimeLineChart, "Image Size", Snapshot, ESliceTypes.ImageSize, bIsXbox360 || bIsPS3 );
            AddSeries( TimeLineChart, "OS Overhead", Snapshot, ESliceTypes.OSOverhead, bIsXbox360 );

            AddSeries( TimeLineChart, "Virtual Used", Snapshot, ESliceTypes.CPUUsed, true );
            AddSeries( TimeLineChart, "Virtual Slack", Snapshot, ESliceTypes.CPUSlack, true );
            AddSeries( TimeLineChart, "Virtual Waste", Snapshot, ESliceTypes.CPUWaste, true );
            AddSeries( TimeLineChart, "Physical Used", Snapshot, ESliceTypes.GPUUsed, bIsPS3 || bIsXbox360 );
            AddSeries( TimeLineChart, "Physical Slack", Snapshot, ESliceTypes.GPUSlack, bIsXbox360 );
            AddSeries( TimeLineChart, "Physical Waste", Snapshot, ESliceTypes.GPUWaste, bIsPS3 || bIsXbox360 );

            AddSeries( TimeLineChart, "Host Used", Snapshot, ESliceTypes.HostUsed, bIsPS3 );
            AddSeries( TimeLineChart, "Host Slack", Snapshot, ESliceTypes.HostSlack, bIsPS3 );
            AddSeries( TimeLineChart, "Host Waste", Snapshot, ESliceTypes.HostWaste, bIsPS3 );
        }
Beispiel #3
0
 public void AddPlot(List<double> values, string title = "")
 {
     Chart chart = new Chart();
     Series series = new Series();
     ChartArea chartArea1 = new ChartArea();
     chartArea1.Name = "ChartArea1";
     chart.ChartAreas.Add(chartArea1);
     series.BorderWidth = 2;
     series.BorderDashStyle = ChartDashStyle.Solid;
     series.ChartType = SeriesChartType.Line;
     series.Color = Color.Green;
     for (int i = 0; i < values.Count; i++)
     {
         series.Points.AddXY(i, values[i]);
     }
     chart.BorderlineColor = Color.Red;
     chart.BorderlineWidth = 1;
     chart.Series.Add(series);
     chart.Titles.Add(title);
     chart.Invalidate();
     chart.Palette = ChartColorPalette.Fire;
     chartArea1.AxisY.Minimum = values.Min();
     chartArea1.AxisY.Maximum = values.Max();
     AddChartInRuntime(chart);
 }
Beispiel #4
0
 public void AddSeries(Chart chart, string seriesName)
 {
     Series s = new Series(seriesName);
     chart.Series.Add(s);
     chart.Series[seriesName].ChartType = SeriesChartType.Column;
     chart.Series[seriesName]["DrawingStyle"] = "Emboss";
 }
Beispiel #5
0
 private void DrawGraph(double[] arr, Chart chart)
 {
     for (int i = 0; i < N; i++)
     {
         chart.Series[0].Points.AddXY(i, arr[i]);
     }
 }
        public CenterGravity()
        {
            InitializeComponent();

            Chart chart = new Chart();
            ChartArea area = new ChartArea();
            area.AxisX.Title = "t";
            area.AxisX.Minimum = 0;
            area.AxisX.MajorGrid.LineColor = Color.LightGray;
            area.AxisY.Title = "Movement";
            area.AxisY.MajorGrid.LineColor = Color.LightGray;
            chart.ChartAreas.Add(area);
            _serie = new Series();
            _serie.ChartType = SeriesChartType.Line;
            _serie.MarkerStyle = MarkerStyle.Diamond;
            _serie.MarkerSize = 9;
            _serie.Color = Color.LimeGreen;
            chart.Series.Add(_serie);

            WindowsFormsHost host = new WindowsFormsHost();
            host.Child = chart;
            movlive.Children.Add(host);

            _cog = new cog(400, 400);
            coglive.Children.Add(_cog);

            _first = true;

            MainController.GetInstance.DataController.AddSensorDataListener(this);
        }
        public double GetBindingSourcePositionAlpha(Chart control)
        {
            if (!InternalBindingSourcePositionAlpha.ContainsKey(control))
                return default(double);

            return InternalBindingSourcePositionAlpha[control];
        }
Beispiel #8
0
        public Form1()
        {
            InitializeComponent();
            int x = 0;
            selCards = new PictureBox[6];
            cardPics = new PictureBox[54];
            for (int i = 0; i < 54; i++)
            {
                cardPics[i] = new PictureBox();
                cardPics[i].Name = "c"+i;
                cardPics[i].Size = new Size(75, 108);
                cardPics[i].Image = (Bitmap)Resource1.ResourceManager.GetObject("c"+i.ToString());
                cardPics[i].SizeMode = PictureBoxSizeMode.Zoom;
                cardPics[i].Location = new Point(x, 15);
                cardPics[i].BorderStyle = BorderStyle.FixedSingle;
                cardPics[i].Click += new EventHandler(Card_Click);
                cardPics[i].Tag = new card(i);
                cardTableau.Controls.Add(cardPics[i]);
                cardPics[i].BringToFront();
                x += 15;
            }
            cardPics[52].Visible = false;
            cardPics[53].Visible = false;

            charts = new Charting.Chart[15];
            for (int i = 0; i < 15; i++)
            {
                charts[i] = new Charting.Chart();
                charts[i].Dock = DockStyle.Fill;
                charts[i].ChartAreas.Add("main");
                charts[i].ChartAreas[0].AxisX.LabelAutoFitStyle = System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles.DecreaseFont;
                tableLayoutPanel1.Controls.Add(charts[i], i/4, i%4);
            }
        }
Beispiel #9
0
        public void MadeChart(Chart chart, int band, int[] chartData)
        {
            Series series = new Series {ChartType = SeriesChartType.SplineArea};
            Title title;
            switch (_type)
            {
                case 2:
                    title = new Title
                    {
                        Text = "遥感图像累计直方图 · 波段:" + band,
                        TextStyle = TextStyle.Shadow,
                        Font = new Font(new FontFamily("微软雅黑"), 10)
                    };
                    break;

                case 1:
                default:
                    title = new Title
                    {
                        Text = "遥感图像直方图 · 波段:" + band,
                        TextStyle = TextStyle.Shadow,
                        Font = new Font(new FontFamily("微软雅黑"), 10)
                    };
                    break;
            }

            for (int i = 1; i < chartData.Length; i++)
            {
                series.Points.AddXY(i, chartData[i]);
            }

            chart.Series.Add(series);
            chart.Titles.Add(title);
            chart.Refresh();
        }
        private void GenerateChart(SeriesCreator creator, string filePath)
        {
            IEnumerable<Series> serieses = creator.ToSerieses();

            using (var ch = new Chart())
            {
                ch.Size = new Size(1300, 800);
                ch.AntiAliasing = AntiAliasingStyles.All;
                ch.TextAntiAliasingQuality = TextAntiAliasingQuality.High;
                ch.Palette = ChartColorPalette.BrightPastel;

                ChartArea area = new ChartArea();
                area.AxisX.MajorGrid.Enabled = false;
                area.AxisY.MajorGrid.Enabled = false;
                area.AxisY.Minimum = creator.GetMinimumY();
                ch.ChartAreas.Add(area);

                Legend legend = new Legend();
                legend.Font = new Font("Microsoft Sans Serif", 12, FontStyle.Regular);
                ch.Legends.Add(legend);

                foreach (var s in serieses)
                {
                    ch.Series.Add(s);
                }

                string savePath = filePath + ".png";
                ch.SaveImage(savePath, ChartImageFormat.Png);
            }
        }
        public static void FillChartRanges(List<DataRange> ranges, Chart chart1)
        {
            foreach (DataRange range in ranges)
            {
                Series series = new Series(range.Id + " " + range.Description);
                series.ChartType = SeriesChartType.Line;
                series.MarkerStyle = MarkerStyle.Circle;

                series.EmptyPointStyle.BorderWidth = 0;
                series.EmptyPointStyle.MarkerStyle = MarkerStyle.None;

                chart1.Series.Add(series);
                foreach (ContinuousClientIntegration.Business.Statistics.DataPoint point in range.DataPoints)
                {
                    series.Points.AddXY(point.TimeStamp, point.Value);
                }
                if (range.Description.Equals("Coverage"))
                {
                    series.ChartArea = "Coverage";
                    series.Legend = "Coverage";
                }
                if (range.Description.Equals("Codesize"))
                {
                    series.ChartArea = "Codesize";
                    series.Legend = "Codesize";
                }
            }
            if (ranges.Count > 0 && ranges[0].DataPoints.Count > 0)
            {
                chart1.Titles.Add("Coverage and codesize on " + ranges[0].DataPoints[0].TimeStamp.ToShortDateString());
            }
        }
        public TimeDurationView()
        {
            InitializeComponent();
            DataContext = new TimeDurationViewModel();
            _resultRuntimes = new List<double>();
            _cumulativeRuntimeChart = new Chart();
            _cumulativeRuntimeChart.ChartAreas.Add("chtArea");
            CumulativeGraphControlHost.Child = _cumulativeRuntimeChart;
            _cumulativeRuntimeChart.ChartAreas[0].AxisX.Title = "Runs";
            _cumulativeRuntimeChart.ChartAreas[0].AxisX.TitleFont = new Font(
                System.Drawing.FontFamily.GenericSansSerif, 12);
            _cumulativeRuntimeChart.ChartAreas[0].AxisY.Title = "Runtime (Milliseconds)";
            _cumulativeRuntimeChart.ChartAreas[0].AxisY.TitleFont = new Font(
                System.Drawing.FontFamily.GenericSansSerif, 12);
            _cumulativeRuntimeChart.BackColor = Color.White;
            _cumulativeRuntimeChart.BorderSkin.SkinStyle = BorderSkinStyle.None;

            _individualRuntimeChart = new Chart();
            _individualRuntimeChart.ChartAreas.Add("chtArea");
            IndividualGraphControlHost.Child = _individualRuntimeChart;
            _individualRuntimeChart.ChartAreas[0].AxisX.Title = "Runs";
            _individualRuntimeChart.ChartAreas[0].AxisX.TitleFont = new Font(
                System.Drawing.FontFamily.GenericSansSerif, 12);
            _individualRuntimeChart.ChartAreas[0].AxisY.Title = "Runtime (Milliseconds)";
            _individualRuntimeChart.ChartAreas[0].AxisY.TitleFont = new Font(
                System.Drawing.FontFamily.GenericSansSerif, 12);
            _individualRuntimeChart.BackColor = Color.White;
            _individualRuntimeChart.BorderSkin.SkinStyle = BorderSkinStyle.None;
        }
        /* Adds one tab containing a chart to this.progressTabControl for each member in chartName.
         * Returns a list of the added charts.
         */
        private List<Chart> AddChartsToProgressControl(List<string> chartNames)
        {
            int i = 0;
            List<Chart> charts = new List<Chart>();

            foreach (string chartName in chartNames)
            {
                Legend legend = new Legend();
                legend.Name = "legend";
                legend.Docking = Docking.Right;

                ChartArea ca = new ChartArea();
                ca.Name = "chartArea";

                Chart chart = new Chart();
                chart.Legends.Add(legend);
                chart.ChartAreas.Add(ca);
                chart.Name = chartName;
                chart.Dock = DockStyle.Fill;
                chart.Text = chartName;

                TabPage tPage = new TabPage();
                tPage.Name = chartName;
                tPage.Text = chartName;
                tPage.Controls.Add(chart);

                this.progressTabControl.Controls.Add(tPage);

                charts.Add(chart);

                i++;
            }
            return charts;
        }
Beispiel #14
0
 public void BuildSignal(double[] array, Chart chart)
 {
     for (var i = 0; i < array.Length; i++)
     {
         chart.Series[0].Points.AddXY(i, array[i]);
     }
 }
        public void SetBindingSourcePositionAlpha(Chart control, double value)
        {
            InternalBindingSourcePositionAlpha[control] = value;

            if (InternalSetBindingSourcePositionAlpha != null)
                InternalSetBindingSourcePositionAlpha(this, control, value);
        }
Beispiel #16
0
 public void ChangeChartColor(Chart chart, string color)
 {
     if (chart.Series.Count > 0)
     {
         chart.Series["Series"].Color = Color.FromName(color);
     }
 }
 public void SetupChart(Chart c)
 {
     chart = c;
     chart.Series.Add("value");
     chart.Series["value"].Color = Color.Green;
     chart.Series["value"].ChartType = SeriesChartType.Line;
 }
Beispiel #18
0
        public static void InternalSetBindingSourcePositionAlpha(object context, Chart c, double value)
        {
            __Chart cc = c;

            cc.BindingSourcePositionAlpha = Math.Max(0.0, Math.Min(1.0, value));
            cc.DataBind();
        }
        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="chart"></param>
        public Graph(Chart chart)
        {
            Chart = chart;

            Data = new Series();
            Chart.Series.Add(Data);
        }
Beispiel #20
0
        public System.Drawing.Image generaGrafica(IList<DataPoint> series, IList<DataPoint> series2, string Pr1, string Pr2)
        {
            using (MemoryStream graph = new MemoryStream())
            using (var ch = new Chart())
            {
                ch.ChartAreas.Add(new ChartArea());

                var s = new Series();
                foreach (var pnt in series) s.Points.Add(pnt);
                s.XValueType = ChartValueType.DateTime;
                ch.Series.Add(s);
                s.ChartType = SeriesChartType.FastLine;
                s.Color = Color.Red;
                s.Name = Pr1;

                var s1 = new Series();
                foreach (var pnt in series2) s1.Points.Add(pnt);
                s1.XValueType = ChartValueType.DateTime;
                ch.Series.Add(s1);
                s1.ChartType = SeriesChartType.FastLine;
                s1.Color = Color.Blue;
                s1.Name = Pr2;

                ch.Size = new Size(600, 400);
                ch.Legends.Add("leyenda");
                ch.SaveImage(graph, ChartImageFormat.Jpeg);
                MemoryStream ms = new MemoryStream(graph.GetBuffer());
                var image = System.Drawing.Image.FromStream(ms);

                return image;
            }
        }
        private Chart AddChartToForm(ChartData chartData)
        {
            var chart = new Chart { Dock = DockStyle.Fill, BackColor = Color.White };
            var title = new Title(chartData.ToString()) { Font = new Font("Verdana", 14.0f) };
            chart.Titles.Add(title);
            chart.Legends.Add(new Legend("Legend"));

            var area = new ChartArea("Main")
            {
                BackColor = Color.White,
                BackSecondaryColor = Color.LightSteelBlue,
                BackGradientStyle = GradientStyle.DiagonalRight,
                AxisY = { Maximum = 100 },
                AxisY2 = { Maximum = 20 }
            };

            area.AxisX.MajorGrid.LineColor = Color.LightSlateGray;
            area.AxisX.TitleFont = new Font("Verdana", 10.0f, FontStyle.Bold);
            area.AxisX.Title = "Date";
            area.AxisY.MajorGrid.LineColor = Color.LightSlateGray;
            area.AxisY.TitleFont = new Font("Verdana", 10.0f, FontStyle.Bold);
            area.AxisY.Title = "Weight";
            area.AxisY2.Title = "Reps";

            chart.ChartAreas.Add(area);

            var seriesColumns1 = new Series("Weights") { ChartType = SeriesChartType.Line, IsValueShownAsLabel = true };
            chart.Series.Add(seriesColumns1);
            var seriesColumns2 = new Series("Reps") { ChartType = SeriesChartType.Line };
            chart.Series.Add(seriesColumns2);

            Controls.Add(chart);

            return chart;
        }
        public MultipleGraphics(ResultResearch r)
        {
            InitializeComponent();

            this.research = r;

            SortedDictionary<double, SortedDictionary<double, SubGraphsInfo>>.KeyCollection keys =
                this.research.Result.Keys;
            foreach (double k in keys)
            {
                Chart graphic = new Chart();
                graphic.Titles.Add("Network Size = " + this.research.Size.ToString());

                ChartArea chArea = new ChartArea("Current Level = " + k.ToString());
                chArea.AxisX.Title = "Mu";
                chArea.AxisY.Title = "Order";
                graphic.ChartAreas.Add(chArea);

                Series s = new Series("Current Level = " + k.ToString());
                s.ChartType = SeriesChartType.Line;
                s.Color = Color.Red;
                foreach (KeyValuePair<double, SubGraphsInfo> v in this.research.Result[k])
                {
                    s.Points.Add(new DataPoint(v.Key, v.Value.avgOrder));
                }
                graphic.Series.Add(s);

                graphic.Dock = DockStyle.Fill;
                TabPage page = new TabPage("Current Level = " + k.ToString());
                page.Controls.Add(graphic);
                this.graphicsTab.TabPages.Add(page);

                this.graphics.Add(graphic);
            }
        }
        private void AddDataPointsToChart(IEnumerable<ExerciseInstance> exerciseInstances, Chart chart)
        {
            string exrxName = string.Empty;
            double axisYMaximum = 0.0f;
            double axisYMinimum = float.MaxValue;

            foreach (ExerciseInstance exerciseInstance in exerciseInstances)
            {
                chart.Series["Weights"].Points.AddXY(exerciseInstance.Date, exerciseInstance.OneRepMax);
                chart.Series["Reps"].Points.AddXY(exerciseInstance.Date, exerciseInstance.Reps);

                if (exerciseInstance.OneRepMax < axisYMinimum)
                {
                    axisYMinimum = exerciseInstance.OneRepMax - (exerciseInstance.OneRepMax * 0.1f);
                }

                if (exerciseInstance.OneRepMax > axisYMaximum)
                {
                    axisYMaximum = exerciseInstance.OneRepMax * 1.1f;
                }
                exrxName = exerciseInstance.Exercise.ExRxName;
            }

            chart.Titles[0].Text = exrxName;
            chart.ChartAreas[0].AxisY.Minimum = axisYMinimum;
            chart.ChartAreas[0].AxisY.Maximum = axisYMaximum;
        }
 private void SetTitle(Chart chart)
 {
     var title = chart.Titles.Add("default");
     title.Text = _report.Query.ToString();
     title.Alignment = ContentAlignment.TopLeft;
     title.Font = GetFont(12);
 }
        public void InitializeChart()
        {
            this.components = new System.ComponentModel.Container();
            ChartArea chartArea1 = new ChartArea();
            Legend legend1 = new Legend() { BackColor = Color.Green, ForeColor = Color.Black, Title = "Salary" };
            Legend legend2 = new Legend() { BackColor = Color.Green, ForeColor = Color.Black, Title = "Salary" };
            barChart = new Chart();

            ((ISupportInitialize)(barChart)).BeginInit();

            SuspendLayout();
            //====Bar Chart
            chartArea1 = new ChartArea();
            chartArea1.Name = "BarChartArea";
            barChart.ChartAreas.Add(chartArea1);
            barChart.Dock = System.Windows.Forms.DockStyle.Fill;
            legend2.Name = "Legend3";
            barChart.Legends.Add(legend2);

            AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
            AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            //this.ClientSize = new System.Drawing.Size(284, 262);
            this.Load += new EventHandler(Form3_Load);
            ((ISupportInitialize)(this.barChart)).EndInit();
            this.ResumeLayout(false);
        }
        public void DisplayChart(Chart dchart)
        {
            if (dchart.Series.Count == 0)
            {
                var series = new Series("Chart")
                                 {
                                     ChartType = SeriesChartType.Line,
                                     Color = System.Drawing.Color.MediumPurple,
                                     BorderWidth = 2
                                 };
                MethodInvoker action = delegate { dchart.Series.Add(series); };
                dchart.Invoke(action);

            }
            else
            {

                MethodInvoker action = delegate
                                           {
                                               dchart.Series[0].Points.AddXY(MaxDt.ToShortDateString(), Strategyperformance.EntireTradesSum);
                                               dchart.Legends[0].Enabled = false;
                                           };
                dchart.Invoke(action);
            }
        }
        public ChartPanel(MetingType type, SeriesChartType charttype)
            : base()
        {
            this.type = type;
            this.ChartType = charttype;

            this.chart = new Chart();
            this.chartArea = new ChartArea();
            this.chart.Titles.Add(new Title(type.ToString()));

            this.Location = new System.Drawing.Point(0, 0);

            this.Size = new System.Drawing.Size(400, 250);
            this.Controls.Add(chart);

            this.series = createSerie();
            this.chartArea.Name = "chartArea";

            this.chart.Size = new System.Drawing.Size(400, 250);

            this.chart.Dock = DockStyle.Fill;
            this.chart.Series.Add(series);
            this.chart.Text = "chart";

            this.chart.ChartAreas.Add(chartArea);
        }
 public ChartingActor(Chart chart, Dictionary<string, Series> seriesIndex, Button pauseButton)
 {
     _chart = chart;
     _seriesIndex = seriesIndex;
     _pauseButton = pauseButton;
     Charting();
 }
    /// <summary>
    /// Initializes a new ImageExportDialog.
    /// </summary>
    /// <remarks>
    /// Throws an ArgumentNullException if <paramref name="chart"/> is null.
    /// </remarks>
    /// <param name="chart">The chart for which the export should be generated.</param>
    public ImageExportDialog(Chart chart) {
      if (chart == null) throw new ArgumentNullException("chart");
      this.originalChart = chart;
      InitializeComponent();
      #region Custom Initialization
      SuppressEvents = true;
      try {
        resolutionUnitComboBox.Items.Add(DPI);
        resolutionUnitComboBox.Items.Add(DPCM);
        lengthUnitComboBox.Items.Add(INCH);
        lengthUnitComboBox.Items.Add(CM);
        resolutionUnitComboBox.SelectedIndex = 0;
        if (System.Globalization.RegionInfo.CurrentRegion.IsMetric)
          lengthUnitComboBox.SelectedIndex = 1;
        else lengthUnitComboBox.SelectedIndex = 0;

        titleFontSizeComboBox.Text = "10";
        axisFontSizeComboBox.Text = "8";
        scalesFontSizeComboBox.Text = "6";
        legendFontSizeComboBox.Text = "6";
        resolutionComboBox.Text = "150";
        SuppressEvents = false;
        splitContainer.Panel2Collapsed = true;
        Width = 305;
        Height = 625;
      }
      finally { SuppressEvents = false; }
      #endregion
    }
Beispiel #30
0
        protected void InitializeComponent()
        {
            
            this.graph = new Chart();
            ((System.ComponentModel.ISupportInitialize)(this.graph)).BeginInit();
            this.SuspendLayout();
            Controls.Add(graph);
            // graph
            graph.Location = new Point(0,70);
            graph.Size = new Size(graph.Parent.Size.Width, graph.Parent.Size.Height-70);
            graph.Anchor = AnchorStyles.Top|AnchorStyles.Bottom|AnchorStyles.Left|AnchorStyles.Right;

            ((System.ComponentModel.ISupportInitialize)(this.graph)).EndInit();
            this.ResumeLayout(false);


            //dateCombo
            dateCombo = new ComboBox();
            dateCombo.Location = new Point(300,30);
            dateCombo.Items.Add("未選択");
            Controls.Add(dateCombo);


            //compCheck
            compCheck = new CheckBox();
            compCheck.Text = "比較する";
            compCheck.Location = new Point(dateCombo.Right+10,30);
            Controls.Add(compCheck);
            compCheck.CheckedChanged += CompCheck_CheckedChanged;
            compCheck.Checked = true;

            
        }
Beispiel #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.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);
 }
 /// <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.Title     title1     = new System.Windows.Forms.DataVisualization.Charting.Title();
     this.label9  = new System.Windows.Forms.Label();
     this.panel1  = new System.Windows.Forms.Panel();
     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, 8);
     this.label9.Name     = "label9";
     this.label9.Size     = new System.Drawing.Size(696, 32);
     this.label9.TabIndex = 0;
     this.label9.Text     = "The DataSourceID property of the chart allows�for design-time and run-time data b" +
                            "inding.";
     this.label9.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // panel1
     //
     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 = 19;
     //
     // 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      = 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.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.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.AxisY.LabelAutoFitStyle   = ((System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles)((((System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles.DecreaseFont | System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles.StaggeredLabels)
                                                                                                                    | System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles.LabelsAngleStep30)
                                                                                                                   | System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles.WordWrap)));
     chartArea1.AxisY.LabelStyle.Font     = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold);
     chartArea1.AxisY.LineColor           = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
     chartArea1.AxisY.MajorGrid.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
     chartArea1.BackColor          = System.Drawing.Color.OldLace;
     chartArea1.BackGradientStyle  = System.Windows.Forms.DataVisualization.Charting.GradientStyle.TopBottom;
     chartArea1.BackSecondaryColor = System.Drawing.Color.White;
     chartArea1.BorderColor        = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
     chartArea1.BorderDashStyle    = System.Windows.Forms.DataVisualization.Charting.ChartDashStyle.Solid;
     chartArea1.Name        = "Default";
     chartArea1.ShadowColor = System.Drawing.Color.Transparent;
     this.Chart1.ChartAreas.Add(chartArea1);
     legend1.BackColor     = System.Drawing.Color.Transparent;
     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.Color        = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(64)))), ((int)(((byte)(10)))));
     series1.Legend       = "Default";
     series1.Name         = "Series 1";
     this.Chart1.Series.Add(series1);
     this.Chart1.Size     = new System.Drawing.Size(412, 296);
     this.Chart1.TabIndex = 0;
     title1.Alignment     = System.Drawing.ContentAlignment.TopLeft;
     title1.Font          = new System.Drawing.Font("Trebuchet MS", 14.25F, System.Drawing.FontStyle.Bold);
     title1.ForeColor     = System.Drawing.Color.FromArgb(((int)(((byte)(26)))), ((int)(((byte)(59)))), ((int)(((byte)(105)))));
     title1.Name          = "Title1";
     title1.ShadowColor   = System.Drawing.Color.FromArgb(((int)(((byte)(32)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))));
     title1.ShadowOffset  = 3;
     title1.Text          = "DataSource Data Binding";
     this.Chart1.Titles.Add(title1);
     //
     // DataSourceBinding
     //
     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  = "DataSourceBinding";
     this.Size  = new System.Drawing.Size(728, 480);
     this.Load += new System.EventHandler(this.ArrayBinding_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.ChartArea chartArea2 = 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.Series    series2    = new System.Windows.Forms.DataVisualization.Charting.Series();
     System.Windows.Forms.DataVisualization.Charting.Title     title1     = new System.Windows.Forms.DataVisualization.Charting.Title();
     this.panel1  = new System.Windows.Forms.Panel();
     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.label2  = new System.Windows.Forms.Label();
     this.panel1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.Chart1)).BeginInit();
     this.SuspendLayout();
     //
     // panel1
     //
     this.panel1.Controls.AddRange(new System.Windows.Forms.Control[] {
         this.label6,
         this.label5,
         this.label4,
         this.label3,
         this.label15
     });
     this.panel1.Location = new System.Drawing.Point(400, 48);
     this.panel1.Name     = "panel1";
     this.panel1.Size     = new System.Drawing.Size(304, 248);
     this.panel1.TabIndex = 19;
     //
     // label6
     //
     this.label6.Location = new System.Drawing.Point(64, 403);
     this.label6.Name     = "label6";
     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.TabIndex = 4;
     this.label5.Text     = "Border Color:";
     //
     // label4
     //
     this.label4.Location = new System.Drawing.Point(64, 357);
     this.label4.Name     = "label4";
     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.TabIndex = 2;
     this.label3.Text     = "Gradient:";
     //
     // label15
     //
     this.label15.Location = new System.Drawing.Point(64, 426);
     this.label15.Name     = "label15";
     this.label15.TabIndex = 5;
     this.label15.Text     = "Border Size:";
     //
     // 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.AxisX.ArrowStyle      = System.Windows.Forms.DataVisualization.Charting.AxisArrowStyle.Triangle;;
     chartArea1.AxisX2.Enabled        = System.Windows.Forms.DataVisualization.Charting.AxisEnabled.False;
     chartArea1.AxisY.ArrowStyle      = System.Windows.Forms.DataVisualization.Charting.AxisArrowStyle.Triangle;;
     chartArea1.AxisY2.Enabled        = System.Windows.Forms.DataVisualization.Charting.AxisEnabled.False;
     chartArea1.BackColor             = System.Drawing.Color.WhiteSmoke;
     chartArea1.BackSecondaryColor    = System.Drawing.Color.White;
     chartArea1.BackGradientStyle     = System.Windows.Forms.DataVisualization.Charting.GradientStyle.TopBottom;
     chartArea1.Name               = "Data Binding";
     chartArea1.Position.Auto      = false;
     chartArea1.Position.Height    = 68.80695F;
     chartArea1.Position.Width     = 45F;
     chartArea1.Position.X         = 51F;
     chartArea1.Position.Y         = 19.50579F;
     chartArea2.BackColor          = System.Drawing.Color.WhiteSmoke;
     chartArea2.BackSecondaryColor = System.Drawing.Color.White;
     chartArea2.BackGradientStyle  = System.Windows.Forms.DataVisualization.Charting.GradientStyle.TopBottom;
     chartArea2.Name               = "Adding Points";
     chartArea2.Position.Auto      = false;
     chartArea2.Position.Height    = 68.80695F;
     chartArea2.Position.Width     = 45F;
     chartArea2.Position.X         = 3F;
     chartArea2.Position.Y         = 19.50579F;
     this.Chart1.ChartAreas.Add(chartArea1);
     this.Chart1.ChartAreas.Add(chartArea2);
     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";
     legend1.TitleFont     = new System.Drawing.Font("Microsoft Sans Serif", 8F, System.Drawing.FontStyle.Bold);
     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.ChartArea        = "Data Binding";
     series1.ChartType        = SeriesChartType.Pie;
     series1.CustomProperties = "LabelsRadialLineSize=1, PieDrawingStyle=Concave, LabelStyle=outside";
     series1.Name             = "ByArray";
     series2.ChartArea        = "Adding Points";
     series2.ChartType        = SeriesChartType.Pie;
     series2.CustomProperties = "LabelsRadialLineSize=1, PieDrawingStyle=Concave, LabelStyle=outside";
     series2.Name             = "ByPoint";
     this.Chart1.Series.Add(series1);
     this.Chart1.Series.Add(series2);
     this.Chart1.Size     = new System.Drawing.Size(360, 260);
     this.Chart1.TabIndex = 0;
     title1.Alignment     = System.Drawing.ContentAlignment.MiddleLeft;
     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, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     title1.Name          = "Default Title";
     title1.ShadowColor   = System.Drawing.Color.FromArgb(((System.Byte)(32)), ((System.Byte)(0)), ((System.Byte)(0)), ((System.Byte)(0)));
     title1.ShadowOffset  = 3;
     title1.Text          = "Chart Control for .NET Framework";
     this.Chart1.Titles.Add(title1);
     this.Chart1.PostPaint += new EventHandler <ChartPaintEventArgs>(Chart1_PostPaint);
     //
     // label1
     //
     this.label1.Font      = new System.Drawing.Font("Verdana", 11.25F);
     this.label1.Location  = new System.Drawing.Point(8, 8);
     this.label1.Name      = "label1";
     this.label1.Size      = new System.Drawing.Size(624, 24);
     this.label1.TabIndex  = 20;
     this.label1.Text      = "This sample demonstrates how to populate a chart with data.";
     this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // label2
     //
     this.label2.Font     = new System.Drawing.Font("Verdana", 11.25F);
     this.label2.Location = new System.Drawing.Point(16, 312);
     this.label2.Name     = "label2";
     this.label2.Size     = new System.Drawing.Size(688, 72);
     this.label2.TabIndex = 21;
     this.label2.Text     = "Two arrays are used: one for X values and one for Y values.  The chart on the lef" +
                            "t uses the AddXY method to add data points to the chart, while the chart on the " +
                            "right uses the DataBindXY method to bind data to an array.";
     this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // BasicPopulatingData
     //
     this.BackColor = System.Drawing.Color.White;
     this.Controls.AddRange(new System.Windows.Forms.Control[] {
         this.label2,
         this.Chart1,
         this.panel1,
         this.label1
     });
     this.Name  = "BasicPopulatingData";
     this.Size  = new System.Drawing.Size(728, 400);
     this.Load += new System.EventHandler(this.BasicPopulatingData_Load);
     this.panel1.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.Chart1)).EndInit();
     this.ResumeLayout(false);
 }
Beispiel #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.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);
 }
Beispiel #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.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);
 }
Beispiel #36
0
        public Chart(Main main, string ticker, Deal deal)
        {
            List <Candle> candlestodraw  = new List <Candle> {
            };
            DateTime      datetime_close = deal.Orders[deal.Orders.Count - 1].Date_Time;
            DateTime      datetime_open  = deal.Orders[0].Date_Time;
            List <Candle> list           = main.D.Companies[ticker].Candles["M1"].ToList();
            int           First          = 0;
            int           Last           = 0;

            for (int i = 0; i < list.Count; i++)
            {
                if (list[i].Date_Time == datetime_close)
                {
                    Last = i;
                }
                if (list[i].Date_Time == datetime_open)
                {
                    First = i;
                }
            }
            if (Last - First + 1 <= 30)
            {
                First = Last - 29;
            }
            for (int i = First; i <= Last; i++)
            {
                Candle candle = list[i];
                candlestodraw.Add(candle);
            }
            double min = candlestodraw[0].Low;
            double max = candlestodraw[0].High;
            int    N   = candlestodraw.Count;

            InitializeComponent();
            System.Windows.Forms.DataVisualization.Charting.Chart chart = new System.Windows.Forms.DataVisualization.Charting.Chart();
            chartarea.Child = chart;

            chart.ChartAreas.Add("Main");
            chart.Series.Add("Candles");
            chart.Series.FindByName("Candles").ChartArea = "Main";
            chart.Series.FindByName("Candles").ChartType = SeriesChartType.Candlestick;
            chart.Series.FindByName("Candles").YAxisType = AxisType.Secondary;
            for (int i = 1; i < N; i++)
            {
                if (min > candlestodraw[i].Low)
                {
                    min = candlestodraw[i].Low;
                }
                if (max < candlestodraw[i].High)
                {
                    max = candlestodraw[i].High;
                }
            }
            min = min * 0.997;
            max = max * 1.003;
            chart.ChartAreas.FindByName("Main").AxisY2.Maximum = max;
            chart.ChartAreas.FindByName("Main").AxisY2.Minimum = min;
            for (int i = 0; i < N; i++)
            {
                chart.Series.FindByName("Candles").Points.AddXY(i, candlestodraw[i].Low, candlestodraw[i].High, candlestodraw[i].Open, candlestodraw[i].Close);
                chart.Series.FindByName("Candles").Points[chart.Series.FindByName("Candles").Points.Count - 1].AxisLabel = candlestodraw[i].Date_Time.ToString();
                if (candlestodraw[i].Close > candlestodraw[i].Open)
                {
                    chart.Series.FindByName("Candles").Points[chart.Series.FindByName("Candles").Points.Count - 1].Color = System.Drawing.Color.Green;
                }
                else
                {
                    chart.Series.FindByName("Candles").Points[chart.Series.FindByName("Candles").Points.Count - 1].Color = System.Drawing.Color.Tomato;
                }
                chart.Series.FindByName("Candles").Points[chart.Series.FindByName("Candles").Points.Count - 1].BorderWidth = 5;
            }
            chartarea.Child.Show();
        }
 /// <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.Series    series2    = new System.Windows.Forms.DataVisualization.Charting.Series();
     this.chart1                = new System.Windows.Forms.DataVisualization.Charting.Chart();
     this.labelSampleComment    = new System.Windows.Forms.Label();
     this.panel1                = new System.Windows.Forms.Panel();
     this.checkBoxShow3D        = new System.Windows.Forms.CheckBox();
     this.comboMarkerSize       = new System.Windows.Forms.ComboBox();
     this.label3                = new System.Windows.Forms.Label();
     this.comboBoxMarkerShape   = new System.Windows.Forms.ComboBox();
     this.label2                = new System.Windows.Forms.Label();
     this.comboBoxLabelPosition = 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.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.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.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, 56);
     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.Font         = new System.Drawing.Font("Trebuchet MS", 9F);
     series1.Legend       = "Default";
     series1.MarkerSize   = 10;
     series1.Name         = "Series1";
     series1.ShadowOffset = 1;
     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.Font         = new System.Drawing.Font("Trebuchet MS", 9F);
     series2.Legend       = "Default";
     series2.MarkerSize   = 10;
     series2.Name         = "Series2";
     series2.ShadowOffset = 1;
     this.chart1.Series.Add(series1);
     this.chart1.Series.Add(series2);
     this.chart1.Size     = new System.Drawing.Size(412, 296);
     this.chart1.TabIndex = 1;
     //
     // 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, 45);
     this.labelSampleComment.TabIndex = 0;
     this.labelSampleComment.Text     = "This sample displays a Point chart. Try setting different marker sizes, shapes an" +
                                        "d point label positions.";
     this.labelSampleComment.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // panel1
     //
     this.panel1.Controls.Add(this.checkBoxShow3D);
     this.panel1.Controls.Add(this.comboMarkerSize);
     this.panel1.Controls.Add(this.label3);
     this.panel1.Controls.Add(this.comboBoxMarkerShape);
     this.panel1.Controls.Add(this.label2);
     this.panel1.Controls.Add(this.comboBoxLabelPosition);
     this.panel1.Controls.Add(this.label1);
     this.panel1.Location = new System.Drawing.Point(432, 64);
     this.panel1.Name     = "panel1";
     this.panel1.Size     = new System.Drawing.Size(292, 288);
     this.panel1.TabIndex = 2;
     //
     // checkBoxShow3D
     //
     this.checkBoxShow3D.CheckAlign      = System.Drawing.ContentAlignment.MiddleRight;
     this.checkBoxShow3D.Location        = new System.Drawing.Point(13, 104);
     this.checkBoxShow3D.Name            = "checkBoxShow3D";
     this.checkBoxShow3D.Size            = new System.Drawing.Size(168, 24);
     this.checkBoxShow3D.TabIndex        = 6;
     this.checkBoxShow3D.Text            = "Display chart as 3&D:";
     this.checkBoxShow3D.TextAlign       = System.Drawing.ContentAlignment.MiddleRight;
     this.checkBoxShow3D.CheckedChanged += new System.EventHandler(this.checkBoxShow3D_CheckedChanged);
     //
     // comboMarkerSize
     //
     this.comboMarkerSize.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.comboMarkerSize.Items.AddRange(new object[] {
         "5",
         "7",
         "10",
         "12",
         "18"
     });
     this.comboMarkerSize.Location              = new System.Drawing.Point(168, 72);
     this.comboMarkerSize.Name                  = "comboMarkerSize";
     this.comboMarkerSize.Size                  = new System.Drawing.Size(120, 22);
     this.comboMarkerSize.TabIndex              = 5;
     this.comboMarkerSize.SelectedIndexChanged += new System.EventHandler(this.comboMarkerSize_SelectedIndexChanged);
     //
     // label3
     //
     this.label3.Location  = new System.Drawing.Point(20, 72);
     this.label3.Name      = "label3";
     this.label3.Size      = new System.Drawing.Size(144, 23);
     this.label3.TabIndex  = 4;
     this.label3.Text      = "Marker Si&ze:";
     this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // comboBoxMarkerShape
     //
     this.comboBoxMarkerShape.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.comboBoxMarkerShape.Items.AddRange(new object[] {
         "Circle & Square",
         "Diamond & Triangle",
         "Cross & Star"
     });
     this.comboBoxMarkerShape.Location              = new System.Drawing.Point(168, 40);
     this.comboBoxMarkerShape.Name                  = "comboBoxMarkerShape";
     this.comboBoxMarkerShape.Size                  = new System.Drawing.Size(120, 22);
     this.comboBoxMarkerShape.TabIndex              = 3;
     this.comboBoxMarkerShape.SelectedIndexChanged += new System.EventHandler(this.comboMarkerSize_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      = "Marker &Shape:";
     this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // comboBoxLabelPosition
     //
     this.comboBoxLabelPosition.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.comboBoxLabelPosition.Items.AddRange(new object[] {
         "None",
         "TopLeft",
         "Top",
         "TopRight",
         "Right",
         "BottomRight",
         "Bottom",
         "BottomLeft",
         "Left",
         "Center"
     });
     this.comboBoxLabelPosition.Location              = new System.Drawing.Point(168, 8);
     this.comboBoxLabelPosition.Name                  = "comboBoxLabelPosition";
     this.comboBoxLabelPosition.Size                  = new System.Drawing.Size(120, 22);
     this.comboBoxLabelPosition.TabIndex              = 1;
     this.comboBoxLabelPosition.SelectedIndexChanged += new System.EventHandler(this.comboMarkerSize_SelectedIndexChanged);
     //
     // label1
     //
     this.label1.Location  = new System.Drawing.Point(20, 8);
     this.label1.Name      = "label1";
     this.label1.Size      = new System.Drawing.Size(144, 23);
     this.label1.TabIndex  = 0;
     this.label1.Text      = "Label &Position:";
     this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // PointChartType
     //
     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  = "PointChartType";
     this.Size  = new System.Drawing.Size(728, 368);
     this.Load += new System.EventHandler(this.PointChartType_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(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);
 }
 /// <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();
     this.label9       = new System.Windows.Forms.Label();
     this.panel1       = new System.Windows.Forms.Panel();
     this.RemoveButton = new System.Windows.Forms.Button();
     this.AddButton    = new System.Windows.Forms.Button();
     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, 39);
     this.label9.TabIndex = 0;
     this.label9.Text     = "This sample demonstrates how to add and remove a data series from the Chart contr" +
                            "ol.";
     this.label9.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // panel1
     //
     this.panel1.Controls.Add(this.RemoveButton);
     this.panel1.Controls.Add(this.AddButton);
     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 = 19;
     //
     // RemoveButton
     //
     this.RemoveButton.BackColor = System.Drawing.SystemColors.Control;
     this.RemoveButton.Location  = new System.Drawing.Point(48, 40);
     this.RemoveButton.Name      = "RemoveButton";
     this.RemoveButton.Size      = new System.Drawing.Size(88, 23);
     this.RemoveButton.TabIndex  = 9;
     this.RemoveButton.Text      = "&Remove";
     this.RemoveButton.UseVisualStyleBackColor = false;
     this.RemoveButton.Click += new System.EventHandler(this.RemoveButton_Click);
     //
     // AddButton
     //
     this.AddButton.BackColor = System.Drawing.SystemColors.Control;
     this.AddButton.Location  = new System.Drawing.Point(48, 4);
     this.AddButton.Name      = "AddButton";
     this.AddButton.Size      = new System.Drawing.Size(88, 23);
     this.AddButton.TabIndex  = 8;
     this.AddButton.Text      = "&Add";
     this.AddButton.UseVisualStyleBackColor = false;
     this.AddButton.Click += new System.EventHandler(this.AddButton_Click);
     //
     // 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.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.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.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(8, 56);
     this.Chart1.Name     = "Chart1";
     this.Chart1.Size     = new System.Drawing.Size(412, 296);
     this.Chart1.TabIndex = 0;
     //
     // 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(8, 368);
     this.label1.Name     = "label1";
     this.label1.Size     = new System.Drawing.Size(702, 45);
     this.label1.TabIndex = 20;
     this.label1.Text     = "This sample also uses serialization to automatically save and load the data and a" +
                            "ppearance properties.";
     this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // AddingSeries
     //
     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  = "AddingSeries";
     this.Size  = new System.Drawing.Size(728, 480);
     this.Load += new System.EventHandler(this.AddingSeries_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(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);
 }
Beispiel #41
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);
 }
Beispiel #42
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);
 }
Beispiel #43
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.Title     title1     = new System.Windows.Forms.DataVisualization.Charting.Title();
     this.label9  = new System.Windows.Forms.Label();
     this.panel1  = new System.Windows.Forms.Panel();
     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", 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 shows how to assign data to a chart series via data binding and the D" +
                            "ataBindXY method.";
     this.label9.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // panel1
     //
     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 = 19;
     //
     // 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)(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.ArrowStyle             = System.Windows.Forms.DataVisualization.Charting.AxisArrowStyle.Triangle;
     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.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.Enabled            = System.Windows.Forms.DataVisualization.Charting.AxisEnabled.False;
     chartArea1.AxisY.ArrowStyle          = System.Windows.Forms.DataVisualization.Charting.AxisArrowStyle.Triangle;
     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.LabelStyle.Format   = "#,k";
     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.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, 56);
     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    = "LabelStyle=Bottom";
     series1.IsValueShownAsLabel = true;
     series1.LabelFormat         = "#,k";
     series1.Legend = "Default";
     series1.Name   = "Default";
     this.Chart1.Series.Add(series1);
     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          = "East and West Region Sales";
     this.Chart1.Titles.Add(title1);
     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", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label1.Location = new System.Drawing.Point(24, 360);
     this.label1.Name     = "label1";
     this.label1.Size     = new System.Drawing.Size(696, 40);
     this.label1.TabIndex = 20;
     this.label1.Text     = "Both X and Y data values are bound to the chart using OleDb and an Access databas" +
                            "e. The data is selected using a simple SQL query. ";
     //
     // DatabaseBindingXY
     //
     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  = "DatabaseBindingXY";
     this.Size  = new System.Drawing.Size(728, 480);
     this.Load += new System.EventHandler(this.ArrayBinding_Load);
     this.panel1.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.Chart1)).EndInit();
     this.ResumeLayout(false);
 }
Beispiel #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.ChartArea chartArea2 = 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.Series    series2    = new System.Windows.Forms.DataVisualization.Charting.Series();
     this.chart1             = new System.Windows.Forms.DataVisualization.Charting.Chart();
     this.labelSampleComment = new System.Windows.Forms.Label();
     this.panel1             = new System.Windows.Forms.Panel();
     this.checkBoxCloseOnly  = new System.Windows.Forms.CheckBox();
     this.comboBoxMarks      = 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();
     ((System.ComponentModel.ISupportInitialize)(this.chart1)).BeginInit();
     this.panel1.SuspendLayout();
     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.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(((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.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(((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.IsStartedFromZero            = false;
     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.BorderDashStyle    = System.Windows.Forms.DataVisualization.Charting.ChartDashStyle.Solid;
     chartArea1.Name                               = "Price";
     chartArea1.Position.Auto                      = false;
     chartArea1.Position.Height                    = 42F;
     chartArea1.Position.Width                     = 88F;
     chartArea1.Position.X                         = 3F;
     chartArea1.Position.Y                         = 10F;
     chartArea1.ShadowColor                        = System.Drawing.Color.Transparent;
     chartArea2.AlignWithChartArea                 = "Price";
     chartArea2.Area3DStyle.IsClustered            = true;
     chartArea2.Area3DStyle.Perspective            = 10;
     chartArea2.Area3DStyle.IsRightAngleAxes       = false;
     chartArea2.Area3DStyle.WallWidth              = 0;
     chartArea2.Area3DStyle.Inclination            = 15;
     chartArea2.Area3DStyle.Rotation               = 10;
     chartArea2.AxisX.IsLabelAutoFit               = false;
     chartArea2.AxisX.LabelStyle.Font              = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold);
     chartArea2.AxisX.LabelStyle.IsEndLabelVisible = false;
     chartArea2.AxisX.LineColor                    = System.Drawing.Color.FromArgb(((System.Byte)(64)), ((System.Byte)(64)), ((System.Byte)(64)), ((System.Byte)(64)));
     chartArea2.AxisX.MajorGrid.LineColor          = System.Drawing.Color.FromArgb(((System.Byte)(64)), ((System.Byte)(64)), ((System.Byte)(64)), ((System.Byte)(64)));
     chartArea2.AxisY.IsLabelAutoFit               = false;
     chartArea2.AxisY.LabelStyle.Font              = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold);
     chartArea2.AxisY.LineColor                    = System.Drawing.Color.FromArgb(((System.Byte)(64)), ((System.Byte)(64)), ((System.Byte)(64)), ((System.Byte)(64)));
     chartArea2.AxisY.MajorGrid.LineColor          = System.Drawing.Color.FromArgb(((System.Byte)(64)), ((System.Byte)(64)), ((System.Byte)(64)), ((System.Byte)(64)));
     chartArea2.AxisY.IsStartedFromZero            = false;
     chartArea2.BackColor                          = System.Drawing.Color.FromArgb(((System.Byte)(64)), ((System.Byte)(165)), ((System.Byte)(191)), ((System.Byte)(228)));
     chartArea2.BackSecondaryColor                 = System.Drawing.Color.White;
     chartArea2.BackGradientStyle                  = System.Windows.Forms.DataVisualization.Charting.GradientStyle.TopBottom;
     chartArea2.BorderColor                        = System.Drawing.Color.FromArgb(((System.Byte)(64)), ((System.Byte)(64)), ((System.Byte)(64)), ((System.Byte)(64)));
     chartArea2.BorderDashStyle                    = System.Windows.Forms.DataVisualization.Charting.ChartDashStyle.Solid;
     chartArea2.Name                               = "Volume";
     chartArea2.Position.Auto                      = false;
     chartArea2.Position.Height                    = 42F;
     chartArea2.Position.Width                     = 88F;
     chartArea2.Position.X                         = 3F;
     chartArea2.Position.Y                         = 51.84195F;
     chartArea2.ShadowColor                        = System.Drawing.Color.Transparent;
     this.chart1.ChartAreas.Add(chartArea1);
     this.chart1.ChartAreas.Add(chartArea2);
     legend1.Alignment               = System.Drawing.StringAlignment.Far;
     legend1.IsTextAutoFit           = false;
     legend1.BackColor               = System.Drawing.Color.Transparent;
     legend1.Docking                 = System.Windows.Forms.DataVisualization.Charting.Docking.Top;
     legend1.IsDockedInsideChartArea = false;
     legend1.DockedToChartArea       = "Price";
     legend1.Font            = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold);
     legend1.LegendStyle     = System.Windows.Forms.DataVisualization.Charting.LegendStyle.Row;
     legend1.Name            = "Default";
     legend1.Position.Auto   = false;
     legend1.Position.Height = 7.127659F;
     legend1.Position.Width  = 38.19123F;
     legend1.Position.X      = 55F;
     legend1.Position.Y      = 5F;
     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.BrightPastel;
     series1.BorderColor       = System.Drawing.Color.FromArgb(((System.Byte)(180)), ((System.Byte)(26)), ((System.Byte)(59)), ((System.Byte)(105)));
     series1.ChartArea         = "Price";
     series1.ChartType         = SeriesChartType.Stock;
     series1.Name              = "Price";
     series1.IsVisibleInLegend = false;
     series1.XValueType        = System.Windows.Forms.DataVisualization.Charting.ChartValueType.DateTime;
     series1.YValuesPerPoint   = 4;
     series2.BorderColor       = System.Drawing.Color.FromArgb(((System.Byte)(180)), ((System.Byte)(26)), ((System.Byte)(59)), ((System.Byte)(105)));
     series2.ChartArea         = "Volume";
     series2.Color             = System.Drawing.Color.FromArgb(((System.Byte)(224)), ((System.Byte)(64)), ((System.Byte)(10)));
     series2.Name              = "Volume";
     series2.IsVisibleInLegend = false;
     series2.XValueType        = System.Windows.Forms.DataVisualization.Charting.ChartValueType.DateTime;
     this.chart1.Series.Add(series1);
     this.chart1.Series.Add(series2);
     this.chart1.Size     = new System.Drawing.Size(446, 296);
     this.chart1.TabIndex = 1;
     //
     // 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, 34);
     this.labelSampleComment.TabIndex  = 0;
     this.labelSampleComment.Text      = "This sample demonstrates the Stock and CandleStick chart types.";
     this.labelSampleComment.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // panel1
     //
     this.panel1.Controls.AddRange(new System.Windows.Forms.Control[] {
         this.checkBoxCloseOnly,
         this.comboBoxMarks,
         this.label2,
         this.comboBoxChartType,
         this.label1
     });
     this.panel1.Location = new System.Drawing.Point(464, 56);
     this.panel1.Name     = "panel1";
     this.panel1.Size     = new System.Drawing.Size(256, 288);
     this.panel1.TabIndex = 2;
     //
     // checkBoxCloseOnly
     //
     this.checkBoxCloseOnly.CheckAlign      = System.Drawing.ContentAlignment.MiddleRight;
     this.checkBoxCloseOnly.Location        = new System.Drawing.Point(13, 72);
     this.checkBoxCloseOnly.Name            = "checkBoxCloseOnly";
     this.checkBoxCloseOnly.Size            = new System.Drawing.Size(144, 24);
     this.checkBoxCloseOnly.TabIndex        = 4;
     this.checkBoxCloseOnly.Text            = "&Close Price Only:";
     this.checkBoxCloseOnly.TextAlign       = System.Drawing.ContentAlignment.MiddleRight;
     this.checkBoxCloseOnly.CheckedChanged += new System.EventHandler(this.checkBox1_CheckedChanged);
     //
     // comboBoxMarks
     //
     this.comboBoxMarks.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.comboBoxMarks.Items.AddRange(new object[] {
         "Line",
         "Triangle"
     });
     this.comboBoxMarks.Location              = new System.Drawing.Point(144, 40);
     this.comboBoxMarks.Name                  = "comboBoxMarks";
     this.comboBoxMarks.Size                  = new System.Drawing.Size(112, 22);
     this.comboBoxMarks.TabIndex              = 3;
     this.comboBoxMarks.SelectedIndexChanged += new System.EventHandler(this.comboBoxMarks_SelectedIndexChanged);
     //
     // label2
     //
     this.label2.Location  = new System.Drawing.Point(10, 40);
     this.label2.Name      = "label2";
     this.label2.Size      = new System.Drawing.Size(128, 23);
     this.label2.TabIndex  = 2;
     this.label2.Text      = "&Open Close Marks:";
     this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // comboBoxChartType
     //
     this.comboBoxChartType.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.comboBoxChartType.Items.AddRange(new object[] {
         "Stock",
         "CandleStick"
     });
     this.comboBoxChartType.Location              = new System.Drawing.Point(144, 8);
     this.comboBoxChartType.Name                  = "comboBoxChartType";
     this.comboBoxChartType.Size                  = new System.Drawing.Size(112, 22);
     this.comboBoxChartType.TabIndex              = 1;
     this.comboBoxChartType.SelectedIndexChanged += new System.EventHandler(this.comboBoxMarks_SelectedIndexChanged);
     //
     // label1
     //
     this.label1.Location  = new System.Drawing.Point(10, 8);
     this.label1.Name      = "label1";
     this.label1.Size      = new System.Drawing.Size(128, 23);
     this.label1.TabIndex  = 0;
     this.label1.Text      = "Chart &Type:";
     this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // FinancialChartType
     //
     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  = "FinancialChartType";
     this.Size  = new System.Drawing.Size(728, 360);
     this.Load += new System.EventHandler(this.FinancialChartType_Load);
     ((System.ComponentModel.ISupportInitialize)(this.chart1)).EndInit();
     this.panel1.ResumeLayout(false);
     this.ResumeLayout(false);
 }
Beispiel #45
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);
 }
 /// <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);
 }
Beispiel #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();
     this.chart1                = new System.Windows.Forms.DataVisualization.Charting.Chart();
     this.labelSampleComment    = new System.Windows.Forms.Label();
     this.panel1                = new System.Windows.Forms.Panel();
     this.buttonRandomData      = new System.Windows.Forms.Button();
     this.comboBoxNumberOfDays  = new System.Windows.Forms.ComboBox();
     this.label1                = new System.Windows.Forms.Label();
     this.checkBoxWeightedClose = new System.Windows.Forms.CheckBox();
     this.checkBoxMedianPrice   = new System.Windows.Forms.CheckBox();
     this.checkBoxTypicalPrice  = new System.Windows.Forms.CheckBox();
     ((System.ComponentModel.ISupportInitialize)(this.chart1)).BeginInit();
     this.panel1.SuspendLayout();
     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.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.LineColor           = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
     chartArea1.AxisX.MajorGrid.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
     chartArea1.AxisX2.LabelAutoFitStyle  = ((System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles)((((System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles.DecreaseFont | System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles.StaggeredLabels)
                                                                                                                    | System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles.LabelsAngleStep30)
                                                                                                                   | System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles.WordWrap)));
     chartArea1.AxisY.IsStartedFromZero = false;
     chartArea1.AxisY.LabelAutoFitStyle = ((System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles)((((System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles.DecreaseFont | System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles.StaggeredLabels)
                                                                                                                  | System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles.LabelsAngleStep30)
                                                                                                                 | System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles.WordWrap)));
     chartArea1.AxisY.LabelStyle.Font     = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold);
     chartArea1.AxisY.LineColor           = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
     chartArea1.AxisY.MajorGrid.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
     chartArea1.AxisY2.LabelAutoFitStyle  = ((System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles)((((System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles.DecreaseFont | System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles.StaggeredLabels)
                                                                                                                    | System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles.LabelsAngleStep30)
                                                                                                                   | System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles.WordWrap)));
     chartArea1.BackColor          = System.Drawing.Color.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.DockedToChartArea = "Default";
     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, 56);
     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.Stock;
     series1.Legend          = "Default";
     series1.Name            = "Input";
     series1.ShadowColor     = System.Drawing.Color.FromArgb(((int)(((byte)(94)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))));
     series1.ShadowOffset    = 1;
     series1.YValuesPerPoint = 4;
     this.chart1.Series.Add(series1);
     this.chart1.Size     = new System.Drawing.Size(412, 296);
     this.chart1.TabIndex = 1;
     //
     // labelSampleComment
     //
     this.labelSampleComment.Font     = new System.Drawing.Font("Verdana", 11F);
     this.labelSampleComment.Location = new System.Drawing.Point(16, 8);
     this.labelSampleComment.Name     = "labelSampleComment";
     this.labelSampleComment.Size     = new System.Drawing.Size(702, 40);
     this.labelSampleComment.TabIndex = 0;
     this.labelSampleComment.Text     = "This sample�displays�various price indicators, which provide technical analysis o" +
                                        "n daily market prices that have open and close values.��";
     this.labelSampleComment.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // panel1
     //
     this.panel1.Controls.Add(this.buttonRandomData);
     this.panel1.Controls.Add(this.comboBoxNumberOfDays);
     this.panel1.Controls.Add(this.label1);
     this.panel1.Controls.Add(this.checkBoxWeightedClose);
     this.panel1.Controls.Add(this.checkBoxMedianPrice);
     this.panel1.Controls.Add(this.checkBoxTypicalPrice);
     this.panel1.Location = new System.Drawing.Point(432, 64);
     this.panel1.Name     = "panel1";
     this.panel1.Size     = new System.Drawing.Size(292, 288);
     this.panel1.TabIndex = 2;
     //
     // buttonRandomData
     //
     this.buttonRandomData.BackColor = System.Drawing.SystemColors.Control;
     this.buttonRandomData.Location  = new System.Drawing.Point(72, 136);
     this.buttonRandomData.Name      = "buttonRandomData";
     this.buttonRandomData.Size      = new System.Drawing.Size(168, 26);
     this.buttonRandomData.TabIndex  = 5;
     this.buttonRandomData.Text      = "Generate Random Data";
     this.buttonRandomData.UseVisualStyleBackColor = false;
     this.buttonRandomData.Click += new System.EventHandler(this.buttonRandomData_Click);
     //
     // comboBoxNumberOfDays
     //
     this.comboBoxNumberOfDays.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.comboBoxNumberOfDays.Items.AddRange(new object[] {
         "10",
         "20",
         "30",
         "40",
         "50"
     });
     this.comboBoxNumberOfDays.Location              = new System.Drawing.Point(168, 104);
     this.comboBoxNumberOfDays.Name                  = "comboBoxNumberOfDays";
     this.comboBoxNumberOfDays.Size                  = new System.Drawing.Size(112, 22);
     this.comboBoxNumberOfDays.TabIndex              = 4;
     this.comboBoxNumberOfDays.SelectedIndexChanged += new System.EventHandler(this.comboBoxNumberOfDays_SelectedIndexChanged);
     //
     // label1
     //
     this.label1.Location  = new System.Drawing.Point(17, 104);
     this.label1.Name      = "label1";
     this.label1.Size      = new System.Drawing.Size(144, 23);
     this.label1.TabIndex  = 3;
     this.label1.Text      = "Number of &days:";
     this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // checkBoxWeightedClose
     //
     this.checkBoxWeightedClose.CheckAlign         = System.Drawing.ContentAlignment.MiddleRight;
     this.checkBoxWeightedClose.Checked            = true;
     this.checkBoxWeightedClose.CheckState         = System.Windows.Forms.CheckState.Checked;
     this.checkBoxWeightedClose.Location           = new System.Drawing.Point(13, 72);
     this.checkBoxWeightedClose.Name               = "checkBoxWeightedClose";
     this.checkBoxWeightedClose.Size               = new System.Drawing.Size(168, 24);
     this.checkBoxWeightedClose.TabIndex           = 2;
     this.checkBoxWeightedClose.Text               = "&Weighted Close:";
     this.checkBoxWeightedClose.TextAlign          = System.Drawing.ContentAlignment.MiddleRight;
     this.checkBoxWeightedClose.CheckStateChanged += new System.EventHandler(this.checkBoxWeightedClose_CheckStateChanged);
     //
     // checkBoxMedianPrice
     //
     this.checkBoxMedianPrice.CheckAlign         = System.Drawing.ContentAlignment.MiddleRight;
     this.checkBoxMedianPrice.Checked            = true;
     this.checkBoxMedianPrice.CheckState         = System.Windows.Forms.CheckState.Checked;
     this.checkBoxMedianPrice.Location           = new System.Drawing.Point(13, 40);
     this.checkBoxMedianPrice.Name               = "checkBoxMedianPrice";
     this.checkBoxMedianPrice.Size               = new System.Drawing.Size(168, 24);
     this.checkBoxMedianPrice.TabIndex           = 1;
     this.checkBoxMedianPrice.Text               = "&Median Price:";
     this.checkBoxMedianPrice.TextAlign          = System.Drawing.ContentAlignment.MiddleRight;
     this.checkBoxMedianPrice.CheckStateChanged += new System.EventHandler(this.checkBoxWeightedClose_CheckStateChanged);
     //
     // checkBoxTypicalPrice
     //
     this.checkBoxTypicalPrice.CheckAlign         = System.Drawing.ContentAlignment.MiddleRight;
     this.checkBoxTypicalPrice.Checked            = true;
     this.checkBoxTypicalPrice.CheckState         = System.Windows.Forms.CheckState.Checked;
     this.checkBoxTypicalPrice.Location           = new System.Drawing.Point(13, 8);
     this.checkBoxTypicalPrice.Name               = "checkBoxTypicalPrice";
     this.checkBoxTypicalPrice.Size               = new System.Drawing.Size(168, 24);
     this.checkBoxTypicalPrice.TabIndex           = 0;
     this.checkBoxTypicalPrice.Text               = "&Typical Price:";
     this.checkBoxTypicalPrice.TextAlign          = System.Drawing.ContentAlignment.MiddleRight;
     this.checkBoxTypicalPrice.CheckStateChanged += new System.EventHandler(this.checkBoxWeightedClose_CheckStateChanged);
     //
     // PriceIndicators
     //
     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);
     this.Name  = "PriceIndicators";
     this.Size  = new System.Drawing.Size(728, 480);
     this.Load += new System.EventHandler(this.TemplateSampleControl_Load);
     ((System.ComponentModel.ISupportInitialize)(this.chart1)).EndInit();
     this.panel1.ResumeLayout(false);
     this.ResumeLayout(false);
 }
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     System.Windows.Forms.DataVisualization.Charting.ChartArea chartArea1  = new System.Windows.Forms.DataVisualization.Charting.ChartArea();
     System.Windows.Forms.DataVisualization.Charting.Legend    legend1     = new System.Windows.Forms.DataVisualization.Charting.Legend();
     System.Windows.Forms.DataVisualization.Charting.Series    series1     = new System.Windows.Forms.DataVisualization.Charting.Series();
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint1  = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 550);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint2  = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 900);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint3  = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 1800);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint4  = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 700);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint5  = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 1500);
     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, 900);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint7  = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 1800);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint8  = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 1400);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint9  = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 1600);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint10 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 2000);
     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, 1800);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint12 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 2400);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint13 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 800);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint14 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 2200);
     System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint15 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 550);
     this.CrossingX     = new System.Windows.Forms.ComboBox();
     this.ChartTypes    = new System.Windows.Forms.ComboBox();
     this.CrossingY     = 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.ReverseYCheck = new System.Windows.Forms.CheckBox();
     this.ReverseXCheck = 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();
     //
     // CrossingX
     //
     this.CrossingX.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.CrossingX.Items.AddRange(new object[] {
         "Auto",
         "1",
         "3",
         "5",
         "Max",
         "Min"
     });
     this.CrossingX.Location              = new System.Drawing.Point(168, 8);
     this.CrossingX.Name                  = "CrossingX";
     this.CrossingX.TabIndex              = 4;
     this.CrossingX.SelectedIndexChanged += new System.EventHandler(this.ControlChange);
     //
     // ChartTypes
     //
     this.ChartTypes.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.ChartTypes.Items.AddRange(new object[] {
         "Column",
         "Bar"
     });
     this.ChartTypes.Location              = new System.Drawing.Point(168, 72);
     this.ChartTypes.Name                  = "ChartTypes";
     this.ChartTypes.TabIndex              = 8;
     this.ChartTypes.SelectedIndexChanged += new System.EventHandler(this.ControlChange);
     //
     // CrossingY
     //
     this.CrossingY.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.CrossingY.Items.AddRange(new object[] {
         "Auto",
         "1000",
         "1500",
         "2000",
         "Max",
         "Min"
     });
     this.CrossingY.Location              = new System.Drawing.Point(168, 40);
     this.CrossingY.Name                  = "CrossingY";
     this.CrossingY.TabIndex              = 6;
     this.CrossingY.SelectedIndexChanged += new System.EventHandler(this.ControlChange);
     //
     // label5
     //
     this.label5.Location  = new System.Drawing.Point(16, 8);
     this.label5.Name      = "label5";
     this.label5.Size      = new System.Drawing.Size(148, 16);
     this.label5.TabIndex  = 3;
     this.label5.Text      = "Crossing &X:";
     this.label5.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // label7
     //
     this.label7.Location  = new System.Drawing.Point(16, 72);
     this.label7.Name      = "label7";
     this.label7.Size      = new System.Drawing.Size(148, 16);
     this.label7.TabIndex  = 7;
     this.label7.Text      = "Chart &Type:";
     this.label7.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // label8
     //
     this.label8.Location  = new System.Drawing.Point(16, 40);
     this.label8.Name      = "label8";
     this.label8.Size      = new System.Drawing.Size(148, 16);
     this.label8.TabIndex  = 5;
     this.label8.Text      = "Crossing &Y:";
     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, ((System.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 use the Crossing and Reverse properties of an axi" +
                            "s.";
     this.label9.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // panel1
     //
     this.panel1.Controls.AddRange(new System.Windows.Forms.Control[] {
         this.ReverseYCheck,
         this.ReverseXCheck,
         this.label5,
         this.CrossingX,
         this.label7,
         this.label8,
         this.CrossingY,
         this.ChartTypes
     });
     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 = 0;
     //
     // ReverseYCheck
     //
     this.ReverseYCheck.CheckAlign      = System.Drawing.ContentAlignment.MiddleRight;
     this.ReverseYCheck.Location        = new System.Drawing.Point(14, 136);
     this.ReverseYCheck.Name            = "ReverseYCheck";
     this.ReverseYCheck.Size            = new System.Drawing.Size(168, 24);
     this.ReverseYCheck.TabIndex        = 0;
     this.ReverseYCheck.Text            = "R&everse Y Axis:";
     this.ReverseYCheck.TextAlign       = System.Drawing.ContentAlignment.MiddleRight;
     this.ReverseYCheck.CheckedChanged += new System.EventHandler(this.ControlChange);
     //
     // ReverseXCheck
     //
     this.ReverseXCheck.CheckAlign      = System.Drawing.ContentAlignment.MiddleRight;
     this.ReverseXCheck.Location        = new System.Drawing.Point(14, 104);
     this.ReverseXCheck.Name            = "ReverseXCheck";
     this.ReverseXCheck.RightToLeft     = System.Windows.Forms.RightToLeft.No;
     this.ReverseXCheck.Size            = new System.Drawing.Size(168, 24);
     this.ReverseXCheck.TabIndex        = 9;
     this.ReverseXCheck.Text            = "&Reverse X Axis:";
     this.ReverseXCheck.TextAlign       = System.Drawing.ContentAlignment.MiddleRight;
     this.ReverseXCheck.CheckedChanged += new System.EventHandler(this.ControlChange);
     //
     // Chart1
     //
     this.Chart1.BackColor                   = System.Drawing.Color.FromArgb(((System.Byte)(243)), ((System.Byte)(223)), ((System.Byte)(193)));
     this.Chart1.BackGradientStyle           = System.Windows.Forms.DataVisualization.Charting.GradientStyle.TopBottom;
     this.Chart1.BorderlineColor             = System.Drawing.Color.FromArgb(((System.Byte)(181)), ((System.Byte)(64)), ((System.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.IsClustered      = true;
     chartArea1.Area3DStyle.Perspective      = 10;
     chartArea1.Area3DStyle.IsRightAngleAxes = false;
     chartArea1.Area3DStyle.WallWidth        = 0;
     chartArea1.Area3DStyle.Inclination      = 15;
     chartArea1.Area3DStyle.Rotation         = 10;
     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.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.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(((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.AxisY2.Enabled               = System.Windows.Forms.DataVisualization.Charting.AxisEnabled.False;
     chartArea1.AxisY2.MajorGrid.Enabled     = false;
     chartArea1.BackColor          = System.Drawing.Color.OldLace;
     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.Alignment     = System.Drawing.StringAlignment.Far;
     legend1.IsTextAutoFit = false;
     legend1.BackColor     = System.Drawing.Color.Transparent;
     legend1.Docking       = System.Windows.Forms.DataVisualization.Charting.Docking.Bottom;
     legend1.Enabled       = false;
     legend1.Font          = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold);
     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";
     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         = "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.Double;
     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.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;
     series3.BorderColor = System.Drawing.Color.FromArgb(((System.Byte)(180)), ((System.Byte)(26)), ((System.Byte)(59)), ((System.Byte)(105)));
     series3.Name        = "Series3";
     series3.Points.Add(dataPoint11);
     series3.Points.Add(dataPoint12);
     series3.Points.Add(dataPoint13);
     series3.Points.Add(dataPoint14);
     series3.Points.Add(dataPoint15);
     series3.XValueType = System.Windows.Forms.DataVisualization.Charting.ChartValueType.Double;
     series3.YValueType = System.Windows.Forms.DataVisualization.Charting.ChartValueType.Double;
     this.Chart1.Series.Add(series1);
     this.Chart1.Series.Add(series2);
     this.Chart1.Series.Add(series3);
     this.Chart1.Size     = new System.Drawing.Size(412, 296);
     this.Chart1.TabIndex = 2;
     //
     // AxisCrossing
     //
     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 = "AxisCrossing";
     this.Size = new System.Drawing.Size(728, 480);
     this.panel1.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.Chart1)).EndInit();
     this.ResumeLayout(false);
 }
Beispiel #49
0
        void addNeuron(Neuron nn, int X, int Y, int idxNeuron)
        {
            var label = new Label();

            label.AutoSize = true;
            label.Location = new System.Drawing.Point(X, Y);
            label.Name     = "label" + idxNeuron.ToString();
            label.Size     = new System.Drawing.Size(35, 13);
            label.TabIndex = 0;
            label.Text     = nn.Label;
            Controls.Add(label);
            _neuronUIcontrols.Add(label);

            if (nn.GetType() == typeof(NeuronInput) || nn.GetType() == typeof(NeuronBias))
            {
                return;
            }

            System.Windows.Forms.DataVisualization.Charting.ChartArea chartArea1 = new System.Windows.Forms.DataVisualization.Charting.ChartArea();
            var chart = new System.Windows.Forms.DataVisualization.Charting.Chart();

            chartArea1.Name = "ChartArea" + idxNeuron.ToString();
            chartArea1.AxisX.LabelAutoFitMaxFontSize = 5;
            chartArea1.AxisX.Interval                = 30.0;
            chartArea1.AxisX.MinorTickMark.Size      = 30;
            chartArea1.AxisY.LabelAutoFitMaxFontSize = 5;
            chartArea1.AxisY.Interval                = 3.0;
            chartArea1.AxisX.MajorGrid.Enabled       = false;
            chartArea1.AxisX.MinorGrid.Enabled       = false;
            chartArea1.AxisY.MajorGrid.Enabled       = false;
            chartArea1.AxisY.MinorGrid.Enabled       = false;
            chart.ChartAreas.Add(chartArea1);
            chart.Location = new System.Drawing.Point(X, Y + 15);
            chart.Name     = "chart" + idxNeuron.ToString();
            chart.Size     = new System.Drawing.Size(_neuronWidth - 10, _neuronWidth - 10);
            chart.TabIndex = 0;
            chart.Series.Clear();
            var series1 = new System.Windows.Forms.DataVisualization.Charting.Series
            {
                Name              = "Series1",
                Color             = System.Drawing.Color.LightGray,
                IsVisibleInLegend = false,
                IsXValueIndexed   = false,
                ChartType         = SeriesChartType.Line
            };

            chart.Series.Add(series1);
            for (double x = -50; x < 50; x++)
            {
                series1.Points.AddXY(x, transferFunc(x));
            }
            var series2 = new System.Windows.Forms.DataVisualization.Charting.Series
            {
                Name              = "Series2",
                Color             = nn.FirstInputValue < nn.InputValue ? System.Drawing.Color.Red : System.Drawing.Color.Blue,
                IsVisibleInLegend = false,
                IsXValueIndexed   = false,
                ChartType         = SeriesChartType.Line
            };

            chart.Series.Add(series2);
            double begin = nn.FirstInputValue < nn.InputValue ? nn.FirstInputValue : nn.InputValue;
            double end   = nn.FirstInputValue < nn.InputValue ? nn.InputValue : nn.FirstInputValue;

            for (double x = begin; x < end + 1.0; x++)
            {
                series2.Points.AddXY(x, transferFunc(x));
            }
            Controls.Add(chart);
            _neuronUIcontrols.Add(chart);

            var labelW = new Label();

            labelW.AutoSize = true;
            labelW.Location = new System.Drawing.Point(X, Y + _neuronHeight - 15);
            labelW.Name     = "labelW" + idxNeuron.ToString();
            labelW.Size     = new System.Drawing.Size(_neuronWidth, 13);
            labelW.TabIndex = 0;
            labelW.Font     = new Font(labelW.Font.FontFamily, 7.0f);
            foreach (var w in nn.Weights)
            {
                labelW.Text += string.Format("{0:F2};", w.X);
            }
            if (nn.Weights.Count > 0)
            {
                labelW.Text = labelW.Text.Substring(0, labelW.Text.Length - 1);
            }
            Controls.Add(labelW);
            _neuronUIcontrols.Add(labelW);
        }
Beispiel #50
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();
     this.chart1                 = new System.Windows.Forms.DataVisualization.Charting.Chart();
     this.labelSampleComment     = new System.Windows.Forms.Label();
     this.panel1                 = new System.Windows.Forms.Panel();
     this.Aligned                = new System.Windows.Forms.CheckBox();
     this.NumOfPoints            = new System.Windows.Forms.ComboBox();
     this.CalloutStyle           = new System.Windows.Forms.ComboBox();
     this.CalloutLineAnchorWidth = new System.Windows.Forms.ComboBox();
     this.CalloutLineAnchorColor = new System.Windows.Forms.ComboBox();
     this.CalloutLineAnchorCap   = new System.Windows.Forms.ComboBox();
     this.label4                 = new System.Windows.Forms.Label();
     this.label3                 = new System.Windows.Forms.Label();
     this.label2                 = new System.Windows.Forms.Label();
     this.AllowOutsidePlotArea   = new System.Windows.Forms.ComboBox();
     this.checkBoxPreventOverlap = new System.Windows.Forms.CheckBox();
     this.label1                 = new System.Windows.Forms.Label();
     this.label5                 = new System.Windows.Forms.Label();
     this.label6                 = 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.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.Font                         = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     series1.IsValueShownAsLabel          = true;
     series1.LabelFormat                  = "P0";
     series1.Legend                       = "Default";
     series1.MarkerSize                   = 6;
     series1.Name                         = "Default";
     series1.ShadowOffset                 = 1;
     series1.SmartLabelStyle.CalloutStyle = System.Windows.Forms.DataVisualization.Charting.LabelCalloutStyle.Box;
     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);
     //
     // 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, 36);
     this.labelSampleComment.TabIndex = 0;
     this.labelSampleComment.Text     = "This sample demonstrates how to use smart labels to avoid overlaps by repositioni" +
                                        "ng or hiding point labels.";
     //
     // panel1
     //
     this.panel1.Controls.Add(this.Aligned);
     this.panel1.Controls.Add(this.NumOfPoints);
     this.panel1.Controls.Add(this.CalloutStyle);
     this.panel1.Controls.Add(this.CalloutLineAnchorWidth);
     this.panel1.Controls.Add(this.CalloutLineAnchorColor);
     this.panel1.Controls.Add(this.CalloutLineAnchorCap);
     this.panel1.Controls.Add(this.label4);
     this.panel1.Controls.Add(this.label3);
     this.panel1.Controls.Add(this.label2);
     this.panel1.Controls.Add(this.AllowOutsidePlotArea);
     this.panel1.Controls.Add(this.checkBoxPreventOverlap);
     this.panel1.Controls.Add(this.label1);
     this.panel1.Controls.Add(this.label5);
     this.panel1.Controls.Add(this.label6);
     this.panel1.Location = new System.Drawing.Point(424, 68);
     this.panel1.Name     = "panel1";
     this.panel1.Size     = new System.Drawing.Size(296, 292);
     this.panel1.TabIndex = 0;
     //
     // Aligned
     //
     this.Aligned.CheckAlign      = System.Drawing.ContentAlignment.MiddleRight;
     this.Aligned.Location        = new System.Drawing.Point(22, 36);
     this.Aligned.Name            = "Aligned";
     this.Aligned.Size            = new System.Drawing.Size(168, 24);
     this.Aligned.TabIndex        = 1;
     this.Aligned.Text            = "&Similar Point Values:";
     this.Aligned.TextAlign       = System.Drawing.ContentAlignment.MiddleRight;
     this.Aligned.CheckedChanged += new System.EventHandler(this.Aligned_CheckedChanged);
     //
     // NumOfPoints
     //
     this.NumOfPoints.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.NumOfPoints.Items.AddRange(new object[] {
         "20",
         "30",
         "40",
         "50",
         "60"
     });
     this.NumOfPoints.Location              = new System.Drawing.Point(176, 64);
     this.NumOfPoints.Name                  = "NumOfPoints";
     this.NumOfPoints.Size                  = new System.Drawing.Size(121, 22);
     this.NumOfPoints.TabIndex              = 3;
     this.NumOfPoints.SelectedIndexChanged += new System.EventHandler(this.NumOfPoints_SelectedIndexChanged);
     //
     // CalloutStyle
     //
     this.CalloutStyle.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.CalloutStyle.Items.AddRange(new object[] {
         "None",
         "Box",
         "Underlined"
     });
     this.CalloutStyle.Location              = new System.Drawing.Point(176, 200);
     this.CalloutStyle.Name                  = "CalloutStyle";
     this.CalloutStyle.Size                  = new System.Drawing.Size(121, 22);
     this.CalloutStyle.TabIndex              = 13;
     this.CalloutStyle.SelectedIndexChanged += new System.EventHandler(this.CalloutStyle_SelectedIndexChanged);
     //
     // CalloutLineAnchorWidth
     //
     this.CalloutLineAnchorWidth.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.CalloutLineAnchorWidth.Items.AddRange(new object[] {
         "1",
         "2",
         "3",
         "4",
         "5"
     });
     this.CalloutLineAnchorWidth.Location              = new System.Drawing.Point(176, 176);
     this.CalloutLineAnchorWidth.Name                  = "CalloutLineAnchorWidth";
     this.CalloutLineAnchorWidth.Size                  = new System.Drawing.Size(121, 22);
     this.CalloutLineAnchorWidth.TabIndex              = 11;
     this.CalloutLineAnchorWidth.SelectedIndexChanged += new System.EventHandler(this.CalloutLineAnchorWidth_SelectedIndexChanged);
     //
     // CalloutLineAnchorColor
     //
     this.CalloutLineAnchorColor.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.CalloutLineAnchorColor.Items.AddRange(new object[] {
         "Red",
         "Blue",
         "Green",
         "Yellow"
     });
     this.CalloutLineAnchorColor.Location              = new System.Drawing.Point(176, 152);
     this.CalloutLineAnchorColor.Name                  = "CalloutLineAnchorColor";
     this.CalloutLineAnchorColor.Size                  = new System.Drawing.Size(121, 22);
     this.CalloutLineAnchorColor.TabIndex              = 9;
     this.CalloutLineAnchorColor.SelectedIndexChanged += new System.EventHandler(this.CalloutLineAnchorColor_SelectedIndexChanged);
     //
     // CalloutLineAnchorCap
     //
     this.CalloutLineAnchorCap.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.CalloutLineAnchorCap.Items.AddRange(new object[] {
         "None",
         "Arrow",
         "Diamond",
         "Square",
         "Round"
     });
     this.CalloutLineAnchorCap.Location              = new System.Drawing.Point(176, 128);
     this.CalloutLineAnchorCap.Name                  = "CalloutLineAnchorCap";
     this.CalloutLineAnchorCap.Size                  = new System.Drawing.Size(121, 22);
     this.CalloutLineAnchorCap.TabIndex              = 7;
     this.CalloutLineAnchorCap.SelectedIndexChanged += new System.EventHandler(this.CalloutLineAnchorCap_SelectedIndexChanged);
     //
     // label4
     //
     this.label4.Location  = new System.Drawing.Point(3, 176);
     this.label4.Name      = "label4";
     this.label4.Size      = new System.Drawing.Size(172, 20);
     this.label4.TabIndex  = 10;
     this.label4.Text      = "Callout Line Anchor &Width:";
     this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // label3
     //
     this.label3.Location  = new System.Drawing.Point(8, 154);
     this.label3.Name      = "label3";
     this.label3.Size      = new System.Drawing.Size(168, 16);
     this.label3.TabIndex  = 8;
     this.label3.Text      = "Callout Line Anchor C&olor:";
     this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // label2
     //
     this.label2.Location  = new System.Drawing.Point(16, 130);
     this.label2.Name      = "label2";
     this.label2.Size      = new System.Drawing.Size(160, 16);
     this.label2.TabIndex  = 6;
     this.label2.Text      = "Callout Line Anchor &Cap:";
     this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // AllowOutsidePlotArea
     //
     this.AllowOutsidePlotArea.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.AllowOutsidePlotArea.Items.AddRange(new object[] {
         "No",
         "Yes",
         "Partial"
     });
     this.AllowOutsidePlotArea.Location              = new System.Drawing.Point(176, 96);
     this.AllowOutsidePlotArea.Name                  = "AllowOutsidePlotArea";
     this.AllowOutsidePlotArea.Size                  = new System.Drawing.Size(121, 22);
     this.AllowOutsidePlotArea.TabIndex              = 5;
     this.AllowOutsidePlotArea.SelectedIndexChanged += new System.EventHandler(this.AllowOutsidePlotArea_SelectedIndexChanged);
     //
     // checkBoxPreventOverlap
     //
     this.checkBoxPreventOverlap.CheckAlign      = System.Drawing.ContentAlignment.MiddleRight;
     this.checkBoxPreventOverlap.Location        = new System.Drawing.Point(18, 8);
     this.checkBoxPreventOverlap.Name            = "checkBoxPreventOverlap";
     this.checkBoxPreventOverlap.Size            = new System.Drawing.Size(172, 24);
     this.checkBoxPreventOverlap.TabIndex        = 0;
     this.checkBoxPreventOverlap.Text            = "&Smart Labels:";
     this.checkBoxPreventOverlap.TextAlign       = System.Drawing.ContentAlignment.MiddleRight;
     this.checkBoxPreventOverlap.CheckedChanged += new System.EventHandler(this.checkBoxPreventOverlap_CheckedChanged);
     //
     // label1
     //
     this.label1.Location  = new System.Drawing.Point(16, 99);
     this.label1.Name      = "label1";
     this.label1.Size      = new System.Drawing.Size(160, 16);
     this.label1.TabIndex  = 4;
     this.label1.Text      = "Allow &Outside Plot Area:";
     this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     this.label1.Click    += new System.EventHandler(this.label1_Click);
     //
     // label5
     //
     this.label5.Location  = new System.Drawing.Point(16, 202);
     this.label5.Name      = "label5";
     this.label5.Size      = new System.Drawing.Size(160, 16);
     this.label5.TabIndex  = 12;
     this.label5.Text      = "Callout St&yle:";
     this.label5.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // label6
     //
     this.label6.Location  = new System.Drawing.Point(16, 67);
     this.label6.Name      = "label6";
     this.label6.Size      = new System.Drawing.Size(160, 16);
     this.label6.TabIndex  = 2;
     this.label6.Text      = "&Number of Points:";
     this.label6.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // SmartLabels
     //
     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  = "Smart Labels";
     this.Size  = new System.Drawing.Size(728, 376);
     this.Load += new System.EventHandler(this.SmartLabels_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.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);
 }
Beispiel #52
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);
 }
Beispiel #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.Series    series2    = new System.Windows.Forms.DataVisualization.Charting.Series();
     System.Windows.Forms.DataVisualization.Charting.Series    series3    = new System.Windows.Forms.DataVisualization.Charting.Series();
     this.chart1                   = new System.Windows.Forms.DataVisualization.Charting.Chart();
     this.labelSampleComment       = new System.Windows.Forms.Label();
     this.panel1                   = new System.Windows.Forms.Panel();
     this.checkBoxForecastingError = new System.Windows.Forms.CheckBox();
     this.checkBoxError            = new System.Windows.Forms.CheckBox();
     this.comboBoxForecasting      = new System.Windows.Forms.ComboBox();
     this.label3                   = new System.Windows.Forms.Label();
     this.comboBoxPeriod           = new System.Windows.Forms.ComboBox();
     this.label4                   = new System.Windows.Forms.Label();
     this.comboBoxOrder            = new System.Windows.Forms.ComboBox();
     this.label2                   = new System.Windows.Forms.Label();
     this.buttonRandomData         = new System.Windows.Forms.Button();
     this.comboBoxRegressionType   = 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)(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.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   = "dd MMM";
     chartArea1.AxisX.LineColor           = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
     chartArea1.AxisX.MajorGrid.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
     chartArea1.AxisX2.LabelAutoFitStyle  = ((System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles)((((System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles.DecreaseFont | System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles.StaggeredLabels)
                                                                                                                    | System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles.LabelsAngleStep30)
                                                                                                                   | System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles.WordWrap)));
     chartArea1.AxisY.IsStartedFromZero = false;
     chartArea1.AxisY.LabelAutoFitStyle = ((System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles)((((System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles.DecreaseFont | System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles.StaggeredLabels)
                                                                                                                  | System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles.LabelsAngleStep30)
                                                                                                                 | System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles.WordWrap)));
     chartArea1.AxisY.LabelStyle.Font     = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold);
     chartArea1.AxisY.LineColor           = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
     chartArea1.AxisY.MajorGrid.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
     chartArea1.AxisY2.LabelAutoFitStyle  = ((System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles)((((System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles.DecreaseFont | System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles.StaggeredLabels)
                                                                                                                    | System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles.LabelsAngleStep30)
                                                                                                                   | System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles.WordWrap)));
     chartArea1.BackColor          = System.Drawing.Color.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.BorderDashStyle    = System.Windows.Forms.DataVisualization.Charting.ChartDashStyle.Solid;
     chartArea1.Name        = "Default";
     chartArea1.ShadowColor = System.Drawing.Color.Transparent;
     this.chart1.ChartAreas.Add(chartArea1);
     legend1.Alignment = System.Drawing.StringAlignment.Far;
     legend1.BackColor = System.Drawing.Color.Transparent;
     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, 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.Range;
     series1.Color           = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(65)))), ((int)(((byte)(140)))), ((int)(((byte)(240)))));
     series1.Legend          = "Default";
     series1.Name            = "Range";
     series1.XValueType      = System.Windows.Forms.DataVisualization.Charting.ChartValueType.DateTime;
     series1.YValuesPerPoint = 2;
     series2.BorderWidth     = 2;
     series2.ChartArea       = "Default";
     series2.ChartType       = System.Windows.Forms.DataVisualization.Charting.SeriesChartType.Line;
     series2.Color           = System.Drawing.Color.FromArgb(((int)(((byte)(252)))), ((int)(((byte)(180)))), ((int)(((byte)(65)))));
     series2.Legend          = "Default";
     series2.Name            = "Forecasting";
     series2.ShadowColor     = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))));
     series2.ShadowOffset    = 1;
     series2.XValueType      = System.Windows.Forms.DataVisualization.Charting.ChartValueType.DateTime;
     series3.BorderWidth     = 2;
     series3.ChartArea       = "Default";
     series3.ChartType       = System.Windows.Forms.DataVisualization.Charting.SeriesChartType.Line;
     series3.Color           = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(64)))), ((int)(((byte)(10)))));
     series3.Legend          = "Default";
     series3.Name            = "Input";
     series3.ShadowColor     = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))));
     series3.ShadowOffset    = 1;
     series3.XValueType      = System.Windows.Forms.DataVisualization.Charting.ChartValueType.DateTime;
     series3.YValuesPerPoint = 4;
     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;
     //
     // labelSampleComment
     //
     this.labelSampleComment.Font     = new System.Drawing.Font("Verdana", 11F);
     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 = 0;
     this.labelSampleComment.Text     = "This chart�demonstrates the�Forecasting formula and also displays�upper and lower" +
                                        " errors as a Range chart.";
     this.labelSampleComment.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // panel1
     //
     this.panel1.Controls.Add(this.checkBoxForecastingError);
     this.panel1.Controls.Add(this.checkBoxError);
     this.panel1.Controls.Add(this.comboBoxForecasting);
     this.panel1.Controls.Add(this.label3);
     this.panel1.Controls.Add(this.comboBoxPeriod);
     this.panel1.Controls.Add(this.label4);
     this.panel1.Controls.Add(this.comboBoxOrder);
     this.panel1.Controls.Add(this.label2);
     this.panel1.Controls.Add(this.buttonRandomData);
     this.panel1.Controls.Add(this.comboBoxRegressionType);
     this.panel1.Controls.Add(this.label1);
     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;
     //
     // checkBoxForecastingError
     //
     this.checkBoxForecastingError.CheckAlign         = System.Drawing.ContentAlignment.MiddleRight;
     this.checkBoxForecastingError.Location           = new System.Drawing.Point(-9, 168);
     this.checkBoxForecastingError.Name               = "checkBoxForecastingError";
     this.checkBoxForecastingError.Size               = new System.Drawing.Size(192, 24);
     this.checkBoxForecastingError.TabIndex           = 9;
     this.checkBoxForecastingError.Text               = "Show Fore&casting Error:";
     this.checkBoxForecastingError.TextAlign          = System.Drawing.ContentAlignment.MiddleRight;
     this.checkBoxForecastingError.CheckStateChanged += new System.EventHandler(this.checkBoxForecastingError_CheckStateChanged_1);
     //
     // checkBoxError
     //
     this.checkBoxError.CheckAlign         = System.Drawing.ContentAlignment.MiddleRight;
     this.checkBoxError.Location           = new System.Drawing.Point(47, 136);
     this.checkBoxError.Name               = "checkBoxError";
     this.checkBoxError.Size               = new System.Drawing.Size(136, 24);
     this.checkBoxError.TabIndex           = 8;
     this.checkBoxError.Text               = "Show &Error:";
     this.checkBoxError.TextAlign          = System.Drawing.ContentAlignment.MiddleRight;
     this.checkBoxError.CheckStateChanged += new System.EventHandler(this.checkBoxForecastingError_CheckStateChanged_1);
     //
     // comboBoxForecasting
     //
     this.comboBoxForecasting.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.comboBoxForecasting.Items.AddRange(new object[] {
         "10",
         "20",
         "30"
     });
     this.comboBoxForecasting.Location              = new System.Drawing.Point(169, 104);
     this.comboBoxForecasting.Name                  = "comboBoxForecasting";
     this.comboBoxForecasting.Size                  = new System.Drawing.Size(122, 22);
     this.comboBoxForecasting.TabIndex              = 7;
     this.comboBoxForecasting.SelectedIndexChanged += new System.EventHandler(this.comboBoxForecasting_SelectedIndexChanged_1);
     //
     // label3
     //
     this.label3.Location  = new System.Drawing.Point(44, 104);
     this.label3.Name      = "label3";
     this.label3.Size      = new System.Drawing.Size(120, 23);
     this.label3.TabIndex  = 6;
     this.label3.Text      = "&Forecasting:";
     this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // comboBoxPeriod
     //
     this.comboBoxPeriod.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.comboBoxPeriod.Items.AddRange(new object[] {
         "75",
         "100",
         "150",
         "200"
     });
     this.comboBoxPeriod.Location              = new System.Drawing.Point(169, 72);
     this.comboBoxPeriod.Name                  = "comboBoxPeriod";
     this.comboBoxPeriod.Size                  = new System.Drawing.Size(122, 22);
     this.comboBoxPeriod.TabIndex              = 5;
     this.comboBoxPeriod.SelectedIndexChanged += new System.EventHandler(this.comboBoxPeriod_SelectedIndexChanged_1);
     //
     // label4
     //
     this.label4.Location  = new System.Drawing.Point(44, 72);
     this.label4.Name      = "label4";
     this.label4.Size      = new System.Drawing.Size(120, 23);
     this.label4.TabIndex  = 4;
     this.label4.Text      = "&Period:";
     this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // comboBoxOrder
     //
     this.comboBoxOrder.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.comboBoxOrder.Items.AddRange(new object[] {
         "3",
         "4",
         "5"
     });
     this.comboBoxOrder.Location              = new System.Drawing.Point(169, 40);
     this.comboBoxOrder.Name                  = "comboBoxOrder";
     this.comboBoxOrder.Size                  = new System.Drawing.Size(122, 22);
     this.comboBoxOrder.TabIndex              = 3;
     this.comboBoxOrder.SelectedIndexChanged += new System.EventHandler(this.comboBoxForecasting_SelectedIndexChanged_1);
     //
     // label2
     //
     this.label2.Location  = new System.Drawing.Point(44, 40);
     this.label2.Name      = "label2";
     this.label2.Size      = new System.Drawing.Size(120, 23);
     this.label2.TabIndex  = 2;
     this.label2.Text      = "&Order:";
     this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // buttonRandomData
     //
     this.buttonRandomData.BackColor = System.Drawing.SystemColors.Control;
     this.buttonRandomData.Location  = new System.Drawing.Point(72, 200);
     this.buttonRandomData.Name      = "buttonRandomData";
     this.buttonRandomData.Size      = new System.Drawing.Size(192, 26);
     this.buttonRandomData.TabIndex  = 10;
     this.buttonRandomData.Text      = "&Generate Random Data";
     this.buttonRandomData.UseVisualStyleBackColor = false;
     this.buttonRandomData.Click += new System.EventHandler(this.buttonRandomData_Click_1);
     //
     // comboBoxRegressionType
     //
     this.comboBoxRegressionType.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.comboBoxRegressionType.Items.AddRange(new object[] {
         "Linear",
         "Polynomial",
         "Exponential",
         "Logarithmic",
         "Power"
     });
     this.comboBoxRegressionType.Location              = new System.Drawing.Point(169, 8);
     this.comboBoxRegressionType.Name                  = "comboBoxRegressionType";
     this.comboBoxRegressionType.Size                  = new System.Drawing.Size(122, 22);
     this.comboBoxRegressionType.TabIndex              = 1;
     this.comboBoxRegressionType.SelectedIndexChanged += new System.EventHandler(this.comboBoxForecasting_SelectedIndexChanged_1);
     //
     // label1
     //
     this.label1.Location  = new System.Drawing.Point(44, 8);
     this.label1.Name      = "label1";
     this.label1.Size      = new System.Drawing.Size(120, 23);
     this.label1.TabIndex  = 0;
     this.label1.Text      = "&Regression Type:";
     this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // Forecasting
     //
     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);
     this.Name  = "Forecasting";
     this.Size  = new System.Drawing.Size(728, 480);
     this.Load += new System.EventHandler(this.TemplateSampleControl_Load);
     ((System.ComponentModel.ISupportInitialize)(this.chart1)).EndInit();
     this.panel1.ResumeLayout(false);
     this.ResumeLayout(false);
 }
Beispiel #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.Series    series2    = new System.Windows.Forms.DataVisualization.Charting.Series();
     this.chart1              = new System.Windows.Forms.DataVisualization.Charting.Chart();
     this.labelSampleComment  = new System.Windows.Forms.Label();
     this.panel1              = new System.Windows.Forms.Panel();
     this.UsePerspective      = new System.Windows.Forms.CheckBox();
     this.LightingType        = new System.Windows.Forms.ComboBox();
     this.label3              = new System.Windows.Forms.Label();
     this.ShowMarkerLines     = new System.Windows.Forms.CheckBox();
     this.checkBoxShowMargin  = new System.Windows.Forms.CheckBox();
     this.comboBoxLineTension = 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();
     ((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.Enable3D         = true;
     chartArea1.Area3DStyle.Inclination      = 32;
     chartArea1.Area3DStyle.IsClustered      = true;
     chartArea1.Area3DStyle.IsRightAngleAxes = false;
     chartArea1.Area3DStyle.LightStyle       = System.Windows.Forms.DataVisualization.Charting.LightStyle.Realistic;
     chartArea1.Area3DStyle.Rotation         = 29;
     chartArea1.Area3DStyle.WallWidth        = 0;
     chartArea1.AxisX.IsMarginVisible        = 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.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.BorderDashStyle    = System.Windows.Forms.DataVisualization.Charting.ChartDashStyle.Solid;
     chartArea1.Name            = "Default";
     chartArea1.Position.Auto   = false;
     chartArea1.Position.Height = 96F;
     chartArea1.Position.Width  = 99F;
     chartArea1.Position.Y      = 2F;
     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.ChartType       = System.Windows.Forms.DataVisualization.Charting.SeriesChartType.SplineRange;
     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.XValueType      = System.Windows.Forms.DataVisualization.Charting.ChartValueType.Double;
     series1.YValuesPerPoint = 2;
     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.ChartType       = System.Windows.Forms.DataVisualization.Charting.SeriesChartType.SplineRange;
     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.XValueType      = System.Windows.Forms.DataVisualization.Charting.ChartValueType.Double;
     series2.YValuesPerPoint = 2;
     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;
     //
     // 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, 42);
     this.labelSampleComment.TabIndex = 0;
     this.labelSampleComment.Text     = "This sample demonstrates Range and Spline Range chart types. The Spline Range cha" +
                                        "rt supports line tension adjustment. ";
     this.labelSampleComment.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // panel1
     //
     this.panel1.Controls.Add(this.UsePerspective);
     this.panel1.Controls.Add(this.LightingType);
     this.panel1.Controls.Add(this.label3);
     this.panel1.Controls.Add(this.ShowMarkerLines);
     this.panel1.Controls.Add(this.checkBoxShowMargin);
     this.panel1.Controls.Add(this.comboBoxLineTension);
     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, 56);
     this.panel1.Name     = "panel1";
     this.panel1.Size     = new System.Drawing.Size(292, 280);
     this.panel1.TabIndex = 2;
     //
     // UsePerspective
     //
     this.UsePerspective.CheckAlign      = System.Drawing.ContentAlignment.MiddleRight;
     this.UsePerspective.Location        = new System.Drawing.Point(-2, 168);
     this.UsePerspective.Name            = "UsePerspective";
     this.UsePerspective.Size            = new System.Drawing.Size(184, 24);
     this.UsePerspective.TabIndex        = 8;
     this.UsePerspective.Text            = "Use 10% &Perspective:";
     this.UsePerspective.TextAlign       = System.Drawing.ContentAlignment.MiddleRight;
     this.UsePerspective.CheckedChanged += new System.EventHandler(this.UsePerspective_CheckedChanged);
     //
     // LightingType
     //
     this.LightingType.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.LightingType.Items.AddRange(new object[] {
         "None",
         "Simplistic",
         "Realistic"
     });
     this.LightingType.Location              = new System.Drawing.Point(168, 72);
     this.LightingType.Name                  = "LightingType";
     this.LightingType.Size                  = new System.Drawing.Size(112, 22);
     this.LightingType.TabIndex              = 5;
     this.LightingType.SelectedIndexChanged += new System.EventHandler(this.LightingType_SelectedIndexChanged);
     //
     // label3
     //
     this.label3.Location  = new System.Drawing.Point(28, 72);
     this.label3.Name      = "label3";
     this.label3.Size      = new System.Drawing.Size(136, 23);
     this.label3.TabIndex  = 4;
     this.label3.Text      = "L&ighting:";
     this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // ShowMarkerLines
     //
     this.ShowMarkerLines.CheckAlign      = System.Drawing.ContentAlignment.MiddleRight;
     this.ShowMarkerLines.Location        = new System.Drawing.Point(-2, 136);
     this.ShowMarkerLines.Name            = "ShowMarkerLines";
     this.ShowMarkerLines.Size            = new System.Drawing.Size(184, 24);
     this.ShowMarkerLines.TabIndex        = 7;
     this.ShowMarkerLines.Text            = "Show Marker &Lines:";
     this.ShowMarkerLines.TextAlign       = System.Drawing.ContentAlignment.MiddleRight;
     this.ShowMarkerLines.CheckedChanged += new System.EventHandler(this.ShowMarkerLines_CheckedChanged);
     //
     // checkBoxShowMargin
     //
     this.checkBoxShowMargin.CheckAlign      = System.Drawing.ContentAlignment.MiddleRight;
     this.checkBoxShowMargin.Location        = new System.Drawing.Point(-2, 104);
     this.checkBoxShowMargin.Name            = "checkBoxShowMargin";
     this.checkBoxShowMargin.Size            = new System.Drawing.Size(184, 24);
     this.checkBoxShowMargin.TabIndex        = 6;
     this.checkBoxShowMargin.Text            = "Show X Axis &Margin:";
     this.checkBoxShowMargin.TextAlign       = System.Drawing.ContentAlignment.MiddleRight;
     this.checkBoxShowMargin.CheckedChanged += new System.EventHandler(this.checkBoxShowMargin_CheckedChanged);
     //
     // comboBoxLineTension
     //
     this.comboBoxLineTension.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.comboBoxLineTension.Items.AddRange(new object[] {
         "1.2",
         "0.8",
         "0.4",
         "0.2"
     });
     this.comboBoxLineTension.Location              = new System.Drawing.Point(168, 40);
     this.comboBoxLineTension.Name                  = "comboBoxLineTension";
     this.comboBoxLineTension.Size                  = new System.Drawing.Size(112, 22);
     this.comboBoxLineTension.TabIndex              = 3;
     this.comboBoxLineTension.SelectedIndexChanged += new System.EventHandler(this.comboBoxLineTension_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      = "Spline &Tension:";
     this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // comboBoxChartType
     //
     this.comboBoxChartType.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.comboBoxChartType.Items.AddRange(new object[] {
         "Spline Range",
         "Range"
     });
     this.comboBoxChartType.Location              = new System.Drawing.Point(168, 8);
     this.comboBoxChartType.Name                  = "comboBoxChartType";
     this.comboBoxChartType.Size                  = new System.Drawing.Size(112, 22);
     this.comboBoxChartType.TabIndex              = 1;
     this.comboBoxChartType.SelectedIndexChanged += new System.EventHandler(this.comboBoxLineTension_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      = "Chart &Type:";
     this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // Range3D
     //
     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  = "Range3D";
     this.Size  = new System.Drawing.Size(728, 384);
     this.Load += new System.EventHandler(this.Range3D_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.Series    series2    = new System.Windows.Forms.DataVisualization.Charting.Series();
     System.Windows.Forms.DataVisualization.Charting.Series    series3    = new System.Windows.Forms.DataVisualization.Charting.Series();
     this.label9 = new System.Windows.Forms.Label();
     this.panel1 = new System.Windows.Forms.Panel();
     this.checkBoxUseMultipleYAxis = new System.Windows.Forms.CheckBox();
     this.Chart1 = new System.Windows.Forms.DataVisualization.Charting.Chart();
     this.panel1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.Chart1)).BeginInit();
     this.SuspendLayout();
     //
     // label9
     //
     this.label9.Font      = new System.Drawing.Font("Verdana", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label9.Location  = new System.Drawing.Point(16, 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 display a data series using multiple Y axes. ";
     this.label9.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // panel1
     //
     this.panel1.Controls.Add(this.checkBoxUseMultipleYAxis);
     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;
     //
     // checkBoxUseMultipleYAxis
     //
     this.checkBoxUseMultipleYAxis.Location        = new System.Drawing.Point(48, 8);
     this.checkBoxUseMultipleYAxis.Name            = "checkBoxUseMultipleYAxis";
     this.checkBoxUseMultipleYAxis.Size            = new System.Drawing.Size(172, 24);
     this.checkBoxUseMultipleYAxis.TabIndex        = 0;
     this.checkBoxUseMultipleYAxis.Text            = "Use Multiple &Y Axis: ";
     this.checkBoxUseMultipleYAxis.CheckedChanged += new System.EventHandler(this.checkBoxUseMultipleYAxis_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.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      = "MM/dd";
     chartArea1.AxisX.LabelStyle.Interval    = 0;
     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.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      = "N0";
     chartArea1.AxisY.LineColor              = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
     chartArea1.AxisY.MajorGrid.LineColor    = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
     chartArea1.BackColor          = System.Drawing.Color.OldLace;
     chartArea1.BackGradientStyle  = System.Windows.Forms.DataVisualization.Charting.GradientStyle.TopBottom;
     chartArea1.BackSecondaryColor = System.Drawing.Color.White;
     chartArea1.BorderColor        = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
     chartArea1.Name        = "Default";
     chartArea1.ShadowColor = System.Drawing.Color.Transparent;
     this.Chart1.ChartAreas.Add(chartArea1);
     legend1.BackColor     = System.Drawing.Color.Transparent;
     legend1.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.Name         = "Series1";
     series1.ShadowColor  = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))));
     series1.ShadowOffset = 2;
     series2.BorderColor  = System.Drawing.Color.FromArgb(((int)(((byte)(180)))), ((int)(((byte)(26)))), ((int)(((byte)(59)))), ((int)(((byte)(105)))));
     series2.BorderWidth  = 2;
     series2.ChartArea    = "Default";
     series2.ChartType    = System.Windows.Forms.DataVisualization.Charting.SeriesChartType.Line;
     series2.Legend       = "Default";
     series2.Name         = "Series2";
     series2.ShadowColor  = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))));
     series2.ShadowOffset = 2;
     series3.BorderColor  = System.Drawing.Color.FromArgb(((int)(((byte)(180)))), ((int)(((byte)(26)))), ((int)(((byte)(59)))), ((int)(((byte)(105)))));
     series3.BorderWidth  = 2;
     series3.ChartArea    = "Default";
     series3.ChartType    = System.Windows.Forms.DataVisualization.Charting.SeriesChartType.Line;
     series3.Legend       = "Default";
     series3.Name         = "Series3";
     series3.ShadowColor  = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))));
     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, 306);
     this.Chart1.TabIndex = 1;
     //
     // MultipleYAxis
     //
     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  = "MultipleYAxis";
     this.Size  = new System.Drawing.Size(728, 480);
     this.Load += new System.EventHandler(this.MultipleYAxis_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);
 }
Beispiel #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.Series    series2    = new System.Windows.Forms.DataVisualization.Charting.Series();
     this.chart1             = new System.Windows.Forms.DataVisualization.Charting.Chart();
     this.labelSampleComment = new System.Windows.Forms.Label();
     this.panel1             = new System.Windows.Forms.Panel();
     this.checkBoxShow3D     = new System.Windows.Forms.CheckBox();
     ((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.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.IsStartedFromZero            = 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.BorderDashStyle    = System.Windows.Forms.DataVisualization.Charting.ChartDashStyle.Solid;
     chartArea1.Name            = "Default";
     chartArea1.Position.Auto   = false;
     chartArea1.Position.Height = 80F;
     chartArea1.Position.Width  = 87F;
     chartArea1.Position.X      = 5F;
     chartArea1.Position.Y      = 6F;
     chartArea1.ShadowColor     = System.Drawing.Color.Transparent;
     this.chart1.ChartAreas.Add(chartArea1);
     legend1.Alignment       = System.Drawing.StringAlignment.Far;
     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";
     legend1.Position.Auto   = false;
     legend1.Position.Height = 9.054053F;
     legend1.Position.Width  = 36.26765F;
     legend1.Position.X      = 54.46494F;
     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.ChartType        = System.Windows.Forms.DataVisualization.Charting.SeriesChartType.RangeBar;
     series1.Color            = System.Drawing.Color.FromArgb(((int)(((byte)(220)))), ((int)(((byte)(65)))), ((int)(((byte)(140)))), ((int)(((byte)(240)))));
     series1.CustomProperties = "PointWidth=0.7";
     series1.Legend           = "Default";
     series1.Name             = "Tasks";
     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.RangeBar;
     series2.Color            = System.Drawing.Color.FromArgb(((int)(((byte)(220)))), ((int)(((byte)(252)))), ((int)(((byte)(180)))), ((int)(((byte)(65)))));
     series2.CustomProperties = "DrawSideBySide=false, PointWidth=0.2";
     series2.Legend           = "Default";
     series2.Name             = "Progress";
     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;
     this.chart1.PostPaint += new System.EventHandler <System.Windows.Forms.DataVisualization.Charting.ChartPaintEventArgs>(this.chart1_PostPaint);
     //
     // labelSampleComment
     //
     this.labelSampleComment.Font      = new System.Drawing.Font("Verdana", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.labelSampleComment.Location  = new System.Drawing.Point(16, 8);
     this.labelSampleComment.Name      = "labelSampleComment";
     this.labelSampleComment.Size      = new System.Drawing.Size(702, 26);
     this.labelSampleComment.TabIndex  = 2;
     this.labelSampleComment.Text      = "This sample demonstrates the Range Bar chart type in both 2D and 3D.";
     this.labelSampleComment.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // panel1
     //
     this.panel1.Controls.Add(this.checkBoxShow3D);
     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;
     this.panel1.Paint   += new System.Windows.Forms.PaintEventHandler(this.panel1_Paint);
     //
     // checkBoxShow3D
     //
     this.checkBoxShow3D.Location        = new System.Drawing.Point(48, 16);
     this.checkBoxShow3D.Name            = "checkBoxShow3D";
     this.checkBoxShow3D.Size            = new System.Drawing.Size(208, 24);
     this.checkBoxShow3D.TabIndex        = 7;
     this.checkBoxShow3D.Text            = "Display chart as 3&D";
     this.checkBoxShow3D.CheckedChanged += new System.EventHandler(this.checkBoxShow3D_CheckedChanged);
     //
     // RangeBarChartType
     //
     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  = "RangeBarChartType";
     this.Size  = new System.Drawing.Size(728, 376);
     this.Load += new System.EventHandler(this.RangeBarChartType_Load);
     ((System.ComponentModel.ISupportInitialize)(this.chart1)).EndInit();
     this.panel1.ResumeLayout(false);
     this.ResumeLayout(false);
 }
Beispiel #58
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.Main_Menu = ((System.Windows.Controls.Menu)(target));
                return;

            case 2:
                this.StartWork = ((System.Windows.Controls.MenuItem)(target));
                return;

            case 3:
                this.OpenFile = ((System.Windows.Controls.MenuItem)(target));

            #line 21 "..\..\MainWindow.xaml"
                this.OpenFile.Click += new System.Windows.RoutedEventHandler(this.OpenFile_MenuItem_Click);

            #line default
            #line hidden
                return;

            case 4:
                this.AddFile = ((System.Windows.Controls.MenuItem)(target));

            #line 22 "..\..\MainWindow.xaml"
                this.AddFile.Click += new System.Windows.RoutedEventHandler(this.AddFile_Click);

            #line default
            #line hidden
                return;

            case 5:
                this.One_GraphButton = ((System.Windows.Controls.MenuItem)(target));

            #line 34 "..\..\MainWindow.xaml"
                this.One_GraphButton.Click += new System.Windows.RoutedEventHandler(this.One_Graph_Click);

            #line default
            #line hidden
                return;

            case 6:
                this.Many_GraphButton = ((System.Windows.Controls.MenuItem)(target));

            #line 35 "..\..\MainWindow.xaml"
                this.Many_GraphButton.Click += new System.Windows.RoutedEventHandler(this.Many_Graph_Click);

            #line default
            #line hidden
                return;

            case 7:
                this.DelLastLine = ((System.Windows.Controls.MenuItem)(target));

            #line 47 "..\..\MainWindow.xaml"
                this.DelLastLine.Click += new System.Windows.RoutedEventHandler(this.DelChosen_Click);

            #line default
            #line hidden
                return;

            case 8:
                this.DelAllLines = ((System.Windows.Controls.MenuItem)(target));

            #line 48 "..\..\MainWindow.xaml"
                this.DelAllLines.Click += new System.Windows.RoutedEventHandler(this.DelAllLines_Click);

            #line default
            #line hidden
                return;

            case 9:
                this.DelAllTitles = ((System.Windows.Controls.MenuItem)(target));

            #line 49 "..\..\MainWindow.xaml"
                this.DelAllTitles.Click += new System.Windows.RoutedEventHandler(this.DelAllTitles_Click);

            #line default
            #line hidden
                return;

            case 10:
                this.DelAllGraphs = ((System.Windows.Controls.MenuItem)(target));

            #line 50 "..\..\MainWindow.xaml"
                this.DelAllGraphs.Click += new System.Windows.RoutedEventHandler(this.DelAllGraphs_Click);

            #line default
            #line hidden
                return;

            case 11:
                this.SaveImage = ((System.Windows.Controls.MenuItem)(target));

            #line 62 "..\..\MainWindow.xaml"
                this.SaveImage.Click += new System.Windows.RoutedEventHandler(this.SaveImage_Click);

            #line default
            #line hidden
                return;

            case 12:
                this.PageOptions = ((System.Windows.Controls.MenuItem)(target));

            #line 66 "..\..\MainWindow.xaml"
                this.PageOptions.Click += new System.Windows.RoutedEventHandler(this.PageOptions_Click);

            #line default
            #line hidden
                return;

            case 13:
                this.PrintOptions = ((System.Windows.Controls.MenuItem)(target));

            #line 67 "..\..\MainWindow.xaml"
                this.PrintOptions.Click += new System.Windows.RoutedEventHandler(this.PrintOptions_Click);

            #line default
            #line hidden
                return;

            case 14:
                this.PreviewPrint = ((System.Windows.Controls.MenuItem)(target));

            #line 68 "..\..\MainWindow.xaml"
                this.PreviewPrint.Click += new System.Windows.RoutedEventHandler(this.PreviewPrint_Click);

            #line default
            #line hidden
                return;

            case 15:
                this.DelKursorButton = ((System.Windows.Controls.MenuItem)(target));

            #line 80 "..\..\MainWindow.xaml"
                this.DelKursorButton.Click += new System.Windows.RoutedEventHandler(this.DelKursorButton_Click);

            #line default
            #line hidden
                return;

            case 16:
                this.File_Menu = ((System.Windows.Controls.MenuItem)(target));
                return;

            case 17:
                this.SaveMenuItem = ((System.Windows.Controls.MenuItem)(target));

            #line 84 "..\..\MainWindow.xaml"
                this.SaveMenuItem.Click += new System.Windows.RoutedEventHandler(this.SaveMenuItem_Click);

            #line default
            #line hidden
                return;

            case 18:
                this.LoadMenuItem = ((System.Windows.Controls.MenuItem)(target));

            #line 85 "..\..\MainWindow.xaml"
                this.LoadMenuItem.Click += new System.Windows.RoutedEventHandler(this.LoadMenuItem_Click);

            #line default
            #line hidden
                return;

            case 19:
                this.NewBeginning = ((System.Windows.Controls.MenuItem)(target));

            #line 86 "..\..\MainWindow.xaml"
                this.NewBeginning.Click += new System.Windows.RoutedEventHandler(this.NewBeginning_Click);

            #line default
            #line hidden
                return;

            case 20:
                this.LoadSvrkNames = ((System.Windows.Controls.MenuItem)(target));

            #line 87 "..\..\MainWindow.xaml"
                this.LoadSvrkNames.Click += new System.Windows.RoutedEventHandler(this.LoadSvrkNames_Click);

            #line default
            #line hidden
                return;

            case 21:
                this.Calculations_Menu = ((System.Windows.Controls.MenuItem)(target));
                return;

            case 22:
                this.DiffEffModule = ((System.Windows.Controls.MenuItem)(target));

            #line 91 "..\..\MainWindow.xaml"
                this.DiffEffModule.Click += new System.Windows.RoutedEventHandler(this.DiffEffModule_Click);

            #line default
            #line hidden
                return;

            case 23:
                this.Values_Module = ((System.Windows.Controls.MenuItem)(target));

            #line 92 "..\..\MainWindow.xaml"
                this.Values_Module.Click += new System.Windows.RoutedEventHandler(this.Values_Module_Click);

            #line default
            #line hidden
                return;

            case 24:
                this.CalculOptions = ((System.Windows.Controls.MenuItem)(target));

            #line 93 "..\..\MainWindow.xaml"
                this.CalculOptions.Click += new System.Windows.RoutedEventHandler(this.CalculOptions_Click);

            #line default
            #line hidden
                return;

            case 25:
                this.Axes_Menu = ((System.Windows.Controls.MenuItem)(target));
                return;

            case 26:
                this.X_Format = ((System.Windows.Controls.MenuItem)(target));

            #line 96 "..\..\MainWindow.xaml"
                this.X_Format.Click += new System.Windows.RoutedEventHandler(this.X_Format_Click);

            #line default
            #line hidden
                return;

            case 27:
                this.Yleft_Format = ((System.Windows.Controls.MenuItem)(target));

            #line 97 "..\..\MainWindow.xaml"
                this.Yleft_Format.Click += new System.Windows.RoutedEventHandler(this.Yleft_Format_Click);

            #line default
            #line hidden
                return;

            case 28:
                this.Yright_Format = ((System.Windows.Controls.MenuItem)(target));

            #line 98 "..\..\MainWindow.xaml"
                this.Yright_Format.Click += new System.Windows.RoutedEventHandler(this.Yright_Format_Click);

            #line default
            #line hidden
                return;

            case 29:
                this.Y2left_Format = ((System.Windows.Controls.MenuItem)(target));

            #line 99 "..\..\MainWindow.xaml"
                this.Y2left_Format.Click += new System.Windows.RoutedEventHandler(this.Y2left_Format_Click);

            #line default
            #line hidden
                return;

            case 30:
                this.Y2right_Format = ((System.Windows.Controls.MenuItem)(target));

            #line 100 "..\..\MainWindow.xaml"
                this.Y2right_Format.Click += new System.Windows.RoutedEventHandler(this.Y2right_Format_Click);

            #line default
            #line hidden
                return;

            case 31:
                this.TabCont1 = ((System.Windows.Controls.TabControl)(target));
                return;

            case 32:
                this.Points_Tab = ((System.Windows.Controls.TabItem)(target));
                return;

            case 33:
                this.Points_List = ((System.Windows.Controls.ListView)(target));
                return;

            case 34:

            #line 147 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.ContextMenu)(target)).Closed += new System.Windows.RoutedEventHandler(this.ContextMenu_Closed);

            #line default
            #line hidden
                return;

            case 35:
                this.Delete = ((System.Windows.Controls.MenuItem)(target));

            #line 148 "..\..\MainWindow.xaml"
                this.Delete.Click += new System.Windows.RoutedEventHandler(this.Delete_Click);

            #line default
            #line hidden
                return;

            case 36:
                this.List_Parameters = ((System.Windows.Controls.ListView)(target));

            #line 154 "..\..\MainWindow.xaml"
                this.List_Parameters.MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.List_Parameters_MouseDoubleClick);

            #line default
            #line hidden

            #line 154 "..\..\MainWindow.xaml"
                this.List_Parameters.MouseLeftButtonUp += new System.Windows.Input.MouseButtonEventHandler(this.List_Parameters_MouseLeftButtonUp);

            #line default
            #line hidden
                return;

            case 37:

            #line 163 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.ContextMenu)(target)).Closed += new System.Windows.RoutedEventHandler(this.ContextMenu_Closed);

            #line default
            #line hidden
                return;

            case 38:
                this.bLeft = ((System.Windows.Controls.MenuItem)(target));

            #line 164 "..\..\MainWindow.xaml"
                this.bLeft.Click += new System.Windows.RoutedEventHandler(this.BuildLeft_Click);

            #line default
            #line hidden
                return;

            case 39:
                this.bRight = ((System.Windows.Controls.MenuItem)(target));

            #line 165 "..\..\MainWindow.xaml"
                this.bRight.Click += new System.Windows.RoutedEventHandler(this.BuildRight_Click);

            #line default
            #line hidden
                return;

            case 40:
                this.bsLeft = ((System.Windows.Controls.MenuItem)(target));

            #line 166 "..\..\MainWindow.xaml"
                this.bsLeft.Click += new System.Windows.RoutedEventHandler(this.bsLeft_Click);

            #line default
            #line hidden
                return;

            case 41:
                this.bsRight = ((System.Windows.Controls.MenuItem)(target));

            #line 167 "..\..\MainWindow.xaml"
                this.bsRight.Click += new System.Windows.RoutedEventHandler(this.bsRight_Click);

            #line default
            #line hidden
                return;

            case 42:
                this.ToCSV = ((System.Windows.Controls.MenuItem)(target));

            #line 168 "..\..\MainWindow.xaml"
                this.ToCSV.Click += new System.Windows.RoutedEventHandler(this.ToCSV_Click);

            #line default
            #line hidden
                return;

            case 43:
                this.Substraction_Men_Item = ((System.Windows.Controls.MenuItem)(target));

            #line 169 "..\..\MainWindow.xaml"
                this.Substraction_Men_Item.Click += new System.Windows.RoutedEventHandler(this.Substraction_Men_Item_Click);

            #line default
            #line hidden
                return;

            case 44:
                this.Delete_Men_Item = ((System.Windows.Controls.MenuItem)(target));

            #line 170 "..\..\MainWindow.xaml"
                this.Delete_Men_Item.Click += new System.Windows.RoutedEventHandler(this.Delete_Men_Item_Click);

            #line default
            #line hidden
                return;

            case 45:
                this.LabelSecs = ((System.Windows.Controls.Label)(target));
                return;

            case 46:
                this.TextBoxTime = ((System.Windows.Controls.TextBox)(target));
                return;

            case 47:
                this.ButtonShift = ((System.Windows.Controls.Button)(target));

            #line 184 "..\..\MainWindow.xaml"
                this.ButtonShift.Click += new System.Windows.RoutedEventHandler(this.ButtonShift_Click);

            #line default
            #line hidden
                return;

            case 48:
                this.TextBoxStartTime = ((System.Windows.Controls.TextBox)(target));
                return;

            case 49:
                this.TextBoxEndTime = ((System.Windows.Controls.TextBox)(target));
                return;

            case 50:
                this.ButtonCutTime = ((System.Windows.Controls.Button)(target));

            #line 196 "..\..\MainWindow.xaml"
                this.ButtonCutTime.Click += new System.Windows.RoutedEventHandler(this.ButtonCutTime_Click);

            #line default
            #line hidden
                return;

            case 51:
                this.Plot_Tab = ((System.Windows.Controls.TabItem)(target));
                return;

            case 52:
                this.ChartHost = ((System.Windows.Forms.Integration.WindowsFormsHost)(target));
                return;

            case 53:
                this.Chart1 = ((System.Windows.Forms.DataVisualization.Charting.Chart)(target));
                return;

            case 54:
                this.TextBox_Arena_N = ((System.Windows.Controls.TextBox)(target));
                return;

            case 55:
                this.ButtonDrowLine = ((System.Windows.Controls.Button)(target));

            #line 233 "..\..\MainWindow.xaml"
                this.ButtonDrowLine.Click += new System.Windows.RoutedEventHandler(this.ButtonDrowLine_Click);

            #line default
            #line hidden
                return;

            case 56:
                this.ButtonDrow_Title = ((System.Windows.Controls.Button)(target));

            #line 234 "..\..\MainWindow.xaml"
                this.ButtonDrow_Title.Click += new System.Windows.RoutedEventHandler(this.ButtonDrowTitle_Click);

            #line default
            #line hidden
                return;

            case 57:
                this.LabelXcoord = ((System.Windows.Controls.Label)(target));
                return;

            case 58:
                this.LabelYcoord = ((System.Windows.Controls.Label)(target));
                return;

            case 59:
                this.AreasList = ((System.Windows.Controls.ComboBox)(target));

            #line 241 "..\..\MainWindow.xaml"
                this.AreasList.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.AreasList_Selected);

            #line default
            #line hidden
                return;

            case 60:
                this.RezultCurrent_Tab = ((System.Windows.Controls.TabItem)(target));
                return;

            case 61:
                this.TableCurrent = ((System.Windows.Controls.DataGrid)(target));
                return;
            }
            this._contentLoaded = true;
        }
Beispiel #59
0
        public void AddSeries(string name, bool primary, int size, string type, string color)
        {
            try
            {
                System.Windows.Forms.DataVisualization.Charting.Chart current = uxChart;
                current.Series.Add(name);
                current.Series[name].LegendText = name;
                if (!primary)
                {
                    current.Series[name].YAxisType = System.Windows.Forms.DataVisualization.Charting.AxisType.Secondary;
                }
                switch (type)
                {
                case "line":
                    current.Series[name].ChartType = System.Windows.Forms.DataVisualization.Charting.SeriesChartType.Line;
                    break;

                case "stepline":
                    current.Series[name].ChartType = System.Windows.Forms.DataVisualization.Charting.SeriesChartType.StepLine;
                    break;
                }
                current.Series[name].BorderWidth     = size;
                current.Series[name].BorderDashStyle = System.Windows.Forms.DataVisualization.Charting.ChartDashStyle.Solid;
                switch (color)
                {
                case "red":    //ex: red
                    current.Series[name].Color = Color.Red;
                    break;

                case "yellow":
                    current.Series[name].Color = Color.Yellow;
                    break;

                case "green":
                    current.Series[name].Color = Color.Green;
                    break;

                case "blue":
                    current.Series[name].Color = Color.Blue;
                    break;

                case "orange":
                    current.Series[name].Color = Color.Orange;
                    break;

                case "black":
                    current.Series[name].Color = Color.Black;
                    break;

                case "silver":
                    current.Series[name].Color = Color.Silver;
                    break;

                default:    // default if it is not valid
                    current.Series[name].Color = Color.Purple;
                    break;
                }
            }
            catch (Exception e)
            {
                MessageBox.Show(e.ToString());
            }
        }
Beispiel #60
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.Series    series2    = new System.Windows.Forms.DataVisualization.Charting.Series();
     System.Windows.Forms.DataVisualization.Charting.Series    series3    = new System.Windows.Forms.DataVisualization.Charting.Series();
     System.Windows.Forms.DataVisualization.Charting.Series    series4    = new System.Windows.Forms.DataVisualization.Charting.Series();
     this.chart1                 = new System.Windows.Forms.DataVisualization.Charting.Chart();
     this.labelSampleComment     = new System.Windows.Forms.Label();
     this.panel1                 = new System.Windows.Forms.Panel();
     this.checkBoxGrouped        = new System.Windows.Forms.CheckBox();
     this.checkBoxShow3D         = new System.Windows.Forms.CheckBox();
     this.checkBoxShowMargin     = new System.Windows.Forms.CheckBox();
     this.checkBoxShowLabels     = new System.Windows.Forms.CheckBox();
     this.checkBoxHundredPercent = new System.Windows.Forms.CheckBox();
     this.comboBoxChartType      = new System.Windows.Forms.ComboBox();
     this.label1                 = new System.Windows.Forms.Label();
     this.label2                 = new System.Windows.Forms.Label();
     ((System.ComponentModel.ISupportInitialize)(this.chart1)).BeginInit();
     this.panel1.SuspendLayout();
     this.SuspendLayout();
     //
     // chart1
     //
     this.chart1.BackColor                = System.Drawing.Color.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.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.BorderDashStyle    = System.Windows.Forms.DataVisualization.Charting.ChartDashStyle.Solid;
     chartArea1.Name            = "Default";
     chartArea1.Position.Auto   = false;
     chartArea1.Position.Height = 92F;
     chartArea1.Position.Width  = 92F;
     chartArea1.Position.X      = 2F;
     chartArea1.Position.Y      = 3F;
     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, 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.ChartType    = System.Windows.Forms.DataVisualization.Charting.SeriesChartType.StackedArea100;
     series1.Color        = System.Drawing.Color.FromArgb(((int)(((byte)(220)))), ((int)(((byte)(65)))), ((int)(((byte)(140)))), ((int)(((byte)(240)))));
     series1.Legend       = "Default";
     series1.Name         = "Series1";
     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.StackedArea100;
     series2.Color        = System.Drawing.Color.FromArgb(((int)(((byte)(220)))), ((int)(((byte)(252)))), ((int)(((byte)(180)))), ((int)(((byte)(65)))));
     series2.Legend       = "Default";
     series2.Name         = "Series2";
     series3.BorderColor  = System.Drawing.Color.FromArgb(((int)(((byte)(180)))), ((int)(((byte)(26)))), ((int)(((byte)(59)))), ((int)(((byte)(105)))));
     series3.ChartArea    = "Default";
     series3.ChartType    = System.Windows.Forms.DataVisualization.Charting.SeriesChartType.StackedArea100;
     series3.Color        = System.Drawing.Color.FromArgb(((int)(((byte)(220)))), ((int)(((byte)(224)))), ((int)(((byte)(64)))), ((int)(((byte)(10)))));
     series3.Legend       = "Default";
     series3.Name         = "Series3";
     series4.BorderColor  = System.Drawing.Color.FromArgb(((int)(((byte)(180)))), ((int)(((byte)(26)))), ((int)(((byte)(59)))), ((int)(((byte)(105)))));
     series4.ChartArea    = "Default";
     series4.ChartType    = System.Windows.Forms.DataVisualization.Charting.SeriesChartType.StackedArea100;
     series4.Color        = System.Drawing.Color.FromArgb(((int)(((byte)(220)))), ((int)(((byte)(5)))), ((int)(((byte)(100)))), ((int)(((byte)(146)))));
     series4.Legend       = "Default";
     series4.Name         = "Series4";
     this.chart1.Series.Add(series1);
     this.chart1.Series.Add(series2);
     this.chart1.Series.Add(series3);
     this.chart1.Series.Add(series4);
     this.chart1.Size     = new System.Drawing.Size(412, 296);
     this.chart1.TabIndex = 1;
     //
     // 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 Stacked Area, Stacked Bar, Stacked Column, 100% Stacked " +
                                        "Area, 100% Stacked Bar, and 100% Stacked Column chart types.";
     this.labelSampleComment.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // panel1
     //
     this.panel1.Controls.Add(this.checkBoxGrouped);
     this.panel1.Controls.Add(this.checkBoxShow3D);
     this.panel1.Controls.Add(this.checkBoxShowMargin);
     this.panel1.Controls.Add(this.checkBoxShowLabels);
     this.panel1.Controls.Add(this.checkBoxHundredPercent);
     this.panel1.Controls.Add(this.comboBoxChartType);
     this.panel1.Controls.Add(this.label1);
     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;
     //
     // checkBoxGrouped
     //
     this.checkBoxGrouped.CheckAlign      = System.Drawing.ContentAlignment.MiddleRight;
     this.checkBoxGrouped.Location        = new System.Drawing.Point(88, 176);
     this.checkBoxGrouped.Name            = "checkBoxGrouped";
     this.checkBoxGrouped.Size            = new System.Drawing.Size(96, 24);
     this.checkBoxGrouped.TabIndex        = 6;
     this.checkBoxGrouped.Text            = "&Grouped:";
     this.checkBoxGrouped.TextAlign       = System.Drawing.ContentAlignment.MiddleRight;
     this.checkBoxGrouped.CheckedChanged += new System.EventHandler(this.checkBoxGrouped_CheckedChanged);
     //
     // checkBoxShow3D
     //
     this.checkBoxShow3D.CheckAlign      = System.Drawing.ContentAlignment.MiddleRight;
     this.checkBoxShow3D.Location        = new System.Drawing.Point(15, 144);
     this.checkBoxShow3D.Name            = "checkBoxShow3D";
     this.checkBoxShow3D.Size            = new System.Drawing.Size(168, 24);
     this.checkBoxShow3D.TabIndex        = 5;
     this.checkBoxShow3D.Text            = "Display chart as 3&D:";
     this.checkBoxShow3D.TextAlign       = System.Drawing.ContentAlignment.MiddleRight;
     this.checkBoxShow3D.CheckedChanged += new System.EventHandler(this.checkBoxShow3D_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(15, 112);
     this.checkBoxShowMargin.Name            = "checkBoxShowMargin";
     this.checkBoxShowMargin.Size            = new System.Drawing.Size(168, 24);
     this.checkBoxShowMargin.TabIndex        = 4;
     this.checkBoxShowMargin.Text            = "Show X Axis &Margin:";
     this.checkBoxShowMargin.TextAlign       = System.Drawing.ContentAlignment.MiddleRight;
     this.checkBoxShowMargin.CheckedChanged += new System.EventHandler(this.checkBoxShowLabels_CheckedChanged_1);
     //
     // checkBoxShowLabels
     //
     this.checkBoxShowLabels.CheckAlign      = System.Drawing.ContentAlignment.MiddleRight;
     this.checkBoxShowLabels.Location        = new System.Drawing.Point(15, 80);
     this.checkBoxShowLabels.Name            = "checkBoxShowLabels";
     this.checkBoxShowLabels.Size            = new System.Drawing.Size(168, 24);
     this.checkBoxShowLabels.TabIndex        = 3;
     this.checkBoxShowLabels.Text            = "Show Point &Labels:";
     this.checkBoxShowLabels.TextAlign       = System.Drawing.ContentAlignment.MiddleRight;
     this.checkBoxShowLabels.CheckedChanged += new System.EventHandler(this.checkBoxShowLabels_CheckedChanged_1);
     //
     // checkBoxHundredPercent
     //
     this.checkBoxHundredPercent.CheckAlign      = System.Drawing.ContentAlignment.MiddleRight;
     this.checkBoxHundredPercent.Location        = new System.Drawing.Point(15, 48);
     this.checkBoxHundredPercent.Name            = "checkBoxHundredPercent";
     this.checkBoxHundredPercent.Size            = new System.Drawing.Size(168, 24);
     this.checkBoxHundredPercent.TabIndex        = 2;
     this.checkBoxHundredPercent.Text            = "100% &Stacked:";
     this.checkBoxHundredPercent.TextAlign       = System.Drawing.ContentAlignment.MiddleRight;
     this.checkBoxHundredPercent.CheckedChanged += new System.EventHandler(this.checkBoxShowLabels_CheckedChanged_1);
     //
     // comboBoxChartType
     //
     this.comboBoxChartType.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.comboBoxChartType.Items.AddRange(new object[] {
         "StackedArea",
         "StackedBar",
         "StackedColumn"
     });
     this.comboBoxChartType.Location              = new System.Drawing.Point(168, 16);
     this.comboBoxChartType.Name                  = "comboBoxChartType";
     this.comboBoxChartType.Size                  = new System.Drawing.Size(121, 22);
     this.comboBoxChartType.TabIndex              = 1;
     this.comboBoxChartType.SelectedIndexChanged += new System.EventHandler(this.comboBoxChartType_SelectedIndexChanged);
     //
     // label1
     //
     this.label1.Location  = new System.Drawing.Point(44, 16);
     this.label1.Name      = "label1";
     this.label1.Size      = new System.Drawing.Size(120, 23);
     this.label1.TabIndex  = 0;
     this.label1.Text      = "Chart Type:";
     this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // 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, 357);
     this.label2.Name     = "label2";
     this.label2.Size     = new System.Drawing.Size(702, 48);
     this.label2.TabIndex = 3;
     this.label2.Text     = "When using the Stacked bar or Stacked column types, you can group different serie" +
                            "s into separate groups by setting the StackedGroupName custom attribute.";
     this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // StackedChartType
     //
     this.BackColor = System.Drawing.Color.White;
     this.Controls.Add(this.label2);
     this.Controls.Add(this.panel1);
     this.Controls.Add(this.labelSampleComment);
     this.Controls.Add(this.chart1);
     this.Font  = new System.Drawing.Font("Verdana", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.Name  = "StackedChartType";
     this.Size  = new System.Drawing.Size(728, 480);
     this.Load += new System.EventHandler(this.StackedChartType_Load);
     ((System.ComponentModel.ISupportInitialize)(this.chart1)).EndInit();
     this.panel1.ResumeLayout(false);
     this.ResumeLayout(false);
 }