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 PrettyChart() { var title1 = new Title {Name = "Title1", Text = "<TITLE>"}; Titles.Add(title1); var area = new ChartArea(); area.AxisY.LabelStyle.Enabled = true; area.AxisY.Interval = 1.0; area.AxisX.LabelStyle.Enabled = true; area.Name = "ChartArea2"; var legend1 = new Legend {Alignment = StringAlignment.Center, Docking = Docking.Top, Name = "Legend1"}; Legends.Add(legend1); var series2 = new Series { ChartArea = "ChartArea2", Color = Color.Blue, Legend = "Legend1", Name = "Series2", XValueType = ChartValueType.Int32 }; ChartAreas.Add(area); Series.Add(series2); Dock = DockStyle.Fill; Location = new Point(0, 0); Titles[0].Text = "Age Distribution"; Series[0].Name = "Number of People"; }
private Chart CreatePieChart(Legend legend, Title title, Dictionary<string, int> dpc) { var chart = new Chart(); chart.Size = new Size(600, 450); chart.Titles.Add(title); var chartArea = new ChartArea(); chart.ChartAreas.Add(chartArea); var series = new Series(); series.Name = "series"; series.ChartType = SeriesChartType.Pie; //chart.Legends.Add(legend); chart.Series.Add(series); foreach (var entry in dpc) { if(entry.Value > 0) chart.Series["series"].Points.AddXY(entry.Key, entry.Value); } chart.Dock = DockStyle.Fill; return chart; }
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(); }
/// <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.Title title1 = new System.Windows.Forms.DataVisualization.Charting.Title(); this.chart1 = new System.Windows.Forms.DataVisualization.Charting.Chart(); ((System.ComponentModel.ISupportInitialize)(this.chart1)).BeginInit(); this.SuspendLayout(); // // chart1 // this.chart1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); chartArea1.AxisX.Title = "Start Time"; chartArea1.AxisY.Title = "Time (sec)"; chartArea1.Name = "ChartArea1"; this.chart1.ChartAreas.Add(chartArea1); legend1.Name = "Legend1"; this.chart1.Legends.Add(legend1); this.chart1.Location = new System.Drawing.Point(2, 1); this.chart1.Name = "chart1"; series1.ChartArea = "ChartArea1"; series1.ChartType = System.Windows.Forms.DataVisualization.Charting.SeriesChartType.Line; series1.Legend = "Legend1"; series1.Name = "BootTime"; series2.ChartArea = "ChartArea1"; series2.ChartType = System.Windows.Forms.DataVisualization.Charting.SeriesChartType.Line; series2.Legend = "Legend1"; series2.Name = "MainPathBootTime"; series3.ChartArea = "ChartArea1"; series3.ChartType = System.Windows.Forms.DataVisualization.Charting.SeriesChartType.Line; series3.Legend = "Legend1"; series3.Name = "BootPostBootTime"; this.chart1.Series.Add(series1); this.chart1.Series.Add(series2); this.chart1.Series.Add(series3); this.chart1.Size = new System.Drawing.Size(734, 502); this.chart1.TabIndex = 0; this.chart1.Text = "chart1"; title1.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold); title1.Name = "MainTitle"; title1.Text = "Boot Times"; this.chart1.Titles.Add(title1); // // BootTimesPlotForm // this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(738, 501); this.Controls.Add(this.chart1); this.Name = "BootTimesPlotForm"; this.Text = "Boot Times"; ((System.ComponentModel.ISupportInitialize)(this.chart1)).EndInit(); this.ResumeLayout(false); }
private static void CreatePlotAndSave(TestItem testItem) { // Create a Chart var chart = new Chart(); // Chart title var chartTitle = new Title(testItem.Label); chart.Titles.Add(chartTitle); // Create Chart Area ChartArea chartArea = new ChartArea(); chartArea.AxisX.Title = "Milestone title"; chartArea.AxisY.Title = "ms"; chartArea.AxisX.IsMarginVisible = false; for (int i = 0; i < testItem.MilestoneLabels.Length;i++) { chartArea.AxisX.CustomLabels.Add(i + 0.5, i + 1.5, testItem.MilestoneLabels[i]); } // Legend Legend legend = new Legend("default"); legend.Docking = Docking.Bottom; chart.Legends.Add(legend); // Add Chart Area to the Chart chart.ChartAreas.Add(chartArea); foreach (var line in testItem.Lines) { Series series = new Series(); series.Legend = "default"; series.LegendText = line.Label; series.ChartType = SeriesChartType.Line; series.MarkerStyle = MarkerStyle.Circle; series.BorderWidth = 2; series.MarkerSize = 5; for (int i = 0; i < line.Points.Length; i++) { series.Points.Add(line.Points[i].GetMinTime()); } chart.Series.Add(series); } // Set chart control location chart.Location = new System.Drawing.Point(16, 48); // Set Chart control size chart.Size = new System.Drawing.Size(400, 300); var fileName = GenerateFileName(testItem); var file = new FileStream(fileName, FileMode.Create); chart.SaveImage(file, ChartImageFormat.Png); file.Close(); Console.WriteLine(String.Format("Report: \"{0}\" created.", fileName)); }
public Form1() { InitializeComponent(); // clear chart1.Series.Clear(); chart1.ChartAreas.Clear(); chart1.Titles.Clear(); // chartarea ChartArea area1 = new ChartArea("Area1"); area1.AxisX.Title = "Title1-XAxis"; area1.AxisY.Title = "Title1-YAxis"; ChartArea area2 = new ChartArea("Area2"); area2.AxisX.Title = "Title2-XAxis"; area2.AxisY.Title = "Title2-YAxis"; Title title = new Title("Title"); Title title1 = new Title("Title1"); Title title2 = new Title("Title2"); title1.DockedToChartArea = "Area1"; // ChartAreaとの紐付 title2.DockedToChartArea = "Area2"; // ChartAreaとの紐付 // series Random rdm = new Random(); Series seriesLine = new Series(); seriesLine.ChartType = SeriesChartType.Line; seriesLine.LegendText = "Legend:Line"; seriesLine.BorderWidth = 2; seriesLine.MarkerStyle = MarkerStyle.Circle; seriesLine.MarkerSize = 12; for (int i = 0; i < 10; i++) { seriesLine.Points.Add(new DataPoint(i, rdm.Next(0, 210))); } seriesLine.ChartArea = "Area1"; // ChartAreaとの紐付 Series seriesColumn = new Series(); seriesColumn.LegendText = "Legend:Column"; seriesColumn.ChartType = SeriesChartType.Column; for (int i = 0; i < 10; i++) { seriesColumn.Points.Add(new DataPoint(i, rdm.Next(0, 210))); } seriesColumn.ChartArea = "Area2"; // ChartAreaとの紐付 chart1.Titles.Add(title); chart1.Titles.Add(title1); chart1.Titles.Add(title2); chart1.ChartAreas.Add(area1); chart1.ChartAreas.Add(area2); chart1.Series.Add(seriesColumn); chart1.Series.Add(seriesLine); }
private void AddTitle(Chart chart, string text) { var title = new Title { Text = text, Font = new Font("Arial", 7f, FontStyle.Bold), ForeColor = Color.FromArgb(45, 45, 48), Docking = Docking.Bottom, }; chart.Titles.Add(title); }
/// <summary> /// Sets up the look and style of the chart, Title. /// </summary> /// <param name="title">Title of the chart.</param> private void ChartTitle(string title) { var titles1 = new System.Windows.Forms.DataVisualization.Charting.Title { Name = title, Text = title + "Graph Data", Visible = true, }; this.chart1.Titles.Add(titles1); }
/// <summary> /// Sets up the look and style of the chart, Title. /// </summary> /// <param name="title">Title of the chart.</param> private void ChartTitle(string title) { var titles1 = new System.Windows.Forms.DataVisualization.Charting.Title { Name = title, Text = title + " Data", Visible = true, ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))), }; this.chart1.Titles.Add(titles1); }
private void BuildChartPie() { ChartArea chartArea1 = new ChartArea(); chartArea1.Area3DStyle.IsClustered = true; chartArea1.Area3DStyle.IsRightAngleAxes = false; chartArea1.Area3DStyle.Perspective = 10; chartArea1.Area3DStyle.PointGapDepth = 0; chartArea1.Area3DStyle.Rotation = 0; 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.Transparent; 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.BorderWidth = 0; chartArea1.Name = "Default"; chartArea1.ShadowColor = System.Drawing.Color.Transparent; this.chartPie.ChartAreas.Add(chartArea1); Legend legend1 = new Legend(); legend1.Alignment = System.Drawing.StringAlignment.Center; legend1.BackColor = System.Drawing.Color.Transparent; legend1.Docking = Docking.Bottom; legend1.Enabled = true; legend1.Font = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold); legend1.IsTextAutoFit = true; legend1.Name = "Default"; this.chartPie.Legends.Add(legend1); Title title1 = new Title(); 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 = "Title"; title1.ShadowColor = System.Drawing.Color.FromArgb(((int)(((byte)(32)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); title1.ShadowOffset = 3; title1.Text = "销量前十的产品统计饼图"; this.chartPie.Titles.Add(title1); Series series1 = new Series(); series1.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(180)))), ((int)(((byte)(26)))), ((int)(((byte)(59)))), ((int)(((byte)(105))))); series1.ChartArea = "Default"; series1["PieLabelStyle"] = "Outside"; series1["PieDrawingStyle"] = "Concave"; series1.ChartType = SeriesChartType.Pie; series1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(220)))), ((int)(((byte)(65)))), ((int)(((byte)(140)))), ((int)(((byte)(240))))); series1.Legend = "Default"; series1.Name = "Default"; this.chartPie.Series.Add(series1); }
public FormChart(string title) { InitializeComponent(); Title t = new Title(title); t.Font = new System.Drawing.Font(t.Font.FontFamily, 20f); chartPlot.Titles.Add(t); labelOptimal.Text = string.Empty; labelSchedulable.Text = string.Empty; labelMinPi.Text = string.Empty; labelMinEms.Text = string.Empty; labelMinTms.Text = string.Empty; }
//Creating a fun little graph public static void CreateGraph(YearMap yearMap) { //Order the list of keys to get all of the years and find out how many years there were that someone lived in var orderedList = yearMap.YearVals.Keys.OrderBy(x => x).ToArray(); var numberOfYears = orderedList.Count(); var xvals = new int[numberOfYears]; var yvals = new int[numberOfYears]; for (int i = 0; i < yvals.Length; i++) { yvals[i] = yearMap.YearVals[orderedList[i]]; xvals[i] = orderedList[i]; } var chart = new Chart(); chart.Size = new Size(1000, 1000); Title title = new Title("Number of people alive each year"); title.Font = new Font("Calibri", 16, System.Drawing.FontStyle.Bold); chart.Titles.Add(title); var chartArea = new ChartArea(); chartArea.AxisX.LabelStyle.Font = new Font("Calibri", 8); chartArea.AxisY.LabelStyle.Font = new Font("Calibri", 8); chartArea.AxisY.Minimum = 0; chartArea.AxisX.Minimum = 1900; chartArea.AxisX.Maximum = 2000; chartArea.AxisX.Title = "Years"; chartArea.AxisX.TitleFont = new Font("Calibri", 14, System.Drawing.FontStyle.Bold); chartArea.AxisY.Title = "Number of People Alive"; chartArea.AxisY.TitleFont = new Font("Calibri", 14, System.Drawing.FontStyle.Bold); chartArea.AxisY.Interval = 1; chartArea.AxisX.Interval = 5; chart.ChartAreas.Add(chartArea); var series = new Series(); series.Name = "Series"; series.ChartType = SeriesChartType.Bar; chart.Series.Add(series); chart.Series["Series"].Points.DataBindXY(xvals, yvals); chart.Invalidate(); chart.SaveImage("../../Output/chart.png", ChartImageFormat.Png); }
public Chart GetChart(int DescriptorIdx) { //if (ListDescriptors[CurrentDescriptorToDisplay].GetAssociatedType().GetBinNumber() == 1) return null; List<double[]> CurrentHisto = GetValues(DescriptorIdx).CreateHistogram(100, false); Series CurrentSeries = new Series(); //CurrentSeries.ShadowOffset = 2; for (int IdxValue = 0; IdxValue < CurrentHisto[0].Length; IdxValue++) CurrentSeries.Points.AddXY(CurrentHisto[0][IdxValue], CurrentHisto[1][IdxValue]); ChartArea CurrentChartArea = new ChartArea("ChartArea" + DescriptorIdx); CurrentChartArea.BorderColor = Color.White; Chart ChartToReturn = new Chart(); ChartToReturn.ChartAreas.Add(CurrentChartArea); // ChartToReturn.TextAntiAliasingQuality = TextAntiAliasingQuality.High; CurrentChartArea.BackColor = Color.White; CurrentChartArea.Axes[1].LabelStyle.Enabled = false; CurrentChartArea.Axes[1].MajorGrid.Enabled = false; CurrentChartArea.Axes[0].Enabled = AxisEnabled.False; CurrentChartArea.Axes[1].Enabled = AxisEnabled.False; CurrentChartArea.Axes[0].MajorGrid.Enabled = false; // CurrentChartArea.Axes[0].Title = ListDescriptors[CurrentDescriptorToDisplay].GetName(); CurrentSeries.ChartType = SeriesChartType.Line; CurrentSeries.Color = Color.Black; // CurrentSeries.BorderWidth = 3; CurrentSeries.ChartArea = "ChartArea" + DescriptorIdx; // CurrentSeries.Name = "Series" + PosX + "x" + PosY; ChartToReturn.Series.Add(CurrentSeries); Title CurrentTitle = new Title("Reference"); // ChartToReturn.Titles.Add(CurrentTitle); // ChartToReturn.Width = 100; // ChartToReturn.Height = 48; // ChartToReturn.Update(); // ChartToReturn.Show(); return ChartToReturn; }
public Form1() { InitializeComponent(); // clear chart1.Series.Clear(); chart1.ChartAreas.Clear(); chart1.Titles.Clear(); Title title1 = new Title("Histgram"); // series Series seriesColumn = new Series(); seriesColumn.LegendText = "Histgram"; seriesColumn.ChartType = SeriesChartType.Column; // 正規乱数を作る mRand = new Random(DateTime.Now.Millisecond); int nData = 10000; double[] data = new double[nData]; for (int i = 0; i < nData; i++) { // Box-Muller法で一様乱数から正規乱数を作る data[i] = boxmuller(mRand, 0 /* average */ , 10 /* sigma */); } // ヒストグラムを作る int nBuckets = 10; Histogram hist = new Histogram(data, nBuckets, -50 /* lower */, 50 /* upper */); for (int i = 0; i < nBuckets; i++) { double mid = Math.Round((hist[i].UpperBound+hist[i].LowerBound)/2, 1); seriesColumn.Points.Add(new DataPoint(mid, hist[i].Count)); } // chartarea ChartArea area1 = new ChartArea(); area1.AxisX.Title = "Value"; area1.AxisY.Title = "Frequency"; chart1.Titles.Add(title1); chart1.ChartAreas.Add(area1); chart1.Series.Add(seriesColumn); }
private void tmpContrast_Load(object sender, EventArgs e) { Series sr = new Series("对比度") {ChartType = SeriesChartType.Line}; Title t = new Title("1-7波段对比度") { TextStyle = TextStyle.Shadow, Font = new Font(new FontFamily("微软雅黑"), 15) }; for (int i = 0; i < _data.Length; i++) { sr.Points.AddXY(i + 1, _data[i]); } chart1.Series.Add(sr); chart1.Titles.Add(t); chart1.Refresh(); }
public static void GenerateChart(ChartParamterers parameters, string resultPath) { var csvPath = string.Format("{0}.csv", resultPath); var records = ReadDataFromFile(csvPath); var myChart = new Chart { Size = ChartSize }; var myChartArea = new ChartArea(); myChart.ChartAreas.Add(myChartArea); var series = new Series("default") { ChartType = parameters.ChartType }; foreach (var thing in records) { series.Points.AddXY(thing.X.Length > 25 ? thing.X.Substring(0, 25) : thing.X, thing.Y); } myChart.Series.Add(series); if (parameters.AllValuesInXInterval) { myChart.ChartAreas[0].AxisX.Interval = 1; } var font = new Font("Arial", 12, FontStyle.Bold); var title = new Title { Text = resultPath, Font = font }; myChart.Titles.Add(title); var pngPath = string.Format("{0}.png", resultPath); myChart.SaveImage(pngPath, ChartImageFormat.Png); }
public CustomChart() { System.Windows.Forms.DataVisualization.Charting.Title title1 = new System.Windows.Forms.DataVisualization.Charting.Title(); System.Windows.Forms.DataVisualization.Charting.ChartArea chartArea1 = new System.Windows.Forms.DataVisualization.Charting.ChartArea(); System.Windows.Forms.DataVisualization.Charting.Series series1 = new System.Windows.Forms.DataVisualization.Charting.Series(); System.Windows.Forms.DataVisualization.Charting.Legend legend1 = new System.Windows.Forms.DataVisualization.Charting.Legend(); legend1.Font = new System.Drawing.Font("微软雅黑", 16, System.Drawing.FontStyle.Bold); title1.Font = new System.Drawing.Font("微软雅黑", 16, System.Drawing.FontStyle.Bold); legend1.TitleFont = new System.Drawing.Font("微软雅黑", 16, System.Drawing.FontStyle.Bold); this.Legends.Add(legend1); this.Titles.Add(title1); chartArea1.AxisX.MajorTickMark.Enabled = false; chartArea1.AxisY.MajorTickMark.Enabled = true; chartArea1.AxisX.MajorGrid.Enabled = false; chartArea1.AxisY.MajorGrid.Enabled = false; chartArea1.AxisY.IsStartedFromZero = false; chartArea1.Name = "ChartArea1"; chartArea1.CursorX.AutoScroll = true; chartArea1.CursorX.AxisType = AxisType.Primary; //chartArea1.CursorX.IsUserEnabled = true; chartArea1.CursorX.IntervalOffsetType = DateTimeIntervalType.Auto; chartArea1.CursorX.IntervalType = DateTimeIntervalType.Auto; chartArea1.CursorX.IsUserSelectionEnabled = true; ChartAreas.Add(chartArea1); series1.ChartArea = "ChartArea1"; series1.ChartType = System.Windows.Forms.DataVisualization.Charting.SeriesChartType.Spline; series1.IsValueShownAsLabel = true; //series1.MarkerBorderColor = System.Drawing.Color.DarkOrange; series1.MarkerSize = 6; //series1.MarkerBorderWidth = 1; //series1.MarkerColor = System.Drawing.Color.WhiteSmoke; series1.MarkerStyle = System.Windows.Forms.DataVisualization.Charting.MarkerStyle.Circle; series1.Name = "Series1"; series1.XValueType = ChartValueType.Time; series1.IsXValueIndexed = true; Series.Add(series1); this.Dock = System.Windows.Forms.DockStyle.Fill; }
private Chart CreateLinearChart(Legend legend, Title title, Dictionary<DateTime, int> dpc) { var chart = new Chart(); chart.Size = new Size(800, 250); chart.Titles.Add(title); var chartArea = new ChartArea(); chartArea.AxisX.IntervalAutoMode = IntervalAutoMode.VariableCount; chart.ChartAreas.Add(chartArea); var series = new Series(); series.Name = "Number of events"; series.ChartType = SeriesChartType.Line; chart.Legends.Add(legend); chart.Series.Add(series); foreach (var entry in dpc) chart.Series["Number of events"].Points.AddXY(entry.Key, entry.Value); chart.Dock = DockStyle.Fill; return chart; }
bool RegProcessTracer(int procID, string procName) { System.Windows.Forms.DataVisualization.Charting.ChartArea chartArea = new System.Windows.Forms.DataVisualization.Charting.ChartArea(); System.Windows.Forms.DataVisualization.Charting.Title chartTitle = new System.Windows.Forms.DataVisualization.Charting.Title(); chartArea.Area3DStyle.Inclination = 15; chartArea.Area3DStyle.IsClustered = true; chartArea.Area3DStyle.IsRightAngleAxes = false; chartArea.Area3DStyle.Perspective = 10; chartArea.Area3DStyle.Rotation = 10; chartArea.Area3DStyle.WallWidth = 0; chartArea.AxisX.IsLabelAutoFit = false; chartArea.AxisX.LabelStyle.Format = "H:m:s:ff"; chartArea.AxisX.LabelStyle.IntervalOffsetType = System.Windows.Forms.DataVisualization.Charting.DateTimeIntervalType.Auto; chartArea.AxisX.ScrollBar.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(64))))); chartArea.AxisY.IsLabelAutoFit = false; chartArea.AxisY.LabelStyle.Format = "#.##"; chartArea.AxisY.LabelStyle.IntervalOffset = 0D; chartArea.AxisY.ScrollBar.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(64))))); chartArea.CursorX.Interval = 1E-08D; chartArea.CursorX.IsUserEnabled = true; chartArea.CursorX.IsUserSelectionEnabled = true; chartArea.CursorX.LineColor = System.Drawing.Color.ForestGreen; chartArea.CursorX.SelectionColor = System.Drawing.Color.GreenYellow; chartArea.CursorY.Interval = 1E-08D; chartArea.CursorY.IsUserEnabled = true; chartArea.CursorY.IsUserSelectionEnabled = true; chartArea.CursorY.LineColor = System.Drawing.Color.ForestGreen; chartArea.CursorY.SelectionColor = System.Drawing.Color.GreenYellow; string chartName = "ChartArea" + procID.ToString(); chartArea.Name = chartName; this.chart.ChartAreas.Add(chartArea); chartTitle.DockedToChartArea = chartName; //chartTitle.Text = procName + "[" + procID.ToString() + "]"; chartTitle.Name = "CATitle" + procID.ToString(); this.chart.Titles.Add(chartTitle); return(true); }
/// <summary> /// Creates the standard chart. /// </summary> /// <param name="width">The width.</param> /// <param name="height">The height.</param> /// <param name="title">The title.</param> /// <returns></returns> public Chart CreateStandardChart(int width, int height, string title) { // Inital Setup var chart1 = new Chart { Width = width, Height = height, Palette = ChartColorPalette.Chocolate, BackColor = Color.SeaGreen, BackGradientStyle = GradientStyle.DiagonalLeft }; // Add title var t = new Title(title, Docking.Top, new Font("Trebuchet MS", 10, FontStyle.Bold), Color.Black); chart1.Titles.Add(t); // Add Chart Area chart1.ChartAreas.Add("Area1"); chart1.BorderSkin.SkinStyle = BorderSkinStyle.FrameTitle1; chart1.BorderColor = Color.Black; chart1.BorderWidth = 2; // Add Legends Legend legend1 = new Legend("Legend1"); legend1.Alignment = StringAlignment.Near; legend1.Docking = Docking.Bottom; chart1.Legends.Add(legend1); chart1.ChartAreas[0].AxisX.MajorGrid.LineDashStyle = ChartDashStyle.Dash; chart1.ChartAreas[0].AxisY.MajorGrid.LineDashStyle = ChartDashStyle.Dash; chart1.ChartAreas[0].AxisX.MajorGrid.LineDashStyle = ChartDashStyle.Dash; chart1.ChartAreas[0].AxisY.MajorGrid.LineDashStyle = ChartDashStyle.Dash; chart1.ChartAreas[0].AxisX.MajorGrid.LineColor = Color.Silver; chart1.ChartAreas[0].AxisY.MajorGrid.LineColor = Color.Silver; return chart1; }
private void Form1_Load(object sender, EventArgs e) { // objeto de clase "propiedades" propiedades = new Propiedades(); // -- propiedades de los objetos en formulario propiedades.BackColors(this,groupBox1); //-- propiedades de color de componentes propiedades.Background(this); //-- imagen de fondo propiedades.tamanoVentana(this, groupBox1, groupBox2, groupBox1); climaActualToolStripMenuItem.Enabled = false; //-- titulo del grafico de temperaturas Title tituloGrafico = new Title(); tituloGrafico.Text = "Temperaturas para los proximos días"; tituloGrafico.Font = new Font("Arial", 13, FontStyle.Bold); chart1.Titles.Add(tituloGrafico); //-- se llena combobox con nombre de ciudades Negocio negocio = new Negocio(); negocio.LlenarComboCiudades(comboBox1); negocio.LlenarComboCiudades(comboBox2); }
private void tmpContrast_Load(object sender, EventArgs e) { Series sr = new Series("对比度") { ChartType = SeriesChartType.Column, IsValueShownAsLabel = true, }; Title t = new Title("1-" + _data.Length + "波段对比度") { TextStyle = TextStyle.Shadow, Font = new Font(new FontFamily("微软雅黑"), 15) }; for (int i = 1; i <= _data.Length; i++) { sr.Points.AddXY(i, Math.Round(_data[i - 1], 3)); } chart1.Series.Add(sr); chart1.Titles.Add(t); chart1.Refresh(); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { System.Windows.Forms.DataVisualization.Charting.ChartArea chartArea1 = new System.Windows.Forms.DataVisualization.Charting.ChartArea(); System.Windows.Forms.DataVisualization.Charting.Legend legend1 = new System.Windows.Forms.DataVisualization.Charting.Legend(); System.Windows.Forms.DataVisualization.Charting.Series series1 = new System.Windows.Forms.DataVisualization.Charting.Series(); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint1 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(37530, 3); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint2 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(37531, 7); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint3 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(37532, 8); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint4 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(37533, 6); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint5 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(37534, 7); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint6 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(37535, 7); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint7 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(37536, 8); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint8 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(37537, 9); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint9 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(37539, 4); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint10 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(37541, 6); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint11 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(37542, 3); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint12 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(37543, 6); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint13 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(37544, 2); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint14 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(37545, 1); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint15 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(37546, 5); System.Windows.Forms.DataVisualization.Charting.Title title1 = new System.Windows.Forms.DataVisualization.Charting.Title(); this.label9 = new System.Windows.Forms.Label(); this.panel1 = new System.Windows.Forms.Panel(); this.label10 = new System.Windows.Forms.Label(); this.XIntervalType = new System.Windows.Forms.ComboBox(); this.label2 = new System.Windows.Forms.Label(); this.label1 = new System.Windows.Forms.Label(); this.YInterval = new System.Windows.Forms.ComboBox(); this.XInterval = new System.Windows.Forms.ComboBox(); this.label8 = new System.Windows.Forms.Label(); this.label7 = new System.Windows.Forms.Label(); this.label6 = new System.Windows.Forms.Label(); this.label5 = new System.Windows.Forms.Label(); this.label4 = new System.Windows.Forms.Label(); this.label3 = new System.Windows.Forms.Label(); this.label15 = new System.Windows.Forms.Label(); this.Chart1 = new System.Windows.Forms.DataVisualization.Charting.Chart(); this.panel1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.Chart1)).BeginInit(); this.SuspendLayout(); // // label9 // this.label9.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.label9.Font = new System.Drawing.Font("Verdana", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label9.Location = new System.Drawing.Point(16, 14); this.label9.Name = "label9"; this.label9.Size = new System.Drawing.Size(702, 34); this.label9.TabIndex = 0; this.label9.Text = "This sample demonstrates how to set the cursor interval so that the cursor will \"" + "step\" as it moves across the data view. To move the cursor, left-click on the ch" + "art and drag the mouse."; this.label9.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // panel1 // this.panel1.Controls.Add(this.label10); this.panel1.Controls.Add(this.XIntervalType); this.panel1.Controls.Add(this.label2); this.panel1.Controls.Add(this.label1); this.panel1.Controls.Add(this.YInterval); this.panel1.Controls.Add(this.XInterval); this.panel1.Controls.Add(this.label8); this.panel1.Controls.Add(this.label7); this.panel1.Controls.Add(this.label6); this.panel1.Controls.Add(this.label5); this.panel1.Controls.Add(this.label4); this.panel1.Controls.Add(this.label3); this.panel1.Controls.Add(this.label15); this.panel1.Location = new System.Drawing.Point(432, 68); this.panel1.Name = "panel1"; this.panel1.Size = new System.Drawing.Size(292, 288); this.panel1.TabIndex = 2; // // label10 // this.label10.Location = new System.Drawing.Point(32, 40); this.label10.Name = "label10"; this.label10.Size = new System.Drawing.Size(136, 23); this.label10.TabIndex = 2; this.label10.Text = "Interval &Type:"; this.label10.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // XIntervalType // this.XIntervalType.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.XIntervalType.Items.AddRange(new object[] { "Hours", "Days", "Weeks" }); this.XIntervalType.Location = new System.Drawing.Point(168, 40); this.XIntervalType.Name = "XIntervalType"; this.XIntervalType.Size = new System.Drawing.Size(121, 22); this.XIntervalType.TabIndex = 3; this.XIntervalType.SelectedIndexChanged += new System.EventHandler(this.Series_SelectedIndexChanged); // // label2 // this.label2.Location = new System.Drawing.Point(32, 72); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(136, 23); this.label2.TabIndex = 4; this.label2.Text = "&Y Interval:"; this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // label1 // this.label1.Location = new System.Drawing.Point(32, 8); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(136, 23); this.label1.TabIndex = 0; this.label1.Text = "&X Interval:"; this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // YInterval // this.YInterval.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.YInterval.Items.AddRange(new object[] { "0", "1", "2" }); this.YInterval.Location = new System.Drawing.Point(168, 72); this.YInterval.Name = "YInterval"; this.YInterval.Size = new System.Drawing.Size(121, 22); this.YInterval.TabIndex = 5; this.YInterval.SelectedIndexChanged += new System.EventHandler(this.Series_SelectedIndexChanged); // // XInterval // this.XInterval.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.XInterval.Items.AddRange(new object[] { "0", "1", "2", "12" }); this.XInterval.Location = new System.Drawing.Point(168, 8); this.XInterval.Name = "XInterval"; this.XInterval.Size = new System.Drawing.Size(121, 22); this.XInterval.TabIndex = 1; this.XInterval.SelectedIndexChanged += new System.EventHandler(this.Series_SelectedIndexChanged); // // label8 // this.label8.Location = new System.Drawing.Point(64, 472); this.label8.Name = "label8"; this.label8.Size = new System.Drawing.Size(100, 23); this.label8.TabIndex = 7; this.label8.Text = "Shadow Offset:"; // // label7 // this.label7.Location = new System.Drawing.Point(64, 449); this.label7.Name = "label7"; this.label7.Size = new System.Drawing.Size(100, 23); this.label7.TabIndex = 6; this.label7.Text = "Border Style:"; // // label6 // this.label6.Location = new System.Drawing.Point(64, 403); this.label6.Name = "label6"; this.label6.Size = new System.Drawing.Size(100, 23); this.label6.TabIndex = 5; this.label6.Text = "Border Size:"; // // label5 // this.label5.Location = new System.Drawing.Point(64, 380); this.label5.Name = "label5"; this.label5.Size = new System.Drawing.Size(100, 23); this.label5.TabIndex = 4; this.label5.Text = "Border Color:"; // // label4 // this.label4.Location = new System.Drawing.Point(64, 357); this.label4.Name = "label4"; this.label4.Size = new System.Drawing.Size(100, 23); this.label4.TabIndex = 3; this.label4.Text = "Hatch Style:"; // // label3 // this.label3.Location = new System.Drawing.Point(64, 334); this.label3.Name = "label3"; this.label3.Size = new System.Drawing.Size(100, 23); this.label3.TabIndex = 2; this.label3.Text = "Gradient:"; // // label15 // this.label15.Location = new System.Drawing.Point(64, 426); this.label15.Name = "label15"; this.label15.Size = new System.Drawing.Size(100, 23); this.label15.TabIndex = 5; this.label15.Text = "Border Size:"; // // Chart1 // this.Chart1.BackColor = System.Drawing.Color.WhiteSmoke; this.Chart1.BackGradientStyle = System.Windows.Forms.DataVisualization.Charting.GradientStyle.TopBottom; this.Chart1.BackSecondaryColor = System.Drawing.Color.White; this.Chart1.BorderlineColor = System.Drawing.Color.FromArgb(((int)(((byte)(26)))), ((int)(((byte)(59)))), ((int)(((byte)(105))))); this.Chart1.BorderlineDashStyle = System.Windows.Forms.DataVisualization.Charting.ChartDashStyle.Solid; this.Chart1.BorderlineWidth = 2; this.Chart1.BorderSkin.SkinStyle = System.Windows.Forms.DataVisualization.Charting.BorderSkinStyle.Emboss; chartArea1.Area3DStyle.Inclination = 15; chartArea1.Area3DStyle.IsClustered = true; chartArea1.Area3DStyle.IsRightAngleAxes = false; chartArea1.Area3DStyle.Perspective = 10; chartArea1.Area3DStyle.Rotation = 10; chartArea1.Area3DStyle.WallWidth = 0; chartArea1.AxisX.IntervalAutoMode = System.Windows.Forms.DataVisualization.Charting.IntervalAutoMode.VariableCount; chartArea1.AxisX.IsLabelAutoFit = false; chartArea1.AxisX.LabelStyle.Font = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold); chartArea1.AxisX.LabelStyle.Format = "dd/MM"; chartArea1.AxisX.LabelStyle.Interval = 0; chartArea1.AxisX.LabelStyle.IntervalType = System.Windows.Forms.DataVisualization.Charting.DateTimeIntervalType.Days; chartArea1.AxisX.LabelStyle.IsEndLabelVisible = false; chartArea1.AxisX.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea1.AxisX.MajorGrid.Interval = 1; chartArea1.AxisX.MajorGrid.IntervalType = System.Windows.Forms.DataVisualization.Charting.DateTimeIntervalType.Days; chartArea1.AxisX.MajorGrid.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea1.AxisX.MajorTickMark.Interval = 1; chartArea1.AxisX.MajorTickMark.IntervalType = System.Windows.Forms.DataVisualization.Charting.DateTimeIntervalType.Days; chartArea1.AxisX.MinorTickMark.Interval = 12; chartArea1.AxisX.MinorTickMark.IntervalType = System.Windows.Forms.DataVisualization.Charting.DateTimeIntervalType.Hours; chartArea1.AxisX.ScrollBar.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea1.AxisY.IsLabelAutoFit = false; chartArea1.AxisY.LabelStyle.Font = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold); chartArea1.AxisY.LabelStyle.Format = "N0"; chartArea1.AxisY.LabelStyle.Interval = 0; chartArea1.AxisY.LabelStyle.IntervalType = System.Windows.Forms.DataVisualization.Charting.DateTimeIntervalType.Number; chartArea1.AxisY.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea1.AxisY.MajorGrid.Interval = 1; chartArea1.AxisY.MajorGrid.IntervalType = System.Windows.Forms.DataVisualization.Charting.DateTimeIntervalType.Number; chartArea1.AxisY.MajorGrid.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea1.AxisY.MajorTickMark.IntervalType = System.Windows.Forms.DataVisualization.Charting.DateTimeIntervalType.Number; chartArea1.AxisY.MinorTickMark.Interval = 1; chartArea1.AxisY.ScrollBar.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea1.BackColor = System.Drawing.Color.Gainsboro; chartArea1.BackGradientStyle = System.Windows.Forms.DataVisualization.Charting.GradientStyle.TopBottom; chartArea1.BackSecondaryColor = System.Drawing.Color.White; chartArea1.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea1.CursorX.IsUserEnabled = true; chartArea1.CursorX.IsUserSelectionEnabled = true; chartArea1.CursorX.SelectionColor = System.Drawing.SystemColors.Highlight; chartArea1.CursorY.IsUserEnabled = true; chartArea1.CursorY.IsUserSelectionEnabled = true; chartArea1.CursorY.SelectionColor = System.Drawing.SystemColors.Highlight; chartArea1.Name = "Default"; chartArea1.ShadowColor = System.Drawing.Color.Transparent; this.Chart1.ChartAreas.Add(chartArea1); legend1.BackColor = System.Drawing.Color.Transparent; legend1.Enabled = false; legend1.Font = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold); legend1.IsTextAutoFit = false; legend1.Name = "Default"; this.Chart1.Legends.Add(legend1); this.Chart1.Location = new System.Drawing.Point(16, 60); this.Chart1.Name = "Chart1"; series1.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(180)))), ((int)(((byte)(26)))), ((int)(((byte)(59)))), ((int)(((byte)(105))))); series1.ChartArea = "Default"; series1.ChartType = System.Windows.Forms.DataVisualization.Charting.SeriesChartType.Point; series1.Legend = "Default"; series1.Name = "Series1"; series1.Points.Add(dataPoint1); series1.Points.Add(dataPoint2); series1.Points.Add(dataPoint3); series1.Points.Add(dataPoint4); series1.Points.Add(dataPoint5); series1.Points.Add(dataPoint6); series1.Points.Add(dataPoint7); series1.Points.Add(dataPoint8); series1.Points.Add(dataPoint9); series1.Points.Add(dataPoint10); series1.Points.Add(dataPoint11); series1.Points.Add(dataPoint12); series1.Points.Add(dataPoint13); series1.Points.Add(dataPoint14); series1.Points.Add(dataPoint15); series1.ShadowColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); series1.ShadowOffset = 2; series1.XValueType = System.Windows.Forms.DataVisualization.Charting.ChartValueType.DateTime; this.Chart1.Series.Add(series1); this.Chart1.Size = new System.Drawing.Size(412, 296); this.Chart1.TabIndex = 1; title1.Alignment = System.Drawing.ContentAlignment.MiddleLeft; title1.Font = new System.Drawing.Font("Trebuchet MS", 14.25F, System.Drawing.FontStyle.Bold); title1.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(26)))), ((int)(((byte)(59)))), ((int)(((byte)(105))))); title1.Name = "Title1"; title1.ShadowColor = System.Drawing.Color.FromArgb(((int)(((byte)(32)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); title1.ShadowOffset = 3; title1.Text = "Cursor Intervals"; this.Chart1.Titles.Add(title1); // // CursorInterval // this.BackColor = System.Drawing.Color.White; this.Controls.Add(this.Chart1); this.Controls.Add(this.panel1); this.Controls.Add(this.label9); this.Font = new System.Drawing.Font("Verdana", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.Name = "CursorInterval"; this.Size = new System.Drawing.Size(728, 376); this.Load += new System.EventHandler(this.CursorInterval_Load); this.panel1.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.Chart1)).EndInit(); this.ResumeLayout(false); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { System.Windows.Forms.DataVisualization.Charting.ChartArea chartArea1 = new System.Windows.Forms.DataVisualization.Charting.ChartArea(); System.Windows.Forms.DataVisualization.Charting.Legend legend1 = new System.Windows.Forms.DataVisualization.Charting.Legend(); System.Windows.Forms.DataVisualization.Charting.Series series1 = new System.Windows.Forms.DataVisualization.Charting.Series(); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint1 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 5400); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint2 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 3200); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint3 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 2700); System.Windows.Forms.DataVisualization.Charting.Title title1 = new System.Windows.Forms.DataVisualization.Charting.Title(); this.Criterion = new System.Windows.Forms.ComboBox(); this.label6 = new System.Windows.Forms.Label(); this.label9 = new System.Windows.Forms.Label(); this.panel1 = new System.Windows.Forms.Panel(); this.SecondaryYCheck = 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(); // // Criterion // this.Criterion.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.Criterion.Items.AddRange(new object[] { "Range", "Max. Weight", "Wing Span", "Passengers" }); this.Criterion.Location = new System.Drawing.Point(168, 2); this.Criterion.Name = "Criterion"; this.Criterion.Size = new System.Drawing.Size(121, 22); this.Criterion.TabIndex = 1; this.Criterion.SelectedIndexChanged += new System.EventHandler(this.ControlChange); // // label6 // this.label6.Location = new System.Drawing.Point(29, 5); this.label6.Name = "label6"; this.label6.Size = new System.Drawing.Size(136, 16); this.label6.TabIndex = 0; this.label6.Text = "Aircraft &Data:"; this.label6.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 demonstrates how to use two different scales for the primary and seco" + "ndary Y axes."; this.label9.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // panel1 // this.panel1.Controls.Add(this.SecondaryYCheck); this.panel1.Controls.Add(this.Criterion); this.panel1.Controls.Add(this.label6); 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; // // SecondaryYCheck // this.SecondaryYCheck.CheckAlign = System.Drawing.ContentAlignment.MiddleRight; this.SecondaryYCheck.Checked = true; this.SecondaryYCheck.CheckState = System.Windows.Forms.CheckState.Checked; this.SecondaryYCheck.Location = new System.Drawing.Point(18, 30); this.SecondaryYCheck.Name = "SecondaryYCheck"; this.SecondaryYCheck.Size = new System.Drawing.Size(164, 24); this.SecondaryYCheck.TabIndex = 2; this.SecondaryYCheck.Text = "Secondary &Y Axis:"; this.SecondaryYCheck.TextAlign = System.Drawing.ContentAlignment.MiddleRight; this.SecondaryYCheck.CheckedChanged += new System.EventHandler(this.ControlChange); // // Chart1 // 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.AxisX.TitleFont = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold); chartArea1.AxisX2.IsLabelAutoFit = false; chartArea1.AxisX2.MajorGrid.Enabled = false; chartArea1.AxisX2.TitleFont = 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("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold); chartArea1.AxisY2.IsLabelAutoFit = false; chartArea1.AxisY2.LabelStyle.Font = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold); chartArea1.AxisY2.MajorGrid.Enabled = false; chartArea1.AxisY2.TitleFont = 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.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.BackGradientStyle = System.Windows.Forms.DataVisualization.Charting.GradientStyle.TopBottom; series1.BackSecondaryColor = System.Drawing.Color.White; 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.Bar; series1.Legend = "Default"; series1.Name = "Default"; dataPoint1.AxisLabel = "Plane 1"; dataPoint1.BackImageWrapMode = System.Windows.Forms.DataVisualization.Charting.ChartImageWrapMode.Scaled; dataPoint1.BorderWidth = 2; dataPoint2.AxisLabel = "Plane 2"; dataPoint2.BackImageWrapMode = System.Windows.Forms.DataVisualization.Charting.ChartImageWrapMode.Scaled; dataPoint2.BorderWidth = 2; dataPoint3.AxisLabel = "Plane 3"; dataPoint3.BackImageWrapMode = System.Windows.Forms.DataVisualization.Charting.ChartImageWrapMode.Scaled; dataPoint3.BorderWidth = 2; series1.Points.Add(dataPoint1); series1.Points.Add(dataPoint2); series1.Points.Add(dataPoint3); this.Chart1.Series.Add(series1); this.Chart1.Size = new System.Drawing.Size(412, 360); this.Chart1.TabIndex = 1; title1.Alignment = System.Drawing.ContentAlignment.TopLeft; title1.Font = new System.Drawing.Font("Trebuchet MS", 14.25F, System.Drawing.FontStyle.Bold); title1.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(26)))), ((int)(((byte)(59)))), ((int)(((byte)(105))))); title1.Name = "Title1"; title1.ShadowColor = System.Drawing.Color.FromArgb(((int)(((byte)(32)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); title1.ShadowOffset = 3; title1.Text = "Aircraft"; this.Chart1.Titles.Add(title1); // // PrimarySecondaryAxis // 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 = "PrimarySecondaryAxis"; this.Size = new System.Drawing.Size(728, 432); //this.Load += new System.EventHandler(this.PrimarySecondaryAxis_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, 3); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint2 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 7); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint3 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 8); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint4 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 6); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint5 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 7); 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.MarkerBorderWidth = new System.Windows.Forms.NumericUpDown(); this.label12 = new System.Windows.Forms.Label(); this.MarkerBorderColor = new System.Windows.Forms.ComboBox(); this.MarkerColor = new System.Windows.Forms.ComboBox(); this.MarkerSize = new System.Windows.Forms.ComboBox(); this.Shape = new System.Windows.Forms.ComboBox(); this.ApplyToPoint = new System.Windows.Forms.CheckBox(); this.label11 = new System.Windows.Forms.Label(); this.label10 = new System.Windows.Forms.Label(); this.label2 = new System.Windows.Forms.Label(); this.label1 = new System.Windows.Forms.Label(); this.label8 = new System.Windows.Forms.Label(); this.label7 = new System.Windows.Forms.Label(); this.label6 = new System.Windows.Forms.Label(); this.label5 = new System.Windows.Forms.Label(); this.label4 = new System.Windows.Forms.Label(); this.label3 = new System.Windows.Forms.Label(); this.label15 = new System.Windows.Forms.Label(); this.Chart1 = new System.Windows.Forms.DataVisualization.Charting.Chart(); this.panel1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.MarkerBorderWidth)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.Chart1)).BeginInit(); this.SuspendLayout(); // // label9 // this.label9.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.label9.Font = new System.Drawing.Font("Verdana", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label9.Location = new System.Drawing.Point(16, 14); this.label9.Name = "label9"; this.label9.Size = new System.Drawing.Size(702, 43); this.label9.TabIndex = 0; this.label9.Text = "This sample shows how to set marker appearance properties. Note that these proper" + "ties can be applied to all data points in a series�or to a single data point."; this.label9.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // panel1 // this.panel1.Controls.Add(this.MarkerBorderWidth); this.panel1.Controls.Add(this.label12); this.panel1.Controls.Add(this.MarkerBorderColor); this.panel1.Controls.Add(this.MarkerColor); this.panel1.Controls.Add(this.MarkerSize); this.panel1.Controls.Add(this.Shape); this.panel1.Controls.Add(this.ApplyToPoint); this.panel1.Controls.Add(this.label11); this.panel1.Controls.Add(this.label10); this.panel1.Controls.Add(this.label2); this.panel1.Controls.Add(this.label1); this.panel1.Controls.Add(this.label8); this.panel1.Controls.Add(this.label7); this.panel1.Controls.Add(this.label6); this.panel1.Controls.Add(this.label5); this.panel1.Controls.Add(this.label4); this.panel1.Controls.Add(this.label3); this.panel1.Controls.Add(this.label15); this.panel1.Location = new System.Drawing.Point(432, 73); this.panel1.Name = "panel1"; this.panel1.Size = new System.Drawing.Size(292, 296); this.panel1.TabIndex = 2; // // MarkerBorderWidth // this.MarkerBorderWidth.Location = new System.Drawing.Point(168, 136); this.MarkerBorderWidth.Maximum = new decimal(new int[] { 5, 0, 0, 0}); this.MarkerBorderWidth.Minimum = new decimal(new int[] { 1, 0, 0, 0}); this.MarkerBorderWidth.Name = "MarkerBorderWidth"; this.MarkerBorderWidth.Size = new System.Drawing.Size(72, 22); this.MarkerBorderWidth.TabIndex = 14; this.MarkerBorderWidth.Value = new decimal(new int[] { 1, 0, 0, 0}); this.MarkerBorderWidth.ValueChanged += new System.EventHandler(this.MarkerBorderWidth_ValueChanged); // // label12 // this.label12.Location = new System.Drawing.Point(9, 136); this.label12.Name = "label12"; this.label12.Size = new System.Drawing.Size(156, 24); this.label12.TabIndex = 13; this.label12.Text = "Marker Border &Width:"; this.label12.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // MarkerBorderColor // this.MarkerBorderColor.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.MarkerBorderColor.Items.AddRange(new object[] { "White", "Blue", "Green", "Yellow", "Magenta", "Brown"}); this.MarkerBorderColor.Location = new System.Drawing.Point(168, 104); this.MarkerBorderColor.Name = "MarkerBorderColor"; this.MarkerBorderColor.Size = new System.Drawing.Size(121, 22); this.MarkerBorderColor.TabIndex = 7; this.MarkerBorderColor.SelectedIndexChanged += new System.EventHandler(this.Combo_SelectedIndexChanged); // // MarkerColor // this.MarkerColor.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.MarkerColor.Items.AddRange(new object[] { "White", "Blue", "Green", "Yellow", "Magenta", "Brown"}); this.MarkerColor.Location = new System.Drawing.Point(168, 72); this.MarkerColor.Name = "MarkerColor"; this.MarkerColor.Size = new System.Drawing.Size(121, 22); this.MarkerColor.TabIndex = 5; this.MarkerColor.SelectedIndexChanged += new System.EventHandler(this.Combo_SelectedIndexChanged); // // MarkerSize // this.MarkerSize.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.MarkerSize.Items.AddRange(new object[] { "5", "10", "15", "20"}); this.MarkerSize.Location = new System.Drawing.Point(168, 40); this.MarkerSize.Name = "MarkerSize"; this.MarkerSize.Size = new System.Drawing.Size(121, 22); this.MarkerSize.TabIndex = 3; this.MarkerSize.SelectedIndexChanged += new System.EventHandler(this.Combo_SelectedIndexChanged); // // Shape // this.Shape.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.Shape.Items.AddRange(new object[] { "Circle", "Square", "Diamond", "Triangle", "Cross", "Image", "Star10", "Star4", "Star5", "Star6"}); this.Shape.Location = new System.Drawing.Point(168, 8); this.Shape.Name = "Shape"; this.Shape.Size = new System.Drawing.Size(121, 22); this.Shape.TabIndex = 1; this.Shape.SelectedIndexChanged += new System.EventHandler(this.Combo_SelectedIndexChanged); // // ApplyToPoint // this.ApplyToPoint.Location = new System.Drawing.Point(32, 168); this.ApplyToPoint.Name = "ApplyToPoint"; this.ApplyToPoint.Size = new System.Drawing.Size(232, 24); this.ApplyToPoint.TabIndex = 8; this.ApplyToPoint.Text = "&Apply to the Third Point Only"; this.ApplyToPoint.CheckedChanged += new System.EventHandler(this.Combo_SelectedIndexChanged); // // label11 // this.label11.Location = new System.Drawing.Point(20, 104); this.label11.Name = "label11"; this.label11.Size = new System.Drawing.Size(144, 23); this.label11.TabIndex = 6; this.label11.Text = "Marker &Border Color:"; this.label11.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // label10 // this.label10.Location = new System.Drawing.Point(20, 72); this.label10.Name = "label10"; this.label10.Size = new System.Drawing.Size(144, 23); this.label10.TabIndex = 4; this.label10.Text = "Marker &Color:"; this.label10.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // 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 &Size:"; this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // 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 = "Marker &Shape:"; this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // label8 // this.label8.Location = new System.Drawing.Point(64, 472); this.label8.Name = "label8"; this.label8.Size = new System.Drawing.Size(100, 23); this.label8.TabIndex = 7; this.label8.Text = "Shadow Offset:"; // // label7 // this.label7.Location = new System.Drawing.Point(64, 449); this.label7.Name = "label7"; this.label7.Size = new System.Drawing.Size(100, 23); this.label7.TabIndex = 6; this.label7.Text = "Border Style:"; // // label6 // this.label6.Location = new System.Drawing.Point(64, 403); this.label6.Name = "label6"; this.label6.Size = new System.Drawing.Size(100, 23); this.label6.TabIndex = 12; this.label6.Text = "Border Size:"; // // label5 // this.label5.Location = new System.Drawing.Point(64, 380); this.label5.Name = "label5"; this.label5.Size = new System.Drawing.Size(100, 23); this.label5.TabIndex = 11; this.label5.Text = "Border Color:"; // // label4 // this.label4.Location = new System.Drawing.Point(64, 357); this.label4.Name = "label4"; this.label4.Size = new System.Drawing.Size(100, 23); this.label4.TabIndex = 10; this.label4.Text = "Hatch Style:"; // // label3 // this.label3.Location = new System.Drawing.Point(64, 334); this.label3.Name = "label3"; this.label3.Size = new System.Drawing.Size(100, 23); this.label3.TabIndex = 9; this.label3.Text = "Gradient:"; // // label15 // this.label15.Location = new System.Drawing.Point(64, 426); this.label15.Name = "label15"; this.label15.Size = new System.Drawing.Size(100, 23); this.label15.TabIndex = 5; this.label15.Text = "Border Size:"; // // Chart1 // this.Chart1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(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.Enabled = false; legend1.Font = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold); legend1.IsTextAutoFit = false; legend1.Name = "Default"; this.Chart1.Legends.Add(legend1); this.Chart1.Location = new System.Drawing.Point(16, 65); this.Chart1.Name = "Chart1"; series1.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(180)))), ((int)(((byte)(26)))), ((int)(((byte)(59)))), ((int)(((byte)(105))))); series1.BorderWidth = 3; series1.ChartArea = "Default"; series1.ChartType = System.Windows.Forms.DataVisualization.Charting.SeriesChartType.Line; series1.Font = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); series1.IsValueShownAsLabel = true; series1.Legend = "Default"; 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.ShadowOffset = 1; this.Chart1.Series.Add(series1); this.Chart1.Size = new System.Drawing.Size(412, 306); 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 = "Using Markers"; this.Chart1.Titles.Add(title1); this.Chart1.Click += new System.EventHandler(this.Chart1_Click); // // UsingMarkers // 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 = "UsingMarkers"; this.Size = new System.Drawing.Size(728, 384); this.panel1.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.MarkerBorderWidth)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.Chart1)).EndInit(); this.ResumeLayout(false); }
private void BuildChartColumn() { ChartArea chartArea1 = new ChartArea(); 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.LabelAutoFitMaxFontSize = 8; chartArea1.AxisX.LabelStyle.Font = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold); chartArea1.AxisX.LabelStyle.Format = "yyyy-MM-dd"; 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.LabelAutoFitMaxFontSize = 8; chartArea1.AxisY.LabelStyle.Font = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold); chartArea1.AxisY.LabelStyle.Format = "C0"; 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.chartColumn.ChartAreas.Add(chartArea1); Title title1 = new Title(); 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 = "Title"; title1.ShadowColor = System.Drawing.Color.FromArgb(((int)(((byte)(32)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); title1.ShadowOffset = 3; title1.Text = "销售金额的统计条形图"; this.chartColumn.Titles.Add(title1); Series series1 = new Series(); series1.ChartType = SeriesChartType.Column; //图标集类型 //series1.Color = Color.Red; //线条颜色 series1.BorderWidth = 2; //线条宽度 series1.ShadowOffset = 1; //阴影宽度 series1.IsValueShownAsLabel = true; series1.MarkerStyle = MarkerStyle.Diamond; series1.MarkerSize = 8; series1.XValueType = ChartValueType.DateTime; series1.ChartArea = "Default"; series1.Name = "Default"; this.chartColumn.Series.Add(series1); }
/// <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); this.label9.Location = new System.Drawing.Point(16, 8); this.label9.Name = "label9"; this.label9.Size = new System.Drawing.Size(702, 24); this.label9.TabIndex = 0; this.label9.Text = "This sample shows how to bind arrays of data�to�data series."; 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, 48); 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.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 = 51; chartArea1.Area3DStyle.IsClustered = true; chartArea1.Area3DStyle.IsRightAngleAxes = false; chartArea1.Area3DStyle.Perspective = 10; chartArea1.Area3DStyle.Rotation = 14; chartArea1.Area3DStyle.WallWidth = 0; chartArea1.AxisX.ArrowStyle = System.Windows.Forms.DataVisualization.Charting.AxisArrowStyle.Triangle; chartArea1.AxisX.LabelStyle.Font = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold); chartArea1.AxisX.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea1.AxisX.MajorGrid.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea1.AxisX2.Enabled = System.Windows.Forms.DataVisualization.Charting.AxisEnabled.False; chartArea1.AxisY.ArrowStyle = System.Windows.Forms.DataVisualization.Charting.AxisArrowStyle.Triangle; chartArea1.AxisY.LabelStyle.Font = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold); chartArea1.AxisY.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea1.AxisY.MajorGrid.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea1.AxisY2.Enabled = System.Windows.Forms.DataVisualization.Charting.AxisEnabled.False; chartArea1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(165)))), ((int)(((byte)(191)))), ((int)(((byte)(228))))); chartArea1.BackGradientStyle = System.Windows.Forms.DataVisualization.Charting.GradientStyle.TopBottom; chartArea1.BackSecondaryColor = System.Drawing.Color.Transparent; chartArea1.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea1.Name = "Default"; chartArea1.ShadowColor = System.Drawing.Color.Transparent; this.Chart1.ChartAreas.Add(chartArea1); legend1.BackColor = System.Drawing.Color.Transparent; legend1.Enabled = false; legend1.Font = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold); legend1.IsTextAutoFit = false; legend1.Name = "Default"; this.Chart1.Legends.Add(legend1); this.Chart1.Location = new System.Drawing.Point(16, 40); 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.Pie; series1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(220)))), ((int)(((byte)(65)))), ((int)(((byte)(140)))), ((int)(((byte)(240))))); series1.Legend = "Default"; series1.Name = "Series 1"; series1.XValueType = System.Windows.Forms.DataVisualization.Charting.ChartValueType.DateTime; series1.YValueType = System.Windows.Forms.DataVisualization.Charting.ChartValueType.Double; this.Chart1.Series.Add(series1); this.Chart1.Size = new System.Drawing.Size(412, 296); this.Chart1.TabIndex = 0; title1.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 = "Parking Violations"; this.Chart1.Titles.Add(title1); // // 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); this.label1.Location = new System.Drawing.Point(16, 344); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(702, 40); this.label1.TabIndex = 20; this.label1.Text = "There are two arrays used: one for the series\' X values and one for the Y values." + " Also, the arrays are bound to the chart by using the DataBindXY method of the " + "Points collection."; this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // ArrayBinding // 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); this.Name = "ArrayBinding"; 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.Legend legend1 = new System.Windows.Forms.DataVisualization.Charting.Legend(); System.Windows.Forms.DataVisualization.Charting.Series series1 = new System.Windows.Forms.DataVisualization.Charting.Series(); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint1 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 6); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint2 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 9); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint3 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 5); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint4 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 7.5); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint5 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 5.6999998092651367); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint6 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 7); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint7 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 8.5); System.Windows.Forms.DataVisualization.Charting.Series series2 = new System.Windows.Forms.DataVisualization.Charting.Series(); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint8 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 6); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint9 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 9); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint10 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 2); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint11 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 7); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint12 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 3); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint13 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 5); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint14 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 8); System.Windows.Forms.DataVisualization.Charting.Series series3 = new System.Windows.Forms.DataVisualization.Charting.Series(); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint15 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 4); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint16 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 2); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint17 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 1); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint18 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 3); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint19 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 2); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint20 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 3); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint21 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 5); System.Windows.Forms.DataVisualization.Charting.Title title1 = new System.Windows.Forms.DataVisualization.Charting.Title(); this.chart1 = new System.Windows.Forms.DataVisualization.Charting.Chart(); this.labelSampleComment = new System.Windows.Forms.Label(); this.panel1 = new System.Windows.Forms.Panel(); this.numericUpDownPointGapDepth = new System.Windows.Forms.NumericUpDown(); this.numericUpDownPointDepth = new System.Windows.Forms.NumericUpDown(); this.label3 = new System.Windows.Forms.Label(); this.label4 = new System.Windows.Forms.Label(); this.checkClustered = new System.Windows.Forms.CheckBox(); this.radioButtonColumn = new System.Windows.Forms.RadioButton(); this.radioButtonBar = new System.Windows.Forms.RadioButton(); this.label1 = new System.Windows.Forms.Label(); ((System.ComponentModel.ISupportInitialize)(this.chart1)).BeginInit(); this.panel1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.numericUpDownPointGapDepth)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.numericUpDownPointDepth)).BeginInit(); this.SuspendLayout(); // // chart1 // this.chart1.BackColor = System.Drawing.Color.WhiteSmoke; this.chart1.BackGradientStyle = System.Windows.Forms.DataVisualization.Charting.GradientStyle.TopBottom; this.chart1.BackSecondaryColor = System.Drawing.Color.White; this.chart1.BorderlineColor = System.Drawing.Color.FromArgb(((int)(((byte)(26)))), ((int)(((byte)(59)))), ((int)(((byte)(105))))); this.chart1.BorderlineDashStyle = System.Windows.Forms.DataVisualization.Charting.ChartDashStyle.Solid; this.chart1.BorderlineWidth = 2; this.chart1.BorderSkin.SkinStyle = System.Windows.Forms.DataVisualization.Charting.BorderSkinStyle.Emboss; chartArea1.Area3DStyle.Enable3D = true; chartArea1.Area3DStyle.Inclination = 15; chartArea1.Area3DStyle.IsClustered = true; chartArea1.Area3DStyle.IsRightAngleAxes = false; chartArea1.Area3DStyle.PointGapDepth = 0; chartArea1.Area3DStyle.Rotation = 10; chartArea1.Area3DStyle.WallWidth = 0; chartArea1.AxisX.LabelStyle.Font = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold); chartArea1.AxisX.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea1.AxisX.MajorGrid.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea1.AxisY.LabelStyle.Font = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold); chartArea1.AxisY.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea1.AxisY.MajorGrid.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea1.BackColor = System.Drawing.Color.WhiteSmoke; chartArea1.BackSecondaryColor = System.Drawing.Color.White; chartArea1.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea1.Name = "Default"; chartArea1.ShadowColor = System.Drawing.Color.Transparent; this.chart1.ChartAreas.Add(chartArea1); this.chart1.Cursor = System.Windows.Forms.Cursors.Hand; legend1.BackColor = System.Drawing.Color.Transparent; legend1.Enabled = false; legend1.Font = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold); legend1.IsTextAutoFit = false; legend1.Name = "Default"; this.chart1.Legends.Add(legend1); this.chart1.Location = new System.Drawing.Point(16, 53); this.chart1.Name = "chart1"; series1.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(180)))), ((int)(((byte)(26)))), ((int)(((byte)(59)))), ((int)(((byte)(105))))); series1.ChartArea = "Default"; series1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(220)))), ((int)(((byte)(65)))), ((int)(((byte)(140)))), ((int)(((byte)(240))))); series1.Legend = "Default"; series1.Name = "Default"; series1.Points.Add(dataPoint1); series1.Points.Add(dataPoint2); series1.Points.Add(dataPoint3); series1.Points.Add(dataPoint4); series1.Points.Add(dataPoint5); series1.Points.Add(dataPoint6); series1.Points.Add(dataPoint7); series2.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(180)))), ((int)(((byte)(26)))), ((int)(((byte)(59)))), ((int)(((byte)(105))))); series2.ChartArea = "Default"; series2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(220)))), ((int)(((byte)(252)))), ((int)(((byte)(180)))), ((int)(((byte)(65))))); series2.Legend = "Default"; series2.Name = "Series2"; series2.Points.Add(dataPoint8); series2.Points.Add(dataPoint9); series2.Points.Add(dataPoint10); series2.Points.Add(dataPoint11); series2.Points.Add(dataPoint12); series2.Points.Add(dataPoint13); series2.Points.Add(dataPoint14); series3.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(180)))), ((int)(((byte)(26)))), ((int)(((byte)(59)))), ((int)(((byte)(105))))); series3.ChartArea = "Default"; series3.Color = System.Drawing.Color.FromArgb(((int)(((byte)(220)))), ((int)(((byte)(224)))), ((int)(((byte)(64)))), ((int)(((byte)(10))))); series3.Legend = "Default"; series3.Name = "Series3"; series3.Points.Add(dataPoint15); series3.Points.Add(dataPoint16); series3.Points.Add(dataPoint17); series3.Points.Add(dataPoint18); series3.Points.Add(dataPoint19); series3.Points.Add(dataPoint20); series3.Points.Add(dataPoint21); this.chart1.Series.Add(series1); this.chart1.Series.Add(series2); this.chart1.Series.Add(series3); this.chart1.Size = new System.Drawing.Size(412, 296); this.chart1.TabIndex = 1; title1.Font = new System.Drawing.Font("Trebuchet MS", 14.25F, System.Drawing.FontStyle.Bold); title1.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(26)))), ((int)(((byte)(59)))), ((int)(((byte)(105))))); title1.Name = "Title1"; title1.ShadowColor = System.Drawing.Color.FromArgb(((int)(((byte)(32)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); title1.ShadowOffset = 3; title1.Text = "3D Cylinder"; this.chart1.Titles.Add(title1); this.chart1.MouseUp += new System.Windows.Forms.MouseEventHandler(this.chart1_MouseUp); this.chart1.MouseMove += new System.Windows.Forms.MouseEventHandler(this.chart1_MouseMove); this.chart1.MouseDown += new System.Windows.Forms.MouseEventHandler(this.chart1_MouseDown); // // labelSampleComment // this.labelSampleComment.Font = new System.Drawing.Font("Verdana", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.labelSampleComment.Location = new System.Drawing.Point(16, 8); this.labelSampleComment.Name = "labelSampleComment"; this.labelSampleComment.Size = new System.Drawing.Size(702, 37); this.labelSampleComment.TabIndex = 0; this.labelSampleComment.Text = "This sample demonstrates how to display 3D Bar and Column charts as cylinders. Cy" + "linders may be applied to an entire data series or to specific points within a s" + "eries. "; this.labelSampleComment.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // panel1 // this.panel1.Controls.Add(this.numericUpDownPointGapDepth); this.panel1.Controls.Add(this.numericUpDownPointDepth); this.panel1.Controls.Add(this.label3); this.panel1.Controls.Add(this.label4); this.panel1.Controls.Add(this.checkClustered); this.panel1.Controls.Add(this.radioButtonColumn); this.panel1.Controls.Add(this.radioButtonBar); this.panel1.Location = new System.Drawing.Point(432, 61); this.panel1.Name = "panel1"; this.panel1.Size = new System.Drawing.Size(292, 280); this.panel1.TabIndex = 2; // // numericUpDownPointGapDepth // this.numericUpDownPointGapDepth.Increment = new decimal(new int[] { 50, 0, 0, 0 }); this.numericUpDownPointGapDepth.Location = new System.Drawing.Point(168, 136); this.numericUpDownPointGapDepth.Maximum = new decimal(new int[] { 1000, 0, 0, 0 }); this.numericUpDownPointGapDepth.Name = "numericUpDownPointGapDepth"; this.numericUpDownPointGapDepth.Size = new System.Drawing.Size(56, 22); this.numericUpDownPointGapDepth.TabIndex = 6; this.numericUpDownPointGapDepth.Value = new decimal(new int[] { 100, 0, 0, 0 }); this.numericUpDownPointGapDepth.ValueChanged += new System.EventHandler(this.numericUpDownPointGapDepth_ValueChanged); // // numericUpDownPointDepth // this.numericUpDownPointDepth.Increment = new decimal(new int[] { 25, 0, 0, 0 }); this.numericUpDownPointDepth.Location = new System.Drawing.Point(168, 104); this.numericUpDownPointDepth.Maximum = new decimal(new int[] { 1000, 0, 0, 0 }); this.numericUpDownPointDepth.Name = "numericUpDownPointDepth"; this.numericUpDownPointDepth.Size = new System.Drawing.Size(56, 22); this.numericUpDownPointDepth.TabIndex = 4; this.numericUpDownPointDepth.Value = new decimal(new int[] { 100, 0, 0, 0 }); this.numericUpDownPointDepth.ValueChanged += new System.EventHandler(this.numericUpDownPointDepth_ValueChanged); // // label3 // this.label3.Location = new System.Drawing.Point(18, 136); this.label3.Name = "label3"; this.label3.Size = new System.Drawing.Size(144, 23); this.label3.TabIndex = 5; this.label3.Text = "&Gap Depth:"; this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // label4 // this.label4.Location = new System.Drawing.Point(10, 104); this.label4.Name = "label4"; this.label4.Size = new System.Drawing.Size(152, 23); this.label4.TabIndex = 3; this.label4.Text = "Point &Depth:"; this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // checkClustered // this.checkClustered.CheckAlign = System.Drawing.ContentAlignment.MiddleRight; this.checkClustered.Checked = true; this.checkClustered.CheckState = System.Windows.Forms.CheckState.Checked; this.checkClustered.Location = new System.Drawing.Point(45, 72); this.checkClustered.Name = "checkClustered"; this.checkClustered.Size = new System.Drawing.Size(136, 24); this.checkClustered.TabIndex = 2; this.checkClustered.Text = "C&lustered:"; this.checkClustered.TextAlign = System.Drawing.ContentAlignment.MiddleRight; this.checkClustered.CheckedChanged += new System.EventHandler(this.checkClustered_CheckedChanged); // // radioButtonColumn // this.radioButtonColumn.CheckAlign = System.Drawing.ContentAlignment.MiddleRight; this.radioButtonColumn.Checked = true; this.radioButtonColumn.Location = new System.Drawing.Point(13, 40); this.radioButtonColumn.Name = "radioButtonColumn"; this.radioButtonColumn.Size = new System.Drawing.Size(168, 24); this.radioButtonColumn.TabIndex = 1; this.radioButtonColumn.TabStop = true; this.radioButtonColumn.Text = "3D &Column Cylinder:"; this.radioButtonColumn.TextAlign = System.Drawing.ContentAlignment.MiddleRight; this.radioButtonColumn.CheckedChanged += new System.EventHandler(this.radioButtonColumn_CheckedChanged); // // radioButtonBar // this.radioButtonBar.CheckAlign = System.Drawing.ContentAlignment.MiddleRight; this.radioButtonBar.Location = new System.Drawing.Point(29, 8); this.radioButtonBar.Name = "radioButtonBar"; this.radioButtonBar.Size = new System.Drawing.Size(152, 24); this.radioButtonBar.TabIndex = 0; this.radioButtonBar.Text = "3D &Bar Cylinder:"; this.radioButtonBar.TextAlign = System.Drawing.ContentAlignment.MiddleRight; this.radioButtonBar.CheckedChanged += new System.EventHandler(this.radioButtonBar_CheckedChanged); // // label1 // this.label1.Font = new System.Drawing.Font("Verdana", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label1.Location = new System.Drawing.Point(16, 349); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(702, 32); this.label1.TabIndex = 3; this.label1.Text = "Click on the chart and drag the mouse to rotate the chart."; this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // Cylinder3D // this.BackColor = System.Drawing.Color.White; this.Controls.Add(this.label1); this.Controls.Add(this.panel1); this.Controls.Add(this.labelSampleComment); this.Controls.Add(this.chart1); this.Font = new System.Drawing.Font("Verdana", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.Name = "Cylinder3D"; this.Size = new System.Drawing.Size(728, 480); this.Load += new System.EventHandler(this.Cylinder3D_Load); ((System.ComponentModel.ISupportInitialize)(this.chart1)).EndInit(); this.panel1.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.numericUpDownPointGapDepth)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.numericUpDownPointDepth)).EndInit(); this.ResumeLayout(false); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { System.Windows.Forms.DataVisualization.Charting.ChartArea chartArea1 = new System.Windows.Forms.DataVisualization.Charting.ChartArea(); System.Windows.Forms.DataVisualization.Charting.Legend legend1 = new System.Windows.Forms.DataVisualization.Charting.Legend(); System.Windows.Forms.DataVisualization.Charting.Series series1 = new System.Windows.Forms.DataVisualization.Charting.Series(); System.Windows.Forms.DataVisualization.Charting.Series series2 = new System.Windows.Forms.DataVisualization.Charting.Series(); System.Windows.Forms.DataVisualization.Charting.Title title1 = new System.Windows.Forms.DataVisualization.Charting.Title(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FastLineChartType)); this._chart1 = new System.Windows.Forms.DataVisualization.Charting.Chart(); this._labelSampleComment = 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._buttonAddPoints = new System.Windows.Forms.Button(); this._label2 = new System.Windows.Forms.Label(); this._label3 = new System.Windows.Forms.Label(); ((System.ComponentModel.ISupportInitialize)(this._chart1)).BeginInit(); this._panel1.SuspendLayout(); this.SuspendLayout(); // // chart1 // this._chart1.BackColor = System.Drawing.Color.WhiteSmoke; this._chart1.BackGradientStyle = System.Windows.Forms.DataVisualization.Charting.GradientStyle.TopBottom; this._chart1.BackSecondaryColor = System.Drawing.Color.White; this._chart1.BorderlineColor = System.Drawing.Color.FromArgb(((int)(((byte)(26)))), ((int)(((byte)(59)))), ((int)(((byte)(105))))); this._chart1.BorderlineDashStyle = System.Windows.Forms.DataVisualization.Charting.ChartDashStyle.Solid; this._chart1.BorderlineWidth = 2; this._chart1.BorderSkin.SkinStyle = System.Windows.Forms.DataVisualization.Charting.BorderSkinStyle.Emboss; chartArea1.Area3DStyle.Inclination = 15; chartArea1.Area3DStyle.IsClustered = true; chartArea1.Area3DStyle.IsRightAngleAxes = false; chartArea1.Area3DStyle.Perspective = 10; chartArea1.Area3DStyle.Rotation = 10; chartArea1.Area3DStyle.WallWidth = 0; chartArea1.AxisX.LabelAutoFitStyle = ((System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles)(((System.Windows.Forms .DataVisualization.Charting.LabelAutoFitStyles.IncreaseFont | System.Windows.Forms .DataVisualization.Charting.LabelAutoFitStyles.DecreaseFont) | 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.AxisX.ScrollBar.LineColor = System.Drawing.Color.Black; chartArea1.AxisX.ScrollBar.Size = 10; chartArea1.AxisY.LabelStyle.Font = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold); chartArea1.AxisY.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea1.AxisY.MajorGrid.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea1.AxisY.ScrollBar.LineColor = System.Drawing.Color.Black; chartArea1.AxisY.ScrollBar.Size = 10; 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.CursorX.IsUserEnabled = true; chartArea1.CursorX.IsUserSelectionEnabled = true; chartArea1.CursorY.IsUserEnabled = true; chartArea1.CursorY.IsUserSelectionEnabled = true; chartArea1.Name = "Default"; chartArea1.ShadowColor = System.Drawing.Color.Transparent; this._chart1.ChartAreas.Add(chartArea1); legend1.BackColor = System.Drawing.Color.Transparent; legend1.Enabled = false; legend1.Font = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold); legend1.IsTextAutoFit = false; legend1.Name = "Default"; this._chart1.Legends.Add(legend1); this._chart1.Location = new System.Drawing.Point(16, 58); this._chart1.Name = "_chart1"; series1.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(180)))), ((int)(((byte)(26)))), ((int)(((byte)(59)))), ((int)(((byte)(105))))); series1.ChartArea = "Default"; series1.ChartType = System.Windows.Forms.DataVisualization.Charting.SeriesChartType.FastLine; series1.Legend = "Default"; series1.Name = "Series1"; series1.ShadowColor = System.Drawing.Color.Black; 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.FastLine; series2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(64)))), ((int)(((byte)(10))))); series2.Legend = "Default"; series2.Name = "Series2"; series2.ShadowColor = System.Drawing.Color.Black; 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", 12F, 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 = "Two series with 20000 points each"; this._chart1.Titles.Add(title1); // // labelSampleComment // this._labelSampleComment.Font = new System.Drawing.Font("Verdana", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this._labelSampleComment.Location = new System.Drawing.Point(16, 8); this._labelSampleComment.Name = "_labelSampleComment"; this._labelSampleComment.Size = new System.Drawing.Size(702, 45); this._labelSampleComment.TabIndex = 2; this._labelSampleComment.Text = "The Fast Line and Fast Point chart types significantly reduce the drawing time of" + " a series that has many data points. "; this._labelSampleComment.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // panel1 // this._panel1.Controls.Add(this._comboBoxChartType); this._panel1.Controls.Add(this._label1); this._panel1.Controls.Add(this._buttonAddPoints); this._panel1.Location = new System.Drawing.Point(432, 66); this._panel1.Name = "_panel1"; this._panel1.Size = new System.Drawing.Size(292, 288); this._panel1.TabIndex = 1; // // comboBoxChartType // this._comboBoxChartType.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this._comboBoxChartType.Items.AddRange(new object[] { "Fast Line", "Fast Point" }); this._comboBoxChartType.Location = new System.Drawing.Point(184, 8); this._comboBoxChartType.Name = "_comboBoxChartType"; this._comboBoxChartType.Size = new System.Drawing.Size(104, 22); this._comboBoxChartType.TabIndex = 3; this._comboBoxChartType.SelectedIndexChanged += new System.EventHandler(this.comboBoxChartType_SelectedIndexChanged); // // label1 // this._label1.Location = new System.Drawing.Point(51, 8); this._label1.Name = "_label1"; this._label1.Size = new System.Drawing.Size(112, 23); this._label1.TabIndex = 2; this._label1.Text = "Chart &Type:"; this._label1.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // buttonAddPoints // this._buttonAddPoints.BackColor = System.Drawing.SystemColors.Control; this._buttonAddPoints.Location = new System.Drawing.Point(104, 48); this._buttonAddPoints.Name = "_buttonAddPoints"; this._buttonAddPoints.Size = new System.Drawing.Size(184, 23); this._buttonAddPoints.TabIndex = 1; this._buttonAddPoints.Text = "&Add 1000 Data Points"; this._buttonAddPoints.UseVisualStyleBackColor = false; this._buttonAddPoints.Click += new System.EventHandler(this.buttonAddPoints_Click); // // 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, 362); this._label2.Name = "_label2"; this._label2.Size = new System.Drawing.Size(702, 72); this._label2.TabIndex = 3; this._label2.Text = resources.GetString("label2.Text"); this._label2.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // label3 // 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, 435); this._label3.Name = "_label3"; this._label3.Size = new System.Drawing.Size(702, 27); this._label3.TabIndex = 4; this._label3.Text = "To further enhance performance,�disable tooltips, anti-aliasing, and border skins" + "."; this._label3.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // FastLineChartType // this.BackColor = System.Drawing.Color.White; this.Controls.Add(this._label3); 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 = "FastLineChartType"; this.Size = new System.Drawing.Size(728, 511); this.Load += new System.EventHandler(this.PieChartType_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.Title title1 = new System.Windows.Forms.DataVisualization.Charting.Title(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FastLineChartType)); this.chart1 = new System.Windows.Forms.DataVisualization.Charting.Chart(); this.labelSampleComment = 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.buttonAddPoints = new System.Windows.Forms.Button(); this.label2 = new System.Windows.Forms.Label(); this.label3 = new System.Windows.Forms.Label(); ((System.ComponentModel.ISupportInitialize)(this.chart1)).BeginInit(); this.panel1.SuspendLayout(); this.SuspendLayout(); // // chart1 // this.chart1.BackColor = System.Drawing.Color.WhiteSmoke; this.chart1.BackGradientStyle = System.Windows.Forms.DataVisualization.Charting.GradientStyle.TopBottom; this.chart1.BackSecondaryColor = System.Drawing.Color.White; this.chart1.BorderlineColor = System.Drawing.Color.FromArgb(((int)(((byte)(26)))), ((int)(((byte)(59)))), ((int)(((byte)(105))))); this.chart1.BorderlineDashStyle = System.Windows.Forms.DataVisualization.Charting.ChartDashStyle.Solid; this.chart1.BorderlineWidth = 2; this.chart1.BorderSkin.SkinStyle = System.Windows.Forms.DataVisualization.Charting.BorderSkinStyle.Emboss; chartArea1.Area3DStyle.Inclination = 15; chartArea1.Area3DStyle.IsClustered = true; chartArea1.Area3DStyle.IsRightAngleAxes = false; chartArea1.Area3DStyle.Perspective = 10; chartArea1.Area3DStyle.Rotation = 10; chartArea1.Area3DStyle.WallWidth = 0; chartArea1.AxisX.LabelAutoFitStyle = ((System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles)(((System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles.IncreaseFont | System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles.DecreaseFont) | 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.AxisX.ScrollBar.LineColor = System.Drawing.Color.Black; chartArea1.AxisX.ScrollBar.Size = 10; chartArea1.AxisY.LabelStyle.Font = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold); chartArea1.AxisY.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea1.AxisY.MajorGrid.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea1.AxisY.ScrollBar.LineColor = System.Drawing.Color.Black; chartArea1.AxisY.ScrollBar.Size = 10; 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.CursorX.IsUserEnabled = true; chartArea1.CursorX.IsUserSelectionEnabled = true; chartArea1.CursorY.IsUserEnabled = true; chartArea1.CursorY.IsUserSelectionEnabled = true; chartArea1.Name = "Default"; chartArea1.ShadowColor = System.Drawing.Color.Transparent; this.chart1.ChartAreas.Add(chartArea1); legend1.BackColor = System.Drawing.Color.Transparent; legend1.Enabled = false; legend1.Font = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold); legend1.IsTextAutoFit = false; legend1.Name = "Default"; this.chart1.Legends.Add(legend1); this.chart1.Location = new System.Drawing.Point(16, 58); this.chart1.Name = "chart1"; series1.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(180)))), ((int)(((byte)(26)))), ((int)(((byte)(59)))), ((int)(((byte)(105))))); series1.ChartArea = "Default"; series1.ChartType = System.Windows.Forms.DataVisualization.Charting.SeriesChartType.FastLine; series1.Legend = "Default"; series1.Name = "Series1"; series1.ShadowColor = System.Drawing.Color.Black; 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.FastLine; series2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(64)))), ((int)(((byte)(10))))); series2.Legend = "Default"; series2.Name = "Series2"; series2.ShadowColor = System.Drawing.Color.Black; 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", 12F, 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 = "Two series with 20000 points each"; this.chart1.Titles.Add(title1); // // labelSampleComment // this.labelSampleComment.Font = new System.Drawing.Font("Verdana", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.labelSampleComment.Location = new System.Drawing.Point(16, 8); this.labelSampleComment.Name = "labelSampleComment"; this.labelSampleComment.Size = new System.Drawing.Size(702, 45); this.labelSampleComment.TabIndex = 2; this.labelSampleComment.Text = "The Fast Line and Fast Point chart types significantly reduce the drawing time of" + " a series that has many data points. "; this.labelSampleComment.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // panel1 // this.panel1.Controls.Add(this.comboBoxChartType); this.panel1.Controls.Add(this.label1); this.panel1.Controls.Add(this.buttonAddPoints); this.panel1.Location = new System.Drawing.Point(432, 66); this.panel1.Name = "panel1"; this.panel1.Size = new System.Drawing.Size(292, 288); this.panel1.TabIndex = 1; // // comboBoxChartType // this.comboBoxChartType.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.comboBoxChartType.Items.AddRange(new object[] { "Fast Line", "Fast Point"}); this.comboBoxChartType.Location = new System.Drawing.Point(184, 8); this.comboBoxChartType.Name = "comboBoxChartType"; this.comboBoxChartType.Size = new System.Drawing.Size(104, 22); this.comboBoxChartType.TabIndex = 3; this.comboBoxChartType.SelectedIndexChanged += new System.EventHandler(this.comboBoxChartType_SelectedIndexChanged); // // label1 // this.label1.Location = new System.Drawing.Point(51, 8); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(112, 23); this.label1.TabIndex = 2; this.label1.Text = "Chart &Type:"; this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // buttonAddPoints // this.buttonAddPoints.BackColor = System.Drawing.SystemColors.Control; this.buttonAddPoints.Location = new System.Drawing.Point(104, 48); this.buttonAddPoints.Name = "buttonAddPoints"; this.buttonAddPoints.Size = new System.Drawing.Size(184, 23); this.buttonAddPoints.TabIndex = 1; this.buttonAddPoints.Text = "&Add 1000 Data Points"; this.buttonAddPoints.UseVisualStyleBackColor = false; this.buttonAddPoints.Click += new System.EventHandler(this.buttonAddPoints_Click); // // 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, 362); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(702, 72); this.label2.TabIndex = 3; this.label2.Text = resources.GetString("label2.Text"); this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // label3 // 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, 435); this.label3.Name = "label3"; this.label3.Size = new System.Drawing.Size(702, 27); this.label3.TabIndex = 4; this.label3.Text = "To further enhance performance,�disable tooltips, anti-aliasing, and border skins" + "."; this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // FastLineChartType // this.BackColor = System.Drawing.Color.White; this.Controls.Add(this.label3); 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 = "FastLineChartType"; this.Size = new System.Drawing.Size(728, 511); this.Load += new System.EventHandler(this.PieChartType_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.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.checkPropSymbols = new System.Windows.Forms.CheckBox(); this.comboBoxSize = new System.Windows.Forms.ComboBox(); this.label2 = new System.Windows.Forms.Label(); this.comboReversalAmount = new System.Windows.Forms.ComboBox(); this.label1 = new System.Windows.Forms.Label(); this.label3 = new System.Windows.Forms.Label(); ((System.ComponentModel.ISupportInitialize)(this.chart1)).BeginInit(); this.panel1.SuspendLayout(); this.SuspendLayout(); // // chart1 // this.chart1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(211)))), ((int)(((byte)(223)))), ((int)(((byte)(240))))); this.chart1.BackGradientStyle = System.Windows.Forms.DataVisualization.Charting.GradientStyle.TopBottom; this.chart1.BackSecondaryColor = System.Drawing.Color.White; this.chart1.BorderlineColor = System.Drawing.Color.FromArgb(((int)(((byte)(26)))), ((int)(((byte)(59)))), ((int)(((byte)(105))))); this.chart1.BorderlineDashStyle = System.Windows.Forms.DataVisualization.Charting.ChartDashStyle.Solid; this.chart1.BorderlineWidth = 2; this.chart1.BorderSkin.SkinStyle = System.Windows.Forms.DataVisualization.Charting.BorderSkinStyle.Emboss; chartArea1.Area3DStyle.Inclination = 15; chartArea1.Area3DStyle.IsClustered = true; chartArea1.Area3DStyle.IsRightAngleAxes = false; chartArea1.Area3DStyle.Perspective = 10; chartArea1.Area3DStyle.Rotation = 10; chartArea1.Area3DStyle.WallWidth = 0; chartArea1.AxisX.LabelStyle.Font = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold); chartArea1.AxisX.LabelStyle.Format = "MMM dd"; chartArea1.AxisX.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea1.AxisX.MajorGrid.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea1.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.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, 40); 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.PointAndFigure; series1.CustomProperties = "PriceUpColor=Black"; series1.IsXValueIndexed = true; series1.Legend = "Default"; series1.Name = "Default"; series1.XValueType = System.Windows.Forms.DataVisualization.Charting.ChartValueType.Date; series1.YValuesPerPoint = 2; series1.YValueType = System.Windows.Forms.DataVisualization.Charting.ChartValueType.Double; this.chart1.Series.Add(series1); this.chart1.Size = new System.Drawing.Size(412, 296); this.chart1.TabIndex = 1; 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 = "Point and Figure Chart"; this.chart1.Titles.Add(title1); this.chart1.Click += new System.EventHandler(this.chart1_Click); // // 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, 24); this.labelSampleComment.TabIndex = 0; this.labelSampleComment.Text = "This sample demonstrates the Point and Figure chart type."; this.labelSampleComment.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // panel1 // this.panel1.Controls.Add(this.checkPropSymbols); this.panel1.Controls.Add(this.comboBoxSize); this.panel1.Controls.Add(this.label2); this.panel1.Controls.Add(this.comboReversalAmount); this.panel1.Controls.Add(this.label1); this.panel1.Location = new System.Drawing.Point(432, 48); 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); // // checkPropSymbols // this.checkPropSymbols.CheckAlign = System.Drawing.ContentAlignment.MiddleRight; this.checkPropSymbols.Location = new System.Drawing.Point(5, 72); this.checkPropSymbols.Name = "checkPropSymbols"; this.checkPropSymbols.RightToLeft = System.Windows.Forms.RightToLeft.No; this.checkPropSymbols.Size = new System.Drawing.Size(176, 24); this.checkPropSymbols.TabIndex = 4; this.checkPropSymbols.Text = "&Proportional Symbols:"; this.checkPropSymbols.TextAlign = System.Drawing.ContentAlignment.MiddleRight; this.checkPropSymbols.CheckedChanged += new System.EventHandler(this.checkPropSymbols_CheckedChanged); // // comboBoxSize // this.comboBoxSize.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.comboBoxSize.Items.AddRange(new object[] { "1", "1.2", "7%", "8%", "9%", "Default" }); this.comboBoxSize.Location = new System.Drawing.Point(168, 8); this.comboBoxSize.Name = "comboBoxSize"; this.comboBoxSize.Size = new System.Drawing.Size(88, 22); this.comboBoxSize.TabIndex = 1; this.comboBoxSize.SelectedIndexChanged += new System.EventHandler(this.comboBoxSize_SelectedIndexChanged); // // label2 // this.label2.Location = new System.Drawing.Point(59, 8); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(104, 23); this.label2.TabIndex = 0; this.label2.Text = "Box &Size:"; this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // comboReversalAmount // this.comboReversalAmount.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.comboReversalAmount.Items.AddRange(new object[] { "1", "2", "3", "4", "5" }); this.comboReversalAmount.Location = new System.Drawing.Point(168, 40); this.comboReversalAmount.Name = "comboReversalAmount"; this.comboReversalAmount.Size = new System.Drawing.Size(88, 22); this.comboReversalAmount.TabIndex = 3; this.comboReversalAmount.SelectedIndexChanged += new System.EventHandler(this.comboReversalAmount_SelectedIndexChanged); // // label1 // this.label1.Location = new System.Drawing.Point(27, 40); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(136, 23); this.label1.TabIndex = 2; this.label1.Text = "Reversal &Amount:"; this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // 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); this.label3.Location = new System.Drawing.Point(13, 344); this.label3.Name = "label3"; this.label3.Size = new System.Drawing.Size(702, 40); this.label3.TabIndex = 23; this.label3.Text = "The ProportionalSymbols custom attribute indicates that the chart should try to d" + "raw ‘X’ and ‘O’ symbols proportionally."; this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // PointAndFigureChartType // this.BackColor = System.Drawing.Color.White; this.Controls.Add(this.label3); this.Controls.Add(this.panel1); this.Controls.Add(this.labelSampleComment); this.Controls.Add(this.chart1); this.Font = new System.Drawing.Font("Verdana", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.Name = "PointAndFigureChartType"; this.Size = new System.Drawing.Size(728, 480); this.Load += new System.EventHandler(this.PointAndFigureChartType_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 chartArea2 = new System.Windows.Forms.DataVisualization.Charting.ChartArea(); System.Windows.Forms.DataVisualization.Charting.Legend legend2 = new System.Windows.Forms.DataVisualization.Charting.Legend(); System.Windows.Forms.DataVisualization.Charting.Series series2 = new System.Windows.Forms.DataVisualization.Charting.Series(); System.Windows.Forms.DataVisualization.Charting.Title title2 = new System.Windows.Forms.DataVisualization.Charting.Title(); this.label9 = new System.Windows.Forms.Label(); this.Chart1 = new System.Windows.Forms.DataVisualization.Charting.Chart(); this.panel1 = new System.Windows.Forms.Panel(); this.button1 = new System.Windows.Forms.Button(); this.ConnectionLine = new System.Windows.Forms.CheckBox(); this.label1 = new System.Windows.Forms.Label(); ((System.ComponentModel.ISupportInitialize)(this.Chart1)).BeginInit(); this.panel1.SuspendLayout(); this.SuspendLayout(); // // label9 // this.label9.Font = new System.Drawing.Font("Verdana", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label9.Location = new System.Drawing.Point(16, 14); this.label9.Name = "label9"; this.label9.Size = new System.Drawing.Size(702, 43); this.label9.TabIndex = 2; this.label9.Text = "This sample demonstrates how to draw custom items using the PrePaint and PostPain" + "t events."; this.label9.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // Chart1 // this.Chart1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(211)))), ((int)(((byte)(223)))), ((int)(((byte)(240))))); this.Chart1.BackGradientStyle = System.Windows.Forms.DataVisualization.Charting.GradientStyle.TopBottom; this.Chart1.BackSecondaryColor = System.Drawing.Color.White; this.Chart1.BorderlineColor = System.Drawing.Color.FromArgb(((int)(((byte)(26)))), ((int)(((byte)(59)))), ((int)(((byte)(105))))); this.Chart1.BorderlineDashStyle = System.Windows.Forms.DataVisualization.Charting.ChartDashStyle.Solid; this.Chart1.BorderlineWidth = 2; this.Chart1.BorderSkin.SkinStyle = System.Windows.Forms.DataVisualization.Charting.BorderSkinStyle.Emboss; chartArea2.Area3DStyle.Inclination = 15; chartArea2.Area3DStyle.IsClustered = true; chartArea2.Area3DStyle.IsRightAngleAxes = false; chartArea2.Area3DStyle.Perspective = 10; chartArea2.Area3DStyle.Rotation = 10; chartArea2.Area3DStyle.WallWidth = 0; chartArea2.AxisX.IsMarginVisible = false; chartArea2.AxisX.LabelStyle.Font = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold); chartArea2.AxisX.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea2.AxisX.MajorGrid.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea2.AxisY.IsStartedFromZero = false; chartArea2.AxisY.LabelStyle.Font = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold); chartArea2.AxisY.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea2.AxisY.MajorGrid.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(165)))), ((int)(((byte)(191)))), ((int)(((byte)(228))))); chartArea2.BackGradientStyle = System.Windows.Forms.DataVisualization.Charting.GradientStyle.TopBottom; chartArea2.BackSecondaryColor = System.Drawing.Color.White; chartArea2.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea2.BorderDashStyle = System.Windows.Forms.DataVisualization.Charting.ChartDashStyle.Solid; chartArea2.Name = "Default"; chartArea2.ShadowColor = System.Drawing.Color.Transparent; this.Chart1.ChartAreas.Add(chartArea2); legend2.Alignment = System.Drawing.StringAlignment.Center; legend2.BackColor = System.Drawing.Color.Transparent; legend2.Docking = System.Windows.Forms.DataVisualization.Charting.Docking.Bottom; legend2.Enabled = false; legend2.Font = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold); legend2.IsTextAutoFit = false; legend2.Name = "Default"; this.Chart1.Legends.Add(legend2); this.Chart1.Location = new System.Drawing.Point(16, 65); this.Chart1.Name = "Chart1"; series2.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(180)))), ((int)(((byte)(26)))), ((int)(((byte)(59)))), ((int)(((byte)(105))))); series2.BorderWidth = 3; series2.ChartArea = "Default"; series2.ChartType = System.Windows.Forms.DataVisualization.Charting.SeriesChartType.Spline; series2.Legend = "Default"; series2.MarkerColor = System.Drawing.Color.AliceBlue; series2.MarkerSize = 8; series2.MarkerStyle = System.Windows.Forms.DataVisualization.Charting.MarkerStyle.Diamond; series2.Name = "Default"; series2.ShadowColor = System.Drawing.Color.Black; series2.ShadowOffset = 2; this.Chart1.Series.Add(series2); this.Chart1.Size = new System.Drawing.Size(412, 296); this.Chart1.TabIndex = 0; title2.Font = new System.Drawing.Font("Trebuchet MS", 14.25F, System.Drawing.FontStyle.Bold); title2.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(26)))), ((int)(((byte)(59)))), ((int)(((byte)(105))))); title2.Name = "Title1"; title2.ShadowColor = System.Drawing.Color.FromArgb(((int)(((byte)(32)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); title2.ShadowOffset = 3; title2.Text = "PrePaint and PostPaint Events"; this.Chart1.Titles.Add(title2); this.Chart1.PostPaint += new System.EventHandler<System.Windows.Forms.DataVisualization.Charting.ChartPaintEventArgs>(this.Chart1_PostPaint); this.Chart1.PrePaint += new System.EventHandler<System.Windows.Forms.DataVisualization.Charting.ChartPaintEventArgs>(this.Chart1_PrePaint); // // panel1 // this.panel1.Controls.Add(this.button1); this.panel1.Controls.Add(this.ConnectionLine); 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 = 1; // // button1 // this.button1.BackColor = System.Drawing.SystemColors.Control; this.button1.Location = new System.Drawing.Point(88, 56); this.button1.Name = "button1"; this.button1.Size = new System.Drawing.Size(136, 23); this.button1.TabIndex = 1; this.button1.Text = "&Random Data"; this.button1.UseVisualStyleBackColor = false; this.button1.Click += new System.EventHandler(this.button1_Click); // // ConnectionLine // this.ConnectionLine.Checked = true; this.ConnectionLine.CheckState = System.Windows.Forms.CheckState.Checked; this.ConnectionLine.Location = new System.Drawing.Point(48, 16); this.ConnectionLine.Name = "ConnectionLine"; this.ConnectionLine.Size = new System.Drawing.Size(232, 32); this.ConnectionLine.TabIndex = 0; this.ConnectionLine.Text = "Show Max-Min &Connection Line"; this.ConnectionLine.CheckedChanged += new System.EventHandler(this.ConnectionLine_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, 373); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(702, 40); this.label1.TabIndex = 3; this.label1.Text = "Data points with the maximum and minimum Y values are highlighted. Horizontal and" + " connection lines are also drawn in this sample."; this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // PrePostPaint // this.BackColor = System.Drawing.Color.White; this.Controls.Add(this.label1); this.Controls.Add(this.panel1); this.Controls.Add(this.Chart1); this.Controls.Add(this.label9); this.Font = new System.Drawing.Font("Verdana", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.Name = "PrePostPaint"; this.Size = new System.Drawing.Size(728, 440); this.Load += new System.EventHandler(this.PrePostPaint_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() { this.components = new System.ComponentModel.Container(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form1)); System.Windows.Forms.DataVisualization.Charting.LineAnnotation lineAnnotation2 = new System.Windows.Forms.DataVisualization.Charting.LineAnnotation(); System.Windows.Forms.DataVisualization.Charting.ChartArea chartArea2 = new System.Windows.Forms.DataVisualization.Charting.ChartArea(); System.Windows.Forms.DataVisualization.Charting.Legend legend2 = new System.Windows.Forms.DataVisualization.Charting.Legend(); System.Windows.Forms.DataVisualization.Charting.Series series2 = new System.Windows.Forms.DataVisualization.Charting.Series(); System.Windows.Forms.DataVisualization.Charting.Title title2 = new System.Windows.Forms.DataVisualization.Charting.Title(); this.loadPricesButton = new System.Windows.Forms.Button(); this.notifyIcon1 = new System.Windows.Forms.NotifyIcon(this.components); this.showValues = new System.Windows.Forms.CheckBox(); this.tabControl1 = new System.Windows.Forms.TabControl(); this.tabPage1 = new System.Windows.Forms.TabPage(); this.chart = new System.Windows.Forms.DataVisualization.Charting.Chart(); this.tabPage2 = new System.Windows.Forms.TabPage(); this.label2 = new System.Windows.Forms.Label(); this.label1 = new System.Windows.Forms.Label(); this.minSavePercTextBox = new System.Windows.Forms.TextBox(); this.tabPage3 = new System.Windows.Forms.TabPage(); this.configurationTab = new System.Windows.Forms.TextBox(); this.tabPage4 = new System.Windows.Forms.TabPage(); this.statsBox = new System.Windows.Forms.RichTextBox(); this.statusLabel = new System.Windows.Forms.Label(); this.button3 = new System.Windows.Forms.Button(); this.button2 = new System.Windows.Forms.Button(); this.buttonExecute = new System.Windows.Forms.Button(); this.loadTAButton = new System.Windows.Forms.Button(); this.timeFast = new System.Windows.Forms.Timer(this.components); this.debugView = new System.Windows.Forms.ListBox(); this.funcListLabel = new System.Windows.Forms.TextBox(); this.nodelayCheckbox = new System.Windows.Forms.CheckBox(); this.tabControl1.SuspendLayout(); this.tabPage1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.chart)).BeginInit(); this.tabPage2.SuspendLayout(); this.tabPage3.SuspendLayout(); this.tabPage4.SuspendLayout(); this.SuspendLayout(); // // loadPricesButton // this.loadPricesButton.AllowDrop = true; this.loadPricesButton.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; this.loadPricesButton.BackColor = System.Drawing.SystemColors.Menu; this.loadPricesButton.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom; this.loadPricesButton.Cursor = System.Windows.Forms.Cursors.Arrow; this.loadPricesButton.FlatAppearance.BorderColor = System.Drawing.Color.DimGray; this.loadPricesButton.FlatAppearance.BorderSize = 2; this.loadPricesButton.FlatAppearance.CheckedBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(255)))), ((int)(((byte)(192))))); this.loadPricesButton.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Cyan; this.loadPricesButton.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(128)))), ((int)(((byte)(0))))); this.loadPricesButton.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.loadPricesButton.Font = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204))); this.loadPricesButton.ForeColor = System.Drawing.Color.Navy; this.loadPricesButton.Location = new System.Drawing.Point(611, 29); this.loadPricesButton.Margin = new System.Windows.Forms.Padding(7); this.loadPricesButton.Name = "loadPricesButton"; this.loadPricesButton.Size = new System.Drawing.Size(103, 30); this.loadPricesButton.TabIndex = 0; this.loadPricesButton.Text = "load prices"; this.loadPricesButton.UseVisualStyleBackColor = false; this.loadPricesButton.Click += new System.EventHandler(this.LoadPricesButtonClick); // // notifyIcon1 // this.notifyIcon1.BalloonTipIcon = System.Windows.Forms.ToolTipIcon.Info; this.notifyIcon1.BalloonTipText = "ef vf df dd fg"; this.notifyIcon1.BalloonTipTitle = "d gfhth rhgh"; this.notifyIcon1.Icon = ((System.Drawing.Icon)(resources.GetObject("notifyIcon1.Icon"))); this.notifyIcon1.Text = "notifyIcon1"; this.notifyIcon1.Visible = true; this.notifyIcon1.MouseClick += new System.Windows.Forms.MouseEventHandler(this.TrayClick); this.notifyIcon1.MouseDoubleClick += new System.Windows.Forms.MouseEventHandler(this.NotifyIcon1MouseDoubleClick); // // showValues // this.showValues.AutoSize = true; this.showValues.BackColor = System.Drawing.Color.RoyalBlue; this.showValues.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch; this.showValues.Cursor = System.Windows.Forms.Cursors.Hand; this.showValues.ForeColor = System.Drawing.Color.OldLace; this.showValues.Location = new System.Drawing.Point(143, 24); this.showValues.Margin = new System.Windows.Forms.Padding(0); this.showValues.Name = "showValues"; this.showValues.Size = new System.Drawing.Size(83, 20); this.showValues.TabIndex = 1; this.showValues.Text = "showValues"; this.showValues.UseVisualStyleBackColor = false; this.showValues.CheckedChanged += new System.EventHandler(this.CheckBox1CheckedChanged); // // tabControl1 // this.tabControl1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left))); this.tabControl1.Controls.Add(this.tabPage1); this.tabControl1.Controls.Add(this.tabPage2); this.tabControl1.Controls.Add(this.tabPage3); this.tabControl1.Controls.Add(this.tabPage4); this.tabControl1.Font = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204))); this.tabControl1.Location = new System.Drawing.Point(1, 0); this.tabControl1.Margin = new System.Windows.Forms.Padding(9); this.tabControl1.Name = "tabControl1"; this.tabControl1.Padding = new System.Drawing.Point(9, 3); this.tabControl1.SelectedIndex = 0; this.tabControl1.Size = new System.Drawing.Size(609, 464); this.tabControl1.TabIndex = 2; // // tabPage1 // this.tabPage1.BackColor = System.Drawing.SystemColors.Control; this.tabPage1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom; this.tabPage1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.tabPage1.Controls.Add(this.chart); this.tabPage1.Location = new System.Drawing.Point(4, 25); this.tabPage1.Name = "tabPage1"; this.tabPage1.Padding = new System.Windows.Forms.Padding(3); this.tabPage1.Size = new System.Drawing.Size(601, 435); this.tabPage1.TabIndex = 0; this.tabPage1.Text = "Preload"; // // chart // lineAnnotation2.Name = "LineAnnotation1"; this.chart.Annotations.Add(lineAnnotation2); this.chart.AntiAliasing = System.Windows.Forms.DataVisualization.Charting.AntiAliasingStyles.Graphics; this.chart.BackColor = System.Drawing.Color.Ivory; this.chart.BackGradientStyle = System.Windows.Forms.DataVisualization.Charting.GradientStyle.Center; this.chart.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center; this.chart.BackImageAlignment = System.Windows.Forms.DataVisualization.Charting.ChartImageAlignmentStyle.Bottom; this.chart.BackImageTransparentColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(128)))), ((int)(((byte)(255))))); this.chart.BackSecondaryColor = System.Drawing.Color.Transparent; this.chart.BorderlineColor = System.Drawing.Color.OrangeRed; this.chart.BorderlineDashStyle = System.Windows.Forms.DataVisualization.Charting.ChartDashStyle.Dash; this.chart.BorderlineWidth = 4; this.chart.BorderSkin.BackColor = System.Drawing.Color.Maroon; this.chart.BorderSkin.BackGradientStyle = System.Windows.Forms.DataVisualization.Charting.GradientStyle.TopBottom; this.chart.BorderSkin.BackHatchStyle = System.Windows.Forms.DataVisualization.Charting.ChartHatchStyle.Cross; this.chart.BorderSkin.BackImageAlignment = System.Windows.Forms.DataVisualization.Charting.ChartImageAlignmentStyle.Center; this.chart.BorderSkin.BackImageTransparentColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(255))))); this.chart.BorderSkin.BackSecondaryColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(192)))), ((int)(((byte)(255))))); this.chart.BorderSkin.BorderColor = System.Drawing.Color.MediumBlue; this.chart.BorderSkin.BorderDashStyle = System.Windows.Forms.DataVisualization.Charting.ChartDashStyle.DashDot; this.chart.BorderSkin.BorderWidth = 3; this.chart.BorderSkin.PageColor = System.Drawing.Color.Turquoise; this.chart.BorderSkin.SkinStyle = System.Windows.Forms.DataVisualization.Charting.BorderSkinStyle.Emboss; chartArea2.Area3DStyle.IsRightAngleAxes = false; chartArea2.Area3DStyle.LightStyle = System.Windows.Forms.DataVisualization.Charting.LightStyle.Realistic; chartArea2.Area3DStyle.WallWidth = 0; chartArea2.AxisX.ArrowStyle = System.Windows.Forms.DataVisualization.Charting.AxisArrowStyle.Lines; chartArea2.AxisX.LineDashStyle = System.Windows.Forms.DataVisualization.Charting.ChartDashStyle.Dash; chartArea2.AxisX.ScaleView.MinSizeType = System.Windows.Forms.DataVisualization.Charting.DateTimeIntervalType.Number; chartArea2.BackGradientStyle = System.Windows.Forms.DataVisualization.Charting.GradientStyle.TopBottom; chartArea2.BackHatchStyle = System.Windows.Forms.DataVisualization.Charting.ChartHatchStyle.DarkDownwardDiagonal; chartArea2.BackImageAlignment = System.Windows.Forms.DataVisualization.Charting.ChartImageAlignmentStyle.Top; chartArea2.Name = "ChartArea1"; this.chart.ChartAreas.Add(chartArea2); this.chart.Cursor = System.Windows.Forms.Cursors.Default; this.chart.ImeMode = System.Windows.Forms.ImeMode.NoControl; legend2.BackImageWrapMode = System.Windows.Forms.DataVisualization.Charting.ChartImageWrapMode.Unscaled; legend2.BackSecondaryColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(192)))), ((int)(((byte)(255))))); legend2.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(255))))); legend2.BorderDashStyle = System.Windows.Forms.DataVisualization.Charting.ChartDashStyle.Dash; legend2.BorderWidth = 5; legend2.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); legend2.IsTextAutoFit = false; legend2.Name = "xxx"; legend2.TitleFont = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.chart.Legends.Add(legend2); this.chart.Location = new System.Drawing.Point(-2, 6); this.chart.Margin = new System.Windows.Forms.Padding(0); this.chart.Name = "chart"; this.chart.Palette = System.Windows.Forms.DataVisualization.Charting.ChartColorPalette.Bright; series2.ChartArea = "ChartArea1"; series2.ChartType = System.Windows.Forms.DataVisualization.Charting.SeriesChartType.Line; series2.Legend = "xxx"; series2.Name = "Series1"; series2.YValuesPerPoint = 6; this.chart.Series.Add(series2); this.chart.Size = new System.Drawing.Size(594, 432); this.chart.TabIndex = 5; this.chart.Text = "chart1"; this.chart.TextAntiAliasingQuality = System.Windows.Forms.DataVisualization.Charting.TextAntiAliasingQuality.SystemDefault; title2.Name = "Title1"; this.chart.Titles.Add(title2); this.chart.PostPaint += new System.EventHandler <System.Windows.Forms.DataVisualization.Charting.ChartPaintEventArgs>(this.Chart_PostPaint); this.chart.Click += new System.EventHandler(this.ChartClick); // // tabPage2 // this.tabPage2.BackColor = System.Drawing.SystemColors.ButtonShadow; this.tabPage2.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center; this.tabPage2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.tabPage2.Controls.Add(this.label2); this.tabPage2.Controls.Add(this.label1); this.tabPage2.Controls.Add(this.minSavePercTextBox); this.tabPage2.Controls.Add(this.showValues); this.tabPage2.Location = new System.Drawing.Point(4, 25); this.tabPage2.Name = "tabPage2"; this.tabPage2.Padding = new System.Windows.Forms.Padding(3); this.tabPage2.Size = new System.Drawing.Size(601, 435); this.tabPage2.TabIndex = 1; this.tabPage2.Text = "options"; // // label2 // this.label2.AutoSize = true; this.label2.Font = new System.Drawing.Font("Segoe UI", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label2.Location = new System.Drawing.Point(26, 24); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(112, 17); this.label2.TabIndex = 4; this.label2.Text = "Show input values"; // // label1 // this.label1.AutoSize = true; this.label1.Font = new System.Drawing.Font("Segoe UI", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label1.Location = new System.Drawing.Point(1, 56); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(139, 17); this.label1.TabIndex = 3; this.label1.Text = "MinSaveHitPercent (%)"; // // minSavePercTextBox // this.minSavePercTextBox.BackColor = System.Drawing.SystemColors.MenuHighlight; this.minSavePercTextBox.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.minSavePercTextBox.Cursor = System.Windows.Forms.Cursors.UpArrow; this.minSavePercTextBox.ForeColor = System.Drawing.SystemColors.Info; this.minSavePercTextBox.Location = new System.Drawing.Point(143, 54); this.minSavePercTextBox.Name = "minSavePercTextBox"; this.minSavePercTextBox.Size = new System.Drawing.Size(100, 20); this.minSavePercTextBox.TabIndex = 2; this.minSavePercTextBox.Text = "86"; this.minSavePercTextBox.TextChanged += new System.EventHandler(this.textBox1_TextChanged); // // tabPage3 // this.tabPage3.BackColor = System.Drawing.Color.Maroon; this.tabPage3.BackgroundImage = global::FinancePermutator.Properties.Resources._86015670; this.tabPage3.Controls.Add(this.configurationTab); this.tabPage3.Location = new System.Drawing.Point(4, 25); this.tabPage3.Name = "tabPage3"; this.tabPage3.Padding = new System.Windows.Forms.Padding(3); this.tabPage3.Size = new System.Drawing.Size(601, 435); this.tabPage3.TabIndex = 2; this.tabPage3.Text = "configuration"; this.tabPage3.UseVisualStyleBackColor = true; // // configurationTab // this.configurationTab.AcceptsReturn = true; this.configurationTab.AcceptsTab = true; this.configurationTab.AccessibleRole = System.Windows.Forms.AccessibleRole.Table; this.configurationTab.BackColor = System.Drawing.Color.LightSteelBlue; this.configurationTab.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.configurationTab.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.configurationTab.ForeColor = System.Drawing.Color.DarkSlateBlue; this.configurationTab.ImeMode = System.Windows.Forms.ImeMode.NoControl; this.configurationTab.Location = new System.Drawing.Point(0, 0); this.configurationTab.Margin = new System.Windows.Forms.Padding(0); this.configurationTab.Multiline = true; this.configurationTab.Name = "configurationTab"; this.configurationTab.ScrollBars = System.Windows.Forms.ScrollBars.Vertical; this.configurationTab.Size = new System.Drawing.Size(598, 432); this.configurationTab.TabIndex = 0; this.configurationTab.Text = resources.GetString("configurationTab.Text"); // // tabPage4 // this.tabPage4.BackColor = System.Drawing.Color.CornflowerBlue; this.tabPage4.BackgroundImage = global::FinancePermutator.Properties.Resources.nuke; this.tabPage4.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom; this.tabPage4.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.tabPage4.Controls.Add(this.statsBox); this.tabPage4.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.tabPage4.ForeColor = System.Drawing.SystemColors.Info; this.tabPage4.Location = new System.Drawing.Point(4, 25); this.tabPage4.Name = "tabPage4"; this.tabPage4.Padding = new System.Windows.Forms.Padding(3); this.tabPage4.RightToLeft = System.Windows.Forms.RightToLeft.No; this.tabPage4.Size = new System.Drawing.Size(601, 435); this.tabPage4.TabIndex = 3; this.tabPage4.Text = "stats"; // // statsBox // this.statsBox.BackColor = System.Drawing.SystemColors.GrayText; this.statsBox.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.statsBox.ForeColor = System.Drawing.Color.Azure; this.statsBox.Location = new System.Drawing.Point(4, 3); this.statsBox.Name = "statsBox"; this.statsBox.Size = new System.Drawing.Size(587, 424); this.statsBox.TabIndex = 0; this.statsBox.Text = "Networks done: 2\nSuccess: 0\nNumber of broken data: 3\nBad networks: 1"; // // statusLabel // this.statusLabel.BackColor = System.Drawing.Color.LightGoldenrodYellow; this.statusLabel.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; this.statusLabel.FlatStyle = System.Windows.Forms.FlatStyle.System; this.statusLabel.Font = new System.Drawing.Font("Lucida Console", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204))); this.statusLabel.ForeColor = System.Drawing.Color.MidnightBlue; this.statusLabel.Location = new System.Drawing.Point(10, 473); this.statusLabel.MaximumSize = new System.Drawing.Size(0, 19); this.statusLabel.MinimumSize = new System.Drawing.Size(800, 0); this.statusLabel.Name = "statusLabel"; this.statusLabel.Size = new System.Drawing.Size(800, 19); this.statusLabel.TabIndex = 6; this.statusLabel.Text = "idle"; // // button3 // this.button3.BackColor = System.Drawing.SystemColors.ButtonFace; this.button3.Cursor = System.Windows.Forms.Cursors.Hand; this.button3.DialogResult = System.Windows.Forms.DialogResult.OK; this.button3.FlatAppearance.BorderColor = System.Drawing.Color.DimGray; this.button3.FlatAppearance.BorderSize = 2; this.button3.FlatAppearance.CheckedBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(255)))), ((int)(((byte)(192))))); this.button3.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Cyan; this.button3.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(128)))), ((int)(((byte)(0))))); this.button3.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.button3.Font = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204))); this.button3.ForeColor = System.Drawing.Color.Navy; this.button3.Location = new System.Drawing.Point(611, 171); this.button3.Name = "button3"; this.button3.Size = new System.Drawing.Size(103, 35); this.button3.TabIndex = 4; this.button3.Text = "clear log"; this.button3.UseVisualStyleBackColor = false; this.button3.Click += new System.EventHandler(this.ExecuteButtonClick); // // button2 // this.button2.BackColor = System.Drawing.SystemColors.ButtonFace; this.button2.Cursor = System.Windows.Forms.Cursors.Hand; this.button2.FlatAppearance.BorderColor = System.Drawing.Color.DimGray; this.button2.FlatAppearance.BorderSize = 2; this.button2.FlatAppearance.CheckedBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(255)))), ((int)(((byte)(192))))); this.button2.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Cyan; this.button2.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(128)))), ((int)(((byte)(0))))); this.button2.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.button2.Font = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204))); this.button2.ForeColor = System.Drawing.Color.Navy; this.button2.Location = new System.Drawing.Point(611, 136); this.button2.Name = "button2"; this.button2.Size = new System.Drawing.Size(103, 29); this.button2.TabIndex = 3; this.button2.Text = "clear"; this.button2.UseVisualStyleBackColor = false; this.button2.Click += new System.EventHandler(this.CreateNetworkButtonClick); // // buttonExecute // this.buttonExecute.BackColor = System.Drawing.SystemColors.ButtonFace; this.buttonExecute.Cursor = System.Windows.Forms.Cursors.Hand; this.buttonExecute.Enabled = false; this.buttonExecute.FlatAppearance.BorderColor = System.Drawing.Color.DimGray; this.buttonExecute.FlatAppearance.BorderSize = 2; this.buttonExecute.FlatAppearance.CheckedBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(255)))), ((int)(((byte)(192))))); this.buttonExecute.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Cyan; this.buttonExecute.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(128)))), ((int)(((byte)(0))))); this.buttonExecute.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.buttonExecute.Font = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204))); this.buttonExecute.ForeColor = System.Drawing.Color.Navy; this.buttonExecute.Location = new System.Drawing.Point(611, 103); this.buttonExecute.Name = "buttonExecute"; this.buttonExecute.Size = new System.Drawing.Size(103, 28); this.buttonExecute.TabIndex = 2; this.buttonExecute.Text = "execute"; this.buttonExecute.UseVisualStyleBackColor = false; this.buttonExecute.Click += new System.EventHandler(this.GenerateTrainButtonClick); // // loadTAButton // this.loadTAButton.AllowDrop = true; this.loadTAButton.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; this.loadTAButton.BackColor = System.Drawing.SystemColors.Control; this.loadTAButton.Cursor = System.Windows.Forms.Cursors.Hand; this.loadTAButton.FlatAppearance.BorderColor = System.Drawing.Color.DimGray; this.loadTAButton.FlatAppearance.BorderSize = 2; this.loadTAButton.FlatAppearance.CheckedBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(255)))), ((int)(((byte)(192))))); this.loadTAButton.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Cyan; this.loadTAButton.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(128)))), ((int)(((byte)(0))))); this.loadTAButton.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.loadTAButton.Font = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204))); this.loadTAButton.ForeColor = System.Drawing.Color.Navy; this.loadTAButton.Location = new System.Drawing.Point(611, 67); this.loadTAButton.Margin = new System.Windows.Forms.Padding(7); this.loadTAButton.Name = "loadTAButton"; this.loadTAButton.Size = new System.Drawing.Size(103, 30); this.loadTAButton.TabIndex = 1; this.loadTAButton.Text = "load talib"; this.loadTAButton.UseVisualStyleBackColor = false; this.loadTAButton.Click += new System.EventHandler(this.LoadTaLib); // // timeFast // this.timeFast.Enabled = true; this.timeFast.Interval = 750; this.timeFast.Tick += new System.EventHandler(this.TimeFastTick); // // debugView // this.debugView.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(192))))); this.debugView.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.debugView.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; this.debugView.Font = new System.Drawing.Font("DejaVu Sans Mono", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204))); this.debugView.ForeColor = System.Drawing.Color.DarkOliveGreen; this.debugView.HorizontalScrollbar = true; this.debugView.ItemHeight = 11; this.debugView.Items.AddRange(new object[] { "Functions:", " Atan ", " arg 0 startIdx: 0 ", " arg 1 endIdx: 7 ", " arg 2 inReal: System.Double[] %Close% 8", " arg 3 outBegIdx: 0 ", " arg 4 outNBElement: 0 ", " arg 5 outReal: System.Double[] ", " Tan ", " arg 0 startIdx: 0 ", " arg 1 endIdx: 7 ", " arg 2 inReal: System.Double[] %Open% 8", " arg 3 outBegIdx: 0 ", " arg 4 outNBElement: 0 ", " arg 5 outReal: System.Double[] ", "", "InputDimension: 13" }); this.debugView.Location = new System.Drawing.Point(717, 22); this.debugView.Margin = new System.Windows.Forms.Padding(0); this.debugView.Name = "debugView"; this.debugView.ScrollAlwaysVisible = true; this.debugView.Size = new System.Drawing.Size(695, 431); this.debugView.TabIndex = 3; this.debugView.DrawItem += new System.Windows.Forms.DrawItemEventHandler(this.DebugView_Draw); // // funcListLabel // this.funcListLabel.BackColor = System.Drawing.SystemColors.ButtonFace; this.funcListLabel.BorderStyle = System.Windows.Forms.BorderStyle.None; this.funcListLabel.Cursor = System.Windows.Forms.Cursors.Default; this.funcListLabel.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204))); this.funcListLabel.ForeColor = System.Drawing.Color.Blue; this.funcListLabel.Location = new System.Drawing.Point(611, 473); this.funcListLabel.Margin = new System.Windows.Forms.Padding(0); this.funcListLabel.MaximumSize = new System.Drawing.Size(800, 999); this.funcListLabel.MinimumSize = new System.Drawing.Size(800, 12); this.funcListLabel.Name = "funcListLabel"; this.funcListLabel.Size = new System.Drawing.Size(800, 15); this.funcListLabel.TabIndex = 5; this.funcListLabel.Text = "conmtraimer"; this.funcListLabel.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; this.funcListLabel.WordWrap = false; // // nodelayCheckbox // this.nodelayCheckbox.AutoSize = true; this.nodelayCheckbox.Font = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204))); this.nodelayCheckbox.Location = new System.Drawing.Point(621, 212); this.nodelayCheckbox.Name = "nodelayCheckbox"; this.nodelayCheckbox.Size = new System.Drawing.Size(68, 20); this.nodelayCheckbox.TabIndex = 6; this.nodelayCheckbox.Text = "no delay"; this.nodelayCheckbox.UseVisualStyleBackColor = true; // // Form1 // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.AutoSize = true; this.BackColor = System.Drawing.SystemColors.Menu; this.BackgroundImage = global::FinancePermutator.Properties.Resources.nicebg; this.ClientSize = new System.Drawing.Size(1421, 500); this.Controls.Add(this.statusLabel); this.Controls.Add(this.nodelayCheckbox); this.Controls.Add(this.funcListLabel); this.Controls.Add(this.button3); this.Controls.Add(this.debugView); this.Controls.Add(this.button2); this.Controls.Add(this.tabControl1); this.Controls.Add(this.buttonExecute); this.Controls.Add(this.loadPricesButton); this.Controls.Add(this.loadTAButton); this.DoubleBuffered = true; this.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204))); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; this.Name = "Form1"; this.ShowIcon = false; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.Text = "Form1"; this.Load += new System.EventHandler(this.Form1_Load); this.Paint += new System.Windows.Forms.PaintEventHandler(this.Form1_Paint); this.Resize += new System.EventHandler(this.Form1Resize); this.tabControl1.ResumeLayout(false); this.tabPage1.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.chart)).EndInit(); this.tabPage2.ResumeLayout(false); this.tabPage2.PerformLayout(); this.tabPage3.ResumeLayout(false); this.tabPage3.PerformLayout(); this.tabPage4.ResumeLayout(false); this.ResumeLayout(false); this.PerformLayout(); }
/// <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> /// 设计器支持所需的方法 - 不要 /// 使用代码编辑器修改此方法的内容。 /// </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.Title title1 = new System.Windows.Forms.DataVisualization.Charting.Title(); System.Windows.Forms.DataVisualization.Charting.ChartArea chartArea2 = new System.Windows.Forms.DataVisualization.Charting.ChartArea(); System.Windows.Forms.DataVisualization.Charting.Legend legend2 = new System.Windows.Forms.DataVisualization.Charting.Legend(); System.Windows.Forms.DataVisualization.Charting.Title title2 = new System.Windows.Forms.DataVisualization.Charting.Title(); System.Windows.Forms.DataVisualization.Charting.ChartArea chartArea3 = new System.Windows.Forms.DataVisualization.Charting.ChartArea(); System.Windows.Forms.DataVisualization.Charting.Legend legend3 = new System.Windows.Forms.DataVisualization.Charting.Legend(); System.Windows.Forms.DataVisualization.Charting.Title title3 = new System.Windows.Forms.DataVisualization.Charting.Title(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormTagReader)); this.listView_Data = new System.Windows.Forms.ListView(); this.columnHeader_Epc = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); this.columnHeader_Antenna = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); this.columnHeader_TimeStamp = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); this.columnHeader_Rssi = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); this.columnHeader_Phase = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); this.columnHeader_Doppler = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); this.columnHeader_Velocity = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); this.columnHeader_TagCount = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); this.chart_Rssi = new System.Windows.Forms.DataVisualization.Charting.Chart(); this.chart_Phase = new System.Windows.Forms.DataVisualization.Charting.Chart(); this.chart_Doppler = new System.Windows.Forms.DataVisualization.Charting.Chart(); this.label_EPC = new System.Windows.Forms.Label(); this.comboBoxEPCs = new System.Windows.Forms.ComboBox(); this.label_Antenna = new System.Windows.Forms.Label(); this.comboBoxAntennas = new System.Windows.Forms.ComboBox(); this.menuStrip1 = new System.Windows.Forms.MenuStrip(); this.fileToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.ToolStripMenuItem_Save = new System.Windows.Forms.ToolStripMenuItem(); this.ToolStripMenuItem_Copy = new System.Windows.Forms.ToolStripMenuItem(); this.debugToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.ToolStripMenuItem_Connect = new System.Windows.Forms.ToolStripMenuItem(); this.ToolStripMenuItem_Start = new System.Windows.Forms.ToolStripMenuItem(); this.ToolStripMenuItem_Stop = new System.Windows.Forms.ToolStripMenuItem(); this.settingsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.ToolStripMenuItem_Settings = new System.Windows.Forms.ToolStripMenuItem(); this.viewToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.quickAccessToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.readerSettingsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.ToolStripMenuItem_Help = new System.Windows.Forms.ToolStripMenuItem(); this.ToolStripMenuItem_About = new System.Windows.Forms.ToolStripMenuItem(); this.toolStrip_QuickAccess = new System.Windows.Forms.ToolStrip(); this.toolStripButton_Save = new System.Windows.Forms.ToolStripButton(); this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator(); this.toolStripButton_Connect = new System.Windows.Forms.ToolStripButton(); this.toolStripButton_Start = new System.Windows.Forms.ToolStripButton(); this.toolStripButton_Stop = new System.Windows.Forms.ToolStripButton(); this.toolStripButton_Clear = new System.Windows.Forms.ToolStripButton(); this.toolStripButton_Refresh = new System.Windows.Forms.ToolStripButton(); this.toolStripSeparator2 = new System.Windows.Forms.ToolStripSeparator(); this.toolStripButton_Settings = new System.Windows.Forms.ToolStripButton(); this.statusStrip1 = new System.Windows.Forms.StatusStrip(); this.toolStripStatusLabel_Message = new System.Windows.Forms.ToolStripStatusLabel(); this.toolStripProgressBar = new System.Windows.Forms.ToolStripProgressBar(); this.toolStripStatusLabel_NameReport = new System.Windows.Forms.ToolStripStatusLabel(); this.toolStripStatusLabel_TotalReport = new System.Windows.Forms.ToolStripStatusLabel(); this.toolStripStatusLabel_NameEvent = new System.Windows.Forms.ToolStripStatusLabel(); this.toolStripStatusLabel_TotalEvent = new System.Windows.Forms.ToolStripStatusLabel(); this.toolStripStatusLabel_RunTime = new System.Windows.Forms.ToolStripStatusLabel(); this.toolStrip_ReaderSettings = new System.Windows.Forms.ToolStrip(); this.toolStripLabel_Address = new System.Windows.Forms.ToolStripLabel(); this.toolStripTextBox_Address = new System.Windows.Forms.ToolStripTextBox(); this.toolStripLabel_Power = new System.Windows.Forms.ToolStripLabel(); this.toolStripTextBox_Power = new System.Windows.Forms.ToolStripTextBox(); this.toolStripLabel_Frequency = new System.Windows.Forms.ToolStripLabel(); this.toolStripComboBox_Frequency = new System.Windows.Forms.ToolStripComboBox(); ((System.ComponentModel.ISupportInitialize)(this.chart_Rssi)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.chart_Phase)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.chart_Doppler)).BeginInit(); this.menuStrip1.SuspendLayout(); this.toolStrip_QuickAccess.SuspendLayout(); this.statusStrip1.SuspendLayout(); this.toolStrip_ReaderSettings.SuspendLayout(); this.SuspendLayout(); // // listView_Data // this.listView_Data.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.listView_Data.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] { this.columnHeader_Epc, this.columnHeader_Antenna, this.columnHeader_TimeStamp, this.columnHeader_Rssi, this.columnHeader_Phase, this.columnHeader_Doppler, this.columnHeader_Velocity, this.columnHeader_TagCount }); this.listView_Data.Font = new System.Drawing.Font("Calibri", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.listView_Data.GridLines = true; this.listView_Data.Location = new System.Drawing.Point(12, 48); this.listView_Data.Name = "listView_Data"; this.listView_Data.Size = new System.Drawing.Size(897, 245); this.listView_Data.TabIndex = 9; this.listView_Data.UseCompatibleStateImageBehavior = false; this.listView_Data.View = System.Windows.Forms.View.Details; // // columnHeader_Epc // this.columnHeader_Epc.Text = "EPC"; this.columnHeader_Epc.Width = 120; // // columnHeader_Antenna // this.columnHeader_Antenna.Text = "Antenna"; this.columnHeader_Antenna.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; // // columnHeader_TimeStamp // this.columnHeader_TimeStamp.Text = "TimeStamp"; this.columnHeader_TimeStamp.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; this.columnHeader_TimeStamp.Width = 120; // // columnHeader_Rssi // this.columnHeader_Rssi.Text = "Rssi"; this.columnHeader_Rssi.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; this.columnHeader_Rssi.Width = 120; // // columnHeader_Phase // this.columnHeader_Phase.Text = "Phase"; this.columnHeader_Phase.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; this.columnHeader_Phase.Width = 120; // // columnHeader_Doppler // this.columnHeader_Doppler.Text = "Doppler Shift"; this.columnHeader_Doppler.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; this.columnHeader_Doppler.Width = 120; // // columnHeader_Velocity // this.columnHeader_Velocity.Text = "Velocity"; this.columnHeader_Velocity.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; this.columnHeader_Velocity.Width = 120; // // columnHeader_TagCount // this.columnHeader_TagCount.Text = "TagCount"; this.columnHeader_TagCount.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; this.columnHeader_TagCount.Width = 120; // // chart_Rssi // this.chart_Rssi.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.chart_Rssi.BackColor = System.Drawing.Color.Transparent; this.chart_Rssi.BorderlineColor = System.Drawing.Color.Transparent; chartArea1.AxisX.MajorGrid.LineWidth = 0; chartArea1.AxisX2.Enabled = System.Windows.Forms.DataVisualization.Charting.AxisEnabled.False; chartArea1.AxisY.MajorGrid.LineWidth = 0; chartArea1.AxisY.Maximum = -20D; chartArea1.AxisY.Minimum = -70D; chartArea1.AxisY2.Enabled = System.Windows.Forms.DataVisualization.Charting.AxisEnabled.False; chartArea1.BackColor = System.Drawing.Color.Transparent; chartArea1.BorderColor = System.Drawing.Color.Transparent; chartArea1.Name = "ChartArea1"; this.chart_Rssi.ChartAreas.Add(chartArea1); legend1.BackColor = System.Drawing.Color.Transparent; legend1.Docking = System.Windows.Forms.DataVisualization.Charting.Docking.Bottom; legend1.Name = "Legend1"; this.chart_Rssi.Legends.Add(legend1); this.chart_Rssi.Location = new System.Drawing.Point(12, 329); this.chart_Rssi.Name = "chart_Rssi"; this.chart_Rssi.Size = new System.Drawing.Size(283, 236); this.chart_Rssi.TabIndex = 13; this.chart_Rssi.Text = "chart_Rssi"; title1.Name = "Title_Rssi"; title1.Text = "RSSI"; this.chart_Rssi.Titles.Add(title1); // // chart_Phase // this.chart_Phase.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.chart_Phase.BackColor = System.Drawing.Color.Transparent; this.chart_Phase.BorderlineColor = System.Drawing.Color.Transparent; chartArea2.AxisX.MajorGrid.LineWidth = 0; chartArea2.AxisX2.Enabled = System.Windows.Forms.DataVisualization.Charting.AxisEnabled.False; chartArea2.AxisY.MajorGrid.LineWidth = 0; chartArea2.AxisY.Maximum = 6.3D; chartArea2.AxisY.Minimum = 0D; chartArea2.AxisY2.Enabled = System.Windows.Forms.DataVisualization.Charting.AxisEnabled.False; chartArea2.BackColor = System.Drawing.Color.Transparent; chartArea2.Name = "ChartArea2"; this.chart_Phase.ChartAreas.Add(chartArea2); legend2.BackColor = System.Drawing.Color.Transparent; legend2.Docking = System.Windows.Forms.DataVisualization.Charting.Docking.Bottom; legend2.Name = "Legend2"; this.chart_Phase.Legends.Add(legend2); this.chart_Phase.Location = new System.Drawing.Point(319, 329); this.chart_Phase.Name = "chart_Phase"; this.chart_Phase.Size = new System.Drawing.Size(283, 236); this.chart_Phase.TabIndex = 14; this.chart_Phase.Text = "chart_Phase"; title2.Name = "Title_Phase"; title2.Text = "Phase"; this.chart_Phase.Titles.Add(title2); // // chart_Doppler // this.chart_Doppler.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.chart_Doppler.BackColor = System.Drawing.Color.Transparent; this.chart_Doppler.BorderlineColor = System.Drawing.Color.Transparent; chartArea3.AxisX.MajorGrid.LineWidth = 0; chartArea3.AxisX2.Enabled = System.Windows.Forms.DataVisualization.Charting.AxisEnabled.False; chartArea3.AxisY.MajorGrid.LineWidth = 0; chartArea3.AxisY2.Enabled = System.Windows.Forms.DataVisualization.Charting.AxisEnabled.False; chartArea3.BackColor = System.Drawing.Color.Transparent; chartArea3.BorderColor = System.Drawing.Color.Transparent; chartArea3.Name = "ChartArea3"; this.chart_Doppler.ChartAreas.Add(chartArea3); legend3.BackColor = System.Drawing.Color.Transparent; legend3.Docking = System.Windows.Forms.DataVisualization.Charting.Docking.Bottom; legend3.Name = "Legend3"; this.chart_Doppler.Legends.Add(legend3); this.chart_Doppler.Location = new System.Drawing.Point(626, 329); this.chart_Doppler.Name = "chart_Doppler"; this.chart_Doppler.Size = new System.Drawing.Size(283, 236); this.chart_Doppler.TabIndex = 15; this.chart_Doppler.Text = "chart_Doppler"; title3.Name = "Title_Doppler"; title3.Text = "Doppler Shift"; this.chart_Doppler.Titles.Add(title3); // // label_EPC // this.label_EPC.AutoSize = true; this.label_EPC.Font = new System.Drawing.Font("Calibri", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label_EPC.Location = new System.Drawing.Point(12, 300); this.label_EPC.Name = "label_EPC"; this.label_EPC.Size = new System.Drawing.Size(31, 15); this.label_EPC.TabIndex = 16; this.label_EPC.Text = "EPC:"; // // comboBoxEPCs // this.comboBoxEPCs.FormattingEnabled = true; this.comboBoxEPCs.Location = new System.Drawing.Point(49, 298); this.comboBoxEPCs.Name = "comboBoxEPCs"; this.comboBoxEPCs.Size = new System.Drawing.Size(174, 20); this.comboBoxEPCs.TabIndex = 17; // // label_Antenna // this.label_Antenna.AutoSize = true; this.label_Antenna.Font = new System.Drawing.Font("Calibri", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label_Antenna.Location = new System.Drawing.Point(261, 300); this.label_Antenna.Name = "label_Antenna"; this.label_Antenna.Size = new System.Drawing.Size(58, 15); this.label_Antenna.TabIndex = 18; this.label_Antenna.Text = "Antenna:"; // // comboBoxAntennas // this.comboBoxAntennas.FormattingEnabled = true; this.comboBoxAntennas.Location = new System.Drawing.Point(325, 298); this.comboBoxAntennas.Name = "comboBoxAntennas"; this.comboBoxAntennas.Size = new System.Drawing.Size(121, 20); this.comboBoxAntennas.TabIndex = 19; // // menuStrip1 // this.menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.fileToolStripMenuItem, this.debugToolStripMenuItem, this.settingsToolStripMenuItem }); this.menuStrip1.Location = new System.Drawing.Point(0, 0); this.menuStrip1.Name = "menuStrip1"; this.menuStrip1.Size = new System.Drawing.Size(921, 24); this.menuStrip1.TabIndex = 20; this.menuStrip1.Text = "menuStrip1"; // // fileToolStripMenuItem // this.fileToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this.ToolStripMenuItem_Save, this.ToolStripMenuItem_Copy }); this.fileToolStripMenuItem.Name = "fileToolStripMenuItem"; this.fileToolStripMenuItem.Size = new System.Drawing.Size(37, 20); this.fileToolStripMenuItem.Text = "File"; // // ToolStripMenuItem_Save // this.ToolStripMenuItem_Save.Image = ((System.Drawing.Image)(resources.GetObject("ToolStripMenuItem_Save.Image"))); this.ToolStripMenuItem_Save.Name = "ToolStripMenuItem_Save"; this.ToolStripMenuItem_Save.Size = new System.Drawing.Size(102, 22); this.ToolStripMenuItem_Save.Text = "Save"; this.ToolStripMenuItem_Save.Click += new System.EventHandler(this.button_Export_Click); // // ToolStripMenuItem_Copy // this.ToolStripMenuItem_Copy.Name = "ToolStripMenuItem_Copy"; this.ToolStripMenuItem_Copy.Size = new System.Drawing.Size(102, 22); this.ToolStripMenuItem_Copy.Text = "Copy"; // // debugToolStripMenuItem // this.debugToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this.ToolStripMenuItem_Connect, this.ToolStripMenuItem_Start, this.ToolStripMenuItem_Stop }); this.debugToolStripMenuItem.Name = "debugToolStripMenuItem"; this.debugToolStripMenuItem.Size = new System.Drawing.Size(54, 20); this.debugToolStripMenuItem.Text = "Debug"; // // ToolStripMenuItem_Connect // this.ToolStripMenuItem_Connect.Image = global::TagReader.Properties.Resources.ic_link; this.ToolStripMenuItem_Connect.Name = "ToolStripMenuItem_Connect"; this.ToolStripMenuItem_Connect.Size = new System.Drawing.Size(119, 22); this.ToolStripMenuItem_Connect.Text = "Connect"; this.ToolStripMenuItem_Connect.Click += new System.EventHandler(this.button_Connect_Click); // // ToolStripMenuItem_Start // this.ToolStripMenuItem_Start.Image = global::TagReader.Properties.Resources.play; this.ToolStripMenuItem_Start.Name = "ToolStripMenuItem_Start"; this.ToolStripMenuItem_Start.Size = new System.Drawing.Size(119, 22); this.ToolStripMenuItem_Start.Text = "Start"; this.ToolStripMenuItem_Start.Click += new System.EventHandler(this.button_Start_Click); // // ToolStripMenuItem_Stop // this.ToolStripMenuItem_Stop.Image = ((System.Drawing.Image)(resources.GetObject("ToolStripMenuItem_Stop.Image"))); this.ToolStripMenuItem_Stop.Name = "ToolStripMenuItem_Stop"; this.ToolStripMenuItem_Stop.Size = new System.Drawing.Size(119, 22); this.ToolStripMenuItem_Stop.Text = "Stop"; this.ToolStripMenuItem_Stop.Click += new System.EventHandler(this.button_Stop_Click); // // settingsToolStripMenuItem // this.settingsToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this.ToolStripMenuItem_Settings, this.viewToolStripMenuItem, this.ToolStripMenuItem_Help, this.ToolStripMenuItem_About }); this.settingsToolStripMenuItem.Name = "settingsToolStripMenuItem"; this.settingsToolStripMenuItem.Size = new System.Drawing.Size(61, 20); this.settingsToolStripMenuItem.Text = "Settings"; // // ToolStripMenuItem_Settings // this.ToolStripMenuItem_Settings.Image = global::TagReader.Properties.Resources.settings; this.ToolStripMenuItem_Settings.Name = "ToolStripMenuItem_Settings"; this.ToolStripMenuItem_Settings.Size = new System.Drawing.Size(116, 22); this.ToolStripMenuItem_Settings.Text = "Settings"; this.ToolStripMenuItem_Settings.Click += new System.EventHandler(this.button_Settings_Click); // // viewToolStripMenuItem // this.viewToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this.quickAccessToolStripMenuItem, this.readerSettingsToolStripMenuItem }); this.viewToolStripMenuItem.Name = "viewToolStripMenuItem"; this.viewToolStripMenuItem.Size = new System.Drawing.Size(116, 22); this.viewToolStripMenuItem.Text = "View"; // // quickAccessToolStripMenuItem // this.quickAccessToolStripMenuItem.Checked = true; this.quickAccessToolStripMenuItem.CheckState = System.Windows.Forms.CheckState.Checked; this.quickAccessToolStripMenuItem.Name = "quickAccessToolStripMenuItem"; this.quickAccessToolStripMenuItem.Size = new System.Drawing.Size(155, 22); this.quickAccessToolStripMenuItem.Text = "Quick Access"; this.quickAccessToolStripMenuItem.Click += new System.EventHandler(this.quickAccessToolStripMenuItem_Click); // // readerSettingsToolStripMenuItem // this.readerSettingsToolStripMenuItem.Checked = true; this.readerSettingsToolStripMenuItem.CheckState = System.Windows.Forms.CheckState.Checked; this.readerSettingsToolStripMenuItem.Name = "readerSettingsToolStripMenuItem"; this.readerSettingsToolStripMenuItem.Size = new System.Drawing.Size(155, 22); this.readerSettingsToolStripMenuItem.Text = "Reader Settings"; this.readerSettingsToolStripMenuItem.Click += new System.EventHandler(this.readerSettingsToolStripMenuItem_Click); // // ToolStripMenuItem_Help // this.ToolStripMenuItem_Help.Name = "ToolStripMenuItem_Help"; this.ToolStripMenuItem_Help.Size = new System.Drawing.Size(116, 22); this.ToolStripMenuItem_Help.Text = "Help"; // // ToolStripMenuItem_About // this.ToolStripMenuItem_About.Image = global::TagReader.Properties.Resources.about; this.ToolStripMenuItem_About.Name = "ToolStripMenuItem_About"; this.ToolStripMenuItem_About.Size = new System.Drawing.Size(116, 22); this.ToolStripMenuItem_About.Text = "About"; this.ToolStripMenuItem_About.Click += new System.EventHandler(this.ToolStripMenuItem_About_Click); // // toolStrip_QuickAccess // this.toolStrip_QuickAccess.Dock = System.Windows.Forms.DockStyle.None; this.toolStrip_QuickAccess.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.toolStripButton_Save, this.toolStripSeparator1, this.toolStripButton_Connect, this.toolStripButton_Start, this.toolStripButton_Stop, this.toolStripButton_Clear, this.toolStripButton_Refresh, this.toolStripSeparator2, this.toolStripButton_Settings }); this.toolStrip_QuickAccess.Location = new System.Drawing.Point(0, 22); this.toolStrip_QuickAccess.Name = "toolStrip_QuickAccess"; this.toolStrip_QuickAccess.Size = new System.Drawing.Size(438, 25); this.toolStrip_QuickAccess.TabIndex = 21; this.toolStrip_QuickAccess.Text = "toolStrip1"; // // toolStripButton_Save // this.toolStripButton_Save.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButton_Save.Image"))); this.toolStripButton_Save.ImageTransparentColor = System.Drawing.Color.Magenta; this.toolStripButton_Save.Name = "toolStripButton_Save"; this.toolStripButton_Save.Size = new System.Drawing.Size(51, 22); this.toolStripButton_Save.Tag = ""; this.toolStripButton_Save.Text = "Save"; this.toolStripButton_Save.Click += new System.EventHandler(this.button_Export_Click); // // toolStripSeparator1 // this.toolStripSeparator1.Name = "toolStripSeparator1"; this.toolStripSeparator1.Size = new System.Drawing.Size(6, 25); // // toolStripButton_Connect // this.toolStripButton_Connect.Image = global::TagReader.Properties.Resources.ic_link; this.toolStripButton_Connect.ImageTransparentColor = System.Drawing.Color.Magenta; this.toolStripButton_Connect.Name = "toolStripButton_Connect"; this.toolStripButton_Connect.Size = new System.Drawing.Size(72, 22); this.toolStripButton_Connect.Text = "Connect"; this.toolStripButton_Connect.Click += new System.EventHandler(this.button_Connect_Click); // // toolStripButton_Start // this.toolStripButton_Start.Image = global::TagReader.Properties.Resources.play; this.toolStripButton_Start.ImageTransparentColor = System.Drawing.Color.Magenta; this.toolStripButton_Start.Name = "toolStripButton_Start"; this.toolStripButton_Start.Size = new System.Drawing.Size(51, 22); this.toolStripButton_Start.Text = "Start"; this.toolStripButton_Start.Click += new System.EventHandler(this.button_Start_Click); // // toolStripButton_Stop // this.toolStripButton_Stop.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButton_Stop.Image"))); this.toolStripButton_Stop.ImageTransparentColor = System.Drawing.Color.Magenta; this.toolStripButton_Stop.Name = "toolStripButton_Stop"; this.toolStripButton_Stop.Size = new System.Drawing.Size(51, 22); this.toolStripButton_Stop.Text = "Stop"; this.toolStripButton_Stop.Click += new System.EventHandler(this.button_Stop_Click); // // toolStripButton_Clear // this.toolStripButton_Clear.Image = global::TagReader.Properties.Resources.delete; this.toolStripButton_Clear.ImageTransparentColor = System.Drawing.Color.Magenta; this.toolStripButton_Clear.Name = "toolStripButton_Clear"; this.toolStripButton_Clear.Size = new System.Drawing.Size(54, 22); this.toolStripButton_Clear.Text = "Clear"; this.toolStripButton_Clear.Click += new System.EventHandler(this.button_Clear_Click); // // toolStripButton_Refresh // this.toolStripButton_Refresh.Image = global::TagReader.Properties.Resources.refresh; this.toolStripButton_Refresh.ImageTransparentColor = System.Drawing.Color.Magenta; this.toolStripButton_Refresh.Name = "toolStripButton_Refresh"; this.toolStripButton_Refresh.Size = new System.Drawing.Size(66, 22); this.toolStripButton_Refresh.Text = "Refresh"; this.toolStripButton_Refresh.Click += new System.EventHandler(this.toolStripButton_Refresh_Click); // // toolStripSeparator2 // this.toolStripSeparator2.Name = "toolStripSeparator2"; this.toolStripSeparator2.Size = new System.Drawing.Size(6, 25); // // toolStripButton_Settings // this.toolStripButton_Settings.Image = global::TagReader.Properties.Resources.settings; this.toolStripButton_Settings.ImageTransparentColor = System.Drawing.Color.Magenta; this.toolStripButton_Settings.Name = "toolStripButton_Settings"; this.toolStripButton_Settings.Size = new System.Drawing.Size(69, 22); this.toolStripButton_Settings.Text = "Settings"; this.toolStripButton_Settings.Click += new System.EventHandler(this.button_Settings_Click); // // statusStrip1 // this.statusStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.toolStripStatusLabel_Message, this.toolStripProgressBar, this.toolStripStatusLabel_NameReport, this.toolStripStatusLabel_TotalReport, this.toolStripStatusLabel_NameEvent, this.toolStripStatusLabel_TotalEvent, this.toolStripStatusLabel_RunTime }); this.statusStrip1.Location = new System.Drawing.Point(0, 568); this.statusStrip1.Name = "statusStrip1"; this.statusStrip1.Size = new System.Drawing.Size(921, 22); this.statusStrip1.TabIndex = 22; this.statusStrip1.Text = "statusStrip1"; // // toolStripStatusLabel_Message // this.toolStripStatusLabel_Message.Name = "toolStripStatusLabel_Message"; this.toolStripStatusLabel_Message.Size = new System.Drawing.Size(537, 17); this.toolStripStatusLabel_Message.Spring = true; this.toolStripStatusLabel_Message.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // toolStripProgressBar // this.toolStripProgressBar.Name = "toolStripProgressBar"; this.toolStripProgressBar.Size = new System.Drawing.Size(100, 16); // // toolStripStatusLabel_NameReport // this.toolStripStatusLabel_NameReport.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text; this.toolStripStatusLabel_NameReport.Name = "toolStripStatusLabel_NameReport"; this.toolStripStatusLabel_NameReport.Size = new System.Drawing.Size(71, 17); this.toolStripStatusLabel_NameReport.Text = "Total Report"; // // toolStripStatusLabel_TotalReport // this.toolStripStatusLabel_TotalReport.Name = "toolStripStatusLabel_TotalReport"; this.toolStripStatusLabel_TotalReport.Size = new System.Drawing.Size(13, 17); this.toolStripStatusLabel_TotalReport.Text = "0"; // // toolStripStatusLabel_NameEvent // this.toolStripStatusLabel_NameEvent.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text; this.toolStripStatusLabel_NameEvent.Name = "toolStripStatusLabel_NameEvent"; this.toolStripStatusLabel_NameEvent.Size = new System.Drawing.Size(65, 17); this.toolStripStatusLabel_NameEvent.Text = "Total Event"; // // toolStripStatusLabel_TotalEvent // this.toolStripStatusLabel_TotalEvent.Name = "toolStripStatusLabel_TotalEvent"; this.toolStripStatusLabel_TotalEvent.Size = new System.Drawing.Size(13, 17); this.toolStripStatusLabel_TotalEvent.Text = "0"; // // toolStripStatusLabel_RunTime // this.toolStripStatusLabel_RunTime.Image = global::TagReader.Properties.Resources.alarm; this.toolStripStatusLabel_RunTime.Name = "toolStripStatusLabel_RunTime"; this.toolStripStatusLabel_RunTime.Size = new System.Drawing.Size(74, 17); this.toolStripStatusLabel_RunTime.Text = "Run Time"; // // toolStrip_ReaderSettings // this.toolStrip_ReaderSettings.Dock = System.Windows.Forms.DockStyle.None; this.toolStrip_ReaderSettings.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.toolStripLabel_Address, this.toolStripTextBox_Address, this.toolStripLabel_Power, this.toolStripTextBox_Power, this.toolStripLabel_Frequency, this.toolStripComboBox_Frequency }); this.toolStrip_ReaderSettings.Location = new System.Drawing.Point(438, 22); this.toolStrip_ReaderSettings.Name = "toolStrip_ReaderSettings"; this.toolStrip_ReaderSettings.Size = new System.Drawing.Size(428, 25); this.toolStrip_ReaderSettings.TabIndex = 23; this.toolStrip_ReaderSettings.Text = "toolStrip2"; // // toolStripLabel_Address // this.toolStripLabel_Address.Name = "toolStripLabel_Address"; this.toolStripLabel_Address.Size = new System.Drawing.Size(52, 22); this.toolStripLabel_Address.Text = "Address:"; // // toolStripTextBox_Address // this.toolStripTextBox_Address.Name = "toolStripTextBox_Address"; this.toolStripTextBox_Address.Size = new System.Drawing.Size(120, 25); this.toolStripTextBox_Address.Text = "192.168.1.222"; // // toolStripLabel_Power // this.toolStripLabel_Power.Name = "toolStripLabel_Power"; this.toolStripLabel_Power.Size = new System.Drawing.Size(43, 22); this.toolStripLabel_Power.Text = "Power:"; // // toolStripTextBox_Power // this.toolStripTextBox_Power.Name = "toolStripTextBox_Power"; this.toolStripTextBox_Power.Size = new System.Drawing.Size(50, 25); this.toolStripTextBox_Power.Text = "32.5"; // // toolStripLabel_Frequency // this.toolStripLabel_Frequency.Name = "toolStripLabel_Frequency"; this.toolStripLabel_Frequency.Size = new System.Drawing.Size(65, 22); this.toolStripLabel_Frequency.Text = "Frequency:"; // // toolStripComboBox_Frequency // this.toolStripComboBox_Frequency.Items.AddRange(new object[] { "920.625", "920.875", "921.125", "921.375", "921.625", "921.875", "922.125", "922.375", "922.625", "922.875", "923.125", "923.375", "923.625", "923.875", "924.125", "924.375" }); this.toolStripComboBox_Frequency.Name = "toolStripComboBox_Frequency"; this.toolStripComboBox_Frequency.Size = new System.Drawing.Size(80, 25); this.toolStripComboBox_Frequency.Text = "924.375"; // // FormTagReader // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch; this.ClientSize = new System.Drawing.Size(921, 590); this.Controls.Add(this.toolStrip_ReaderSettings); this.Controls.Add(this.statusStrip1); this.Controls.Add(this.toolStrip_QuickAccess); this.Controls.Add(this.comboBoxAntennas); this.Controls.Add(this.label_Antenna); this.Controls.Add(this.comboBoxEPCs); this.Controls.Add(this.label_EPC); this.Controls.Add(this.chart_Doppler); this.Controls.Add(this.chart_Phase); this.Controls.Add(this.chart_Rssi); this.Controls.Add(this.listView_Data); this.Controls.Add(this.menuStrip1); this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); this.MainMenuStrip = this.menuStrip1; this.Name = "FormTagReader"; this.Text = "TagReader"; this.Resize += new System.EventHandler(this.Form_TagReader_Resize); ((System.ComponentModel.ISupportInitialize)(this.chart_Rssi)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.chart_Phase)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.chart_Doppler)).EndInit(); this.menuStrip1.ResumeLayout(false); this.menuStrip1.PerformLayout(); this.toolStrip_QuickAccess.ResumeLayout(false); this.toolStrip_QuickAccess.PerformLayout(); this.statusStrip1.ResumeLayout(false); this.statusStrip1.PerformLayout(); this.toolStrip_ReaderSettings.ResumeLayout(false); this.toolStrip_ReaderSettings.PerformLayout(); this.ResumeLayout(false); this.PerformLayout(); }
/// <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.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, 600); 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, 560); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint5 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 300); 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, 550); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint7 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 580); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint8 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 300); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint9 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 425); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint10 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 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(0, 500); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint12 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 500); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint13 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 350); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint14 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 300); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint15 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 520); System.Windows.Forms.DataVisualization.Charting.Title title1 = new System.Windows.Forms.DataVisualization.Charting.Title(); this.label9 = new System.Windows.Forms.Label(); this.Chart1 = new System.Windows.Forms.DataVisualization.Charting.Chart(); ((System.ComponentModel.ISupportInitialize)(this.Chart1)).BeginInit(); this.SuspendLayout(); // // label9 // this.label9.Font = new System.Drawing.Font("Verdana", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label9.Location = new System.Drawing.Point(16, 14); this.label9.Name = "label9"; this.label9.Size = new System.Drawing.Size(702, 43); this.label9.TabIndex = 2; this.label9.Text = "This sample demonstrates how to add custom items to the legend. These legend item" + "s can be a strip line, custom image, or any custom drawn item."; this.label9.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // 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.Alignment = System.Drawing.StringAlignment.Center; legend1.BackColor = System.Drawing.Color.Transparent; legend1.Docking = System.Windows.Forms.DataVisualization.Charting.Docking.Bottom; legend1.Font = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold); legend1.IsTextAutoFit = false; legend1.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.CustomProperties = "DrawingStyle=Wedge"; series1.IsVisibleInLegend = false; series1.Legend = "Default"; series1.Name = "Default"; series1.Points.Add(dataPoint1); series1.Points.Add(dataPoint2); series1.Points.Add(dataPoint3); series1.Points.Add(dataPoint4); series1.Points.Add(dataPoint5); series1.XValueType = System.Windows.Forms.DataVisualization.Charting.ChartValueType.Double; series1.YValueType = System.Windows.Forms.DataVisualization.Charting.ChartValueType.Double; series2.ChartArea = "Default"; series2.CustomProperties = "DrawingStyle=Wedge"; series2.IsVisibleInLegend = false; 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.ChartArea = "Default"; series3.CustomProperties = "DrawingStyle=Wedge"; series3.IsVisibleInLegend = false; 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 = 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 = "Custom Legend Items"; this.Chart1.Titles.Add(title1); // // LegendCustomItems // this.Controls.Add(this.Chart1); this.Controls.Add(this.label9); this.Font = new System.Drawing.Font("Verdana", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.Name = "LegendCustomItems"; this.Size = new System.Drawing.Size(800, 480); this.Load += new System.EventHandler(this.LegendCustomItems_Load); ((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.chart1 = new System.Windows.Forms.DataVisualization.Charting.Chart(); this.labelSampleComment = new System.Windows.Forms.Label(); this.panel1 = new System.Windows.Forms.Panel(); this.comboNumberOfLines = new System.Windows.Forms.ComboBox(); this.label1 = new System.Windows.Forms.Label(); this.label3 = new System.Windows.Forms.Label(); ((System.ComponentModel.ISupportInitialize)(this.chart1)).BeginInit(); this.panel1.SuspendLayout(); this.SuspendLayout(); // // chart1 // this.chart1.BackColor = System.Drawing.Color.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.LabelStyle.Format = "MMM dd"; chartArea1.AxisX.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea1.AxisX.MajorGrid.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea1.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.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, 40); 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.ThreeLineBreak; series1.CustomProperties = "PriceUpColor=Black"; series1.IsXValueIndexed = true; series1.Legend = "Default"; series1.Name = "Default"; series1.XValueType = System.Windows.Forms.DataVisualization.Charting.ChartValueType.Date; series1.YValueType = System.Windows.Forms.DataVisualization.Charting.ChartValueType.Double; this.chart1.Series.Add(series1); this.chart1.Size = new System.Drawing.Size(412, 296); this.chart1.TabIndex = 0; title1.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 = "Three Line Break 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, 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 Three Line Break chart type."; this.labelSampleComment.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // panel1 // this.panel1.Controls.Add(this.comboNumberOfLines); this.panel1.Controls.Add(this.label1); this.panel1.Location = new System.Drawing.Point(432, 48); this.panel1.Name = "panel1"; this.panel1.Size = new System.Drawing.Size(296, 280); this.panel1.TabIndex = 1; // // comboNumberOfLines // this.comboNumberOfLines.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.comboNumberOfLines.Items.AddRange(new object[] { "1", "2", "3", "4", "Default" }); this.comboNumberOfLines.Location = new System.Drawing.Point(168, 16); this.comboNumberOfLines.Name = "comboNumberOfLines"; this.comboNumberOfLines.Size = new System.Drawing.Size(104, 22); this.comboNumberOfLines.TabIndex = 0; this.comboNumberOfLines.SelectedIndexChanged += new System.EventHandler(this.comboNumberOfLines_SelectedIndexChanged); // // label1 // this.label1.Location = new System.Drawing.Point(8, 8); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(152, 32); this.label1.TabIndex = 0; this.label1.Text = "Number of &Lines in Break:"; this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // 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); this.label3.Location = new System.Drawing.Point(13, 342); this.label3.Name = "label3"; this.label3.Size = new System.Drawing.Size(702, 43); this.label3.TabIndex = 25; this.label3.Text = "The sensitivity of the reversal criteria can be adjusted by changing the number o" + "f lines in break."; this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // ThreeLineBreakChartType // this.BackColor = System.Drawing.Color.White; this.Controls.Add(this.label3); this.Controls.Add(this.panel1); this.Controls.Add(this.labelSampleComment); this.Controls.Add(this.chart1); this.Font = new System.Drawing.Font("Verdana", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.Name = "ThreeLineBreakChartType"; this.Size = new System.Drawing.Size(728, 403); this.Load += new System.EventHandler(this.ThreeLineBreakChartType_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.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._comboBoxSize = new System.Windows.Forms.ComboBox(); this._label1 = new System.Windows.Forms.Label(); this._label3 = new System.Windows.Forms.Label(); ((System.ComponentModel.ISupportInitialize)(this._chart1)).BeginInit(); this._panel1.SuspendLayout(); this.SuspendLayout(); // // chart1 // this._chart1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(243)))), ((int)(((byte)(223)))), ((int)(((byte)(193))))); this._chart1.BackGradientStyle = System.Windows.Forms.DataVisualization.Charting.GradientStyle.TopBottom; this._chart1.BorderlineColor = System.Drawing.Color.FromArgb(((int)(((byte)(181)))), ((int)(((byte)(64)))), ((int)(((byte)(1))))); this._chart1.BorderlineDashStyle = System.Windows.Forms.DataVisualization.Charting.ChartDashStyle.Solid; this._chart1.BorderlineWidth = 2; this._chart1.BorderSkin.SkinStyle = System.Windows.Forms.DataVisualization.Charting.BorderSkinStyle.Emboss; chartArea1.Area3DStyle.Inclination = 15; chartArea1.Area3DStyle.IsClustered = true; chartArea1.Area3DStyle.IsRightAngleAxes = false; chartArea1.Area3DStyle.Perspective = 10; chartArea1.Area3DStyle.Rotation = 10; chartArea1.Area3DStyle.WallWidth = 0; chartArea1.AxisX.LabelStyle.Font = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold); chartArea1.AxisX.LabelStyle.Format = "MMM dd"; chartArea1.AxisX.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea1.AxisX.MajorGrid.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea1.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.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, 37); 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.Renko; series1.CustomProperties = "PriceUpColor=White"; series1.IsXValueIndexed = true; series1.Legend = "Default"; series1.Name = "Default"; series1.XValueType = System.Windows.Forms.DataVisualization.Charting.ChartValueType.Date; series1.YValueType = System.Windows.Forms.DataVisualization.Charting.ChartValueType.Double; this._chart1.Series.Add(series1); this._chart1.Size = new System.Drawing.Size(412, 296); this._chart1.TabIndex = 0; title1.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 = "Renko chart, Box Size 1"; this._chart1.Titles.Add(title1); this._chart1.PrePaint += new System.EventHandler <System.Windows.Forms.DataVisualization.Charting.ChartPaintEventArgs>( this.chart1_PrePaint); // // 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, 21); this._labelSampleComment.TabIndex = 2; this._labelSampleComment.Text = "This sample demonstrates the Renko chart type."; this._labelSampleComment.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // panel1 // this._panel1.Controls.Add(this._comboBoxSize); this._panel1.Controls.Add(this._label1); this._panel1.Location = new System.Drawing.Point(432, 45); this._panel1.Name = "_panel1"; this._panel1.Size = new System.Drawing.Size(292, 280); this._panel1.TabIndex = 1; // // comboBoxSize // this._comboBoxSize.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this._comboBoxSize.Items.AddRange(new object[] { "0.2", "0.5", "0.8", "1", "1.2", "1.5", "2", "Default" }); this._comboBoxSize.Location = new System.Drawing.Point(168, 8); this._comboBoxSize.Name = "_comboBoxSize"; this._comboBoxSize.Size = new System.Drawing.Size(104, 22); this._comboBoxSize.TabIndex = 0; this._comboBoxSize.SelectedIndexChanged += new System.EventHandler(this.comboBoxSize_SelectedIndexChanged); // // label1 // this._label1.Location = new System.Drawing.Point(32, 8); this._label1.Name = "_label1"; this._label1.Size = new System.Drawing.Size(128, 23); this._label1.TabIndex = 0; this._label1.Text = "Box &Size:"; this._label1.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // 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); this._label3.Location = new System.Drawing.Point(13, 338); this._label3.Name = "_label3"; this._label3.Size = new System.Drawing.Size(702, 24); this._label3.TabIndex = 24; this._label3.Text = "Note that you can retrieve the automatically calculated default box size only in " + "the PrePaint event."; this._label3.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // RenkoChartType // this.BackColor = System.Drawing.Color.White; this.Controls.Add(this._label3); this.Controls.Add(this._panel1); this.Controls.Add(this._labelSampleComment); this.Controls.Add(this._chart1); this.Font = new System.Drawing.Font("Verdana", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.Name = "RenkoChartType"; this.Size = new System.Drawing.Size(728, 480); this.Load += new System.EventHandler(this.RenkoChartType_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.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); }
/// <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, 600); 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, 560); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint5 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 300); 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, 550); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint7 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 580); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint8 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 300); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint9 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 425); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint10 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 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(0, 500); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint12 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 500); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint13 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 350); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint14 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 300); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint15 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 520); System.Windows.Forms.DataVisualization.Charting.Title title1 = new System.Windows.Forms.DataVisualization.Charting.Title(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(LegendCustomPosition)); this.label9 = new System.Windows.Forms.Label(); this.Chart1 = new System.Windows.Forms.DataVisualization.Charting.Chart(); this.panel1 = new System.Windows.Forms.Panel(); this.HeightEdit = new System.Windows.Forms.NumericUpDown(); this.WidthEdit = new System.Windows.Forms.NumericUpDown(); this.YEdit = new System.Windows.Forms.NumericUpDown(); this.XEdit = new System.Windows.Forms.NumericUpDown(); this.label5 = new System.Windows.Forms.Label(); this.label4 = new System.Windows.Forms.Label(); this.label3 = new System.Windows.Forms.Label(); this.label2 = new System.Windows.Forms.Label(); this.label1 = new System.Windows.Forms.Label(); ((System.ComponentModel.ISupportInitialize)(this.Chart1)).BeginInit(); this.panel1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.HeightEdit)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.WidthEdit)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.YEdit)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.XEdit)).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, 40); this.label9.TabIndex = 0; this.label9.Text = "This sample demonstrates how to position the legend by setting the coordinates of" + " its width and height, relative to the top left corner. "; this.label9.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // 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.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.Position.Auto = false; chartArea1.Position.Height = 62.58395F; chartArea1.Position.Width = 88.77716F; chartArea1.Position.X = 5.089137F; chartArea1.Position.Y = 18.3307F; chartArea1.ShadowColor = System.Drawing.Color.Transparent; this.Chart1.ChartAreas.Add(chartArea1); legend1.BackColor = System.Drawing.Color.Transparent; legend1.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(5)))), ((int)(((byte)(100)))), ((int)(((byte)(146))))); 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.511945F; legend1.Position.Width = 59F; legend1.Position.X = 6.966655F; legend1.Position.Y = 82.79218F; this.Chart1.Legends.Add(legend1); this.Chart1.Location = new System.Drawing.Point(16, 56); this.Chart1.Name = "Chart1"; 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.XValueType = System.Windows.Forms.DataVisualization.Charting.ChartValueType.Double; series1.YValueType = System.Windows.Forms.DataVisualization.Charting.ChartValueType.Double; series2.ChartArea = "Default"; 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.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); 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 = "Legend Positioning"; this.Chart1.Titles.Add(title1); this.Chart1.MouseDown += new System.Windows.Forms.MouseEventHandler(this.Chart1_MouseDown); // // panel1 // this.panel1.Controls.Add(this.HeightEdit); this.panel1.Controls.Add(this.WidthEdit); this.panel1.Controls.Add(this.YEdit); this.panel1.Controls.Add(this.XEdit); this.panel1.Controls.Add(this.label5); this.panel1.Controls.Add(this.label4); this.panel1.Controls.Add(this.label3); this.panel1.Controls.Add(this.label2); this.panel1.Location = new System.Drawing.Point(432, 56); this.panel1.Name = "panel1"; this.panel1.Size = new System.Drawing.Size(292, 296); this.panel1.TabIndex = 2; // // HeightEdit // this.HeightEdit.Location = new System.Drawing.Point(168, 104); this.HeightEdit.Name = "HeightEdit"; this.HeightEdit.Size = new System.Drawing.Size(80, 22); this.HeightEdit.TabIndex = 7; this.HeightEdit.Value = new decimal(new int[] { 9, 0, 0, 0}); this.HeightEdit.ValueChanged += new System.EventHandler(this.Controls_ValueChanged); // // WidthEdit // this.WidthEdit.Location = new System.Drawing.Point(168, 72); this.WidthEdit.Name = "WidthEdit"; this.WidthEdit.Size = new System.Drawing.Size(80, 22); this.WidthEdit.TabIndex = 5; this.WidthEdit.Value = new decimal(new int[] { 21, 0, 0, 0}); this.WidthEdit.ValueChanged += new System.EventHandler(this.Controls_ValueChanged); // // YEdit // this.YEdit.Location = new System.Drawing.Point(168, 40); this.YEdit.Name = "YEdit"; this.YEdit.Size = new System.Drawing.Size(80, 22); this.YEdit.TabIndex = 3; this.YEdit.Value = new decimal(new int[] { 50, 0, 0, 0}); this.YEdit.ValueChanged += new System.EventHandler(this.Controls_ValueChanged); // // XEdit // this.XEdit.Location = new System.Drawing.Point(168, 8); this.XEdit.Name = "XEdit"; this.XEdit.Size = new System.Drawing.Size(80, 22); this.XEdit.TabIndex = 1; this.XEdit.Value = new decimal(new int[] { 15, 0, 0, 0}); this.XEdit.ValueChanged += new System.EventHandler(this.Controls_ValueChanged); // // label5 // this.label5.Location = new System.Drawing.Point(16, 107); this.label5.Name = "label5"; this.label5.Size = new System.Drawing.Size(148, 16); this.label5.TabIndex = 6; this.label5.Text = "&Height:"; this.label5.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // label4 // this.label4.Location = new System.Drawing.Point(16, 75); this.label4.Name = "label4"; this.label4.Size = new System.Drawing.Size(148, 16); this.label4.TabIndex = 4; this.label4.Text = "&Width:"; this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // label3 // this.label3.Location = new System.Drawing.Point(16, 43); this.label3.Name = "label3"; this.label3.Size = new System.Drawing.Size(148, 16); this.label3.TabIndex = 2; this.label3.Text = "&Y:"; this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // label2 // this.label2.Location = new System.Drawing.Point(16, 11); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(148, 16); this.label2.TabIndex = 0; this.label2.Text = "&X:"; this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // label1 // this.label1.Font = new System.Drawing.Font("Verdana", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label1.Location = new System.Drawing.Point(16, 360); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(712, 64); this.label1.TabIndex = 3; this.label1.Text = resources.GetString("label1.Text"); this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // LegendCustomPosition // this.Controls.Add(this.label1); this.Controls.Add(this.panel1); this.Controls.Add(this.Chart1); this.Controls.Add(this.label9); this.Font = new System.Drawing.Font("Verdana", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.Name = "LegendCustomPosition"; this.Size = new System.Drawing.Size(728, 480); this.Load += new System.EventHandler(this.LegendCustomPosition_Load); ((System.ComponentModel.ISupportInitialize)(this.Chart1)).EndInit(); this.panel1.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.HeightEdit)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.WidthEdit)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.YEdit)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.XEdit)).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.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); }
/// <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.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.comboBoxLabelStyle = new System.Windows.Forms.ComboBox(); this.label3 = new System.Windows.Forms.Label(); this.comboBoxAreaStyle = new System.Windows.Forms.ComboBox(); this.label2 = new System.Windows.Forms.Label(); this.comboBoxRadarStyle = new System.Windows.Forms.ComboBox(); this.label1 = new System.Windows.Forms.Label(); this.label5 = 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)(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.LabelStyle.Font = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold); chartArea1.AxisX.LineColor = System.Drawing.Color.FromArgb(((System.Byte)(64)), ((System.Byte)(64)), ((System.Byte)(64)), ((System.Byte)(64))); chartArea1.AxisX.MajorGrid.LineColor = System.Drawing.Color.FromArgb(((System.Byte)(64)), ((System.Byte)(64)), ((System.Byte)(64)), ((System.Byte)(64))); chartArea1.AxisY.LabelStyle.Font = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold); chartArea1.AxisY.LineColor = System.Drawing.Color.FromArgb(((System.Byte)(64)), ((System.Byte)(64)), ((System.Byte)(64)), ((System.Byte)(64))); chartArea1.AxisY.MajorGrid.LineColor = System.Drawing.Color.FromArgb(((System.Byte)(64)), ((System.Byte)(64)), ((System.Byte)(64)), ((System.Byte)(64))); chartArea1.AxisY.MajorTickMark.Size = 0.6F; chartArea1.BackColor = System.Drawing.Color.OldLace; chartArea1.BackSecondaryColor = System.Drawing.Color.White; chartArea1.BorderColor = System.Drawing.Color.FromArgb(((System.Byte)(64)), ((System.Byte)(64)), ((System.Byte)(64)), ((System.Byte)(64))); chartArea1.Name = "Default"; chartArea1.Position.Auto = false; chartArea1.Position.Height = 78F; chartArea1.Position.Width = 88F; chartArea1.Position.X = 5F; chartArea1.Position.Y = 15F; 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.Font = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold); legend1.Name = "Default"; legend1.Position.Auto = false; legend1.Position.Height = 14.23021F; legend1.Position.Width = 19.34047F; legend1.Position.X = 74.73474F; legend1.Position.Y = 74.08253F; this.chart1.Legends.Add(legend1); this.chart1.Location = new System.Drawing.Point(16, 56); this.chart1.Name = "chart1"; this.chart1.Palette = System.Windows.Forms.DataVisualization.Charting.ChartColorPalette.BrightPastel; series1.BorderColor = System.Drawing.Color.FromArgb(((System.Byte)(180)), ((System.Byte)(26)), ((System.Byte)(59)), ((System.Byte)(105))); series1.ChartType = SeriesChartType.Radar; series1.Color = System.Drawing.Color.FromArgb(((System.Byte)(220)), ((System.Byte)(65)), ((System.Byte)(140)), ((System.Byte)(240))); series1.MarkerBorderColor = System.Drawing.Color.FromArgb(((System.Byte)(64)), ((System.Byte)(64)), ((System.Byte)(64))); series1.MarkerSize = 9; series1.Name = "Series1"; series1.ShadowOffset = 1; series2.BorderColor = System.Drawing.Color.FromArgb(((System.Byte)(180)), ((System.Byte)(26)), ((System.Byte)(59)), ((System.Byte)(105))); series2.ChartType = SeriesChartType.Radar; series2.Color = System.Drawing.Color.FromArgb(((System.Byte)(220)), ((System.Byte)(252)), ((System.Byte)(180)), ((System.Byte)(65))); series2.MarkerBorderColor = System.Drawing.Color.FromArgb(((System.Byte)(64)), ((System.Byte)(64)), ((System.Byte)(64))); series2.MarkerSize = 9; series2.Name = "Series2"; series2.ShadowOffset = 1; this.chart1.Series.Add(series1); this.chart1.Series.Add(series2); this.chart1.Size = new System.Drawing.Size(412, 288); this.chart1.TabIndex = 1; title1.ForeColor = System.Drawing.Color.FromArgb(((System.Byte)(26)), ((System.Byte)(59)), ((System.Byte)(105))); title1.Font = new System.Drawing.Font("Trebuchet MS", 14.25F, System.Drawing.FontStyle.Bold); title1.ShadowColor = System.Drawing.Color.FromArgb(((System.Byte)(32)), ((System.Byte)(0)), ((System.Byte)(0)), ((System.Byte)(0))); title1.ShadowOffset = 3; title1.Text = "Radar Chart"; this.chart1.Titles.Add(title1); // // labelSampleComment // this.labelSampleComment.Font = new System.Drawing.Font("Verdana", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0))); this.labelSampleComment.Location = new System.Drawing.Point(16, 8); this.labelSampleComment.Name = "labelSampleComment"; this.labelSampleComment.Size = new System.Drawing.Size(702, 42); this.labelSampleComment.TabIndex = 0; this.labelSampleComment.Text = "This sample displays a Radar chart, which is a circular graph used primarily as a" + " comparative tool. A 3D effect can also be added to the area background."; this.labelSampleComment.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // panel1 // this.panel1.Controls.AddRange(new System.Windows.Forms.Control[] { this.comboBoxLabelStyle, this.label3, this.comboBoxAreaStyle, this.label2, this.comboBoxRadarStyle, this.label1}); this.panel1.Location = new System.Drawing.Point(432, 72); this.panel1.Name = "panel1"; this.panel1.Size = new System.Drawing.Size(292, 272); this.panel1.TabIndex = 2; // // comboBoxLabelStyle // this.comboBoxLabelStyle.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.comboBoxLabelStyle.Items.AddRange(new object[] { "Circular", "Radial", "Horizontal"}); this.comboBoxLabelStyle.Location = new System.Drawing.Point(168, 64); this.comboBoxLabelStyle.Name = "comboBoxLabelStyle"; this.comboBoxLabelStyle.Size = new System.Drawing.Size(96, 22); this.comboBoxLabelStyle.TabIndex = 5; this.comboBoxLabelStyle.SelectedIndexChanged += new System.EventHandler(this.comboBoxExploded_SelectedIndexChanged); // // label3 // this.label3.Location = new System.Drawing.Point(19, 64); this.label3.Name = "label3"; this.label3.Size = new System.Drawing.Size(145, 23); this.label3.TabIndex = 4; this.label3.Text = "&Labels Style:"; this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // comboBoxAreaStyle // this.comboBoxAreaStyle.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.comboBoxAreaStyle.Items.AddRange(new object[] { "Circle", "Polygon"}); this.comboBoxAreaStyle.Location = new System.Drawing.Point(168, 32); this.comboBoxAreaStyle.Name = "comboBoxAreaStyle"; this.comboBoxAreaStyle.Size = new System.Drawing.Size(96, 22); this.comboBoxAreaStyle.TabIndex = 3; this.comboBoxAreaStyle.SelectedIndexChanged += new System.EventHandler(this.comboBoxExploded_SelectedIndexChanged); // // label2 // this.label2.Location = new System.Drawing.Point(6, 32); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(157, 23); this.label2.TabIndex = 2; this.label2.Text = "&Area Drawing Style:"; this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // comboBoxRadarStyle // this.comboBoxRadarStyle.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.comboBoxRadarStyle.Items.AddRange(new object[] { "Area", "Line", "Marker"}); this.comboBoxRadarStyle.Location = new System.Drawing.Point(168, 0); this.comboBoxRadarStyle.Name = "comboBoxRadarStyle"; this.comboBoxRadarStyle.Size = new System.Drawing.Size(96, 22); this.comboBoxRadarStyle.TabIndex = 1; this.comboBoxRadarStyle.SelectedIndexChanged += new System.EventHandler(this.comboBoxExploded_SelectedIndexChanged); // // label1 // this.label1.Location = new System.Drawing.Point(-14, 0); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(177, 23); this.label1.TabIndex = 0; this.label1.Text = "Radar &Style:"; this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // label5 // this.label5.Anchor = ((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right); this.label5.Font = new System.Drawing.Font("Verdana", 11F); this.label5.Location = new System.Drawing.Point(16, 352); this.label5.Name = "label5"; this.label5.Size = new System.Drawing.Size(696, 24); this.label5.TabIndex = 25; this.label5.Text = "Try different styles for the radar, area drawing and labels."; this.label5.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // RadarChartType // this.BackColor = System.Drawing.Color.White; this.Controls.AddRange(new System.Windows.Forms.Control[] { this.label5, 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 = "RadarChartType"; this.Size = new System.Drawing.Size(728, 480); this.Load += new System.EventHandler(this.PieChartType_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, 216.19999694824219); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint2 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 125.80000305175781); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint3 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 2.5999999046325684); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint4 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 97.300003051757812); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint5 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 45.700000762939453); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint6 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 25.299999237060547); System.Windows.Forms.DataVisualization.Charting.Title title1 = new System.Windows.Forms.DataVisualization.Charting.Title(); this.chart1 = new System.Windows.Forms.DataVisualization.Charting.Chart(); this.labelSampleComment = new System.Windows.Forms.Label(); this.panel1 = new System.Windows.Forms.Panel(); this.comboBoxValueType = new System.Windows.Forms.ComboBox(); this.label1 = new System.Windows.Forms.Label(); this.comboBox3DDrawingStyle = new System.Windows.Forms.ComboBox(); this.label3DDrawingStyle = new System.Windows.Forms.Label(); this.numericUpDownAngle = new System.Windows.Forms.NumericUpDown(); this.labelAngle = new System.Windows.Forms.Label(); this.numericUpDownMinHeight = new System.Windows.Forms.NumericUpDown(); this.label4 = new System.Windows.Forms.Label(); this.numericUpDownGap = new System.Windows.Forms.NumericUpDown(); this.label3 = new System.Windows.Forms.Label(); this.comboBoxLabelsPlacement = new System.Windows.Forms.ComboBox(); this.labelOutsideLabelsPlacement = new System.Windows.Forms.Label(); this.checkBoxShow3D = new System.Windows.Forms.CheckBox(); this.comboBoxLabelsStyle = new System.Windows.Forms.ComboBox(); this.label2 = new System.Windows.Forms.Label(); ((System.ComponentModel.ISupportInitialize)(this.chart1)).BeginInit(); this.panel1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.numericUpDownAngle)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.numericUpDownMinHeight)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.numericUpDownGap)).BeginInit(); this.SuspendLayout(); // // chart1 // this.chart1.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(211)), ((System.Byte)(223)), ((System.Byte)(240))); this.chart1.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.Enable3D = true; chartArea1.Area3DStyle.Perspective = 10; chartArea1.Area3DStyle.IsRightAngleAxes = false; chartArea1.Area3DStyle.WallWidth = 0; chartArea1.Area3DStyle.Inclination = 15; chartArea1.Area3DStyle.Rotation = 10; chartArea1.AxisX.LabelStyle.Font = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold); chartArea1.AxisX.LineColor = System.Drawing.Color.FromArgb(((System.Byte)(64)), ((System.Byte)(64)), ((System.Byte)(64)), ((System.Byte)(64))); chartArea1.AxisX.MajorGrid.LineColor = System.Drawing.Color.FromArgb(((System.Byte)(64)), ((System.Byte)(64)), ((System.Byte)(64)), ((System.Byte)(64))); chartArea1.AxisY.LabelStyle.Font = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold); chartArea1.AxisY.LineColor = System.Drawing.Color.FromArgb(((System.Byte)(64)), ((System.Byte)(64)), ((System.Byte)(64)), ((System.Byte)(64))); chartArea1.AxisY.MajorGrid.LineColor = System.Drawing.Color.FromArgb(((System.Byte)(64)), ((System.Byte)(64)), ((System.Byte)(64)), ((System.Byte)(64))); chartArea1.BackColor = System.Drawing.Color.Transparent; chartArea1.BackSecondaryColor = System.Drawing.Color.Transparent; chartArea1.BorderColor = System.Drawing.Color.FromArgb(((System.Byte)(64)), ((System.Byte)(64)), ((System.Byte)(64)), ((System.Byte)(64))); chartArea1.BorderWidth = 0; chartArea1.Name = "Default"; chartArea1.Position.Auto = false; chartArea1.Position.Height = 82F; chartArea1.Position.Width = 88.77716F; chartArea1.Position.X = 5.089137F; chartArea1.Position.Y = 10F; chartArea1.ShadowColor = System.Drawing.Color.Transparent; this.chart1.ChartAreas.Add(chartArea1); legend1.IsTextAutoFit = false; legend1.BackColor = System.Drawing.Color.Transparent; legend1.Enabled = false; legend1.Font = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold); legend1.Name = "Default"; this.chart1.Legends.Add(legend1); this.chart1.Location = new System.Drawing.Point(16, 40); this.chart1.Name = "chart1"; this.chart1.Palette = System.Windows.Forms.DataVisualization.Charting.ChartColorPalette.BrightPastel; series1.BorderColor = System.Drawing.Color.FromArgb(((System.Byte)(180)), ((System.Byte)(26)), ((System.Byte)(59)), ((System.Byte)(105))); series1.ChartType = SeriesChartType.Pyramid; series1.Color = System.Drawing.Color.FromArgb(((System.Byte)(220)), ((System.Byte)(65)), ((System.Byte)(140)), ((System.Byte)(240))); series1.CustomProperties = "PyramidPointGap=2, FunnelMinPointHeight=1"; series1.LabelFormat = "F1"; series1.Name = "Default"; series1.Points.Add(dataPoint1); series1.Points.Add(dataPoint2); series1.Points.Add(dataPoint3); series1.Points.Add(dataPoint4); series1.Points.Add(dataPoint5); series1.Points.Add(dataPoint6); series1.IsValueShownAsLabel = true; series1.XValueType = System.Windows.Forms.DataVisualization.Charting.ChartValueType.Double; series1.YValueType = System.Windows.Forms.DataVisualization.Charting.ChartValueType.Double; this.chart1.Series.Add(series1); this.chart1.Size = new System.Drawing.Size(412, 296); this.chart1.TabIndex = 0; title1.ForeColor = System.Drawing.Color.FromArgb(((System.Byte)(26)), ((System.Byte)(59)), ((System.Byte)(105))); title1.Font = new System.Drawing.Font("Trebuchet MS", 14.25F, System.Drawing.FontStyle.Bold); title1.Position.Auto = false; title1.Position.Height = 6.470197F; title1.Position.Width = 88.77716F; title1.Position.Y = 4F; title1.ShadowColor = System.Drawing.Color.FromArgb(((System.Byte)(32)), ((System.Byte)(0)), ((System.Byte)(0)), ((System.Byte)(0))); title1.ShadowOffset = 3; title1.Text = "Pyramid Chart"; this.chart1.Titles.Add(title1); // // labelSampleComment // this.labelSampleComment.Font = new System.Drawing.Font("Verdana", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0))); this.labelSampleComment.Location = new System.Drawing.Point(16, 8); this.labelSampleComment.Name = "labelSampleComment"; this.labelSampleComment.Size = new System.Drawing.Size(702, 24); this.labelSampleComment.TabIndex = 2; this.labelSampleComment.Text = "A Pyramid chart is used to display data that adds up to 100%."; this.labelSampleComment.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // panel1 // this.panel1.Controls.AddRange(new System.Windows.Forms.Control[] { this.comboBoxValueType, this.label1, this.comboBox3DDrawingStyle, this.label3DDrawingStyle, this.numericUpDownAngle, this.labelAngle, this.numericUpDownMinHeight, this.label4, this.numericUpDownGap, this.label3, this.comboBoxLabelsPlacement, this.labelOutsideLabelsPlacement, this.checkBoxShow3D, this.comboBoxLabelsStyle, this.label2 }); this.panel1.Location = new System.Drawing.Point(432, 40); this.panel1.Name = "panel1"; this.panel1.Size = new System.Drawing.Size(304, 288); this.panel1.TabIndex = 0; // // comboBoxValueType // this.comboBoxValueType.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.comboBoxValueType.Items.AddRange(new object[] { "Linear", "Surface" }); this.comboBoxValueType.Location = new System.Drawing.Point(168, 232); this.comboBoxValueType.Name = "comboBoxValueType"; this.comboBoxValueType.Size = new System.Drawing.Size(136, 22); this.comboBoxValueType.TabIndex = 16; this.comboBoxValueType.SelectedIndexChanged += new System.EventHandler(this.comboBoxValueType_SelectedIndexChanged); // // label1 // this.label1.Location = new System.Drawing.Point(20, 232); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(144, 23); this.label1.TabIndex = 15; this.label1.Text = "&Value Type:"; this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // comboBox3DDrawingStyle // this.comboBox3DDrawingStyle.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.comboBox3DDrawingStyle.Items.AddRange(new object[] { "SquareBase", "CircularBase" }); this.comboBox3DDrawingStyle.Location = new System.Drawing.Point(168, 200); this.comboBox3DDrawingStyle.Name = "comboBox3DDrawingStyle"; this.comboBox3DDrawingStyle.Size = new System.Drawing.Size(136, 22); this.comboBox3DDrawingStyle.TabIndex = 14; this.comboBox3DDrawingStyle.SelectedIndexChanged += new System.EventHandler(this.comboBox3DDrawingStyle_SelectedIndexChanged); // // label3DDrawingStyle // this.label3DDrawingStyle.Location = new System.Drawing.Point(20, 200); this.label3DDrawingStyle.Name = "label3DDrawingStyle"; this.label3DDrawingStyle.Size = new System.Drawing.Size(144, 23); this.label3DDrawingStyle.TabIndex = 13; this.label3DDrawingStyle.Text = "&Drawing Style:"; this.label3DDrawingStyle.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // numericUpDownAngle // this.numericUpDownAngle.Location = new System.Drawing.Point(168, 168); this.numericUpDownAngle.Maximum = new System.Decimal(new int[] { 10, 0, 0, 0 }); this.numericUpDownAngle.Minimum = new System.Decimal(new int[] { 10, 0, 0, -2147483648 }); this.numericUpDownAngle.Name = "numericUpDownAngle"; this.numericUpDownAngle.Size = new System.Drawing.Size(136, 22); this.numericUpDownAngle.TabIndex = 12; this.numericUpDownAngle.Value = new System.Decimal(new int[] { 5, 0, 0, 0 }); this.numericUpDownAngle.ValueChanged += new System.EventHandler(this.numericUpDownAngle_ValueChanged); // // labelAngle // this.labelAngle.Location = new System.Drawing.Point(20, 168); this.labelAngle.Name = "labelAngle"; this.labelAngle.Size = new System.Drawing.Size(144, 23); this.labelAngle.TabIndex = 11; this.labelAngle.Text = "Rotation &Angle:"; this.labelAngle.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // numericUpDownMinHeight // this.numericUpDownMinHeight.Location = new System.Drawing.Point(168, 104); this.numericUpDownMinHeight.Maximum = new System.Decimal(new int[] { 10, 0, 0, 0 }); this.numericUpDownMinHeight.Name = "numericUpDownMinHeight"; this.numericUpDownMinHeight.Size = new System.Drawing.Size(136, 22); this.numericUpDownMinHeight.TabIndex = 9; this.numericUpDownMinHeight.ValueChanged += new System.EventHandler(this.numericUpDownMinHeight_ValueChanged); // // label4 // this.label4.Location = new System.Drawing.Point(20, 104); this.label4.Name = "label4"; this.label4.Size = new System.Drawing.Size(144, 23); this.label4.TabIndex = 8; this.label4.Text = "&Min. Point Height:"; this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // numericUpDownGap // this.numericUpDownGap.Location = new System.Drawing.Point(168, 72); this.numericUpDownGap.Maximum = new System.Decimal(new int[] { 5, 0, 0, 0 }); this.numericUpDownGap.Name = "numericUpDownGap"; this.numericUpDownGap.Size = new System.Drawing.Size(136, 22); this.numericUpDownGap.TabIndex = 7; this.numericUpDownGap.Value = new System.Decimal(new int[] { 2, 0, 0, 0 }); this.numericUpDownGap.ValueChanged += new System.EventHandler(this.numericUpDownGap_ValueChanged); // // 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 = 6; this.label3.Text = "Points &Gap:"; this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // comboBoxLabelsPlacement // this.comboBoxLabelsPlacement.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.comboBoxLabelsPlacement.Items.AddRange(new object[] { "Right", "Left" }); this.comboBoxLabelsPlacement.Location = new System.Drawing.Point(168, 40); this.comboBoxLabelsPlacement.Name = "comboBoxLabelsPlacement"; this.comboBoxLabelsPlacement.Size = new System.Drawing.Size(136, 22); this.comboBoxLabelsPlacement.TabIndex = 5; this.comboBoxLabelsPlacement.SelectedIndexChanged += new System.EventHandler(this.comboBoxLabelsPlacement_SelectedIndexChanged); // // labelOutsideLabelsPlacement // this.labelOutsideLabelsPlacement.Location = new System.Drawing.Point(20, 40); this.labelOutsideLabelsPlacement.Name = "labelOutsideLabelsPlacement"; this.labelOutsideLabelsPlacement.Size = new System.Drawing.Size(144, 23); this.labelOutsideLabelsPlacement.TabIndex = 4; this.labelOutsideLabelsPlacement.Text = "Labels &Placement:"; this.labelOutsideLabelsPlacement.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // checkBoxShow3D // this.checkBoxShow3D.CheckAlign = System.Drawing.ContentAlignment.MiddleRight; this.checkBoxShow3D.Checked = true; this.checkBoxShow3D.CheckState = System.Windows.Forms.CheckState.Checked; this.checkBoxShow3D.Location = new System.Drawing.Point(6, 136); this.checkBoxShow3D.Name = "checkBoxShow3D"; this.checkBoxShow3D.Size = new System.Drawing.Size(176, 24); this.checkBoxShow3D.TabIndex = 10; this.checkBoxShow3D.Text = "Display chart as &3D:"; this.checkBoxShow3D.TextAlign = System.Drawing.ContentAlignment.MiddleRight; this.checkBoxShow3D.CheckedChanged += new System.EventHandler(this.checkBoxShow3D_CheckedChanged); // // comboBoxLabelsStyle // this.comboBoxLabelsStyle.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.comboBoxLabelsStyle.Items.AddRange(new object[] { "OutsideInColumn", "Outside", "Inside", "Disabled" }); this.comboBoxLabelsStyle.Location = new System.Drawing.Point(168, 8); this.comboBoxLabelsStyle.Name = "comboBoxLabelsStyle"; this.comboBoxLabelsStyle.Size = new System.Drawing.Size(136, 22); this.comboBoxLabelsStyle.TabIndex = 3; this.comboBoxLabelsStyle.SelectedIndexChanged += new System.EventHandler(this.comboBoxLabelsStyle_SelectedIndexChanged); // // label2 // this.label2.Location = new System.Drawing.Point(20, 8); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(144, 23); this.label2.TabIndex = 2; this.label2.Text = "&Labels Style:"; this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // PyramidChartType // 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 = "PyramidChartType"; this.Size = new System.Drawing.Size(736, 360); this.Load += new System.EventHandler(this.PieChartType_Load); ((System.ComponentModel.ISupportInitialize)(this.chart1)).EndInit(); this.panel1.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.numericUpDownAngle)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.numericUpDownMinHeight)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.numericUpDownGap)).EndInit(); this.ResumeLayout(false); }
/// <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); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { System.Windows.Forms.DataVisualization.Charting.ChartArea chartArea1 = new System.Windows.Forms.DataVisualization.Charting.ChartArea(); System.Windows.Forms.DataVisualization.Charting.Legend legend1 = new System.Windows.Forms.DataVisualization.Charting.Legend(); System.Windows.Forms.DataVisualization.Charting.Series series1 = new System.Windows.Forms.DataVisualization.Charting.Series(); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint1 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 6); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint2 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 9); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint3 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 5); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint4 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 7.5); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint5 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 5.6999998092651367); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint6 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 3.2000000476837158); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint7 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 8.5); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint8 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 7.5); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint9 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 6.5); System.Windows.Forms.DataVisualization.Charting.Series series2 = new System.Windows.Forms.DataVisualization.Charting.Series(); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint10 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 6); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint11 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 9); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint12 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 2); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint13 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 7); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint14 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 3); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint15 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 5); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint16 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 8); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint17 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 2); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint18 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 6); System.Windows.Forms.DataVisualization.Charting.Series series3 = new System.Windows.Forms.DataVisualization.Charting.Series(); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint19 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 4); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint20 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 5); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint21 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 2); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint22 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 6); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint23 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 1); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint24 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 2); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint25 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 3); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint26 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 1); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint27 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 2); System.Windows.Forms.DataVisualization.Charting.Title title1 = new System.Windows.Forms.DataVisualization.Charting.Title(); this._chart1 = new System.Windows.Forms.DataVisualization.Charting.Chart(); this._labelSampleComment = new System.Windows.Forms.Label(); this._panel1 = new System.Windows.Forms.Panel(); this._checkClustered = new System.Windows.Forms.CheckBox(); this._rotation = new System.Windows.Forms.NumericUpDown(); this._inclination = new System.Windows.Forms.NumericUpDown(); this._label2 = new System.Windows.Forms.Label(); this._label1 = new System.Windows.Forms.Label(); this._rightAngleAxis = new System.Windows.Forms.CheckBox(); this._checkBoxShowMargin = new System.Windows.Forms.CheckBox(); this._radioButtonColumn = new System.Windows.Forms.RadioButton(); this._radioButtonBar = new System.Windows.Forms.RadioButton(); ((System.ComponentModel.ISupportInitialize)(this._chart1)).BeginInit(); this._panel1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this._rotation)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this._inclination)).BeginInit(); this.SuspendLayout(); // // chart1 // this._chart1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(211)))), ((int)(((byte)(223)))), ((int)(((byte)(240))))); this._chart1.BackGradientStyle = System.Windows.Forms.DataVisualization.Charting.GradientStyle.TopBottom; this._chart1.BorderlineColor = System.Drawing.Color.FromArgb(((int)(((byte)(26)))), ((int)(((byte)(59)))), ((int)(((byte)(105))))); this._chart1.BorderlineDashStyle = System.Windows.Forms.DataVisualization.Charting.ChartDashStyle.Solid; this._chart1.BorderlineWidth = 2; this._chart1.BorderSkin.SkinStyle = System.Windows.Forms.DataVisualization.Charting.BorderSkinStyle.Emboss; chartArea1.Area3DStyle.Enable3D = true; chartArea1.Area3DStyle.Inclination = 15; chartArea1.Area3DStyle.IsClustered = true; chartArea1.Area3DStyle.IsRightAngleAxes = false; chartArea1.Area3DStyle.Perspective = 10; chartArea1.Area3DStyle.Rotation = 10; chartArea1.Area3DStyle.WallWidth = 0; chartArea1.AxisX.LabelStyle.Font = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold); chartArea1.AxisX.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea1.AxisX.MajorGrid.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea1.AxisY.LabelStyle.Font = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold); chartArea1.AxisY.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea1.AxisY.MajorGrid.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(165)))), ((int)(((byte)(191)))), ((int)(((byte)(228))))); chartArea1.BackGradientStyle = System.Windows.Forms.DataVisualization.Charting.GradientStyle.TopBottom; chartArea1.BackSecondaryColor = System.Drawing.Color.Transparent; chartArea1.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea1.Name = "Default"; chartArea1.ShadowColor = System.Drawing.Color.Transparent; this._chart1.ChartAreas.Add(chartArea1); legend1.BackColor = System.Drawing.Color.Transparent; legend1.Enabled = false; legend1.Font = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold); legend1.IsTextAutoFit = false; legend1.Name = "Default"; this._chart1.Legends.Add(legend1); this._chart1.Location = new System.Drawing.Point(16, 58); this._chart1.Name = "_chart1"; series1.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(180)))), ((int)(((byte)(26)))), ((int)(((byte)(59)))), ((int)(((byte)(105))))); series1.ChartArea = "Default"; series1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(220)))), ((int)(((byte)(65)))), ((int)(((byte)(140)))), ((int)(((byte)(240))))); series1.Legend = "Default"; series1.Name = "Default"; series1.Points.Add(dataPoint1); series1.Points.Add(dataPoint2); series1.Points.Add(dataPoint3); series1.Points.Add(dataPoint4); series1.Points.Add(dataPoint5); series1.Points.Add(dataPoint6); series1.Points.Add(dataPoint7); series1.Points.Add(dataPoint8); series1.Points.Add(dataPoint9); series2.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(180)))), ((int)(((byte)(26)))), ((int)(((byte)(59)))), ((int)(((byte)(105))))); series2.ChartArea = "Default"; series2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(220)))), ((int)(((byte)(252)))), ((int)(((byte)(180)))), ((int)(((byte)(65))))); series2.Legend = "Default"; series2.Name = "Series2"; series2.Points.Add(dataPoint10); series2.Points.Add(dataPoint11); series2.Points.Add(dataPoint12); series2.Points.Add(dataPoint13); series2.Points.Add(dataPoint14); series2.Points.Add(dataPoint15); series2.Points.Add(dataPoint16); series2.Points.Add(dataPoint17); series2.Points.Add(dataPoint18); series3.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(180)))), ((int)(((byte)(26)))), ((int)(((byte)(59)))), ((int)(((byte)(105))))); series3.ChartArea = "Default"; series3.Color = System.Drawing.Color.FromArgb(((int)(((byte)(220)))), ((int)(((byte)(224)))), ((int)(((byte)(64)))), ((int)(((byte)(10))))); series3.Legend = "Default"; series3.Name = "Series3"; series3.Points.Add(dataPoint19); series3.Points.Add(dataPoint20); series3.Points.Add(dataPoint21); series3.Points.Add(dataPoint22); series3.Points.Add(dataPoint23); series3.Points.Add(dataPoint24); series3.Points.Add(dataPoint25); series3.Points.Add(dataPoint26); series3.Points.Add(dataPoint27); this._chart1.Series.Add(series1); this._chart1.Series.Add(series2); this._chart1.Series.Add(series3); this._chart1.Size = new System.Drawing.Size(412, 296); this._chart1.TabIndex = 1; title1.Font = new System.Drawing.Font("Trebuchet MS", 14.25F, System.Drawing.FontStyle.Bold); title1.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(26)))), ((int)(((byte)(59)))), ((int)(((byte)(105))))); title1.Name = "Title1"; title1.ShadowColor = System.Drawing.Color.FromArgb(((int)(((byte)(32)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); title1.ShadowOffset = 3; title1.Text = "3D Bar and Column charts."; this._chart1.Titles.Add(title1); // // labelSampleComment // this._labelSampleComment.Font = new System.Drawing.Font("Verdana", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this._labelSampleComment.Location = new System.Drawing.Point(16, 8); this._labelSampleComment.Name = "_labelSampleComment"; this._labelSampleComment.Size = new System.Drawing.Size(702, 42); this._labelSampleComment.TabIndex = 0; this._labelSampleComment.Text = "This sample demonstrates 3D Column and Bar charts. It also shows chart area rotat" + "ion and isometric projection,�as well as clustering of�series. "; this._labelSampleComment.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // panel1 // this._panel1.Controls.Add(this._checkClustered); this._panel1.Controls.Add(this._rotation); this._panel1.Controls.Add(this._inclination); this._panel1.Controls.Add(this._label2); this._panel1.Controls.Add(this._label1); this._panel1.Controls.Add(this._rightAngleAxis); this._panel1.Controls.Add(this._checkBoxShowMargin); this._panel1.Controls.Add(this._radioButtonColumn); this._panel1.Controls.Add(this._radioButtonBar); this._panel1.Location = new System.Drawing.Point(432, 66); this._panel1.Name = "_panel1"; this._panel1.Size = new System.Drawing.Size(292, 288); this._panel1.TabIndex = 2; // // checkClustered // this._checkClustered.CheckAlign = System.Drawing.ContentAlignment.MiddleRight; this._checkClustered.Checked = true; this._checkClustered.CheckState = System.Windows.Forms.CheckState.Checked; this._checkClustered.Location = new System.Drawing.Point(37, 136); this._checkClustered.Name = "_checkClustered"; this._checkClustered.Size = new System.Drawing.Size(144, 24); this._checkClustered.TabIndex = 4; this._checkClustered.Text = "&Clustered:"; this._checkClustered.TextAlign = System.Drawing.ContentAlignment.MiddleRight; this._checkClustered.CheckedChanged += new System.EventHandler(this.checkClustered_CheckedChanged); // // Rotation // this._rotation.Increment = new decimal(new int[] { 10, 0, 0, 0 }); this._rotation.Location = new System.Drawing.Point(168, 200); this._rotation.Maximum = new decimal(new int[] { 1000, 0, 0, 0 }); this._rotation.Minimum = new decimal(new int[] { 1000, 0, 0, -2147483648 }); this._rotation.Name = "_rotation"; this._rotation.Size = new System.Drawing.Size(56, 22); this._rotation.TabIndex = 8; this._rotation.Value = new decimal(new int[] { 15, 0, 0, 0 }); this._rotation.ValueChanged += new System.EventHandler(this.Rotation_ValueChanged); // // Inclination // this._inclination.Increment = new decimal(new int[] { 10, 0, 0, 0 }); this._inclination.Location = new System.Drawing.Point(168, 168); this._inclination.Maximum = new decimal(new int[] { 1000, 0, 0, 0 }); this._inclination.Minimum = new decimal(new int[] { 1000, 0, 0, -2147483648 }); this._inclination.Name = "_inclination"; this._inclination.Size = new System.Drawing.Size(56, 22); this._inclination.TabIndex = 6; this._inclination.Value = new decimal(new int[] { 15, 0, 0, 0 }); this._inclination.ValueChanged += new System.EventHandler(this.Inclination_ValueChanged); // // label2 // this._label2.Location = new System.Drawing.Point(61, 200); this._label2.Name = "_label2"; this._label2.Size = new System.Drawing.Size(104, 23); this._label2.TabIndex = 7; this._label2.Text = "Rotate &Y:"; this._label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // label1 // this._label1.Location = new System.Drawing.Point(69, 168); this._label1.Name = "_label1"; this._label1.Size = new System.Drawing.Size(96, 23); this._label1.TabIndex = 5; this._label1.Text = "Rotate &X:"; this._label1.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // RightAngleAxis // this._rightAngleAxis.CheckAlign = System.Drawing.ContentAlignment.MiddleRight; this._rightAngleAxis.Location = new System.Drawing.Point(37, 104); this._rightAngleAxis.Name = "_rightAngleAxis"; this._rightAngleAxis.Size = new System.Drawing.Size(144, 24); this._rightAngleAxis.TabIndex = 3; this._rightAngleAxis.Text = "&Right Angle Axes:"; this._rightAngleAxis.TextAlign = System.Drawing.ContentAlignment.MiddleRight; this._rightAngleAxis.CheckedChanged += new System.EventHandler(this.RightAngleAxis_CheckedChanged); // // checkBoxShowMargin // this._checkBoxShowMargin.CheckAlign = System.Drawing.ContentAlignment.MiddleRight; this._checkBoxShowMargin.Checked = true; this._checkBoxShowMargin.CheckState = System.Windows.Forms.CheckState.Checked; this._checkBoxShowMargin.Location = new System.Drawing.Point(5, 72); this._checkBoxShowMargin.Name = "_checkBoxShowMargin"; this._checkBoxShowMargin.Size = new System.Drawing.Size(176, 24); this._checkBoxShowMargin.TabIndex = 2; this._checkBoxShowMargin.Text = "Show X Axis &Margin:"; this._checkBoxShowMargin.TextAlign = System.Drawing.ContentAlignment.MiddleRight; this._checkBoxShowMargin.CheckedChanged += new System.EventHandler(this.checkBoxShowMargin_CheckedChanged); // // radioButtonColumn // this._radioButtonColumn.CheckAlign = System.Drawing.ContentAlignment.MiddleRight; this._radioButtonColumn.Checked = true; this._radioButtonColumn.Location = new System.Drawing.Point(27, 40); this._radioButtonColumn.Name = "_radioButtonColumn"; this._radioButtonColumn.Size = new System.Drawing.Size(152, 24); this._radioButtonColumn.TabIndex = 1; this._radioButtonColumn.TabStop = true; this._radioButtonColumn.Text = "3D C&olumn Chart:"; this._radioButtonColumn.TextAlign = System.Drawing.ContentAlignment.MiddleRight; this._radioButtonColumn.CheckedChanged += new System.EventHandler(this.radioButtonColumn_CheckedChanged); // // radioButtonBar // this._radioButtonBar.CheckAlign = System.Drawing.ContentAlignment.MiddleRight; this._radioButtonBar.Location = new System.Drawing.Point(43, 8); this._radioButtonBar.Name = "_radioButtonBar"; this._radioButtonBar.Size = new System.Drawing.Size(136, 24); this._radioButtonBar.TabIndex = 0; this._radioButtonBar.Text = "3D &Bar Chart:"; this._radioButtonBar.TextAlign = System.Drawing.ContentAlignment.MiddleRight; this._radioButtonBar.CheckedChanged += new System.EventHandler(this.radioButtonBar_CheckedChanged); // // BarColumn3D // this.BackColor = System.Drawing.Color.White; this.Controls.Add(this._panel1); this.Controls.Add(this._labelSampleComment); this.Controls.Add(this._chart1); this.Font = new System.Drawing.Font("Verdana", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.Name = "BarColumn3D"; this.Size = new System.Drawing.Size(728, 480); this.Load += new System.EventHandler(this.BarColumn3D_Load); ((System.ComponentModel.ISupportInitialize)(this._chart1)).EndInit(); this._panel1.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this._rotation)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this._inclination)).EndInit(); this.ResumeLayout(false); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { System.Windows.Forms.DataVisualization.Charting.ChartArea chartArea1 = new System.Windows.Forms.DataVisualization.Charting.ChartArea(); System.Windows.Forms.DataVisualization.Charting.Legend legend1 = new System.Windows.Forms.DataVisualization.Charting.Legend(); System.Windows.Forms.DataVisualization.Charting.LegendItem legendItem1 = new System.Windows.Forms.DataVisualization.Charting.LegendItem(); System.Windows.Forms.DataVisualization.Charting.LegendItem legendItem2 = new System.Windows.Forms.DataVisualization.Charting.LegendItem(); System.Windows.Forms.DataVisualization.Charting.Series series1 = new System.Windows.Forms.DataVisualization.Charting.Series(); System.Windows.Forms.DataVisualization.Charting.Series series2 = new System.Windows.Forms.DataVisualization.Charting.Series(); System.Windows.Forms.DataVisualization.Charting.Title title1 = new System.Windows.Forms.DataVisualization.Charting.Title(); this.chart1 = new System.Windows.Forms.DataVisualization.Charting.Chart(); this.labelSampleComment = new System.Windows.Forms.Label(); this.panel1 = new System.Windows.Forms.Panel(); this.Rotation = new System.Windows.Forms.NumericUpDown(); this.Inclination = new System.Windows.Forms.NumericUpDown(); this.label2 = new System.Windows.Forms.Label(); this.label1 = new System.Windows.Forms.Label(); ((System.ComponentModel.ISupportInitialize)(this.chart1)).BeginInit(); this.panel1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.Rotation)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.Inclination)).BeginInit(); this.SuspendLayout(); // // chart1 // this.chart1.BackColor = System.Drawing.Color.WhiteSmoke; this.chart1.BackGradientStyle = System.Windows.Forms.DataVisualization.Charting.GradientStyle.TopBottom; this.chart1.BackSecondaryColor = System.Drawing.Color.White; this.chart1.BorderlineColor = System.Drawing.Color.FromArgb(((int)(((byte)(26)))), ((int)(((byte)(59)))), ((int)(((byte)(105))))); this.chart1.BorderlineDashStyle = System.Windows.Forms.DataVisualization.Charting.ChartDashStyle.Solid; this.chart1.BorderlineWidth = 2; this.chart1.BorderSkin.SkinStyle = System.Windows.Forms.DataVisualization.Charting.BorderSkinStyle.Emboss; chartArea1.Area3DStyle.Enable3D = true; chartArea1.Area3DStyle.Inclination = 15; chartArea1.Area3DStyle.IsRightAngleAxes = false; chartArea1.Area3DStyle.PointDepth = 200; chartArea1.Area3DStyle.Rotation = 10; chartArea1.Area3DStyle.WallWidth = 0; chartArea1.AxisX.LabelStyle.Font = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold); chartArea1.AxisX.LabelStyle.IsEndLabelVisible = false; chartArea1.AxisX.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea1.AxisX.MajorGrid.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea1.AxisY.IsLabelAutoFit = false; chartArea1.AxisY.LabelStyle.Font = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold); chartArea1.AxisY.LabelStyle.Format = "dd MMM"; chartArea1.AxisY.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea1.AxisY.MajorGrid.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea1.BackColor = System.Drawing.Color.WhiteSmoke; chartArea1.BackSecondaryColor = System.Drawing.Color.White; chartArea1.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea1.BorderDashStyle = System.Windows.Forms.DataVisualization.Charting.ChartDashStyle.Solid; chartArea1.Name = "Default"; chartArea1.ShadowColor = System.Drawing.Color.Transparent; this.chart1.ChartAreas.Add(chartArea1); legend1.Alignment = System.Drawing.StringAlignment.Center; legend1.BackColor = System.Drawing.Color.Transparent; legendItem1.Color = System.Drawing.Color.Red; legendItem1.Name = "Completed"; legendItem2.Color = System.Drawing.Color.Gray; legendItem2.Name = "Late"; legend1.CustomItems.Add(legendItem1); legend1.CustomItems.Add(legendItem2); legend1.Docking = System.Windows.Forms.DataVisualization.Charting.Docking.Bottom; legend1.Font = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold); legend1.IsTextAutoFit = false; legend1.LegendStyle = System.Windows.Forms.DataVisualization.Charting.LegendStyle.Row; legend1.Name = "Default"; this.chart1.Legends.Add(legend1); this.chart1.Location = new System.Drawing.Point(16, 45); this.chart1.Name = "chart1"; series1.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(180)))), ((int)(((byte)(26)))), ((int)(((byte)(59)))), ((int)(((byte)(105))))); series1.ChartArea = "Default"; series1.ChartType = System.Windows.Forms.DataVisualization.Charting.SeriesChartType.RangeBar; series1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(220)))), ((int)(((byte)(65)))), ((int)(((byte)(140)))), ((int)(((byte)(240))))); series1.CustomProperties = "DrawSideBySide=True"; series1.Legend = "Default"; series1.Name = "Estimated"; series1.YValuesPerPoint = 2; series1.YValueType = System.Windows.Forms.DataVisualization.Charting.ChartValueType.DateTime; series2.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(180)))), ((int)(((byte)(26)))), ((int)(((byte)(59)))), ((int)(((byte)(105))))); series2.ChartArea = "Default"; series2.ChartType = System.Windows.Forms.DataVisualization.Charting.SeriesChartType.RangeBar; series2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(220)))), ((int)(((byte)(252)))), ((int)(((byte)(180)))), ((int)(((byte)(65))))); series2.CustomProperties = "DrawSideBySide=True, PointWidth=0.3"; series2.Legend = "Default"; series2.Name = "Actual"; series2.YValuesPerPoint = 2; series2.YValueType = System.Windows.Forms.DataVisualization.Charting.ChartValueType.DateTime; this.chart1.Series.Add(series1); this.chart1.Series.Add(series2); this.chart1.Size = new System.Drawing.Size(412, 296); this.chart1.TabIndex = 1; title1.Font = new System.Drawing.Font("Trebuchet MS", 14.25F, System.Drawing.FontStyle.Bold); title1.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(26)))), ((int)(((byte)(59)))), ((int)(((byte)(105))))); title1.Name = "Title1"; title1.ShadowColor = System.Drawing.Color.FromArgb(((int)(((byte)(32)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); title1.ShadowOffset = 3; title1.Text = "3D Range Bar Chart"; this.chart1.Titles.Add(title1); this.chart1.PostPaint += new System.EventHandler <System.Windows.Forms.DataVisualization.Charting.ChartPaintEventArgs>(this.chart1_PostPaint); // // labelSampleComment // this.labelSampleComment.Font = new System.Drawing.Font("Verdana", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.labelSampleComment.Location = new System.Drawing.Point(16, 8); this.labelSampleComment.Name = "labelSampleComment"; this.labelSampleComment.Size = new System.Drawing.Size(702, 29); this.labelSampleComment.TabIndex = 0; this.labelSampleComment.Text = "This sample demonstrates a 3D Range Bar chart."; this.labelSampleComment.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // panel1 // this.panel1.Controls.Add(this.Rotation); this.panel1.Controls.Add(this.Inclination); this.panel1.Controls.Add(this.label2); this.panel1.Controls.Add(this.label1); this.panel1.Location = new System.Drawing.Point(432, 53); this.panel1.Name = "panel1"; this.panel1.Size = new System.Drawing.Size(292, 280); this.panel1.TabIndex = 2; // // Rotation // this.Rotation.Increment = new decimal(new int[] { 10, 0, 0, 0 }); this.Rotation.Location = new System.Drawing.Point(168, 56); this.Rotation.Maximum = new decimal(new int[] { 1000, 0, 0, 0 }); this.Rotation.Minimum = new decimal(new int[] { 1000, 0, 0, -2147483648 }); this.Rotation.Name = "Rotation"; this.Rotation.Size = new System.Drawing.Size(64, 22); this.Rotation.TabIndex = 3; this.Rotation.Value = new decimal(new int[] { 10, 0, 0, 0 }); this.Rotation.ValueChanged += new System.EventHandler(this.Rotation_ValueChanged); // // Inclination // this.Inclination.Increment = new decimal(new int[] { 10, 0, 0, 0 }); this.Inclination.Location = new System.Drawing.Point(168, 16); this.Inclination.Maximum = new decimal(new int[] { 1000, 0, 0, 0 }); this.Inclination.Minimum = new decimal(new int[] { 1000, 0, 0, -2147483648 }); this.Inclination.Name = "Inclination"; this.Inclination.Size = new System.Drawing.Size(64, 22); this.Inclination.TabIndex = 1; this.Inclination.Value = new decimal(new int[] { 15, 0, 0, 0 }); this.Inclination.ValueChanged += new System.EventHandler(this.Inclination_ValueChanged); // // label2 // this.label2.Location = new System.Drawing.Point(40, 56); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(120, 23); this.label2.TabIndex = 2; this.label2.Text = "Rotate &Y:"; this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // label1 // this.label1.Location = new System.Drawing.Point(40, 15); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(120, 23); this.label1.TabIndex = 0; this.label1.Text = "Rotate &X:"; this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleRight; this.label1.Click += new System.EventHandler(this.label1_Click); // // RangeBar3D // this.BackColor = System.Drawing.Color.White; this.Controls.Add(this.panel1); this.Controls.Add(this.labelSampleComment); this.Controls.Add(this.chart1); this.Font = new System.Drawing.Font("Verdana", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.Name = "Range Bar 3D"; this.Size = new System.Drawing.Size(728, 424); this.Load += new System.EventHandler(this.RangeBar3D_Load); ((System.ComponentModel.ISupportInitialize)(this.chart1)).EndInit(); this.panel1.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.Rotation)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.Inclination)).EndInit(); this.ResumeLayout(false); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { System.Windows.Forms.DataVisualization.Charting.ChartArea chartArea1 = new System.Windows.Forms.DataVisualization.Charting.ChartArea(); System.Windows.Forms.DataVisualization.Charting.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.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.checkPropSymbols = new System.Windows.Forms.CheckBox(); this.comboBoxSize = new System.Windows.Forms.ComboBox(); this.label2 = new System.Windows.Forms.Label(); this.comboReversalAmount = new System.Windows.Forms.ComboBox(); this.label1 = new System.Windows.Forms.Label(); this.label3 = new System.Windows.Forms.Label(); ((System.ComponentModel.ISupportInitialize)(this.chart1)).BeginInit(); this.panel1.SuspendLayout(); this.SuspendLayout(); // // chart1 // this.chart1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(211)))), ((int)(((byte)(223)))), ((int)(((byte)(240))))); this.chart1.BackGradientStyle = System.Windows.Forms.DataVisualization.Charting.GradientStyle.TopBottom; this.chart1.BackSecondaryColor = System.Drawing.Color.White; this.chart1.BorderlineColor = System.Drawing.Color.FromArgb(((int)(((byte)(26)))), ((int)(((byte)(59)))), ((int)(((byte)(105))))); this.chart1.BorderlineDashStyle = System.Windows.Forms.DataVisualization.Charting.ChartDashStyle.Solid; this.chart1.BorderlineWidth = 2; this.chart1.BorderSkin.SkinStyle = System.Windows.Forms.DataVisualization.Charting.BorderSkinStyle.Emboss; chartArea1.Area3DStyle.Inclination = 15; chartArea1.Area3DStyle.IsClustered = true; chartArea1.Area3DStyle.IsRightAngleAxes = false; chartArea1.Area3DStyle.Perspective = 10; chartArea1.Area3DStyle.Rotation = 10; chartArea1.Area3DStyle.WallWidth = 0; chartArea1.AxisX.LabelStyle.Font = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold); chartArea1.AxisX.LabelStyle.Format = "MMM dd"; chartArea1.AxisX.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea1.AxisX.MajorGrid.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea1.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.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, 40); 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.PointAndFigure; series1.CustomProperties = "PriceUpColor=Black"; series1.IsXValueIndexed = true; series1.Legend = "Default"; series1.Name = "Default"; series1.XValueType = System.Windows.Forms.DataVisualization.Charting.ChartValueType.Date; series1.YValuesPerPoint = 2; series1.YValueType = System.Windows.Forms.DataVisualization.Charting.ChartValueType.Double; this.chart1.Series.Add(series1); this.chart1.Size = new System.Drawing.Size(412, 296); this.chart1.TabIndex = 1; 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 = "Point and Figure Chart"; this.chart1.Titles.Add(title1); this.chart1.Click += new System.EventHandler(this.chart1_Click); // // 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, 24); this.labelSampleComment.TabIndex = 0; this.labelSampleComment.Text = "This sample demonstrates the Point and Figure chart type."; this.labelSampleComment.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // panel1 // this.panel1.Controls.Add(this.checkPropSymbols); this.panel1.Controls.Add(this.comboBoxSize); this.panel1.Controls.Add(this.label2); this.panel1.Controls.Add(this.comboReversalAmount); this.panel1.Controls.Add(this.label1); this.panel1.Location = new System.Drawing.Point(432, 48); 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); // // checkPropSymbols // this.checkPropSymbols.CheckAlign = System.Drawing.ContentAlignment.MiddleRight; this.checkPropSymbols.Location = new System.Drawing.Point(5, 72); this.checkPropSymbols.Name = "checkPropSymbols"; this.checkPropSymbols.RightToLeft = System.Windows.Forms.RightToLeft.No; this.checkPropSymbols.Size = new System.Drawing.Size(176, 24); this.checkPropSymbols.TabIndex = 4; this.checkPropSymbols.Text = "&Proportional Symbols:"; this.checkPropSymbols.TextAlign = System.Drawing.ContentAlignment.MiddleRight; this.checkPropSymbols.CheckedChanged += new System.EventHandler(this.checkPropSymbols_CheckedChanged); // // comboBoxSize // this.comboBoxSize.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.comboBoxSize.Items.AddRange(new object[] { "1", "1.2", "7%", "8%", "9%", "Default"}); this.comboBoxSize.Location = new System.Drawing.Point(168, 8); this.comboBoxSize.Name = "comboBoxSize"; this.comboBoxSize.Size = new System.Drawing.Size(88, 22); this.comboBoxSize.TabIndex = 1; this.comboBoxSize.SelectedIndexChanged += new System.EventHandler(this.comboBoxSize_SelectedIndexChanged); // // label2 // this.label2.Location = new System.Drawing.Point(59, 8); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(104, 23); this.label2.TabIndex = 0; this.label2.Text = "Box &Size:"; this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // comboReversalAmount // this.comboReversalAmount.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.comboReversalAmount.Items.AddRange(new object[] { "1", "2", "3", "4", "5"}); this.comboReversalAmount.Location = new System.Drawing.Point(168, 40); this.comboReversalAmount.Name = "comboReversalAmount"; this.comboReversalAmount.Size = new System.Drawing.Size(88, 22); this.comboReversalAmount.TabIndex = 3; this.comboReversalAmount.SelectedIndexChanged += new System.EventHandler(this.comboReversalAmount_SelectedIndexChanged); // // label1 // this.label1.Location = new System.Drawing.Point(27, 40); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(136, 23); this.label1.TabIndex = 2; this.label1.Text = "Reversal &Amount:"; this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // 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); this.label3.Location = new System.Drawing.Point(13, 344); this.label3.Name = "label3"; this.label3.Size = new System.Drawing.Size(702, 40); this.label3.TabIndex = 23; this.label3.Text = "The ProportionalSymbols custom attribute indicates that the chart should try to d" + "raw ‘X’ and ‘O’ symbols proportionally."; this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // PointAndFigureChartType // this.BackColor = System.Drawing.Color.White; this.Controls.Add(this.label3); this.Controls.Add(this.panel1); this.Controls.Add(this.labelSampleComment); this.Controls.Add(this.chart1); this.Font = new System.Drawing.Font("Verdana", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.Name = "PointAndFigureChartType"; this.Size = new System.Drawing.Size(728, 480); this.Load += new System.EventHandler(this.PointAndFigureChartType_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.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.comboBoxSortOrder = new System.Windows.Forms.ComboBox(); this.label2 = new System.Windows.Forms.Label(); this.comboBoxSortingValue = 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.BackSecondaryColor = System.Drawing.Color.White; this.chart1.BorderlineColor = System.Drawing.Color.FromArgb(((int)(((byte)(26)))), ((int)(((byte)(59)))), ((int)(((byte)(105))))); this.chart1.BorderlineDashStyle = System.Windows.Forms.DataVisualization.Charting.ChartDashStyle.Solid; this.chart1.BorderlineWidth = 2; this.chart1.BorderSkin.SkinStyle = System.Windows.Forms.DataVisualization.Charting.BorderSkinStyle.Emboss; chartArea1.Area3DStyle.Inclination = 15; chartArea1.Area3DStyle.IsClustered = true; chartArea1.Area3DStyle.IsRightAngleAxes = false; chartArea1.Area3DStyle.Perspective = 10; chartArea1.Area3DStyle.Rotation = 10; chartArea1.Area3DStyle.WallWidth = 0; chartArea1.AxisX.LabelAutoFitStyle = ((System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles)((((System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles.DecreaseFont | System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles.StaggeredLabels) | System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles.LabelsAngleStep30) | System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles.WordWrap))); chartArea1.AxisX.LabelStyle.Font = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold); chartArea1.AxisX.LabelStyle.Format = "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.AxisY.LabelAutoFitStyle = ((System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles)((((System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles.DecreaseFont | System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles.StaggeredLabels) | System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles.LabelsAngleStep30) | System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles.WordWrap))); chartArea1.AxisY.LabelStyle.Font = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold); chartArea1.AxisY.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea1.AxisY.MajorGrid.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(165)))), ((int)(((byte)(191)))), ((int)(((byte)(228))))); chartArea1.BackGradientStyle = System.Windows.Forms.DataVisualization.Charting.GradientStyle.TopBottom; chartArea1.BackSecondaryColor = System.Drawing.Color.White; chartArea1.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea1.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, 64); 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)(180)))), ((int)(((byte)(224)))), ((int)(((byte)(64)))), ((int)(((byte)(10))))); series1.IsXValueIndexed = true; series1.Legend = "Default"; series1.MarkerStyle = System.Windows.Forms.DataVisualization.Charting.MarkerStyle.Circle; series1.Name = "Series1"; series1.ShadowOffset = 2; series1.YValuesPerPoint = 2; this.chart1.Series.Add(series1); this.chart1.Size = new System.Drawing.Size(412, 296); this.chart1.TabIndex = 1; 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 = "Company Perfomance"; this.chart1.Titles.Add(title1); // // 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 sample shows how to sort a series\' data points using different point values " + "and sort orders."; this.labelSampleComment.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // panel1 // this.panel1.Controls.Add(this.comboBoxSortOrder); this.panel1.Controls.Add(this.label2); this.panel1.Controls.Add(this.comboBoxSortingValue); this.panel1.Controls.Add(this.label1); this.panel1.Location = new System.Drawing.Point(432, 72); this.panel1.Name = "panel1"; this.panel1.Size = new System.Drawing.Size(292, 288); this.panel1.TabIndex = 2; // // comboBoxSortOrder // this.comboBoxSortOrder.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.comboBoxSortOrder.Enabled = false; this.comboBoxSortOrder.Items.AddRange(new object[] { "Ascending", "Descending" }); this.comboBoxSortOrder.Location = new System.Drawing.Point(168, 40); this.comboBoxSortOrder.Name = "comboBoxSortOrder"; this.comboBoxSortOrder.Size = new System.Drawing.Size(121, 22); this.comboBoxSortOrder.TabIndex = 3; this.comboBoxSortOrder.SelectedIndexChanged += new System.EventHandler(this.comboBoxSortingValue_SelectedIndexChanged); // // label2 // this.label2.Location = new System.Drawing.Point(0, 40); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(168, 23); this.label2.TabIndex = 2; this.label2.Text = "Sort &Order:"; this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // comboBoxSortingValue // this.comboBoxSortingValue.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.comboBoxSortingValue.Items.AddRange(new object[] { "Unsorted", "Y Value", "Y2 Value (Radius)" }); this.comboBoxSortingValue.Location = new System.Drawing.Point(168, 8); this.comboBoxSortingValue.Name = "comboBoxSortingValue"; this.comboBoxSortingValue.Size = new System.Drawing.Size(121, 22); this.comboBoxSortingValue.TabIndex = 1; this.comboBoxSortingValue.SelectedIndexChanged += new System.EventHandler(this.comboBoxSortingValue_SelectedIndexChanged); // // label1 // this.label1.Location = new System.Drawing.Point(0, 8); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(168, 23); this.label1.TabIndex = 0; this.label1.Text = "Value &Used for Sorting:"; this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // Sorting // 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 = "Sorting"; 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(1, 400); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint2 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(2, 200); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint3 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(3, 700); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint4 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(4, 300); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint5 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(5, 450); System.Windows.Forms.DataVisualization.Charting.Series series2 = new System.Windows.Forms.DataVisualization.Charting.Series(); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint6 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(1, 200); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint7 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(2, 300); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint8 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(3, 350); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint9 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(4, 80); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint10 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(5, 400); System.Windows.Forms.DataVisualization.Charting.Series series3 = new System.Windows.Forms.DataVisualization.Charting.Series(); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint11 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(1, 500); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint12 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(2, 120); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint13 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(3, 300); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint14 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(4, 50); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint15 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(5, 130); System.Windows.Forms.DataVisualization.Charting.Title title1 = new System.Windows.Forms.DataVisualization.Charting.Title(); this.TheFont = new System.Windows.Forms.ComboBox(); this.FontColorCombo = new System.Windows.Forms.ComboBox(); this.FontSize = new System.Windows.Forms.ComboBox(); this.label5 = new System.Windows.Forms.Label(); this.label7 = new System.Windows.Forms.Label(); this.label8 = new System.Windows.Forms.Label(); this.label9 = new System.Windows.Forms.Label(); this.panel1 = new System.Windows.Forms.Panel(); this.ToolTip = new System.Windows.Forms.TextBox(); this.label4 = new System.Windows.Forms.Label(); this.label3 = new System.Windows.Forms.Label(); this.Alignment = new System.Windows.Forms.ComboBox(); this.label2 = new System.Windows.Forms.Label(); this.BorderColor = new System.Windows.Forms.ComboBox(); this.label1 = new System.Windows.Forms.Label(); this.BackColorCom = new System.Windows.Forms.ComboBox(); this.Title = new System.Windows.Forms.TextBox(); this.Chart1 = new System.Windows.Forms.DataVisualization.Charting.Chart(); this.panel1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.Chart1)).BeginInit(); this.SuspendLayout(); // // TheFont // this.TheFont.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.TheFont.Location = new System.Drawing.Point(168, 32); this.TheFont.Name = "TheFont"; this.TheFont.Size = new System.Drawing.Size(121, 22); this.TheFont.TabIndex = 2; this.TheFont.SelectedIndexChanged += new System.EventHandler(this.ControlChange); // // FontColorCombo // this.FontColorCombo.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.FontColorCombo.Location = new System.Drawing.Point(168, 88); this.FontColorCombo.Name = "FontColorCombo"; this.FontColorCombo.Size = new System.Drawing.Size(121, 22); this.FontColorCombo.TabIndex = 6; this.FontColorCombo.SelectedIndexChanged += new System.EventHandler(this.ControlChange); // // FontSize // this.FontSize.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.FontSize.Items.AddRange(new object[] { "8", "10", "12", "14", "16"}); this.FontSize.Location = new System.Drawing.Point(168, 60); this.FontSize.Name = "FontSize"; this.FontSize.Size = new System.Drawing.Size(121, 22); this.FontSize.TabIndex = 4; this.FontSize.SelectedIndexChanged += new System.EventHandler(this.ControlChange); // // label5 // this.label5.Location = new System.Drawing.Point(8, 35); this.label5.Name = "label5"; this.label5.Size = new System.Drawing.Size(156, 16); this.label5.TabIndex = 1; this.label5.Text = "&Font:"; this.label5.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // label7 // this.label7.Location = new System.Drawing.Point(8, 91); this.label7.Name = "label7"; this.label7.Size = new System.Drawing.Size(156, 16); this.label7.TabIndex = 5; this.label7.Text = "Font &Color:"; this.label7.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // label8 // this.label8.Location = new System.Drawing.Point(8, 63); this.label8.Name = "label8"; this.label8.Size = new System.Drawing.Size(156, 16); this.label8.TabIndex = 3; this.label8.Text = "Font &Size:"; this.label8.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // label9 // this.label9.Font = new System.Drawing.Font("Verdana", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label9.Location = new System.Drawing.Point(16, 14); this.label9.Name = "label9"; this.label9.Size = new System.Drawing.Size(702, 34); this.label9.TabIndex = 0; this.label9.Text = "This sample shows how to set the chart title\'s text, font and color. Note that th" + "e PrePaint and PostPaint events allow for custom drawing of the chart\'s title. "; this.label9.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // panel1 // this.panel1.Controls.Add(this.ToolTip); this.panel1.Controls.Add(this.label4); this.panel1.Controls.Add(this.label3); this.panel1.Controls.Add(this.Alignment); this.panel1.Controls.Add(this.label2); this.panel1.Controls.Add(this.BorderColor); this.panel1.Controls.Add(this.label1); this.panel1.Controls.Add(this.BackColorCom); this.panel1.Controls.Add(this.Title); this.panel1.Controls.Add(this.label5); this.panel1.Controls.Add(this.TheFont); this.panel1.Controls.Add(this.label7); this.panel1.Controls.Add(this.label8); this.panel1.Controls.Add(this.FontSize); this.panel1.Controls.Add(this.FontColorCombo); this.panel1.Location = new System.Drawing.Point(432, 68); this.panel1.Name = "panel1"; this.panel1.Size = new System.Drawing.Size(292, 296); this.panel1.TabIndex = 2; // // ToolTip // this.ToolTip.Location = new System.Drawing.Point(169, 200); this.ToolTip.Name = "ToolTip"; this.ToolTip.Size = new System.Drawing.Size(120, 22); this.ToolTip.TabIndex = 14; this.ToolTip.Text = "Title Tooltip"; this.ToolTip.TextChanged += new System.EventHandler(this.ControlChange); // // label4 // this.label4.Location = new System.Drawing.Point(8, 204); this.label4.Name = "label4"; this.label4.Size = new System.Drawing.Size(156, 16); this.label4.TabIndex = 13; this.label4.Text = "&ToolTip:"; this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // label3 // this.label3.Location = new System.Drawing.Point(8, 175); this.label3.Name = "label3"; this.label3.Size = new System.Drawing.Size(156, 16); this.label3.TabIndex = 11; this.label3.Text = "&Alignment:"; this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // Alignment // this.Alignment.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.Alignment.Items.AddRange(new object[] { "Left", "Center", "Right"}); this.Alignment.Location = new System.Drawing.Point(168, 172); this.Alignment.Name = "Alignment"; this.Alignment.Size = new System.Drawing.Size(121, 22); this.Alignment.TabIndex = 12; this.Alignment.SelectedIndexChanged += new System.EventHandler(this.ControlChange); // // label2 // this.label2.Location = new System.Drawing.Point(8, 147); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(156, 16); this.label2.TabIndex = 9; this.label2.Text = "B&order Color:"; this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // BorderColor // this.BorderColor.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.BorderColor.Items.AddRange(new object[] { "None", "Red", "Green", "Blue", "Yellow"}); this.BorderColor.Location = new System.Drawing.Point(168, 144); this.BorderColor.Name = "BorderColor"; this.BorderColor.Size = new System.Drawing.Size(121, 22); this.BorderColor.TabIndex = 10; this.BorderColor.SelectedIndexChanged += new System.EventHandler(this.ControlChange); // // label1 // this.label1.Location = new System.Drawing.Point(8, 119); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(156, 16); this.label1.TabIndex = 7; this.label1.Text = "&Back Color:"; this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // BackColorCom // this.BackColorCom.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.BackColorCom.Items.AddRange(new object[] { "None", "Red", "Green", "Blue", "Yellow"}); this.BackColorCom.Location = new System.Drawing.Point(168, 116); this.BackColorCom.Name = "BackColorCom"; this.BackColorCom.Size = new System.Drawing.Size(121, 22); this.BackColorCom.TabIndex = 8; this.BackColorCom.SelectedIndexChanged += new System.EventHandler(this.ControlChange); // // Title // this.Title.Location = new System.Drawing.Point(8, 4); this.Title.Name = "Title"; this.Title.Size = new System.Drawing.Size(280, 22); this.Title.TabIndex = 0; this.Title.Text = "Sales Report\\nYear 2001"; this.Title.TextChanged += new System.EventHandler(this.ControlChange); // // Chart1 // this.Chart1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(211)))), ((int)(((byte)(223)))), ((int)(((byte)(240))))); this.Chart1.BackGradientStyle = System.Windows.Forms.DataVisualization.Charting.GradientStyle.TopBottom; this.Chart1.BorderlineColor = System.Drawing.Color.FromArgb(((int)(((byte)(26)))), ((int)(((byte)(59)))), ((int)(((byte)(105))))); this.Chart1.BorderlineDashStyle = System.Windows.Forms.DataVisualization.Charting.ChartDashStyle.Solid; this.Chart1.BorderlineWidth = 2; this.Chart1.BorderSkin.SkinStyle = System.Windows.Forms.DataVisualization.Charting.BorderSkinStyle.Emboss; chartArea1.Area3DStyle.Enable3D = true; chartArea1.Area3DStyle.Inclination = 15; chartArea1.Area3DStyle.IsClustered = true; chartArea1.Area3DStyle.IsRightAngleAxes = false; chartArea1.Area3DStyle.Perspective = 10; chartArea1.Area3DStyle.PointGapDepth = 0; chartArea1.Area3DStyle.Rotation = 5; chartArea1.Area3DStyle.WallWidth = 0; chartArea1.AxisX.IsLabelAutoFit = false; chartArea1.AxisX.IsMarginVisible = false; chartArea1.AxisX.IsStartedFromZero = false; chartArea1.AxisX.LabelStyle.Font = new System.Drawing.Font("Trebuchet MS", 8.25F); chartArea1.AxisX.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea1.AxisX.MajorGrid.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea1.AxisX.TitleFont = new System.Drawing.Font("Microsoft Sans Serif", 10F, System.Drawing.FontStyle.Bold); chartArea1.AxisX2.MajorGrid.Enabled = false; chartArea1.AxisY.IsLabelAutoFit = false; chartArea1.AxisY.LabelStyle.Font = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold); chartArea1.AxisY.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea1.AxisY.MajorGrid.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea1.AxisY2.MajorGrid.Enabled = false; chartArea1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(165)))), ((int)(((byte)(191)))), ((int)(((byte)(228))))); chartArea1.BackGradientStyle = System.Windows.Forms.DataVisualization.Charting.GradientStyle.TopBottom; chartArea1.BackSecondaryColor = System.Drawing.Color.Transparent; chartArea1.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea1.Name = "Default"; chartArea1.ShadowColor = System.Drawing.Color.Transparent; this.Chart1.ChartAreas.Add(chartArea1); legend1.BackColor = System.Drawing.Color.Transparent; legend1.Enabled = false; legend1.Name = "Default"; this.Chart1.Legends.Add(legend1); this.Chart1.Location = new System.Drawing.Point(16, 60); this.Chart1.Name = "Chart1"; this.Chart1.Palette = System.Windows.Forms.DataVisualization.Charting.ChartColorPalette.Pastel; series1.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(180)))), ((int)(((byte)(26)))), ((int)(((byte)(59)))), ((int)(((byte)(105))))); series1.ChartArea = "Default"; series1.ChartType = System.Windows.Forms.DataVisualization.Charting.SeriesChartType.SplineArea; series1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(220)))), ((int)(((byte)(65)))), ((int)(((byte)(140)))), ((int)(((byte)(240))))); series1.Legend = "Default"; series1.Name = "Default"; series1.Points.Add(dataPoint1); series1.Points.Add(dataPoint2); series1.Points.Add(dataPoint3); series1.Points.Add(dataPoint4); series1.Points.Add(dataPoint5); series1.ShadowColor = System.Drawing.Color.Transparent; series1.XValueType = System.Windows.Forms.DataVisualization.Charting.ChartValueType.Double; series1.YValueType = System.Windows.Forms.DataVisualization.Charting.ChartValueType.Double; series2.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); series2.ChartArea = "Default"; series2.ChartType = System.Windows.Forms.DataVisualization.Charting.SeriesChartType.SplineArea; series2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(220)))), ((int)(((byte)(252)))), ((int)(((byte)(180)))), ((int)(((byte)(65))))); series2.Legend = "Default"; series2.Name = "Series2"; series2.Points.Add(dataPoint6); series2.Points.Add(dataPoint7); series2.Points.Add(dataPoint8); series2.Points.Add(dataPoint9); series2.Points.Add(dataPoint10); series3.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); series3.ChartArea = "Default"; series3.ChartType = System.Windows.Forms.DataVisualization.Charting.SeriesChartType.SplineArea; series3.Color = System.Drawing.Color.FromArgb(((int)(((byte)(220)))), ((int)(((byte)(224)))), ((int)(((byte)(64)))), ((int)(((byte)(10))))); series3.Legend = "Default"; series3.Name = "Series3"; series3.Points.Add(dataPoint11); series3.Points.Add(dataPoint12); series3.Points.Add(dataPoint13); series3.Points.Add(dataPoint14); series3.Points.Add(dataPoint15); this.Chart1.Series.Add(series1); this.Chart1.Series.Add(series2); this.Chart1.Series.Add(series3); this.Chart1.Size = new System.Drawing.Size(412, 296); this.Chart1.TabIndex = 1; title1.Font = new System.Drawing.Font("Trebuchet MS", 14.25F, System.Drawing.FontStyle.Bold); title1.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(26)))), ((int)(((byte)(59)))), ((int)(((byte)(105))))); title1.Name = "Title1"; title1.ShadowColor = System.Drawing.Color.FromArgb(((int)(((byte)(32)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); title1.ShadowOffset = 3; title1.Text = "Sales Report\\nYear 2001"; this.Chart1.Titles.Add(title1); // // ChartTitle // this.Controls.Add(this.Chart1); this.Controls.Add(this.panel1); this.Controls.Add(this.label9); this.Font = new System.Drawing.Font("Verdana", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.Name = "ChartTitle"; this.Size = new System.Drawing.Size(728, 480); this.panel1.ResumeLayout(false); this.panel1.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.Chart1)).EndInit(); this.ResumeLayout(false); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { System.Windows.Forms.DataVisualization.Charting.ChartArea chartArea1 = new System.Windows.Forms.DataVisualization.Charting.ChartArea(); System.Windows.Forms.DataVisualization.Charting.Legend legend1 = new System.Windows.Forms.DataVisualization.Charting.Legend(); System.Windows.Forms.DataVisualization.Charting.Series series1 = new System.Windows.Forms.DataVisualization.Charting.Series(); System.Windows.Forms.DataVisualization.Charting.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.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.checkBoxShowMargin = new System.Windows.Forms.CheckBox(); this.comboBoxSeries3 = new System.Windows.Forms.ComboBox(); this.label3 = new System.Windows.Forms.Label(); this.comboBoxSeries2 = new System.Windows.Forms.ComboBox(); this.label2 = new System.Windows.Forms.Label(); this.comboBoxSeries1 = 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.LabelStyle.Font = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold); chartArea1.AxisX.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea1.AxisX.MajorGrid.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea1.AxisY.LabelStyle.Font = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold); chartArea1.AxisY.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea1.AxisY.MajorGrid.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(165)))), ((int)(((byte)(191)))), ((int)(((byte)(228))))); chartArea1.BackGradientStyle = System.Windows.Forms.DataVisualization.Charting.GradientStyle.TopBottom; chartArea1.BackSecondaryColor = System.Drawing.Color.Transparent; chartArea1.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea1.Name = "Default"; chartArea1.ShadowColor = System.Drawing.Color.Transparent; this.chart1.ChartAreas.Add(chartArea1); legend1.Alignment = System.Drawing.StringAlignment.Center; legend1.BackColor = System.Drawing.Color.Transparent; legend1.Docking = System.Windows.Forms.DataVisualization.Charting.Docking.Bottom; legend1.Font = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold); legend1.IsTextAutoFit = false; legend1.LegendStyle = System.Windows.Forms.DataVisualization.Charting.LegendStyle.Row; legend1.Name = "Default"; this.chart1.Legends.Add(legend1); this.chart1.Location = new System.Drawing.Point(16, 58); this.chart1.Name = "chart1"; series1.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(180)))), ((int)(((byte)(26)))), ((int)(((byte)(59)))), ((int)(((byte)(105))))); series1.ChartArea = "Default"; series1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(220)))), ((int)(((byte)(65)))), ((int)(((byte)(140)))), ((int)(((byte)(240))))); series1.Legend = "Default"; series1.MarkerSize = 10; 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.Color = System.Drawing.Color.FromArgb(((int)(((byte)(220)))), ((int)(((byte)(252)))), ((int)(((byte)(180)))), ((int)(((byte)(65))))); series2.Legend = "Default"; series2.MarkerSize = 10; 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.Color = System.Drawing.Color.FromArgb(((int)(((byte)(220)))), ((int)(((byte)(224)))), ((int)(((byte)(64)))), ((int)(((byte)(10))))); series3.Legend = "Default"; series3.MarkerSize = 10; series3.Name = "Series3"; 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 = "Combination Charts"; this.chart1.Titles.Add(title1); // // labelSampleComment // this.labelSampleComment.Font = new System.Drawing.Font("Verdana", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.labelSampleComment.Location = new System.Drawing.Point(16, 8); this.labelSampleComment.Name = "labelSampleComment"; this.labelSampleComment.Size = new System.Drawing.Size(702, 37); this.labelSampleComment.TabIndex = 0; this.labelSampleComment.Text = "This sample demonstrates how to combine different chart types in one plot area an" + "d how to display a chart area in 3D. "; this.labelSampleComment.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // panel1 // this.panel1.Controls.Add(this.checkBoxShow3D); this.panel1.Controls.Add(this.checkBoxShowMargin); this.panel1.Controls.Add(this.comboBoxSeries3); this.panel1.Controls.Add(this.label3); this.panel1.Controls.Add(this.comboBoxSeries2); this.panel1.Controls.Add(this.label2); this.panel1.Controls.Add(this.comboBoxSeries1); this.panel1.Controls.Add(this.label1); this.panel1.Location = new System.Drawing.Point(432, 66); this.panel1.Name = "panel1"; this.panel1.Size = new System.Drawing.Size(292, 288); this.panel1.TabIndex = 2; // // checkBoxShow3D // this.checkBoxShow3D.CheckAlign = System.Drawing.ContentAlignment.MiddleRight; this.checkBoxShow3D.Location = new System.Drawing.Point(-3, 136); this.checkBoxShow3D.Name = "checkBoxShow3D"; this.checkBoxShow3D.Size = new System.Drawing.Size(184, 24); this.checkBoxShow3D.TabIndex = 7; 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(13, 104); this.checkBoxShowMargin.Name = "checkBoxShowMargin"; this.checkBoxShowMargin.Size = new System.Drawing.Size(168, 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); // // comboBoxSeries3 // this.comboBoxSeries3.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.comboBoxSeries3.Items.AddRange(new object[] { "Column", "Line", "Spline", "StepLine", "Area", "SplineArea", "Point" }); this.comboBoxSeries3.Location = new System.Drawing.Point(168, 72); this.comboBoxSeries3.Name = "comboBoxSeries3"; this.comboBoxSeries3.Size = new System.Drawing.Size(104, 22); this.comboBoxSeries3.TabIndex = 5; this.comboBoxSeries3.SelectedIndexChanged += new System.EventHandler(this.comboBoxSeries1_SelectedIndexChanged); // // label3 // this.label3.Location = new System.Drawing.Point(11, 72); this.label3.Name = "label3"; this.label3.Size = new System.Drawing.Size(152, 23); this.label3.TabIndex = 4; this.label3.Text = "Series &3 Type:"; this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // comboBoxSeries2 // this.comboBoxSeries2.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.comboBoxSeries2.Items.AddRange(new object[] { "Column", "Line", "Spline", "StepLine", "Area", "SplineArea", "Point" }); this.comboBoxSeries2.Location = new System.Drawing.Point(168, 40); this.comboBoxSeries2.Name = "comboBoxSeries2"; this.comboBoxSeries2.Size = new System.Drawing.Size(104, 22); this.comboBoxSeries2.TabIndex = 3; this.comboBoxSeries2.SelectedIndexChanged += new System.EventHandler(this.comboBoxSeries1_SelectedIndexChanged); // // label2 // this.label2.Location = new System.Drawing.Point(3, 40); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(160, 23); this.label2.TabIndex = 2; this.label2.Text = "Series &2 Type:"; this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // comboBoxSeries1 // this.comboBoxSeries1.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.comboBoxSeries1.Items.AddRange(new object[] { "Column", "Line", "Spline", "StepLine", "Area", "SplineArea", "Point" }); this.comboBoxSeries1.Location = new System.Drawing.Point(168, 8); this.comboBoxSeries1.Name = "comboBoxSeries1"; this.comboBoxSeries1.Size = new System.Drawing.Size(104, 22); this.comboBoxSeries1.TabIndex = 1; this.comboBoxSeries1.SelectedIndexChanged += new System.EventHandler(this.comboBoxSeries1_SelectedIndexChanged); // // label1 // this.label1.Location = new System.Drawing.Point(11, 8); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(152, 23); this.label1.TabIndex = 0; this.label1.Text = "Series &1 Type:"; this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // CombinatorialChartType // 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 = "CombinatorialChartType"; this.Size = new System.Drawing.Size(728, 480); this.Load += new System.EventHandler(this.CombinatorialChartType_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.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); }
/// <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.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.comboBoxLabelStyle = new System.Windows.Forms.ComboBox(); this.label3 = new System.Windows.Forms.Label(); this.comboBoxAreaStyle = new System.Windows.Forms.ComboBox(); this.label2 = new System.Windows.Forms.Label(); this.comboBoxRadarStyle = new System.Windows.Forms.ComboBox(); this.label1 = new System.Windows.Forms.Label(); this.label5 = 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)(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.LabelStyle.Font = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold); chartArea1.AxisX.LineColor = System.Drawing.Color.FromArgb(((System.Byte)(64)), ((System.Byte)(64)), ((System.Byte)(64)), ((System.Byte)(64))); chartArea1.AxisX.MajorGrid.LineColor = System.Drawing.Color.FromArgb(((System.Byte)(64)), ((System.Byte)(64)), ((System.Byte)(64)), ((System.Byte)(64))); chartArea1.AxisY.LabelStyle.Font = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold); chartArea1.AxisY.LineColor = System.Drawing.Color.FromArgb(((System.Byte)(64)), ((System.Byte)(64)), ((System.Byte)(64)), ((System.Byte)(64))); chartArea1.AxisY.MajorGrid.LineColor = System.Drawing.Color.FromArgb(((System.Byte)(64)), ((System.Byte)(64)), ((System.Byte)(64)), ((System.Byte)(64))); chartArea1.AxisY.MajorTickMark.Size = 0.6F; chartArea1.BackColor = System.Drawing.Color.OldLace; chartArea1.BackSecondaryColor = System.Drawing.Color.White; chartArea1.BorderColor = System.Drawing.Color.FromArgb(((System.Byte)(64)), ((System.Byte)(64)), ((System.Byte)(64)), ((System.Byte)(64))); chartArea1.Name = "Default"; chartArea1.Position.Auto = false; chartArea1.Position.Height = 78F; chartArea1.Position.Width = 88F; chartArea1.Position.X = 5F; chartArea1.Position.Y = 15F; 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.Font = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold); legend1.Name = "Default"; legend1.Position.Auto = false; legend1.Position.Height = 14.23021F; legend1.Position.Width = 19.34047F; legend1.Position.X = 74.73474F; legend1.Position.Y = 74.08253F; this.chart1.Legends.Add(legend1); this.chart1.Location = new System.Drawing.Point(16, 56); this.chart1.Name = "chart1"; this.chart1.Palette = System.Windows.Forms.DataVisualization.Charting.ChartColorPalette.BrightPastel; series1.BorderColor = System.Drawing.Color.FromArgb(((System.Byte)(180)), ((System.Byte)(26)), ((System.Byte)(59)), ((System.Byte)(105))); series1.ChartType = SeriesChartType.Radar; series1.Color = System.Drawing.Color.FromArgb(((System.Byte)(220)), ((System.Byte)(65)), ((System.Byte)(140)), ((System.Byte)(240))); series1.MarkerBorderColor = System.Drawing.Color.FromArgb(((System.Byte)(64)), ((System.Byte)(64)), ((System.Byte)(64))); series1.MarkerSize = 9; series1.Name = "Series1"; series1.ShadowOffset = 1; series2.BorderColor = System.Drawing.Color.FromArgb(((System.Byte)(180)), ((System.Byte)(26)), ((System.Byte)(59)), ((System.Byte)(105))); series2.ChartType = SeriesChartType.Radar; series2.Color = System.Drawing.Color.FromArgb(((System.Byte)(220)), ((System.Byte)(252)), ((System.Byte)(180)), ((System.Byte)(65))); series2.MarkerBorderColor = System.Drawing.Color.FromArgb(((System.Byte)(64)), ((System.Byte)(64)), ((System.Byte)(64))); series2.MarkerSize = 9; series2.Name = "Series2"; series2.ShadowOffset = 1; this.chart1.Series.Add(series1); this.chart1.Series.Add(series2); this.chart1.Size = new System.Drawing.Size(412, 288); this.chart1.TabIndex = 1; title1.ForeColor = System.Drawing.Color.FromArgb(((System.Byte)(26)), ((System.Byte)(59)), ((System.Byte)(105))); title1.Font = new System.Drawing.Font("Trebuchet MS", 14.25F, System.Drawing.FontStyle.Bold); title1.ShadowColor = System.Drawing.Color.FromArgb(((System.Byte)(32)), ((System.Byte)(0)), ((System.Byte)(0)), ((System.Byte)(0))); title1.ShadowOffset = 3; title1.Text = "Radar Chart"; this.chart1.Titles.Add(title1); // // labelSampleComment // this.labelSampleComment.Font = new System.Drawing.Font("Verdana", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0))); this.labelSampleComment.Location = new System.Drawing.Point(16, 8); this.labelSampleComment.Name = "labelSampleComment"; this.labelSampleComment.Size = new System.Drawing.Size(702, 42); this.labelSampleComment.TabIndex = 0; this.labelSampleComment.Text = "This sample displays a Radar chart, which is a circular graph used primarily as a" + " comparative tool. A 3D effect can also be added to the area background."; this.labelSampleComment.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // panel1 // this.panel1.Controls.AddRange(new System.Windows.Forms.Control[] { this.comboBoxLabelStyle, this.label3, this.comboBoxAreaStyle, this.label2, this.comboBoxRadarStyle, this.label1 }); this.panel1.Location = new System.Drawing.Point(432, 72); this.panel1.Name = "panel1"; this.panel1.Size = new System.Drawing.Size(292, 272); this.panel1.TabIndex = 2; // // comboBoxLabelStyle // this.comboBoxLabelStyle.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.comboBoxLabelStyle.Items.AddRange(new object[] { "Circular", "Radial", "Horizontal" }); this.comboBoxLabelStyle.Location = new System.Drawing.Point(168, 64); this.comboBoxLabelStyle.Name = "comboBoxLabelStyle"; this.comboBoxLabelStyle.Size = new System.Drawing.Size(96, 22); this.comboBoxLabelStyle.TabIndex = 5; this.comboBoxLabelStyle.SelectedIndexChanged += new System.EventHandler(this.comboBoxExploded_SelectedIndexChanged); // // label3 // this.label3.Location = new System.Drawing.Point(19, 64); this.label3.Name = "label3"; this.label3.Size = new System.Drawing.Size(145, 23); this.label3.TabIndex = 4; this.label3.Text = "&Labels Style:"; this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // comboBoxAreaStyle // this.comboBoxAreaStyle.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.comboBoxAreaStyle.Items.AddRange(new object[] { "Circle", "Polygon" }); this.comboBoxAreaStyle.Location = new System.Drawing.Point(168, 32); this.comboBoxAreaStyle.Name = "comboBoxAreaStyle"; this.comboBoxAreaStyle.Size = new System.Drawing.Size(96, 22); this.comboBoxAreaStyle.TabIndex = 3; this.comboBoxAreaStyle.SelectedIndexChanged += new System.EventHandler(this.comboBoxExploded_SelectedIndexChanged); // // label2 // this.label2.Location = new System.Drawing.Point(6, 32); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(157, 23); this.label2.TabIndex = 2; this.label2.Text = "&Area Drawing Style:"; this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // comboBoxRadarStyle // this.comboBoxRadarStyle.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.comboBoxRadarStyle.Items.AddRange(new object[] { "Area", "Line", "Marker" }); this.comboBoxRadarStyle.Location = new System.Drawing.Point(168, 0); this.comboBoxRadarStyle.Name = "comboBoxRadarStyle"; this.comboBoxRadarStyle.Size = new System.Drawing.Size(96, 22); this.comboBoxRadarStyle.TabIndex = 1; this.comboBoxRadarStyle.SelectedIndexChanged += new System.EventHandler(this.comboBoxExploded_SelectedIndexChanged); // // label1 // this.label1.Location = new System.Drawing.Point(-14, 0); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(177, 23); this.label1.TabIndex = 0; this.label1.Text = "Radar &Style:"; this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // label5 // this.label5.Anchor = ((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right); this.label5.Font = new System.Drawing.Font("Verdana", 11F); this.label5.Location = new System.Drawing.Point(16, 352); this.label5.Name = "label5"; this.label5.Size = new System.Drawing.Size(696, 24); this.label5.TabIndex = 25; this.label5.Text = "Try different styles for the radar, area drawing and labels."; this.label5.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // RadarChartType // this.BackColor = System.Drawing.Color.White; this.Controls.AddRange(new System.Windows.Forms.Control[] { this.label5, 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 = "RadarChartType"; this.Size = new System.Drawing.Size(728, 480); this.Load += new System.EventHandler(this.PieChartType_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, 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, 500); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint4 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 600); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint5 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 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(0, 600); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint7 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 500); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint8 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 600); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint9 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 500); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint10 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 550); 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, 500); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint12 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 600); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint13 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 700); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint14 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 400); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint15 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 600); System.Windows.Forms.DataVisualization.Charting.Title title1 = new System.Windows.Forms.DataVisualization.Charting.Title(); this.MajorInterval = new System.Windows.Forms.ComboBox(); this.MajorLineColor = new System.Windows.Forms.ComboBox(); this.MajorLineDashStyle = new System.Windows.Forms.ComboBox(); this.MajorLineWidth = 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.Minor = new System.Windows.Forms.ComboBox(); this.MinorLineDashStyle = new System.Windows.Forms.ComboBox(); this.label3 = new System.Windows.Forms.Label(); this.label4 = new System.Windows.Forms.Label(); this.MinorInterval = new System.Windows.Forms.ComboBox(); this.label10 = new System.Windows.Forms.Label(); this.label11 = new System.Windows.Forms.Label(); this.MinorLineWidth = new System.Windows.Forms.ComboBox(); this.MinorLineColor = new System.Windows.Forms.ComboBox(); this.label1 = new System.Windows.Forms.Label(); this.Major = new System.Windows.Forms.ComboBox(); this.Chart1 = new System.Windows.Forms.DataVisualization.Charting.Chart(); this.panel1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.Chart1)).BeginInit(); this.SuspendLayout(); // // 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, 136); this.MajorInterval.Name = "MajorInterval"; this.MajorInterval.Size = new System.Drawing.Size(121, 22); this.MajorInterval.TabIndex = 9; this.MajorInterval.SelectedIndexChanged += new System.EventHandler(this.ControlSelectedIndexChanged); // // MajorLineColor // this.MajorLineColor.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.MajorLineColor.Location = new System.Drawing.Point(168, 72); this.MajorLineColor.Name = "MajorLineColor"; this.MajorLineColor.Size = new System.Drawing.Size(121, 22); this.MajorLineColor.TabIndex = 5; this.MajorLineColor.SelectedIndexChanged += new System.EventHandler(this.ControlSelectedIndexChanged); // // MajorLineDashStyle // this.MajorLineDashStyle.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.MajorLineDashStyle.Location = new System.Drawing.Point(168, 40); this.MajorLineDashStyle.Name = "MajorLineDashStyle"; this.MajorLineDashStyle.Size = new System.Drawing.Size(121, 22); this.MajorLineDashStyle.TabIndex = 3; this.MajorLineDashStyle.SelectedIndexChanged += new System.EventHandler(this.ControlSelectedIndexChanged); // // MajorLineWidth // this.MajorLineWidth.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.MajorLineWidth.Items.AddRange(new object[] { "1", "2", "3", "4" }); this.MajorLineWidth.Location = new System.Drawing.Point(168, 104); this.MajorLineWidth.Name = "MajorLineWidth"; this.MajorLineWidth.Size = new System.Drawing.Size(121, 22); this.MajorLineWidth.TabIndex = 7; this.MajorLineWidth.SelectedIndexChanged += new System.EventHandler(this.ControlSelectedIndexChanged); // // label5 // this.label5.Location = new System.Drawing.Point(86, 144); this.label5.Name = "label5"; this.label5.Size = new System.Drawing.Size(80, 16); this.label5.TabIndex = 8; this.label5.Text = "&Interval:"; this.label5.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // label6 // this.label6.Location = new System.Drawing.Point(86, 48); this.label6.Name = "label6"; this.label6.Size = new System.Drawing.Size(80, 16); this.label6.TabIndex = 2; this.label6.Text = "Line &Style:"; this.label6.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // label7 // this.label7.Location = new System.Drawing.Point(86, 80); this.label7.Name = "label7"; this.label7.Size = new System.Drawing.Size(80, 16); this.label7.TabIndex = 4; this.label7.Text = "Line &Color:"; this.label7.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // label8 // this.label8.Location = new System.Drawing.Point(86, 112); this.label8.Name = "label8"; this.label8.Size = new System.Drawing.Size(80, 16); this.label8.TabIndex = 6; this.label8.Text = "Line &Width:"; this.label8.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // label9 // this.label9.Font = new System.Drawing.Font("Verdana", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label9.Location = new System.Drawing.Point(16, 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 appearance of grid lines and tick marks."; this.label9.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // panel1 // this.panel1.Controls.Add(this.label2); this.panel1.Controls.Add(this.Minor); this.panel1.Controls.Add(this.MinorLineDashStyle); this.panel1.Controls.Add(this.label3); this.panel1.Controls.Add(this.label4); this.panel1.Controls.Add(this.MinorInterval); this.panel1.Controls.Add(this.label10); this.panel1.Controls.Add(this.label11); this.panel1.Controls.Add(this.MinorLineWidth); this.panel1.Controls.Add(this.MinorLineColor); this.panel1.Controls.Add(this.label1); this.panel1.Controls.Add(this.Major); this.panel1.Controls.Add(this.MajorLineDashStyle); this.panel1.Controls.Add(this.label5); this.panel1.Controls.Add(this.label6); this.panel1.Controls.Add(this.MajorInterval); this.panel1.Controls.Add(this.label7); this.panel1.Controls.Add(this.label8); this.panel1.Controls.Add(this.MajorLineWidth); this.panel1.Controls.Add(this.MajorLineColor); this.panel1.Location = new System.Drawing.Point(432, 68); this.panel1.Name = "panel1"; this.panel1.Size = new System.Drawing.Size(292, 340); this.panel1.TabIndex = 2; // // label2 // this.label2.Location = new System.Drawing.Point(86, 184); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(80, 16); this.label2.TabIndex = 10; this.label2.Text = "Mi&nor:"; this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // Minor // this.Minor.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.Minor.Items.AddRange(new object[] { "Grid Lines", "Tick Marks" }); this.Minor.Location = new System.Drawing.Point(168, 176); this.Minor.Name = "Minor"; this.Minor.Size = new System.Drawing.Size(121, 22); this.Minor.TabIndex = 11; this.Minor.SelectedIndexChanged += new System.EventHandler(this.ControlSelectedIndexChanged); // // MinorLineDashStyle // this.MinorLineDashStyle.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.MinorLineDashStyle.Location = new System.Drawing.Point(168, 208); this.MinorLineDashStyle.Name = "MinorLineDashStyle"; this.MinorLineDashStyle.Size = new System.Drawing.Size(121, 22); this.MinorLineDashStyle.TabIndex = 13; this.MinorLineDashStyle.SelectedIndexChanged += new System.EventHandler(this.ControlSelectedIndexChanged); // // label3 // this.label3.Location = new System.Drawing.Point(86, 312); this.label3.Name = "label3"; this.label3.Size = new System.Drawing.Size(80, 16); this.label3.TabIndex = 18; this.label3.Text = "In&terval:"; this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // label4 // this.label4.Location = new System.Drawing.Point(86, 216); this.label4.Name = "label4"; this.label4.Size = new System.Drawing.Size(80, 16); this.label4.TabIndex = 12; this.label4.Text = "Line S&tyle:"; this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // MinorInterval // this.MinorInterval.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.MinorInterval.Location = new System.Drawing.Point(168, 304); this.MinorInterval.Name = "MinorInterval"; this.MinorInterval.Size = new System.Drawing.Size(121, 22); this.MinorInterval.TabIndex = 19; this.MinorInterval.SelectedIndexChanged += new System.EventHandler(this.ControlSelectedIndexChanged); // // label10 // this.label10.Location = new System.Drawing.Point(86, 248); this.label10.Name = "label10"; this.label10.Size = new System.Drawing.Size(80, 16); this.label10.TabIndex = 14; this.label10.Text = "Line C&olor:"; this.label10.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // label11 // this.label11.Location = new System.Drawing.Point(86, 280); this.label11.Name = "label11"; this.label11.Size = new System.Drawing.Size(80, 16); this.label11.TabIndex = 16; this.label11.Text = "Line Wi&dth:"; this.label11.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // MinorLineWidth // this.MinorLineWidth.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.MinorLineWidth.Items.AddRange(new object[] { "1", "2", "3", "4" }); this.MinorLineWidth.Location = new System.Drawing.Point(168, 272); this.MinorLineWidth.Name = "MinorLineWidth"; this.MinorLineWidth.Size = new System.Drawing.Size(121, 22); this.MinorLineWidth.TabIndex = 17; this.MinorLineWidth.SelectedIndexChanged += new System.EventHandler(this.ControlSelectedIndexChanged); // // MinorLineColor // this.MinorLineColor.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.MinorLineColor.Location = new System.Drawing.Point(168, 240); this.MinorLineColor.Name = "MinorLineColor"; this.MinorLineColor.Size = new System.Drawing.Size(121, 22); this.MinorLineColor.TabIndex = 15; this.MinorLineColor.SelectedIndexChanged += new System.EventHandler(this.ControlSelectedIndexChanged); // // label1 // this.label1.Location = new System.Drawing.Point(86, 16); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(80, 16); this.label1.TabIndex = 0; this.label1.Text = "Ma&jor:"; this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // Major // this.Major.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.Major.Items.AddRange(new object[] { "Grid Lines", "Tick Marks" }); this.Major.Location = new System.Drawing.Point(168, 8); this.Major.Name = "Major"; this.Major.Size = new System.Drawing.Size(121, 22); this.Major.TabIndex = 1; this.Major.SelectedIndexChanged += new System.EventHandler(this.ControlSelectedIndexChanged); // // 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.AxisX.MajorTickMark.Size = 2F; 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.White; 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.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); series2.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(180)))), ((int)(((byte)(26)))), ((int)(((byte)(59)))), ((int)(((byte)(105))))); series2.ChartArea = "Default"; series2.Legend = "Default"; series2.Name = "Series2"; series2.Points.Add(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)(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); this.Chart1.Series.Add(series1); this.Chart1.Series.Add(series2); this.Chart1.Series.Add(series3); this.Chart1.Size = new System.Drawing.Size(412, 306); this.Chart1.TabIndex = 1; title1.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 = "Grid Lines and Tick Marks"; this.Chart1.Titles.Add(title1); // // GridLinesTicks // 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 = "GridLinesTicks"; this.Size = new System.Drawing.Size(728, 480); this.panel1.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.Chart1)).EndInit(); this.ResumeLayout(false); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { System.Windows.Forms.DataVisualization.Charting.ChartArea chartArea1 = new System.Windows.Forms.DataVisualization.Charting.ChartArea(); System.Windows.Forms.DataVisualization.Charting.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(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(KeyboardZoomScroll)); this.chart1 = new System.Windows.Forms.DataVisualization.Charting.Chart(); this.labelSampleComment = new System.Windows.Forms.Label(); this.panel1 = new System.Windows.Forms.Panel(); this.label1 = new System.Windows.Forms.Label(); ((System.ComponentModel.ISupportInitialize)(this.chart1)).BeginInit(); this.SuspendLayout(); // // chart1 // this.chart1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(243)))), ((int)(((byte)(223)))), ((int)(((byte)(193))))); this.chart1.BackGradientStyle = System.Windows.Forms.DataVisualization.Charting.GradientStyle.TopBottom; this.chart1.BorderlineColor = System.Drawing.Color.FromArgb(((int)(((byte)(181)))), ((int)(((byte)(64)))), ((int)(((byte)(1))))); this.chart1.BorderlineDashStyle = System.Windows.Forms.DataVisualization.Charting.ChartDashStyle.Solid; this.chart1.BorderlineWidth = 2; this.chart1.BorderSkin.SkinStyle = System.Windows.Forms.DataVisualization.Charting.BorderSkinStyle.Emboss; chartArea1.Area3DStyle.Inclination = 15; chartArea1.Area3DStyle.IsClustered = true; chartArea1.Area3DStyle.IsRightAngleAxes = false; chartArea1.Area3DStyle.Perspective = 10; chartArea1.Area3DStyle.Rotation = 10; chartArea1.Area3DStyle.WallWidth = 0; chartArea1.AxisX.IsLabelAutoFit = false; chartArea1.AxisX.LabelStyle.Font = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold); chartArea1.AxisX.LabelStyle.Interval = 5D; chartArea1.AxisX.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea1.AxisX.MajorGrid.Interval = 5D; chartArea1.AxisX.MajorGrid.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea1.AxisX.MajorTickMark.Interval = 5D; chartArea1.AxisX.ScaleView.MinSize = 2D; chartArea1.AxisX.ScaleView.Position = 10D; chartArea1.AxisX.ScaleView.Size = 20D; chartArea1.AxisX.ScrollBar.ButtonColor = System.Drawing.Color.Tan; chartArea1.AxisX.ScrollBar.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea1.AxisY.IsLabelAutoFit = false; chartArea1.AxisY.LabelStyle.Font = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold); chartArea1.AxisY.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea1.AxisY.MajorGrid.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea1.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.CursorX.IsUserEnabled = true; chartArea1.CursorX.IsUserSelectionEnabled = true; chartArea1.CursorY.IsUserEnabled = true; chartArea1.InnerPlotPosition.Auto = false; chartArea1.InnerPlotPosition.Height = 78F; chartArea1.InnerPlotPosition.Width = 90.95636F; chartArea1.InnerPlotPosition.X = 9.04364F; chartArea1.InnerPlotPosition.Y = 5.07246F; chartArea1.Name = "Default"; chartArea1.Position.Auto = false; chartArea1.Position.Height = 75F; chartArea1.Position.Width = 90F; chartArea1.Position.X = 3F; chartArea1.Position.Y = 15F; 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.BorderWidth = 2; series1.ChartArea = "Default"; series1.ChartType = System.Windows.Forms.DataVisualization.Charting.SeriesChartType.Line; 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 = "Using Keyboard to Zoom and Scroll"; this.chart1.Titles.Add(title1); this.chart1.Click += new System.EventHandler(this.chart1_Click); this.chart1.KeyDown += new System.Windows.Forms.KeyEventHandler(this.chart1_KeyDown); this.chart1.KeyUp += new System.Windows.Forms.KeyEventHandler(this.chart1_KeyUp); // // 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, 14); this.labelSampleComment.Name = "labelSampleComment"; this.labelSampleComment.Size = new System.Drawing.Size(702, 34); this.labelSampleComment.TabIndex = 2; this.labelSampleComment.Text = "This sample demonstrates how to scroll, select data points, and zoom using the ke" + "yboard."; this.labelSampleComment.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // panel1 // this.panel1.Location = new System.Drawing.Point(432, 68); this.panel1.Name = "panel1"; this.panel1.Size = new System.Drawing.Size(292, 288); this.panel1.TabIndex = 1; // // 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, 368); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(702, 56); this.label1.TabIndex = 3; this.label1.Text = resources.GetString("label1.Text"); // // KeyboardZoomScroll // 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 = "KeyboardZoomScroll"; this.Size = new System.Drawing.Size(728, 480); this.Load += new System.EventHandler(this.KeyboardZoomScroll_Load); ((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.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, 3); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint2 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 5); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint3 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 4); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint4 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 2); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint5 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 8); 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, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label9.Location = new System.Drawing.Point(16, 14); this.label9.Name = "label9"; this.label9.Size = new System.Drawing.Size(702, 43); this.label9.TabIndex = 0; this.label9.Text = "This sample demonstrates how to use selection to explode a pie slice. To explode " + "a slice, click on the slice or a legend item. "; 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, 73); 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.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.AxisX.ScaleView.Position = 3; chartArea1.AxisX.ScaleView.Size = 30; stripLine1.Interval = 20; stripLine1.StripWidth = 5; chartArea1.AxisX.StripLines.Add(stripLine1); chartArea1.AxisX2.Enabled = System.Windows.Forms.DataVisualization.Charting.AxisEnabled.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.ScaleView.Position = 5; chartArea1.AxisY.ScaleView.Size = 10; chartArea1.AxisY2.Enabled = System.Windows.Forms.DataVisualization.Charting.AxisEnabled.False; chartArea1.BackColor = System.Drawing.Color.Transparent; 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.BorderWidth = 0; chartArea1.CursorX.IsUserEnabled = true; chartArea1.CursorX.IsUserSelectionEnabled = true; chartArea1.CursorY.IsUserEnabled = true; chartArea1.CursorY.IsUserSelectionEnabled = true; chartArea1.InnerPlotPosition.Auto = false; chartArea1.InnerPlotPosition.Height = 80F; chartArea1.InnerPlotPosition.Width = 80F; chartArea1.InnerPlotPosition.X = 10F; chartArea1.InnerPlotPosition.Y = 10F; chartArea1.Name = "Default"; chartArea1.Position.Auto = false; chartArea1.Position.Height = 84F; chartArea1.Position.Width = 74F; chartArea1.Position.X = 4.824818F; chartArea1.Position.Y = 12F; chartArea1.ShadowColor = System.Drawing.Color.Transparent; this.Chart1.ChartAreas.Add(chartArea1); legend1.BackColor = System.Drawing.Color.Transparent; legend1.Font = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold); legend1.IsTextAutoFit = false; legend1.Name = "Default"; this.Chart1.Legends.Add(legend1); this.Chart1.Location = new System.Drawing.Point(16, 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.Pie; series1.CustomProperties = "PieLabelStyle=Disabled"; series1.Legend = "Default"; series1.Name = "Series1"; dataPoint1.AxisLabel = "Product A"; dataPoint2.AxisLabel = "Product B"; dataPoint3.AxisLabel = "Product C"; dataPoint4.AxisLabel = "Product D"; dataPoint5.AxisLabel = "Product E"; series1.Points.Add(dataPoint1); series1.Points.Add(dataPoint2); series1.Points.Add(dataPoint3); series1.Points.Add(dataPoint4); series1.Points.Add(dataPoint5); series1.ShadowOffset = 4; 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 = "Select a Slice of the Pie"; this.Chart1.Titles.Add(title1); this.Chart1.MouseMove += new System.Windows.Forms.MouseEventHandler(this.Chart1_MouseMove); this.Chart1.MouseDown += new System.Windows.Forms.MouseEventHandler(this.Chart1_MouseDown); this.Chart1.Click += new System.EventHandler(this.Chart1_Click); // // InteractivePie // 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 = "InteractivePie"; this.Size = new System.Drawing.Size(728, 368); 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.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(702, 34); this.label9.TabIndex = 0; this.label9.Text = "This sample emonstrates how to bind XML data to a Chart control."; 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.Enable3D = true; chartArea1.Area3DStyle.Inclination = -29; chartArea1.Area3DStyle.IsClustered = true; chartArea1.Area3DStyle.IsRightAngleAxes = false; chartArea1.Area3DStyle.Perspective = 10; chartArea1.Area3DStyle.Rotation = 6; chartArea1.Area3DStyle.WallWidth = 0; chartArea1.AxisX.Interval = 1; 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.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.AxisX.MajorTickMark.Enabled = false; chartArea1.AxisX2.Enabled = System.Windows.Forms.DataVisualization.Charting.AxisEnabled.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.WordWrap))); chartArea1.AxisY.LabelStyle.Font = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold); chartArea1.AxisY.LabelStyle.Format = "0,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.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.Alignment = System.Drawing.StringAlignment.Far; legend1.BackColor = System.Drawing.Color.Transparent; legend1.Enabled = false; legend1.Font = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold); legend1.IsDockedInsideChartArea = false; 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.SteelBlue; series1.BorderWidth = 0; series1.ChartArea = "Default"; series1.ChartType = System.Windows.Forms.DataVisualization.Charting.SeriesChartType.Bar; series1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(220)))), ((int)(((byte)(65)))), ((int)(((byte)(140)))), ((int)(((byte)(240))))); series1.Legend = "Default"; series1.Name = "Series1"; series1.XValueType = System.Windows.Forms.DataVisualization.Charting.ChartValueType.Double; series1.YValueType = System.Windows.Forms.DataVisualization.Charting.ChartValueType.Double; this.Chart1.Series.Add(series1); this.Chart1.Size = new System.Drawing.Size(412, 296); this.Chart1.TabIndex = 0; title1.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 = "XML Binding"; this.Chart1.Titles.Add(title1); this.Chart1.Click += new System.EventHandler(this.Chart1_Click); // // XMLData // 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 = "XMLData"; 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.CustomLabel customLabel1 = new System.Windows.Forms.DataVisualization.Charting.CustomLabel(); System.Windows.Forms.DataVisualization.Charting.CustomLabel customLabel2 = new System.Windows.Forms.DataVisualization.Charting.CustomLabel(); System.Windows.Forms.DataVisualization.Charting.CustomLabel customLabel3 = new System.Windows.Forms.DataVisualization.Charting.CustomLabel(); System.Windows.Forms.DataVisualization.Charting.CustomLabel customLabel4 = new System.Windows.Forms.DataVisualization.Charting.CustomLabel(); System.Windows.Forms.DataVisualization.Charting.Legend legend1 = new System.Windows.Forms.DataVisualization.Charting.Legend(); System.Windows.Forms.DataVisualization.Charting.Legend legend2 = new System.Windows.Forms.DataVisualization.Charting.Legend(); System.Windows.Forms.DataVisualization.Charting.Legend legend3 = new System.Windows.Forms.DataVisualization.Charting.Legend(); System.Windows.Forms.DataVisualization.Charting.LegendItem legendItem1 = new System.Windows.Forms.DataVisualization.Charting.LegendItem(); System.Windows.Forms.DataVisualization.Charting.LegendItem legendItem2 = new System.Windows.Forms.DataVisualization.Charting.LegendItem(); System.Windows.Forms.DataVisualization.Charting.LegendItem legendItem3 = new System.Windows.Forms.DataVisualization.Charting.LegendItem(); System.Windows.Forms.DataVisualization.Charting.Series series1 = new System.Windows.Forms.DataVisualization.Charting.Series(); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint1 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(1, 70); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint2 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(2, 80); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint3 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(3, 70); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint4 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(4, 85); System.Windows.Forms.DataVisualization.Charting.Series series2 = new System.Windows.Forms.DataVisualization.Charting.Series(); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint5 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(1, 65); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint6 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(2, 70); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint7 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(3, 60); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint8 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(4, 75); System.Windows.Forms.DataVisualization.Charting.Series series3 = new System.Windows.Forms.DataVisualization.Charting.Series(); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint9 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(1, 50); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint10 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(2, 55); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint11 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(3, 40); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint12 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(4, 70); System.Windows.Forms.DataVisualization.Charting.Title title1 = new System.Windows.Forms.DataVisualization.Charting.Title(); this.label9 = new System.Windows.Forms.Label(); this.panel1 = new System.Windows.Forms.Panel(); this.TextAntiAlias = new System.Windows.Forms.CheckBox(); this.EnableLabels = new System.Windows.Forms.CheckBox(); this.OffsetLabels = new System.Windows.Forms.CheckBox(); this.AngleList = new System.Windows.Forms.ComboBox(); this.label7 = new System.Windows.Forms.Label(); this.FontSizeList = new System.Windows.Forms.ComboBox(); this.label2 = new System.Windows.Forms.Label(); this.FontNameList = new System.Windows.Forms.ComboBox(); this.label1 = new System.Windows.Forms.Label(); this.label6 = new System.Windows.Forms.Label(); this.label5 = new System.Windows.Forms.Label(); this.label4 = new System.Windows.Forms.Label(); this.label3 = new System.Windows.Forms.Label(); this.label15 = new System.Windows.Forms.Label(); this.Chart1 = new System.Windows.Forms.DataVisualization.Charting.Chart(); this.panel1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.Chart1)).BeginInit(); this.SuspendLayout(); // // label9 // this.label9.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.label9.Font = new System.Drawing.Font("Verdana", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label9.Location = new System.Drawing.Point(16, 14); this.label9.Name = "label9"; this.label9.Size = new System.Drawing.Size(702, 43); this.label9.TabIndex = 0; this.label9.Text = "This sample demonstrates how to set�an axis labels\' font,�angle, and�offset style" + ". It also shows how to enable and disable axis labels.��"; // // panel1 // this.panel1.Controls.Add(this.TextAntiAlias); this.panel1.Controls.Add(this.EnableLabels); this.panel1.Controls.Add(this.OffsetLabels); this.panel1.Controls.Add(this.AngleList); this.panel1.Controls.Add(this.label7); this.panel1.Controls.Add(this.FontSizeList); this.panel1.Controls.Add(this.label2); this.panel1.Controls.Add(this.FontNameList); this.panel1.Controls.Add(this.label1); this.panel1.Controls.Add(this.label6); this.panel1.Controls.Add(this.label5); this.panel1.Controls.Add(this.label4); this.panel1.Controls.Add(this.label3); this.panel1.Controls.Add(this.label15); this.panel1.Location = new System.Drawing.Point(432, 68); this.panel1.Name = "panel1"; this.panel1.Size = new System.Drawing.Size(292, 288); this.panel1.TabIndex = 2; // // TextAntiAlias // this.TextAntiAlias.CheckAlign = System.Drawing.ContentAlignment.MiddleRight; this.TextAntiAlias.Location = new System.Drawing.Point(17, 168); this.TextAntiAlias.Name = "TextAntiAlias"; this.TextAntiAlias.Size = new System.Drawing.Size(164, 24); this.TextAntiAlias.TabIndex = 8; this.TextAntiAlias.Text = "AntiAlias For &Text:"; this.TextAntiAlias.TextAlign = System.Drawing.ContentAlignment.MiddleRight; this.TextAntiAlias.CheckedChanged += new System.EventHandler(this.Combo_SelectedIndexChanged); // // EnableLabels // this.EnableLabels.CheckAlign = System.Drawing.ContentAlignment.MiddleRight; this.EnableLabels.Location = new System.Drawing.Point(8, 136); this.EnableLabels.Name = "EnableLabels"; this.EnableLabels.Size = new System.Drawing.Size(168, 24); this.EnableLabels.TabIndex = 7; this.EnableLabels.Text = "&Enable X Axis Labels:"; this.EnableLabels.TextAlign = System.Drawing.ContentAlignment.MiddleRight; this.EnableLabels.CheckedChanged += new System.EventHandler(this.Combo_SelectedIndexChanged); // // OffsetLabels // this.OffsetLabels.CheckAlign = System.Drawing.ContentAlignment.MiddleRight; this.OffsetLabels.Location = new System.Drawing.Point(17, 104); this.OffsetLabels.Name = "OffsetLabels"; this.OffsetLabels.Size = new System.Drawing.Size(164, 24); this.OffsetLabels.TabIndex = 6; this.OffsetLabels.Text = "&Offset X Axis Labels:"; this.OffsetLabels.TextAlign = System.Drawing.ContentAlignment.MiddleRight; this.OffsetLabels.CheckedChanged += new System.EventHandler(this.Combo_SelectedIndexChanged); // // AngleList // this.AngleList.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.AngleList.Items.AddRange(new object[] { "0", "30", "45", "60", "90", "-30", "-45", "-60", "-90" }); this.AngleList.Location = new System.Drawing.Point(168, 72); this.AngleList.Name = "AngleList"; this.AngleList.Size = new System.Drawing.Size(120, 22); this.AngleList.TabIndex = 5; this.AngleList.SelectedIndexChanged += new System.EventHandler(this.Combo_SelectedIndexChanged); // // label7 // this.label7.Location = new System.Drawing.Point(4, 72); this.label7.Name = "label7"; this.label7.Size = new System.Drawing.Size(160, 24); this.label7.TabIndex = 4; this.label7.Text = "X Axis Labels &Angle:"; this.label7.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // FontSizeList // this.FontSizeList.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.FontSizeList.Items.AddRange(new object[] { "6", "8", "10", "12", "14", "16" }); this.FontSizeList.Location = new System.Drawing.Point(168, 40); this.FontSizeList.Name = "FontSizeList"; this.FontSizeList.Size = new System.Drawing.Size(120, 22); this.FontSizeList.TabIndex = 3; this.FontSizeList.SelectedIndexChanged += new System.EventHandler(this.Combo_SelectedIndexChanged); // // label2 // this.label2.Location = new System.Drawing.Point(4, 40); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(160, 24); this.label2.TabIndex = 2; this.label2.Text = "X Axis Labels Font &Size:"; this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // FontNameList // this.FontNameList.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.FontNameList.Items.AddRange(new object[] { "Arial", "Courier New", "Tahoma", "Trebuchet MS", "Verdana" }); this.FontNameList.Location = new System.Drawing.Point(168, 8); this.FontNameList.Name = "FontNameList"; this.FontNameList.Size = new System.Drawing.Size(120, 22); this.FontNameList.TabIndex = 1; this.FontNameList.SelectedIndexChanged += new System.EventHandler(this.Combo_SelectedIndexChanged); // // label1 // this.label1.Location = new System.Drawing.Point(0, 8); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(164, 24); this.label1.TabIndex = 0; this.label1.Text = "X Axis Labels Font &Name:"; this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // label6 // this.label6.Location = new System.Drawing.Point(64, 403); this.label6.Name = "label6"; this.label6.Size = new System.Drawing.Size(100, 23); this.label6.TabIndex = 12; this.label6.Text = "Border Size:"; // // label5 // this.label5.Location = new System.Drawing.Point(64, 380); this.label5.Name = "label5"; this.label5.Size = new System.Drawing.Size(100, 23); this.label5.TabIndex = 11; this.label5.Text = "Border Color:"; // // label4 // this.label4.Location = new System.Drawing.Point(64, 357); this.label4.Name = "label4"; this.label4.Size = new System.Drawing.Size(100, 23); this.label4.TabIndex = 10; this.label4.Text = "Hatch Style:"; // // label3 // this.label3.Location = new System.Drawing.Point(64, 334); this.label3.Name = "label3"; this.label3.Size = new System.Drawing.Size(100, 23); this.label3.TabIndex = 9; this.label3.Text = "Gradient:"; // // label15 // this.label15.Location = new System.Drawing.Point(64, 426); this.label15.Name = "label15"; this.label15.Size = new System.Drawing.Size(100, 23); this.label15.TabIndex = 5; this.label15.Text = "Border Size:"; // // Chart1 // this.Chart1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(211)))), ((int)(((byte)(223)))), ((int)(((byte)(240))))); this.Chart1.BackGradientStyle = System.Windows.Forms.DataVisualization.Charting.GradientStyle.TopBottom; this.Chart1.BackSecondaryColor = System.Drawing.Color.White; this.Chart1.BorderlineColor = System.Drawing.Color.FromArgb(((int)(((byte)(26)))), ((int)(((byte)(59)))), ((int)(((byte)(105))))); this.Chart1.BorderlineDashStyle = System.Windows.Forms.DataVisualization.Charting.ChartDashStyle.Solid; this.Chart1.BorderlineWidth = 2; this.Chart1.BorderSkin.SkinStyle = System.Windows.Forms.DataVisualization.Charting.BorderSkinStyle.Emboss; chartArea1.Area3DStyle.Inclination = 15; chartArea1.Area3DStyle.IsClustered = true; chartArea1.Area3DStyle.IsRightAngleAxes = false; chartArea1.Area3DStyle.Perspective = 10; chartArea1.Area3DStyle.PointGapDepth = 0; chartArea1.Area3DStyle.Rotation = 5; chartArea1.Area3DStyle.WallWidth = 0; customLabel1.FromPosition = 0.5; customLabel1.Text = "John"; customLabel1.ToPosition = 1.5; customLabel2.FromPosition = 1.5; customLabel2.Text = "Mary"; customLabel2.ToPosition = 2.5; customLabel3.FromPosition = 2.5; customLabel3.Text = "Jeff"; customLabel3.ToPosition = 3.5; customLabel4.FromPosition = 3.5; customLabel4.Text = "Bob"; customLabel4.ToPosition = 4.5; chartArea1.AxisX.CustomLabels.Add(customLabel1); chartArea1.AxisX.CustomLabels.Add(customLabel2); chartArea1.AxisX.CustomLabels.Add(customLabel3); chartArea1.AxisX.CustomLabels.Add(customLabel4); chartArea1.AxisX.Interval = 1; chartArea1.AxisX.IsLabelAutoFit = false; chartArea1.AxisX.LabelStyle.Font = new System.Drawing.Font("Trebuchet MS", 8.25F); chartArea1.AxisX.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea1.AxisX.MajorGrid.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea1.AxisY.IsLabelAutoFit = false; chartArea1.AxisY.LabelStyle.Font = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold); chartArea1.AxisY.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea1.AxisY.MajorGrid.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(165)))), ((int)(((byte)(191)))), ((int)(((byte)(228))))); chartArea1.BackGradientStyle = System.Windows.Forms.DataVisualization.Charting.GradientStyle.TopBottom; chartArea1.BackSecondaryColor = System.Drawing.Color.White; chartArea1.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea1.Name = "Default"; chartArea1.Position.Auto = false; chartArea1.Position.Height = 75F; chartArea1.Position.Width = 90F; chartArea1.Position.X = 2F; chartArea1.Position.Y = 13F; chartArea1.ShadowColor = System.Drawing.Color.Transparent; this.Chart1.ChartAreas.Add(chartArea1); legend1.BackColor = System.Drawing.Color.Transparent; legend1.Enabled = false; legend1.LegendStyle = System.Windows.Forms.DataVisualization.Charting.LegendStyle.Row; legend1.Name = "Default"; legend1.Position.Auto = false; legend1.Position.Height = 5F; legend1.Position.Width = 40F; legend1.Position.X = 5F; legend1.Position.Y = 85F; legend2.Enabled = false; legend2.Name = "Legend2"; legend3.BackColor = System.Drawing.Color.Transparent; legendItem1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(65)))), ((int)(((byte)(140)))), ((int)(((byte)(240))))); legendItem1.Name = "Previous Month Avg"; legendItem2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(252)))), ((int)(((byte)(180)))), ((int)(((byte)(65))))); legendItem2.Name = "Last Week"; legendItem3.Color = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(64)))), ((int)(((byte)(10))))); legendItem3.Name = "This Week"; legend3.CustomItems.Add(legendItem1); legend3.CustomItems.Add(legendItem2); legend3.CustomItems.Add(legendItem3); legend3.Font = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold); legend3.IsTextAutoFit = false; legend3.LegendStyle = System.Windows.Forms.DataVisualization.Charting.LegendStyle.Row; legend3.Name = "Legend3"; legend3.Position.Auto = false; legend3.Position.Height = 12F; legend3.Position.Width = 90F; legend3.Position.X = 5F; legend3.Position.Y = 85F; this.Chart1.Legends.Add(legend1); this.Chart1.Legends.Add(legend2); this.Chart1.Legends.Add(legend3); this.Chart1.Location = new System.Drawing.Point(16, 60); this.Chart1.Name = "Chart1"; this.Chart1.Palette = System.Windows.Forms.DataVisualization.Charting.ChartColorPalette.Pastel; series1.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(180)))), ((int)(((byte)(26)))), ((int)(((byte)(59)))), ((int)(((byte)(105))))); series1.ChartArea = "Default"; series1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(65)))), ((int)(((byte)(140)))), ((int)(((byte)(240))))); series1.CustomProperties = "DrawingStyle=Cylinder"; series1.Legend = "Legend2"; series1.Name = "Series2"; series1.Points.Add(dataPoint1); series1.Points.Add(dataPoint2); series1.Points.Add(dataPoint3); series1.Points.Add(dataPoint4); series1.ShadowColor = System.Drawing.Color.Transparent; series1.XValueType = System.Windows.Forms.DataVisualization.Charting.ChartValueType.Double; series1.YValueType = System.Windows.Forms.DataVisualization.Charting.ChartValueType.Double; series2.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); series2.ChartArea = "Default"; series2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(252)))), ((int)(((byte)(180)))), ((int)(((byte)(65))))); series2.CustomProperties = "DrawingStyle=Cylinder"; series2.Legend = "Default"; series2.Name = "Series3"; series2.Points.Add(dataPoint5); series2.Points.Add(dataPoint6); series2.Points.Add(dataPoint7); series2.Points.Add(dataPoint8); series3.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); series3.ChartArea = "Default"; series3.Color = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(64)))), ((int)(((byte)(10))))); series3.CustomProperties = "DrawingStyle=Cylinder"; series3.Legend = "Default"; series3.Name = "Series4"; series3.Points.Add(dataPoint9); series3.Points.Add(dataPoint10); series3.Points.Add(dataPoint11); series3.Points.Add(dataPoint12); this.Chart1.Series.Add(series1); this.Chart1.Series.Add(series2); this.Chart1.Series.Add(series3); this.Chart1.Size = new System.Drawing.Size(412, 296); this.Chart1.TabIndex = 1; title1.Alignment = System.Drawing.ContentAlignment.TopLeft; title1.Font = new System.Drawing.Font("Trebuchet MS", 14.25F, System.Drawing.FontStyle.Bold); title1.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(26)))), ((int)(((byte)(59)))), ((int)(((byte)(105))))); title1.Name = "Title1"; title1.Position.Auto = false; title1.Position.Height = 8.738057F; title1.Position.Width = 80F; title1.Position.X = 4F; title1.Position.Y = 4F; title1.ShadowColor = System.Drawing.Color.FromArgb(((int)(((byte)(32)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); title1.ShadowOffset = 3; title1.Text = "Chart Control for .NET Framework"; this.Chart1.Titles.Add(title1); this.Chart1.Click += new System.EventHandler(this.Chart1_Click); // // LabelsTextStyle // this.Controls.Add(this.Chart1); this.Controls.Add(this.panel1); this.Controls.Add(this.label9); this.Font = new System.Drawing.Font("Verdana", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.Name = "LabelsTextStyle"; this.Size = new System.Drawing.Size(728, 480); this.Load += new System.EventHandler(this.LabelsTextStyle_Load); this.panel1.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.Chart1)).EndInit(); this.ResumeLayout(false); }