// CONSTRUCTORS public AlleleCheckPrefab(Allele allele, Series series, DataGridViewColumn column, int row) { _series = series; _col = column; build(allele, row); }
/// <summary> /// Constructor /// </summary> /// <param name="chart"></param> public Graph(Chart chart) { Chart = chart; Data = new Series(); Chart.Series.Add(Data); }
public MultipleGraphics(ResultResearch r) { InitializeComponent(); this.research = r; SortedDictionary<double, SortedDictionary<double, SubGraphsInfo>>.KeyCollection keys = this.research.Result.Keys; foreach (double k in keys) { Chart graphic = new Chart(); graphic.Titles.Add("Network Size = " + this.research.Size.ToString()); ChartArea chArea = new ChartArea("Current Level = " + k.ToString()); chArea.AxisX.Title = "Mu"; chArea.AxisY.Title = "Order"; graphic.ChartAreas.Add(chArea); Series s = new Series("Current Level = " + k.ToString()); s.ChartType = SeriesChartType.Line; s.Color = Color.Red; foreach (KeyValuePair<double, SubGraphsInfo> v in this.research.Result[k]) { s.Points.Add(new DataPoint(v.Key, v.Value.avgOrder)); } graphic.Series.Add(s); graphic.Dock = DockStyle.Fill; TabPage page = new TabPage("Current Level = " + k.ToString()); page.Controls.Add(graphic); this.graphicsTab.TabPages.Add(page); this.graphics.Add(graphic); } }
/// <summary> /// Constructor /// </summary> /// <param name="graphVisualizer"></param> public Graph(GraphVisualizer graphVisualizer) { GraphVisualizer = graphVisualizer; Data = new Series(); GraphVisualizer.Series.Add(Data); }
public void Make(List<int> values, List<string> answerNames, string question) { //clear the chart chart1.Series.Clear(); Dictionary<string, int> Columns = new Dictionary<string, int>(); List<Color> Colors = new List<Color>() { Color.Black, Color.Blue, Color.Red, Color.Green, Color.Pink }; //initialize new instances for a diagram Series series = new Series(); series.ChartArea = "ChartArea1"; chart1.ChartAreas["ChartArea1"].RecalculateAxesScale(); series.IsVisibleInLegend = false; //add columns to the diagram for (int i = 0; i < answerNames.Count; i++) { series.Points.AddXY(answerNames[i], values[i]); //give color to each individual column series.Points[i].Color = (i < 5) ? Colors[i] : Colors[(int)Math.Floor(((double)i / 5))]; } chart1.Series.Add(series); //add question above the diagram labelQuestion.Text = question; }
public void DisplayChart(Chart dchart) { if (dchart.Series.Count == 0) { var series = new Series("Chart") { ChartType = SeriesChartType.Line, Color = System.Drawing.Color.MediumPurple, BorderWidth = 2 }; MethodInvoker action = delegate { dchart.Series.Add(series); }; dchart.Invoke(action); } else { MethodInvoker action = delegate { dchart.Series[0].Points.AddXY(MaxDt.ToShortDateString(), Strategyperformance.EntireTradesSum); dchart.Legends[0].Enabled = false; }; dchart.Invoke(action); } }
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 ChartPanel(MetingType type, SeriesChartType charttype) : base() { this.type = type; this.ChartType = charttype; this.chart = new Chart(); this.chartArea = new ChartArea(); this.chart.Titles.Add(new Title(type.ToString())); this.Location = new System.Drawing.Point(0, 0); this.Size = new System.Drawing.Size(400, 250); this.Controls.Add(chart); this.series = createSerie(); this.chartArea.Name = "chartArea"; this.chart.Size = new System.Drawing.Size(400, 250); this.chart.Dock = DockStyle.Fill; this.chart.Series.Add(series); this.chart.Text = "chart"; this.chart.ChartAreas.Add(chartArea); }
private void btnFindOptimalLocation_Click(object sender, EventArgs e) { this.Cursor = Cursors.WaitCursor; DiscretizationStep = Convert.ToDouble(tbDiscretizationStep.Text); SourceMovingStep = Convert.ToDouble(tbSourceMovingStep.Text); StepDecreasingMultiplier = Convert.ToDouble(tbStepDecreasingMultiplier.Text); StepMinimum = Convert.ToDouble(tbStepMinimum.Text); EpsKlepper = Convert.ToDouble(tbEps.Text); var optimalLocation = KlepperAlgorithm.FindOptimalAllocation( DiscreteSet, InitialSourceSet, DiscretizationStep, SourceMovingStep, StepDecreasingMultiplier, StepMinimum, EpsKlepper ); var y = new Series(); y.Color = Color.OrangeRed; y.ChartType = SeriesChartType.Point; y.MarkerStyle = MarkerStyle.Circle; y.Name = "Оптимальное размещение по алгоритму Клеппера"; foreach (var point in optimalLocation) y.Points.AddXY(point.X, point.Y); chAlgorithms.Series.Add(y); tbMu.Text = KlepperAlgorithm.Mu.ToString(); this.Cursor = Cursors.Default; }
private void AddChartSerie() { Series ser = new Series("收盘价"); //Series的类型 ser.ChartType = SeriesChartType.Line; //Series的边框颜色 ser.BorderColor = Color.FromArgb(180, 26, 59, 105); //线条宽度 ser.BorderWidth = 3; //线条阴影颜色 ser.ShadowColor = Color.Black; //阴影宽度 ser.ShadowOffset = 2; //是否显示数据说明 ser.IsVisibleInLegend = true; //线条上数据点上是否有数据显示 ser.IsValueShownAsLabel = false; //线条上的数据点标志类型 ser.MarkerStyle = MarkerStyle.Circle; //线条数据点的大小 ser.MarkerSize = 8; //线条颜色 ser.Color = Color.FromArgb(220, 65, 140, 240); this.myChart.Series.Add(ser); }
public void FillColumnChart(DataTable DT) { dataGridView1.DataSource = DT; chart2.Series.Clear(); Series seriesAll = new Series("总收入"); chart2.Series.Add(seriesAll); Series seriesLixi = new Series("利息"); chart2.Series.Add(seriesLixi); chart2.DataSource = DT; //设置图表Y轴对应项 seriesAll.YValueMembers = "All"; seriesLixi.YValueMembers = "Lixi"; //设置图表X轴对应项 chart2.Series[0].XValueMember = "Time"; //chart2.ChartAreas[0].Area3DStyle.Enable3D = true; //chart2.ChartAreas[0].Area3DStyle.Inclination = 30; //chart2.ChartAreas[0].Area3DStyle.PointDepth = 50; //chart2.ChartAreas[0].Area3DStyle.IsClustered = true; //chart2.ChartAreas[0].AxisX.IntervalAutoMode = IntervalAutoMode.VariableCount; chart2.DataBind(); }
private void DrawBinomial(int n, int y, string Name) { Series series = new Series(Name); series.BorderWidth = 3; series.ChartType = SeriesChartType.Spline; double MaxValue = 0; double Temp = 0; for (double i = 0.01; i < 1; i = i + 0.05) { Temp = n * Stat.BinomialPDF(i,n,y); if (MaxValue < Temp) { MaxValue = Temp; } series.Points.AddXY(i,Temp ); } chart_PosteriorDensity.Series.Add(series); var XAxis = chart_PosteriorDensity.ChartAreas[0].AxisX; XAxis.MajorGrid.Enabled = false; var YAxis = chart_PosteriorDensity.ChartAreas[0].AxisY; YAxis.MajorGrid.Enabled = false; XAxis.Maximum = 1; XAxis.Minimum = 0; YAxis.Maximum = Math.Ceiling(MaxValue); }
public void Init(StatisticsCollection collection, Core core) { mCore = core; mCollection = collection; foreach (var name in collection.StatisticsNames) { Series current = new Series(name, 100); Series mean = new Series(name + " Mean", 100); current.ChartType = SeriesChartType.Line; mean.ChartType = SeriesChartType.Line; sharedGraph.Series.Add(current); sharedGraph.Series.Add(mean); namesList.Items.Add(name); ListViewItem row = new ListViewItem(name); //row.SubItems.Add(name); row.SubItems.Add("0"); row.SubItems.Add("0"); row.SubItems.Add("0"); row.SubItems.Add("0"); statsList.Items.Add(row); mCurrentSeries.Add(name, current); mMeanSeries.Add(name, mean); mRows.Add(name, row); } }
/// <summary> /// Creates the candlestick chart to be populated with stock data /// </summary> public void createCandleStickChart() { // clear out any existing chart series candleStickChart.Series.Clear(); volumeChart.Series.Clear(); // create new series and add them to the charts Series candleStick = new Series("Stocks"); candleStickChart.Series.Add(candleStick); Series volume = new Series("Volume"); volumeChart.Series.Add(volume); // set the chart types of candlestick and volume charts candleStickChart.Series["Stocks"].ChartType = SeriesChartType.Candlestick; volumeChart.Series["Volume"].ChartType = SeriesChartType.Column; // Set the colors of price up and price down candleStickChart.Series["Stocks"]["PriceUpColor"] = "Green"; candleStickChart.Series["Stocks"]["PriceDownColor"] = "Red"; // Show both open and close marks candleStickChart.Series["Stocks"]["ShowOpenClose"] = "Both"; // Set maximum pixel point width candleStickChart.Series["Stocks"]["MaxPixelPointWidth"] = "10"; // Set the style of the open-close marks candleStickChart.Series["Stocks"]["OpenCloseStyle"] = "Triangle"; }
protected virtual void CreateSeries() { Series bestKnown = new Series("Alleles of Best Known Solution"); bestKnown.ChartType = SeriesChartType.Column; bestKnown.XValueType = ChartValueType.String; bestKnown.YValueType = ChartValueType.Double; bestKnown.YAxisType = AxisType.Primary; chart.Series.Add(bestKnown); Series others = new Series("Other Alleles"); others.ChartType = SeriesChartType.Column; others.XValueType = ChartValueType.String; others.YValueType = ChartValueType.Double; others.YAxisType = AxisType.Primary; chart.Series.Add(others); invisibleSeries.Add(others); Series qualities = new Series("Average Solution Qualities"); qualities.ChartType = SeriesChartType.FastPoint; qualities.XValueType = ChartValueType.String; qualities.YValueType = ChartValueType.Double; qualities.YAxisType = AxisType.Secondary; chart.Series.Add(qualities); Series impacts = new Series("Average Impact"); impacts.ChartType = SeriesChartType.FastPoint; impacts.XValueType = ChartValueType.String; impacts.YValueType = ChartValueType.Double; impacts.YAxisType = AxisType.Secondary; chart.Series.Add(impacts); }
private void PercentageCorrectAnalysis_Load(object sender, EventArgs e) { //var experiment = FrameworkFactory.CreatePercentCorrectRandomExperiment(); //var experiment = FrameworkFactory.CreatePercentCorrectRandomBeliefExperiment(); //var experiment = FrameworkFactory.CreatePercentCorrectMapExperiment(); var experiment = FrameworkFactory.CreatePercentCorrectQLearningExperiment(); //experiment.RunTrials(100000); experiment.RunTrials(100000,100000); var dictionary = FrameworkFactory.PercentageCorrectRepository.GetData(); var series = new Series("QLearning", dictionary.Count) { ChartType = SeriesChartType.Line }; chart1.Series.Clear(); chart1.Series.Add(series); chart1.Series["QLearning"].Points.DataBindXY(dictionary.Keys, dictionary.Values); // Basic = red, Belief = Blue, MAP = Purple, QLearning = Green chart1.Series[0].Color = Color.DarkGreen; chart1.ChartAreas[0].AxisX.Title = "No. Of Fixations"; chart1.ChartAreas[0].AxisY.Title = "Total Trials"; chart1.ChartAreas[0].AxisX.Maximum = 12; chart1.ChartAreas[0].AxisY.Maximum = 1; //chart1.ChartAreas[0].AxisX.Interval = 1; }
public void ActualizeStats(Dictionary<string, int> ressourcesGathered) { if (GatherPie.InvokeRequired) { Invoke(new DelegGatherPie(ActualizeStats), ressourcesGathered); return; } if (GatherPie.Titles.Count < 1) GatherPie.Titles.Add("Ressources"); GatherPie.Series.Clear(); GatherPie.ChartAreas[0].BackColor = Color.Transparent; Series series1 = new Series { Name = "series1", IsVisibleInLegend = true, Color = System.Drawing.Color.DeepSkyBlue, ChartType = SeriesChartType.Pie }; GatherPie.Series.Add(series1); for (int z = 0; z < ressourcesGathered.Keys.Count; z++) { if (!job.CanGatherThis(ressourcesGathered.Keys.ToList()[z])) ressourcesGathered.Remove(ressourcesGathered.Keys.ToList()[z]); } int i =0; foreach (KeyValuePair<string,int> pair in ressourcesGathered) { series1.Points.Add(pair.Value); var p1 = series1.Points[i]; p1.AxisLabel = pair.Key + " (" + pair.Value + ")"; p1.LegendText = pair.Key; i += 1; } GatherPie.Invalidate(); }
private void BubbleChartAnalysis_Load(object sender, EventArgs e) { var experiment = FrameworkFactory.CreateRandomBeliefActivationAnalysisExperiment(); experiment.RunTrials(1); var dictionary = FrameworkFactory.ActivationRepository.GetData(); var series = new Series("Activations"); chart1.Series.Clear(); series.ChartType = SeriesChartType.Bubble; series.MarkerStyle = MarkerStyle.Circle; chart1.Series.Add(series); foreach (var kvp in dictionary) { series.Points.AddXY(0, kvp.Key, kvp.Value[0]); series.Points.AddXY(1, kvp.Key, kvp.Value[1]); series.Points.AddXY(2, kvp.Key, kvp.Value[2]); series.Points.AddXY(3, kvp.Key, kvp.Value[3]); series.Points.AddXY(4, kvp.Key, kvp.Value[4]); series.Points.AddXY(5, kvp.Key, kvp.Value[5]); series.Points.AddXY(6, kvp.Key, kvp.Value[6]); } foreach (var point in series.Points.Where(p => p.YValues[1] < 0)) { point.Color = Color.Crimson; } chart1.ChartAreas[0].AxisY.Title = "Fixation"; chart1.ChartAreas[0].AxisX.Title = "Location in Visual Array"; chart1.ChartAreas[0].AxisY2.Title = "Activity"; chart1.Titles.Add("Activations for each location in the visual array across trials."); }
public MarkUtils() { InitializeComponent(); foreach (string s in Data.classes) { comboBox_classes.Items.Add(s); Series series = new Series(); series.LegendText = s; series.ChartType = SeriesChartType.Line; series.YValueType = ChartValueType.String; int i = 0; foreach (Mark m in Data.marks) { if (m._class == s) { DataPoint dp = new DataPoint(); dp.XValue = i; dp.YValues = new double[] { m.mark }; dp.Label = m.name; series.Points.Add(dp); } } chart_marks.Series.Add(series); } comboBox_classes.SelectedIndex = 0; }
private void processList_ItemCheck(object sender, ItemCheckEventArgs e) { if (e.NewValue == CheckState.Checked) { string[] spliters = { "-" }; string value = processList.Items[e.Index].ToString(); string instanceName = value.Split(spliters, StringSplitOptions.None).FirstOrDefault(); this.createperfcounter(instanceName); Series series = new Series(instanceName); series.ChartType = SeriesChartType.FastLine; series.BorderWidth = 5; Series cpuseries = new Series(instanceName); cpuseries.ChartType = SeriesChartType.FastLine; cpuseries.BorderWidth = 5; chart1.Series.Add(series); chart2.Series.Add(cpuseries); } }
private void comboBoxInfoToShow_TextChanged(object sender, EventArgs e) { if (cmbShowType.Text == "FPY") { Distchart.Series.Clear(); Series FPYSeries = new Series(); FPYSeries.ChartType = SeriesChartType.Column; FPYSeries.IsValueShownAsLabel = true; FPYSeries.IsXValueIndexed = false; FPYSeries.Points.DataBindXY(WWdata, FPYdata); Distchart.Series.Add(FPYSeries); Distchart.ChartAreas[0].AxisY.Minimum = (int)FPYdata.Min() - 5; Distchart.ChartAreas[0].AxisY.Title = "Percentage % "; Distchart.ChartAreas[0].AxisX.Title = "Work Week"; } else { Distchart.Series.Clear(); Series passSeries = new Series(); passSeries.Points.DataBindXY(WWdata, WWpassCount); passSeries.IsXValueIndexed = false; passSeries.IsValueShownAsLabel = true; Distchart.Series.Add(passSeries); Series failSeries = new Series(); failSeries.Points.DataBindXY(WWdata, WWfailCount); failSeries.IsValueShownAsLabel = true; Distchart.Series.Add(failSeries); Distchart.ChartAreas[0].AxisY.Title = "Quantity"; } }
public void AddSeries(Chart chart, string seriesName) { Series s = new Series(seriesName); chart.Series.Add(s); chart.Series[seriesName].ChartType = SeriesChartType.Column; chart.Series[seriesName]["DrawingStyle"] = "Emboss"; }
private void chartForecastTestNumberbyduration_Load(object sender, EventArgs e) { GetSummary(); GetForecastSummaryData(_dataSet); lqtChart2.Series.Clear(); IList<string> UniqueTestingAreas=new List<string>(); foreach (ForecastSummaryData fsd in _fSummaryData) { if(!UniqueTestingAreas.Contains(fsd.TestingArea)) UniqueTestingAreas.Add(fsd.TestingArea); } foreach (string ta in UniqueTestingAreas) { Series series = new Series(ta); series.ChartType = SeriesChartType.Line; series.IsValueShownAsLabel = chkshowlabel.Checked; lqtChart2.Series.Add(series); IList<ForecastSummaryData> currentSummary = GetForecastSummaryByTA(ta); foreach (ForecastSummaryData fsd in currentSummary) { lqtChart2.Series[ta].Points.AddXY(fsd.DurationDateTime, fsd.NoOfTest); } } lqtChart2.Titles[0].Text = _chartTitle; }
private void chart1_Load(object sender, EventArgs e) { var listOfPeople = new People().GetPopleFromTextFile(); var list = new List<int>(); // chart1.BackColor=System.Drawing.Color.Black; chart1.Titles.Add("People Alive"); foreach (var person in listOfPeople) { list.Add(person.end); // Add point. } chart1.Series.Clear(); var series1 = new System.Windows.Forms.DataVisualization.Charting.Series { Name = "Age", Color = System.Drawing.Color.Green, IsVisibleInLegend = true, IsXValueIndexed = true, ChartType = SeriesChartType.Bar }; this.chart1.Series.Add(series1); foreach (var person in listOfPeople) { int age = person.end - person.Birth; series1.Points.AddXY(person.end, age); } }
public void AddPlot(List<double> values, string title = "") { Chart chart = new Chart(); Series series = new Series(); ChartArea chartArea1 = new ChartArea(); chartArea1.Name = "ChartArea1"; chart.ChartAreas.Add(chartArea1); series.BorderWidth = 2; series.BorderDashStyle = ChartDashStyle.Solid; series.ChartType = SeriesChartType.Line; series.Color = Color.Green; for (int i = 0; i < values.Count; i++) { series.Points.AddXY(i, values[i]); } chart.BorderlineColor = Color.Red; chart.BorderlineWidth = 1; chart.Series.Add(series); chart.Titles.Add(title); chart.Invalidate(); chart.Palette = ChartColorPalette.Fire; chartArea1.AxisY.Minimum = values.Min(); chartArea1.AxisY.Maximum = values.Max(); AddChartInRuntime(chart); }
private void button1_Click(object sender, EventArgs e) { // generate URL string brand = comboBox1.Text; string fromDate = comboBox2.Text + "-" + comboBox3.Text + "-" + comboBox4.Text; string toDate = comboBox7.Text + "-" + comboBox6.Text + "-" + comboBox5.Text; string url = "https://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20yahoo.finance.historicaldata%20where%20symbol%20%3D%20%22" + brand + "%22%20and%20startDate%20%3D%20%22" + fromDate + "%22%20and%20endDate%20%3D%20%22" + toDate + "%22&format=xml&env=store%3A%2F%2Fdatatables.org%2Falltableswithkeys"; // get and parse XML WebClient wc = new WebClient(); wc.Encoding = Encoding.UTF8; string xml = wc.DownloadString(url); XDocument doc = XDocument.Parse(xml); // set chart data Series chartSetting = new Series(); chartSetting.ChartType = SeriesChartType.Line; var quotes = doc.Descendants("quote"); foreach (var quote in quotes) chartSetting.Points.AddXY(quote.Element("Date").Value, quote.Element("Close").Value); chart1.Series.Clear(); chart1.Series.Add(chartSetting); chart1.ChartAreas[0].AxisX.IsReversed = true; }
private void btnShowCorrelogram_Click(object sender, EventArgs e) { var ts = new TimeSeries(TimeSeriesEnvironment.Current.TimeSeries, false); int k; if (!int.TryParse(txtCorrelogramK.Text, out k) || k < 0 || k > ts.Count - 1) { MessageBox.Show("Incorrect K variable for processing correlogram."); return; } var cor = RandomExcerptChecker.GetCorrelogram(ts.Excerpt, k); Series crlgrm = new Series("TS Correlogram") { ChartType = SeriesChartType.Column }; dgCorrelation.Rows.Clear(); for (int i = 0; i < cor.Count; i++) { crlgrm.Points.AddXY(i, cor[i]); var res = RandomExcerptChecker.TestCorrelation(cor[i], ts.Count, i); dgCorrelation.Rows.Add(i, string.Format("|{0:0.0000}|", res.Statistics), res.IsRandom ? "≤" : ">", res.Quantile.ToString("0.0000")); } chartTS.Series.Clear(); chartTS.Series.Add(crlgrm); chartTS.ResetAutoValues(); }
public void AddPoints(IEnumerable<int> points, Color? color = null) { var chartPoints = new Series { ChartType = SeriesChartType.Point, MarkerSize = 7, IsVisibleInLegend = false}; if (color.HasValue) chartPoints.Color = color.Value; foreach (var point in points) chartPoints.Points.AddXY(point, 0); Series.Add(chartPoints); }
public CenterGravity() { InitializeComponent(); Chart chart = new Chart(); ChartArea area = new ChartArea(); area.AxisX.Title = "t"; area.AxisX.Minimum = 0; area.AxisX.MajorGrid.LineColor = Color.LightGray; area.AxisY.Title = "Movement"; area.AxisY.MajorGrid.LineColor = Color.LightGray; chart.ChartAreas.Add(area); _serie = new Series(); _serie.ChartType = SeriesChartType.Line; _serie.MarkerStyle = MarkerStyle.Diamond; _serie.MarkerSize = 9; _serie.Color = Color.LimeGreen; chart.Series.Add(_serie); WindowsFormsHost host = new WindowsFormsHost(); host.Child = chart; movlive.Children.Add(host); _cog = new cog(400, 400); coglive.Children.Add(_cog); _first = true; MainController.GetInstance.DataController.AddSensorDataListener(this); }
/// <summary> /// Helper function for plotting. /// </summary> private void Plot(string indexColumnName, IDataFrame dataFrame) { var indexValues = dataFrame.GetColumn(indexColumnName).AsDate().ToValues(); var remainingColumns = dataFrame.DropColumn("index").GetColumns(); var allSeriesData = remainingColumns .Select(column => { var label = column.GetName(); var entries = LinqExts.Zip( indexValues, column.AsFloat().ToValues(), (index, value) => new { index, value } ) .ToArray(); return new { label, entries }; }) .ToArray(); foreach (var seriesData in allSeriesData) { var series = new Series(seriesData.label); foreach (var entry in seriesData.entries) { series.Points.AddXY(entry.index, entry.value); } chart1.Series.Add(series); } }
/// <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, 23); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint2 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 56); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint3 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 35); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint4 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 68); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint5 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 35); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint6 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, -6); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint7 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 23); System.Windows.Forms.DataVisualization.Charting.Title title1 = new System.Windows.Forms.DataVisualization.Charting.Title(); this.chart1 = new System.Windows.Forms.DataVisualization.Charting.Chart(); this.panel1 = new System.Windows.Forms.Panel(); this.Rotation = new System.Windows.Forms.NumericUpDown(); this.Inclination = new System.Windows.Forms.NumericUpDown(); this.label4 = new System.Windows.Forms.Label(); this.label5 = new System.Windows.Forms.Label(); this.label3 = new System.Windows.Forms.Label(); this.WallWidth = new System.Windows.Forms.ComboBox(); this.RightAngleAxis = new System.Windows.Forms.CheckBox(); this.checkBoxShow3D = new System.Windows.Forms.CheckBox(); this.label2 = 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.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.BackSecondaryColor = System.Drawing.Color.White; chartArea1.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea1.Name = "Default"; chartArea1.ShadowColor = System.Drawing.Color.Transparent; this.chart1.ChartAreas.Add(chartArea1); legend1.BackColor = System.Drawing.Color.Transparent; legend1.Enabled = false; legend1.Font = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold); legend1.IsTextAutoFit = false; legend1.Name = "Default"; this.chart1.Legends.Add(legend1); this.chart1.Location = new System.Drawing.Point(16, 65); this.chart1.Name = "chart1"; series1.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(180)))), ((int)(((byte)(26)))), ((int)(((byte)(59)))), ((int)(((byte)(105))))); series1.ChartArea = "Default"; series1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(220)))), ((int)(((byte)(65)))), ((int)(((byte)(140)))), ((int)(((byte)(240))))); series1.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); 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 = "2D Chart"; this.chart1.Titles.Add(title1); // // panel1 // this.panel1.Controls.Add(this.Rotation); this.panel1.Controls.Add(this.Inclination); this.panel1.Controls.Add(this.label4); this.panel1.Controls.Add(this.label5); this.panel1.Controls.Add(this.label3); this.panel1.Controls.Add(this.WallWidth); this.panel1.Controls.Add(this.RightAngleAxis); this.panel1.Controls.Add(this.checkBoxShow3D); this.panel1.Location = new System.Drawing.Point(432, 73); this.panel1.Name = "panel1"; this.panel1.Size = new System.Drawing.Size(292, 288); this.panel1.TabIndex = 2; // // Rotation // this.Rotation.Enabled = false; this.Rotation.Increment = new decimal(new int[] { 10, 0, 0, 0 }); this.Rotation.Location = new System.Drawing.Point(168, 136); 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 = 7; this.Rotation.Value = new decimal(new int[] { 30, 0, 0, 0 }); this.Rotation.ValueChanged += new System.EventHandler(this.Rotation_ValueChanged); // // Inclination // this.Inclination.Enabled = false; this.Inclination.Increment = new decimal(new int[] { 10, 0, 0, 0 }); this.Inclination.Location = new System.Drawing.Point(168, 104); 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 = 5; this.Inclination.Value = new decimal(new int[] { 30, 0, 0, 0 }); this.Inclination.ValueChanged += new System.EventHandler(this.Inclination_ValueChanged); // // label4 // this.label4.Location = new System.Drawing.Point(33, 136); this.label4.Name = "label4"; this.label4.Size = new System.Drawing.Size(132, 23); this.label4.TabIndex = 6; this.label4.Text = "Rotate &Y:"; this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // label5 // this.label5.Location = new System.Drawing.Point(33, 104); this.label5.Name = "label5"; this.label5.Size = new System.Drawing.Size(132, 23); this.label5.TabIndex = 4; this.label5.Text = "Rotate &X:"; this.label5.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // label3 // this.label3.Location = new System.Drawing.Point(37, 72); this.label3.Name = "label3"; this.label3.Size = new System.Drawing.Size(128, 23); this.label3.TabIndex = 2; this.label3.Text = "&Wall Width:"; this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // WallWidth // this.WallWidth.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.WallWidth.Enabled = false; this.WallWidth.Items.AddRange(new object[] { "0", "1", "2", "3", "4", "5", "7", "10", "15", "20", "25", "30" }); this.WallWidth.Location = new System.Drawing.Point(168, 72); this.WallWidth.Name = "WallWidth"; this.WallWidth.Size = new System.Drawing.Size(121, 22); this.WallWidth.TabIndex = 3; this.WallWidth.SelectedIndexChanged += new System.EventHandler(this.WallWidth_SelectedIndexChanged); // // RightAngleAxis // this.RightAngleAxis.CheckAlign = System.Drawing.ContentAlignment.MiddleRight; this.RightAngleAxis.Enabled = false; this.RightAngleAxis.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft; this.RightAngleAxis.Location = new System.Drawing.Point(16, 33); this.RightAngleAxis.Name = "RightAngleAxis"; this.RightAngleAxis.Size = new System.Drawing.Size(164, 24); this.RightAngleAxis.TabIndex = 1; this.RightAngleAxis.Text = "Right Angle &Axis:"; this.RightAngleAxis.TextAlign = System.Drawing.ContentAlignment.MiddleRight; this.RightAngleAxis.CheckedChanged += new System.EventHandler(this.RightAngleAxis_CheckedChanged); // // checkBoxShow3D // this.checkBoxShow3D.CheckAlign = System.Drawing.ContentAlignment.MiddleRight; this.checkBoxShow3D.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft; this.checkBoxShow3D.Location = new System.Drawing.Point(16, 3); this.checkBoxShow3D.Name = "checkBoxShow3D"; this.checkBoxShow3D.Size = new System.Drawing.Size(164, 24); this.checkBoxShow3D.TabIndex = 0; this.checkBoxShow3D.Text = "Display chart as 3&D:"; this.checkBoxShow3D.TextAlign = System.Drawing.ContentAlignment.MiddleRight; this.checkBoxShow3D.CheckedChanged += new System.EventHandler(this.checkBoxShow3D_CheckedChanged); // // label2 // this.label2.Font = new System.Drawing.Font("Verdana", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label2.Location = new System.Drawing.Point(16, 16); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(702, 41); this.label2.TabIndex = 4; this.label2.Text = "This sample demonstrates chart rotation, isometric projection, and how to set the" + " width of 3D walls. "; this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // ChartArea3D // this.Controls.Add(this.label2); this.Controls.Add(this.panel1); this.Controls.Add(this.chart1); this.Font = new System.Drawing.Font("Verdana", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.Name = "ChartArea3D"; this.Size = new System.Drawing.Size(728, 480); this.Load += new System.EventHandler(this.BarColumnChartType_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); }
private void buttonJournalVentes_Click(object sender, EventArgs e) { var db = new dbContext(); if (!checkBoxTableu.Checked && !checkBoxGraphique.Checked && !radioButtonGain.Checked && !radioButtonPerte.Checked) { checkBoxGraphique.Checked = true; } labelErrorGraph.Text = ""; chart1.Series.Clear(); chart2.Series["Series1"].Points.Clear(); chart2.Series["Series1"].Points.AddXY(0, 0); dataGridView1.Rows.Clear(); dataGridView2.Rows.Clear(); dataGridView1.Visible = dataGridView2.Visible = checkBoxTableu.Checked; chart1.Visible = chart2.Visible = checkBoxGraphique.Checked; //For the responsivness of the dataGridView and the Charts---StartBloc#x1 if (checkBoxGraphique.Checked) { if (chart2.Width == panelContainerSM_GV_JV.Width - 50) { chart1.Width = (panelContainerSM_GV_JV.Width / 2) - 50; chart2.Width = (panelContainerSM_GV_JV.Width / 2) - 50; chart2.Location = new Point(chart1.Width + chart1.Location.X + 15, chart2.Location.Y); } if (chart1.Width == panelContainerSM_GV_JV.Width - 50) { chart1.Width = (panelContainerSM_GV_JV.Width / 2) - 50; chart2.Width = (panelContainerSM_GV_JV.Width / 2) - 50; chart1.Location = new Point(20, chart1.Location.Y); } } if (checkBoxTableu.Checked) { dataGridView2.Location = new Point(chart2.Location.X, chart2.Location.Y + chart2.Height + 8); } if (checkBoxTableu.Checked && !checkBoxGraphique.Checked) { panelContainerLabelGraphe2.Visible = panelContainerLabelGraphe.Visible = false; dataGridView1.Width = (panelContainerSM_GV_JV.Width / 2) - 50; dataGridView2.Width = (panelContainerSM_GV_JV.Width / 2) - 50; dataGridView1.Location = new Point(dataGridView1.Location.X, 132); dataGridView2.Location = new Point(dataGridView1.Location.X + dataGridView1.Width + 8, 132); } else if (!checkBoxTableu.Checked && checkBoxGraphique.Checked) { panelContainerLabelGraphe2.Visible = panelContainerLabelGraphe.Visible = true; dataGridView1.Location = new Point(chart1.Location.X, chart1.Location.Y + chart1.Height + 8); dataGridView2.Location = new Point(chart2.Location.X, chart2.Location.Y + chart2.Height + 8); } if (!checkBoxTableu.Checked && !checkBoxGraphique.Checked) { dataGridView1.Visible = chart1.Visible = panelContainerLabelGraphe2.Visible = radioButtonGain.Checked; dataGridView2.Visible = chart2.Visible = panelContainerLabelGraphe.Visible = radioButtonPerte.Checked; if (radioButtonGain.Checked) { chart1.Width = panelContainerSM_GV_JV.Width - 50; dataGridView1.Width = chart1.Width; dataGridView1.Location = new Point(dataGridView1.Location.X, chart1.Location.Y + chart1.Height + 8); } if (radioButtonPerte.Checked) { chart2.Width = panelContainerSM_GV_JV.Width - 50; chart2.Location = new Point(20, chart2.Location.Y); dataGridView2.Width = chart2.Width; dataGridView2.Location = new Point(chart2.Location.X, chart2.Location.Y + chart2.Height + 8); } } if (checkBoxTableu.Checked && checkBoxGraphique.Checked) { panelContainerLabelGraphe2.Visible = panelContainerLabelGraphe.Visible = true; dataGridView1.Width = chart1.Width; dataGridView2.Width = chart2.Width; dataGridView1.Location = new Point(chart1.Location.X, chart1.Location.Y + chart1.Height + 8); dataGridView2.Location = new Point(chart2.Location.X, chart2.Location.Y + chart2.Height + 8); } //For the responsivness of the dataGridView and the Charts---EndBloc#x1 if (dateTimePickerD.Value.Date > dateTimePickerE.Value.Date) { DateTime temp = dateTimePickerD.Value.Date; dateTimePickerD.Value = dateTimePickerE.Value.Date; dateTimePickerE.Value = temp; } var ventes_liste = db.Vente_magazin.GroupBy(s => s.dateVente); int i = 0; foreach (var groupItem in ventes_liste) { int quantite = 0; decimal? _gain = 0; DataGridViewRow row = (DataGridViewRow)dataGridView1.Rows[i].Clone(); if (!checkBoxTous.Checked) { if (groupItem.Key.Value.Date >= dateTimePickerD.Value.Date && groupItem.Key.Value.Date <= dateTimePickerE.Value.Date) { row.Cells[2].Value = groupItem.Key.Value.Date.ToString("dd/MM/yyyy"); i++; } else { continue; } } else { row.Cells[2].Value = groupItem.Key.Value.Date.ToString("dd/MM/yyyy"); i++; } //--- System.Windows.Forms.DataVisualization.Charting.Series series2 = new System.Windows.Forms.DataVisualization.Charting.Series(); series2.ChartArea = "ChartArea1"; series2.ChartType = System.Windows.Forms.DataVisualization.Charting.SeriesChartType.Column; series2.Name = "Series" + i; series2.YValuesPerPoint = 1; series2.ToolTip = groupItem.Key.Value.Date.ToString("dd/MM/yyyy"); chart1.Series.Add(series2); Axis axisX = chart1.ChartAreas[0].AxisX; axisX.MajorGrid.Enabled = false; chart1.ChartAreas[0].AxisY.MajorGrid.Enabled = false; foreach (var venteL in groupItem) { quantite += int.Parse(venteL.quantiteVendus.Split(' ')[venteL.quantiteVendus.Split(' ').Length - 1]); _gain += venteL.gain; } row.Cells[0].Value = quantite; row.Cells[1].Value = _gain; dataGridView1.Rows.Add(row); series2.IsValueShownAsLabel = false; series2.Label = _gain + "/" + quantite; series2.Points.AddXY(i, _gain); chart1.ChartAreas[0].AxisX.LabelStyle.Enabled = false; chart1.ChartAreas[0].AxisX.Title = "Quantite Produit vendu"; chart1.ChartAreas[0].AxisY.Title = "Gain(dhs)"; } if (chart1.Series.Count == 0) { MessageBox.Show("Aucaun donné à affciher de" + dateTimePickerD.Value.Date.ToString("dd/MM/yyyy") + "-" + dateTimePickerE.Value.Date.ToString("dd/MM/yyyy"), "Information", MessageBoxButtons.OK, MessageBoxIcon.Information); labelErrorGraph.Text = "No Data To show"; } var ExpiredStock = db.Stock_Magazin .Where(stk => DateTime.Compare(stk.dateExpiration, DateTime.Now) < 0).ToList <Stock_Magazin>(); produitVentes.Clear(); foreach (var st in ExpiredStock) //fetch expired products from stock { if (db.Produits.Find(st.codeProduit) != null) { produitVentes.Add(db.Produits.Find(st.codeProduit)); } } int j = 0, totalQNonDispo = 0; decimal totalPerte = 0; int fix = 1; foreach (var item in produitVentes)//somme des quantités de chaque produit expiré { var countInStock = db.Stock_Magazin.ToList <Stock_Magazin>() .FindAll(s => s.codeProduit.Equals(item.codeProduit)) .Sum(stk => stk.quantite); if (countInStock != 0) { DataGridViewRow row = (DataGridViewRow)dataGridView2.Rows[j].Clone(); if (dataGridView2.Columns.Contains(item.libelle)) { row.Cells[0].Value = item.libelle + "-" + fix; fix++; } else { row.Cells[0].Value = item.libelle; } totalQNonDispo++; totalPerte += countInStock * item.prixAchat; row.Cells[1].Value = totalQNonDispo; row.Cells[2].Value = countInStock * item.prixAchat; j++; dataGridView2.Rows.Add(row); chart2.Series["Series1"].Points.AddXY(countInStock, countInStock * item.prixAchat); } } chart2.ChartAreas[0].AxisX.Title = "Pertes(dhs)"; chart2.ChartAreas[0].AxisY.Title = "QuntiteChaqueProduitNonDisponible"; labelTotalPerte.Text = "Perts Totale :" + totalPerte + " Quantité Totale :" + totalQNonDispo + " produits"; }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(OptimizationWindow)); System.Windows.Forms.DataVisualization.Charting.ChartArea chartArea1 = new System.Windows.Forms.DataVisualization.Charting.ChartArea(); System.Windows.Forms.DataVisualization.Charting.Legend legend1 = new System.Windows.Forms.DataVisualization.Charting.Legend(); System.Windows.Forms.DataVisualization.Charting.Series series1 = new System.Windows.Forms.DataVisualization.Charting.Series(); this.buttonCancel = new System.Windows.Forms.Button(); this.buttonOK = new System.Windows.Forms.Button(); this.tabOptimize = new System.Windows.Forms.TabPage(); this.labelBestValue = new System.Windows.Forms.Label(); this.labelIteration = new System.Windows.Forms.Label(); this.bestValueChart = new System.Windows.Forms.DataVisualization.Charting.Chart(); this.groupOptimizationStartStop = new System.Windows.Forms.GroupBox(); this.buttonStop = new System.Windows.Forms.Button(); this.ButtonStart = new System.Windows.Forms.Button(); this.GroupOptimizationAlgorithm = new System.Windows.Forms.GroupBox(); this.comboBoxPresets = new System.Windows.Forms.ComboBox(); this.GroupOptimizationType = new System.Windows.Forms.GroupBox(); this.radioButtonMinimize = new System.Windows.Forms.RadioButton(); this.radioButtonMaximize = new System.Windows.Forms.RadioButton(); this.Tabs = new System.Windows.Forms.TabControl(); this.tabSettings = new System.Windows.Forms.TabPage(); this.Benchmarking = new System.Windows.Forms.GroupBox(); this.textBoxLogName = new System.Windows.Forms.TextBox(); this.numUpDownRuns = new System.Windows.Forms.NumericUpDown(); this.CheckBoxRuns = new System.Windows.Forms.CheckBox(); this.CheckBoxLog = new System.Windows.Forms.CheckBox(); this.Settings_Stopping_Conditions = new System.Windows.Forms.GroupBox(); this.numUpDownDuration = new System.Windows.Forms.NumericUpDown(); this.numUpDownImprovement = new System.Windows.Forms.NumericUpDown(); this.numUpDownIterations = new System.Windows.Forms.NumericUpDown(); this.CheckBoxDuration = new System.Windows.Forms.CheckBox(); this.CheckBoxImprovement = new System.Windows.Forms.CheckBox(); this.CheckBoxIterations = new System.Windows.Forms.CheckBox(); this.tabExpert = new System.Windows.Forms.TabPage(); this.groupBox2 = new System.Windows.Forms.GroupBox(); this.textBoxExpertSettings = new System.Windows.Forms.TextBox(); this.label3 = new System.Windows.Forms.Label(); this.backgroundWorkerSolver = new System.ComponentModel.BackgroundWorker(); this.tabOptimize.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.bestValueChart)).BeginInit(); this.groupOptimizationStartStop.SuspendLayout(); this.GroupOptimizationAlgorithm.SuspendLayout(); this.GroupOptimizationType.SuspendLayout(); this.Tabs.SuspendLayout(); this.tabSettings.SuspendLayout(); this.Benchmarking.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.numUpDownRuns)).BeginInit(); this.Settings_Stopping_Conditions.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.numUpDownDuration)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.numUpDownImprovement)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.numUpDownIterations)).BeginInit(); this.tabExpert.SuspendLayout(); this.groupBox2.SuspendLayout(); this.SuspendLayout(); // // buttonCancel // resources.ApplyResources(this.buttonCancel, "buttonCancel"); this.buttonCancel.Name = "buttonCancel"; this.buttonCancel.UseVisualStyleBackColor = true; this.buttonCancel.Click += new System.EventHandler(this.cancelButton_Click); // // buttonOK // resources.ApplyResources(this.buttonOK, "buttonOK"); this.buttonOK.Name = "buttonOK"; this.buttonOK.UseVisualStyleBackColor = true; this.buttonOK.Click += new System.EventHandler(this.okButton_Click); // // tabOptimize // this.tabOptimize.Controls.Add(this.labelBestValue); this.tabOptimize.Controls.Add(this.labelIteration); this.tabOptimize.Controls.Add(this.bestValueChart); this.tabOptimize.Controls.Add(this.groupOptimizationStartStop); this.tabOptimize.Controls.Add(this.GroupOptimizationAlgorithm); this.tabOptimize.Controls.Add(this.GroupOptimizationType); resources.ApplyResources(this.tabOptimize, "tabOptimize"); this.tabOptimize.Name = "tabOptimize"; this.tabOptimize.UseVisualStyleBackColor = true; // // labelBestValue // resources.ApplyResources(this.labelBestValue, "labelBestValue"); this.labelBestValue.BackColor = System.Drawing.Color.Transparent; this.labelBestValue.Name = "labelBestValue"; // // labelIteration // resources.ApplyResources(this.labelIteration, "labelIteration"); this.labelIteration.BackColor = System.Drawing.Color.Transparent; this.labelIteration.Name = "labelIteration"; // // bestValueChart // this.bestValueChart.BackColor = System.Drawing.Color.Transparent; chartArea1.AxisX.LineWidth = 0; chartArea1.AxisX2.LineWidth = 0; chartArea1.AxisY.LineWidth = 0; chartArea1.AxisY2.LineWidth = 0; chartArea1.BorderWidth = 0; chartArea1.InnerPlotPosition.Auto = false; chartArea1.InnerPlotPosition.Height = 100F; chartArea1.InnerPlotPosition.Width = 100F; chartArea1.IsSameFontSizeForAllAxes = true; chartArea1.Name = "ChartArea1"; chartArea1.Position.Auto = false; chartArea1.Position.Height = 100F; chartArea1.Position.Width = 100F; this.bestValueChart.ChartAreas.Add(chartArea1); legend1.Enabled = false; legend1.Name = "Legend1"; this.bestValueChart.Legends.Add(legend1); resources.ApplyResources(this.bestValueChart, "bestValueChart"); this.bestValueChart.Name = "bestValueChart"; series1.ChartArea = "ChartArea1"; series1.ChartType = System.Windows.Forms.DataVisualization.Charting.SeriesChartType.Area; series1.Legend = "Legend1"; series1.Name = "Series1"; this.bestValueChart.Series.Add(series1); // // groupOptimizationStartStop // this.groupOptimizationStartStop.Controls.Add(this.buttonStop); this.groupOptimizationStartStop.Controls.Add(this.ButtonStart); resources.ApplyResources(this.groupOptimizationStartStop, "groupOptimizationStartStop"); this.groupOptimizationStartStop.Name = "groupOptimizationStartStop"; this.groupOptimizationStartStop.TabStop = false; // // buttonStop // resources.ApplyResources(this.buttonStop, "buttonStop"); this.buttonStop.Name = "buttonStop"; this.buttonStop.UseVisualStyleBackColor = true; this.buttonStop.Click += new System.EventHandler(this.buttonStop_Click); // // ButtonStart // resources.ApplyResources(this.ButtonStart, "ButtonStart"); this.ButtonStart.Name = "ButtonStart"; this.ButtonStart.UseVisualStyleBackColor = true; this.ButtonStart.Click += new System.EventHandler(this.buttonStart_Click); // // GroupOptimizationAlgorithm // this.GroupOptimizationAlgorithm.Controls.Add(this.comboBoxPresets); resources.ApplyResources(this.GroupOptimizationAlgorithm, "GroupOptimizationAlgorithm"); this.GroupOptimizationAlgorithm.Name = "GroupOptimizationAlgorithm"; this.GroupOptimizationAlgorithm.TabStop = false; // // comboBoxPresets // this.comboBoxPresets.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.comboBoxPresets.FormattingEnabled = true; resources.ApplyResources(this.comboBoxPresets, "comboBoxPresets"); this.comboBoxPresets.Name = "comboBoxPresets"; this.comboBoxPresets.SelectedIndexChanged += new System.EventHandler(this.comboBoxPresets_SelectedIndexChanged); // // GroupOptimizationType // this.GroupOptimizationType.Controls.Add(this.radioButtonMinimize); this.GroupOptimizationType.Controls.Add(this.radioButtonMaximize); resources.ApplyResources(this.GroupOptimizationType, "GroupOptimizationType"); this.GroupOptimizationType.Name = "GroupOptimizationType"; this.GroupOptimizationType.TabStop = false; // // radioButtonMinimize // resources.ApplyResources(this.radioButtonMinimize, "radioButtonMinimize"); this.radioButtonMinimize.Checked = true; this.radioButtonMinimize.Name = "radioButtonMinimize"; this.radioButtonMinimize.TabStop = true; this.radioButtonMinimize.UseVisualStyleBackColor = true; // // radioButtonMaximize // resources.ApplyResources(this.radioButtonMaximize, "radioButtonMaximize"); this.radioButtonMaximize.Name = "radioButtonMaximize"; this.radioButtonMaximize.UseVisualStyleBackColor = true; // // Tabs // resources.ApplyResources(this.Tabs, "Tabs"); this.Tabs.Controls.Add(this.tabOptimize); this.Tabs.Controls.Add(this.tabSettings); this.Tabs.Controls.Add(this.tabExpert); this.Tabs.Name = "Tabs"; this.Tabs.SelectedIndex = 0; // // tabSettings // this.tabSettings.Controls.Add(this.Benchmarking); this.tabSettings.Controls.Add(this.Settings_Stopping_Conditions); resources.ApplyResources(this.tabSettings, "tabSettings"); this.tabSettings.Name = "tabSettings"; this.tabSettings.UseVisualStyleBackColor = true; // // Benchmarking // this.Benchmarking.Controls.Add(this.textBoxLogName); this.Benchmarking.Controls.Add(this.numUpDownRuns); this.Benchmarking.Controls.Add(this.CheckBoxRuns); this.Benchmarking.Controls.Add(this.CheckBoxLog); resources.ApplyResources(this.Benchmarking, "Benchmarking"); this.Benchmarking.Name = "Benchmarking"; this.Benchmarking.TabStop = false; // // textBoxLogName // resources.ApplyResources(this.textBoxLogName, "textBoxLogName"); this.textBoxLogName.Name = "textBoxLogName"; // // numUpDownRuns // resources.ApplyResources(this.numUpDownRuns, "numUpDownRuns"); this.numUpDownRuns.Minimum = new decimal(new int[] { 1, 0, 0, 0 }); this.numUpDownRuns.Name = "numUpDownRuns"; this.numUpDownRuns.Value = new decimal(new int[] { 1, 0, 0, 0 }); // // CheckBoxRuns // resources.ApplyResources(this.CheckBoxRuns, "CheckBoxRuns"); this.CheckBoxRuns.Name = "CheckBoxRuns"; this.CheckBoxRuns.UseVisualStyleBackColor = true; this.CheckBoxRuns.CheckedChanged += new System.EventHandler(this.CheckBoxRuns_CheckedChanged); // // CheckBoxLog // resources.ApplyResources(this.CheckBoxLog, "CheckBoxLog"); this.CheckBoxLog.Name = "CheckBoxLog"; this.CheckBoxLog.UseVisualStyleBackColor = true; this.CheckBoxLog.CheckedChanged += new System.EventHandler(this.CheckBoxLog_CheckedChanged); // // Settings_Stopping_Conditions // this.Settings_Stopping_Conditions.Controls.Add(this.numUpDownDuration); this.Settings_Stopping_Conditions.Controls.Add(this.numUpDownImprovement); this.Settings_Stopping_Conditions.Controls.Add(this.numUpDownIterations); this.Settings_Stopping_Conditions.Controls.Add(this.CheckBoxDuration); this.Settings_Stopping_Conditions.Controls.Add(this.CheckBoxImprovement); this.Settings_Stopping_Conditions.Controls.Add(this.CheckBoxIterations); resources.ApplyResources(this.Settings_Stopping_Conditions, "Settings_Stopping_Conditions"); this.Settings_Stopping_Conditions.Name = "Settings_Stopping_Conditions"; this.Settings_Stopping_Conditions.TabStop = false; // // numUpDownDuration // resources.ApplyResources(this.numUpDownDuration, "numUpDownDuration"); this.numUpDownDuration.Maximum = new decimal(new int[] { 100000, 0, 0, 0 }); this.numUpDownDuration.Minimum = new decimal(new int[] { 1, 0, 0, 0 }); this.numUpDownDuration.Name = "numUpDownDuration"; this.numUpDownDuration.Value = new decimal(new int[] { 3600, 0, 0, 0 }); // // numUpDownImprovement // resources.ApplyResources(this.numUpDownImprovement, "numUpDownImprovement"); this.numUpDownImprovement.Maximum = new decimal(new int[] { 1000, 0, 0, 0 }); this.numUpDownImprovement.Minimum = new decimal(new int[] { 1, 0, 0, 0 }); this.numUpDownImprovement.Name = "numUpDownImprovement"; this.numUpDownImprovement.Value = new decimal(new int[] { 20, 0, 0, 0 }); // // numUpDownIterations // resources.ApplyResources(this.numUpDownIterations, "numUpDownIterations"); this.numUpDownIterations.Maximum = new decimal(new int[] { 10000, 0, 0, 0 }); this.numUpDownIterations.Minimum = new decimal(new int[] { 1, 0, 0, 0 }); this.numUpDownIterations.Name = "numUpDownIterations"; this.numUpDownIterations.Value = new decimal(new int[] { 200, 0, 0, 0 }); this.numUpDownIterations.ValueChanged += new System.EventHandler(this.numUpDownIterations_ValueChanged); // // CheckBoxDuration // resources.ApplyResources(this.CheckBoxDuration, "CheckBoxDuration"); this.CheckBoxDuration.Name = "CheckBoxDuration"; this.CheckBoxDuration.UseVisualStyleBackColor = true; this.CheckBoxDuration.CheckedChanged += new System.EventHandler(this.CheckBoxDuration_CheckedChanged); // // CheckBoxImprovement // resources.ApplyResources(this.CheckBoxImprovement, "CheckBoxImprovement"); this.CheckBoxImprovement.Name = "CheckBoxImprovement"; this.CheckBoxImprovement.UseVisualStyleBackColor = true; this.CheckBoxImprovement.CheckedChanged += new System.EventHandler(this.CheckBoxImprovement_CheckedChanged); // // CheckBoxIterations // resources.ApplyResources(this.CheckBoxIterations, "CheckBoxIterations"); this.CheckBoxIterations.Name = "CheckBoxIterations"; this.CheckBoxIterations.UseVisualStyleBackColor = true; this.CheckBoxIterations.CheckedChanged += new System.EventHandler(this.CheckBoxIterations_CheckedChanged); // // tabExpert // this.tabExpert.Controls.Add(this.groupBox2); resources.ApplyResources(this.tabExpert, "tabExpert"); this.tabExpert.Name = "tabExpert"; this.tabExpert.UseVisualStyleBackColor = true; // // groupBox2 // this.groupBox2.Controls.Add(this.textBoxExpertSettings); this.groupBox2.Controls.Add(this.label3); resources.ApplyResources(this.groupBox2, "groupBox2"); this.groupBox2.Name = "groupBox2"; this.groupBox2.TabStop = false; this.groupBox2.Enter += new System.EventHandler(this.groupBox2_Enter); // // textBoxExpertSettings // resources.ApplyResources(this.textBoxExpertSettings, "textBoxExpertSettings"); this.textBoxExpertSettings.Name = "textBoxExpertSettings"; // // label3 // resources.ApplyResources(this.label3, "label3"); this.label3.Name = "label3"; // // OptimizationWindow // resources.ApplyResources(this, "$this"); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ControlBox = false; this.Controls.Add(this.buttonCancel); this.Controls.Add(this.buttonOK); this.Controls.Add(this.Tabs); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; this.Name = "OptimizationWindow"; this.Load += new System.EventHandler(this.FrOGWindow_Load); this.tabOptimize.ResumeLayout(false); this.tabOptimize.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.bestValueChart)).EndInit(); this.groupOptimizationStartStop.ResumeLayout(false); this.GroupOptimizationAlgorithm.ResumeLayout(false); this.GroupOptimizationType.ResumeLayout(false); this.GroupOptimizationType.PerformLayout(); this.Tabs.ResumeLayout(false); this.tabSettings.ResumeLayout(false); this.Benchmarking.ResumeLayout(false); this.Benchmarking.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.numUpDownRuns)).EndInit(); this.Settings_Stopping_Conditions.ResumeLayout(false); this.Settings_Stopping_Conditions.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.numUpDownDuration)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.numUpDownImprovement)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.numUpDownIterations)).EndInit(); this.tabExpert.ResumeLayout(false); this.groupBox2.ResumeLayout(false); this.groupBox2.PerformLayout(); this.ResumeLayout(false); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { System.Windows.Forms.DataVisualization.Charting.ChartArea chartArea1 = new System.Windows.Forms.DataVisualization.Charting.ChartArea(); System.Windows.Forms.DataVisualization.Charting.Legend legend1 = new System.Windows.Forms.DataVisualization.Charting.Legend(); System.Windows.Forms.DataVisualization.Charting.Series series1 = new System.Windows.Forms.DataVisualization.Charting.Series(); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint1 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 12); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint2 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 45); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint3 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 44); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint4 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 76); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint5 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 38); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint6 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 81); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint7 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 43); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint8 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 27); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint9 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 28); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint10 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 67); this.chart1 = new System.Windows.Forms.DataVisualization.Charting.Chart(); this.labelSampleComment = new System.Windows.Forms.Label(); this.panel1 = new System.Windows.Forms.Panel(); this.checkBoxSameSize = new System.Windows.Forms.CheckBox(); ((System.ComponentModel.ISupportInitialize)(this.chart1)).BeginInit(); this.panel1.SuspendLayout(); this.SuspendLayout(); // // chart1 // this.chart1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(211)))), ((int)(((byte)(223)))), ((int)(((byte)(240))))); this.chart1.BackGradientStyle = System.Windows.Forms.DataVisualization.Charting.GradientStyle.TopBottom; this.chart1.BackSecondaryColor = System.Drawing.Color.White; this.chart1.BorderlineColor = System.Drawing.Color.FromArgb(((int)(((byte)(26)))), ((int)(((byte)(59)))), ((int)(((byte)(105))))); this.chart1.BorderlineDashStyle = System.Windows.Forms.DataVisualization.Charting.ChartDashStyle.Solid; this.chart1.BorderlineWidth = 2; this.chart1.BorderSkin.SkinStyle = System.Windows.Forms.DataVisualization.Charting.BorderSkinStyle.Emboss; chartArea1.Area3DStyle.Inclination = 15; chartArea1.Area3DStyle.IsClustered = true; chartArea1.Area3DStyle.IsRightAngleAxes = false; chartArea1.Area3DStyle.Perspective = 10; chartArea1.Area3DStyle.Rotation = 10; chartArea1.Area3DStyle.WallWidth = 0; chartArea1.AxisX.IsMarginVisible = false; chartArea1.AxisX.LabelStyle.Font = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold); chartArea1.AxisX.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea1.AxisX.MajorGrid.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea1.AxisY.LabelStyle.Font = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold); chartArea1.AxisY.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea1.AxisY.MajorGrid.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea1.BackColor = System.Drawing.Color.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, 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.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.Points.Add(dataPoint6); series1.Points.Add(dataPoint7); series1.Points.Add(dataPoint8); series1.Points.Add(dataPoint9); series1.Points.Add(dataPoint10); this.chart1.Series.Add(series1); this.chart1.Size = new System.Drawing.Size(576, 148); this.chart1.TabIndex = 0; // // labelSampleComment // this.labelSampleComment.Font = new System.Drawing.Font("Verdana", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.labelSampleComment.Location = new System.Drawing.Point(16, 14); this.labelSampleComment.Name = "labelSampleComment"; this.labelSampleComment.Size = new System.Drawing.Size(702, 36); this.labelSampleComment.TabIndex = 2; this.labelSampleComment.Text = "This sample demonstrates how to use the same font size for all axes labels in a c" + "hart area. By default, the font size for axis labels is calculated on an axis-by" + "-axis basis."; // // panel1 // this.panel1.Controls.Add(this.checkBoxSameSize); this.panel1.Location = new System.Drawing.Point(160, 216); this.panel1.Name = "panel1"; this.panel1.Size = new System.Drawing.Size(348, 40); this.panel1.TabIndex = 1; // // checkBoxSameSize // this.checkBoxSameSize.Location = new System.Drawing.Point(8, 8); this.checkBoxSameSize.Name = "checkBoxSameSize"; this.checkBoxSameSize.Size = new System.Drawing.Size(276, 24); this.checkBoxSameSize.TabIndex = 0; this.checkBoxSameSize.Text = "Same Font &Size for All Axes Labels"; this.checkBoxSameSize.CheckedChanged += new System.EventHandler(this.checkBoxSameSize_CheckedChanged); // // EquallySizedAutoFont // 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 = "EquallySizedAutoFont"; this.Size = new System.Drawing.Size(728, 480); ((System.ComponentModel.ISupportInitialize)(this.chart1)).EndInit(); this.panel1.ResumeLayout(false); this.ResumeLayout(false); }
private void pChart_MouseUp(object sender, MouseEventArgs e) { try { //Export the chart to an image file if (e.Button == System.Windows.Forms.MouseButtons.Right) { conMenu.Show(pChart, e.X, e.Y); return; } m_pActiveView.GraphicsContainer.DeleteAllElements(); //Clear previous selection if (pChart.Series[pChart.Series.Count - 1].Name == "SelPoints") { pChart.Series.RemoveAt(pChart.Series.Count - 1); } HitTestResult result = pChart.HitTest(e.X, e.Y); int dblOriPtsSize = pChart.Series[0].MarkerSize; _canDraw = false; System.Drawing.Color pMarkerColor = System.Drawing.Color.Cyan; var seriesPts = new System.Windows.Forms.DataVisualization.Charting.Series { Name = "SelPoints", Color = pMarkerColor, BorderColor = pMarkerColor, IsVisibleInLegend = false, IsXValueIndexed = false, ChartType = System.Windows.Forms.DataVisualization.Charting.SeriesChartType.Point, MarkerStyle = System.Windows.Forms.DataVisualization.Charting.MarkerStyle.Circle, MarkerSize = dblOriPtsSize * 2 }; pChart.Series.Add(seriesPts); StringBuilder plotCommmand = new StringBuilder(); for (int i = 0; i < pChart.Series[0].Points.Count; i++) { int intX = (int)pChart.ChartAreas[0].AxisX.ValueToPixelPosition(pChart.Series[0].Points[i].XValue); int intY = (int)pChart.ChartAreas[0].AxisY.ValueToPixelPosition(pChart.Series[0].Points[i].YValues[0]); Point SelPts = new Point(intX, intY); if (_rect.Contains(SelPts)) { int index = result.PointIndex; seriesPts.Points.AddXY(pChart.Series[0].Points[i].XValue, pChart.Series[0].Points[i].YValues[0]); plotCommmand.Append(strVar1Name + " = " + adblVar1[i].ToString() + " Or "); } } //Brushing on ArcView if (plotCommmand.Length > 3) { plotCommmand.Remove(plotCommmand.Length - 3, 3); string whereClause = plotCommmand.ToString(); FeatureSelectionOnActiveView(whereClause, m_pActiveView, m_pFLayer); } else { IFeatureSelection featureSelection = (IFeatureSelection)m_pFLayer; m_pActiveView.PartialRefresh(ESRI.ArcGIS.Carto.esriViewDrawPhase.esriViewGeoSelection, null, null); featureSelection.Clear(); //m_pActiveView.PartialRefresh(ESRI.ArcGIS.Carto.esriViewDrawPhase.esriViewGeoSelection, null, null); m_pActiveView.Refresh(); } //Brushing to other graphs //The Function should be locatated after MapView Brushing m_pBL.BrushingToOthers(m_pFLayer, this.Handle); } catch (Exception ex) { frmErrorLog pfrmErrorLog = new frmErrorLog(); pfrmErrorLog.ex = ex; pfrmErrorLog.ShowDialog(); return; } }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { System.Windows.Forms.DataVisualization.Charting.ChartArea chartArea1 = new System.Windows.Forms.DataVisualization.Charting.ChartArea(); System.Windows.Forms.DataVisualization.Charting.Legend legend1 = new System.Windows.Forms.DataVisualization.Charting.Legend(); System.Windows.Forms.DataVisualization.Charting.Series series1 = new System.Windows.Forms.DataVisualization.Charting.Series(); System.Windows.Forms.DataVisualization.Charting.Series series2 = new System.Windows.Forms.DataVisualization.Charting.Series(); this.chart1 = new System.Windows.Forms.DataVisualization.Charting.Chart(); this.labelSampleComment = new System.Windows.Forms.Label(); this.panel1 = new System.Windows.Forms.Panel(); this.comboBoxCenterMarkerStyle = new System.Windows.Forms.ComboBox(); this.label4 = new System.Windows.Forms.Label(); this.comboBoxMarkersStyle = new System.Windows.Forms.ComboBox(); this.label3 = new System.Windows.Forms.Label(); this.comboBoxErrorStyle = new System.Windows.Forms.ComboBox(); this.label2 = new System.Windows.Forms.Label(); this.comboBoxCalculationStyle = 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(((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.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.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.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 = "DataSeries"; 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.ErrorBar; series2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(252)))), ((int)(((byte)(180)))), ((int)(((byte)(65))))); series2.Legend = "Default"; series2.MarkerBorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); series2.MarkerSize = 6; series2.Name = "ErrorBar"; series2.ShadowOffset = 1; series2.YValuesPerPoint = 3; this.chart1.Series.Add(series1); this.chart1.Series.Add(series2); this.chart1.Size = new System.Drawing.Size(412, 296); this.chart1.TabIndex = 1; // // labelSampleComment // this.labelSampleComment.Font = new System.Drawing.Font("Verdana", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.labelSampleComment.Location = new System.Drawing.Point(16, 8); this.labelSampleComment.Name = "labelSampleComment"; this.labelSampleComment.Size = new System.Drawing.Size(702, 40); this.labelSampleComment.TabIndex = 0; this.labelSampleComment.Text = "This sample shows how to use the Error Bar chart to display error bars for data s" + "eries using different error calculation methods. "; this.labelSampleComment.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // panel1 // this.panel1.Controls.Add(this.comboBoxCenterMarkerStyle); this.panel1.Controls.Add(this.label4); this.panel1.Controls.Add(this.comboBoxMarkersStyle); this.panel1.Controls.Add(this.label3); this.panel1.Controls.Add(this.comboBoxErrorStyle); this.panel1.Controls.Add(this.label2); this.panel1.Controls.Add(this.comboBoxCalculationStyle); this.panel1.Controls.Add(this.label1); this.panel1.Location = new System.Drawing.Point(432, 56); this.panel1.Name = "panel1"; this.panel1.Size = new System.Drawing.Size(312, 288); this.panel1.TabIndex = 2; // // comboBoxCenterMarkerStyle // this.comboBoxCenterMarkerStyle.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.comboBoxCenterMarkerStyle.Items.AddRange(new object[] { "None", "Line", "Square", "Circle", "Diamond", "Triangle", "Cross" }); this.comboBoxCenterMarkerStyle.Location = new System.Drawing.Point(168, 104); this.comboBoxCenterMarkerStyle.Name = "comboBoxCenterMarkerStyle"; this.comboBoxCenterMarkerStyle.Size = new System.Drawing.Size(144, 22); this.comboBoxCenterMarkerStyle.TabIndex = 7; this.comboBoxCenterMarkerStyle.SelectedIndexChanged += new System.EventHandler(this.comboBoxCenterMarkerStyle_SelectedIndexChanged); // // label4 // this.label4.Location = new System.Drawing.Point(16, 104); this.label4.Name = "label4"; this.label4.Size = new System.Drawing.Size(144, 23); this.label4.TabIndex = 6; this.label4.Text = "&Center Marker Style:"; this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // comboBoxMarkersStyle // this.comboBoxMarkersStyle.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.comboBoxMarkersStyle.Items.AddRange(new object[] { "None", "Line", "Square", "Circle", "Diamond", "Triangle", "Cross" }); this.comboBoxMarkersStyle.Location = new System.Drawing.Point(168, 72); this.comboBoxMarkersStyle.Name = "comboBoxMarkersStyle"; this.comboBoxMarkersStyle.Size = new System.Drawing.Size(144, 22); this.comboBoxMarkersStyle.TabIndex = 5; this.comboBoxMarkersStyle.SelectedIndexChanged += new System.EventHandler(this.comboBoxMarkersStyle_SelectedIndexChanged); // // label3 // this.label3.Location = new System.Drawing.Point(24, 72); this.label3.Name = "label3"; this.label3.Size = new System.Drawing.Size(136, 23); this.label3.TabIndex = 4; this.label3.Text = "&Markers Style:"; this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // comboBoxErrorStyle // this.comboBoxErrorStyle.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.comboBoxErrorStyle.Items.AddRange(new object[] { "Both", "UpperError", "LowerError" }); this.comboBoxErrorStyle.Location = new System.Drawing.Point(168, 40); this.comboBoxErrorStyle.Name = "comboBoxErrorStyle"; this.comboBoxErrorStyle.Size = new System.Drawing.Size(144, 22); this.comboBoxErrorStyle.TabIndex = 3; this.comboBoxErrorStyle.SelectedIndexChanged += new System.EventHandler(this.comboBoxErrorStyle_SelectedIndexChanged); // // label2 // this.label2.Location = new System.Drawing.Point(32, 40); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(128, 23); this.label2.TabIndex = 2; this.label2.Text = "Error &Style:"; this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // comboBoxCalculationStyle // this.comboBoxCalculationStyle.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.comboBoxCalculationStyle.Items.AddRange(new object[] { "StandardError", "StandardDeviation", "Percentage(15)", "FixedValue(10)" }); this.comboBoxCalculationStyle.Location = new System.Drawing.Point(168, 8); this.comboBoxCalculationStyle.Name = "comboBoxCalculationStyle"; this.comboBoxCalculationStyle.Size = new System.Drawing.Size(144, 22); this.comboBoxCalculationStyle.TabIndex = 1; this.comboBoxCalculationStyle.SelectedIndexChanged += new System.EventHandler(this.comboBoxCalculationStyle_SelectedIndexChanged); // // label1 // this.label1.Location = new System.Drawing.Point(16, 8); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(144, 23); this.label1.TabIndex = 0; this.label1.Text = "&Error Calculation:"; this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // label5 // this.label5.Anchor = ((System.Windows.Forms.AnchorStyles)(((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(28, 352); this.label5.Name = "label5"; this.label5.Size = new System.Drawing.Size(696, 32); this.label5.TabIndex = 22; this.label5.Text = "Error bars are used to display statistical information about the chart data."; this.label5.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // ErrorBarChartType // this.BackColor = System.Drawing.Color.White; this.Controls.Add(this.label5); 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 = "ErrorBarChartType"; this.Size = new System.Drawing.Size(752, 480); this.Load += new System.EventHandler(this.PieChartType_Load); ((System.ComponentModel.ISupportInitialize)(this.chart1)).EndInit(); this.panel1.ResumeLayout(false); this.ResumeLayout(false); }
private void makeChart() { chart.Legends.Clear(); chart.Series.Clear(); chart.ChartAreas.Clear(); System.Windows.Forms.DataVisualization.Charting.ChartArea chartArea = new System.Windows.Forms.DataVisualization.Charting.ChartArea(); System.Windows.Forms.DataVisualization.Charting.Legend legend = new System.Windows.Forms.DataVisualization.Charting.Legend(); System.Windows.Forms.DataVisualization.Charting.Series series = new System.Windows.Forms.DataVisualization.Charting.Series(); ((System.ComponentModel.ISupportInitialize)(chart)).BeginInit(); // // chart // chartArea.Name = "ChartArea"; chart.ChartAreas.Add(chartArea); legend.Name = "Legend"; chart.Legends.Add(legend); //chart.Location = new System.Drawing.Point(12, 12); chart.Name = "chart"; series.ChartArea = "ChartArea"; series.Legend = "Legend"; series.Name = "Average"; chart.Series.Add(series); //chart.Size = new System.Drawing.Size(474, 300); chart.Series["Average"].Points.Clear(); chart.Series["Average"].IsValueShownAsLabel = true; chart.TabIndex = 0; chart.Text = "chart"; Chart.Child = chart; string intervalType = dateTypeSwitch_btn.Content.Equals("일별") ? "DATE_FORMAT(data_date, '%Y-%m-%d')" : (dateTypeSwitch_btn.Content.Equals("주별") ? "DATE_FORMAT(data_date,'%Y-%U')" : "MONTH(data_date)"); string str = makeSQL("phone_num,count(distinct " + intervalType + ") as c,", ",phone_num"); string sql = "select (data/c) as data, time from (SELECT SUM(data) as data,SUM(c) as c, time FROM (" + str + ") as tt GROUP BY time ORDER BY time) as t GROUP BY time ORDER BY time"; // string sql = "SELECT avg(data) as data, time FROM (SELECT name, sum(use_time/60) AS data, hour AS time FROM user_data_usage WHERE phone_num = '01012345678' AND '2020-08-25'<= data_date AND data_date <='2020-08-27' GROUP BY time ,name ORDER BY time) as tt GROUP BY time ORDER BY time"; string result = request(url, sql); //string str = makeSQL("", ""); //string result = request(url, str); JObject jsonObj = JObject.Parse(result); JArray jsonArray = JArray.Parse(jsonObj.GetValue("data").ToString()); series.ChartType = SeriesChartType.SplineArea; String tmp = ""; foreach (JObject item in jsonArray) { //string usage = (tmp == "") ? item.GetValue("data").ToString() : Convert.ToString(Convert.ToDouble(item.GetValue("data").ToString()) - Convert.ToDouble(tmp)); //chart.Series["Average"].Points.AddXY(item.GetValue("time").ToString(), usage); //tmp = item.GetValue("data").ToString(); //chart.Series["Average"].Points.AddXY(item.GetValue("time").ToString(), usage); chart.Series["Average"].Points.AddXY(item.GetValue("time").ToString(), String.Format("{0:0.0}", Convert.ToDouble(item.GetValue("data").ToString()))); } }
private void pChart_MouseUp(object sender, MouseEventArgs e) { try { //Export the chart to an image file if (e.Button == System.Windows.Forms.MouseButtons.Right) { //conMenu.Show(pChart, e.X, e.Y); return; } HitTestResult result = pChart.HitTest(e.X, e.Y); //Remove Previous Selection if (pChart.Series.Count == 2) { pChart.Series.RemoveAt(1); pChart.Series.RemoveAt(0); var series1 = new System.Windows.Forms.DataVisualization.Charting.Series { Name = "Series1", Color = System.Drawing.Color.White, BorderColor = System.Drawing.Color.Black, IsVisibleInLegend = false, IsXValueIndexed = true, ChartType = SeriesChartType.Column, }; pChart.Series.Add(series1); int intNBins = vecMids.Length; for (int j = 0; j < intNBins; j++) { series1.Points.AddXY(vecMids[j], vecCounts[j]); } pChart.Series[0]["PointWidth"] = "1"; } if (result.ChartElementType == ChartElementType.DataPoint) { //Brushing on histogram int index = result.PointIndex; for (int i = 0; i < pChart.Series[0].Points.Count; i++) { if (i == index) { pChart.Series[0].Points[i].Color = System.Drawing.Color.Cyan; } else { pChart.Series[0].Points[i].Color = System.Drawing.Color.White; } } int intSelectedValue = Convert.ToInt32(dblBreaks[index]); //var SelectedFIDs = DefSWM.NeighborCounts.Select(x => x == intSelectedValue); int[] SelectedFIDs = DefSWM.NeighborCounts.Select((b, i) => b == intSelectedValue ? i : -1).Where(i => i != -1).ToArray(); StringBuilder whereClause = new StringBuilder(); for (int i = 0; i < SelectedFIDs.Length; i++) { whereClause.Append("(" + m_strFieldName + " = " + DefSWM.FIDs[SelectedFIDs[i]].ToString() + ") Or "); } //Brushing on ArcView if (whereClause.Length > 3) { whereClause.Remove(whereClause.Length - 3, 3); m_pBL.FeatureSelectionOnActiveView(whereClause.ToString(), pActiveView, pFLayer); } } else { //Clear Selection Both Histogram and ActiveView for (int i = 0; i < pChart.Series[0].Points.Count; i++) { pChart.Series[0].Points[i].Color = System.Drawing.Color.White; } IFeatureSelection featureSelection = (IFeatureSelection)pFLayer; pActiveView.PartialRefresh(ESRI.ArcGIS.Carto.esriViewDrawPhase.esriViewGeoSelection, null, null); featureSelection.Clear(); pActiveView.PartialRefresh(ESRI.ArcGIS.Carto.esriViewDrawPhase.esriViewGeoSelection, null, null); } //Brushing to ActiveView //FeatureSelectionOnActiveView(whereClause, pActiveView, pFLayer); //Brushing to other graphs // m_pBL.BrushingToOthers(pFLayer, this.Handle); } catch (Exception ex) { frmErrorLog pfrmErrorLog = new frmErrorLog(); pfrmErrorLog.ex = ex; pfrmErrorLog.ShowDialog(); return; } }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { System.Windows.Forms.DataVisualization.Charting.ChartArea chartArea1 = new System.Windows.Forms.DataVisualization.Charting.ChartArea(); System.Windows.Forms.DataVisualization.Charting.AxisScaleBreakStyle axisScaleBreakStyle1 = new System.Windows.Forms.DataVisualization.Charting.AxisScaleBreakStyle(); System.Windows.Forms.DataVisualization.Charting.AxisScaleBreakStyle axisScaleBreakStyle2 = new System.Windows.Forms.DataVisualization.Charting.AxisScaleBreakStyle(); System.Windows.Forms.DataVisualization.Charting.AxisScaleBreakStyle axisScaleBreakStyle3 = new System.Windows.Forms.DataVisualization.Charting.AxisScaleBreakStyle(); System.Windows.Forms.DataVisualization.Charting.AxisScaleBreakStyle axisScaleBreakStyle4 = new System.Windows.Forms.DataVisualization.Charting.AxisScaleBreakStyle(); System.Windows.Forms.DataVisualization.Charting.Legend legend1 = new System.Windows.Forms.DataVisualization.Charting.Legend(); System.Windows.Forms.DataVisualization.Charting.Series series1 = new System.Windows.Forms.DataVisualization.Charting.Series(); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint1 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 300); 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, 700); 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, 100); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint7 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 340); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint8 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 420); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint9 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 770); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint10 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 790); 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, 75); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint12 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 300); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint13 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 400); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint14 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 550); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint15 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 630); System.Windows.Forms.DataVisualization.Charting.Series series4 = new System.Windows.Forms.DataVisualization.Charting.Series(); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint16 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 120); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint17 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 360); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint18 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 410); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint19 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 520); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint20 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 560); this.TheStyle = new System.Windows.Forms.ComboBox(); this.TheAlignment = new System.Windows.Forms.ComboBox(); this.TheDocking = 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.cb_Reversed = new System.Windows.Forms.CheckBox(); this.label1 = new System.Windows.Forms.Label(); this.TheTableStyle = new System.Windows.Forms.ComboBox(); this.DisableCheck = new System.Windows.Forms.CheckBox(); this.InsideCheck = 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(); // // TheStyle // this.TheStyle.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.TheStyle.Location = new System.Drawing.Point(168, 8); this.TheStyle.Name = "TheStyle"; this.TheStyle.TabIndex = 1; this.TheStyle.SelectedIndexChanged += new System.EventHandler(this.ControlChange); // // TheAlignment // this.TheAlignment.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.TheAlignment.Location = new System.Drawing.Point(168, 104); this.TheAlignment.Name = "TheAlignment"; this.TheAlignment.TabIndex = 5; this.TheAlignment.SelectedIndexChanged += new System.EventHandler(this.ControlChange); // // TheDocking // this.TheDocking.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.TheDocking.Location = new System.Drawing.Point(168, 72); this.TheDocking.Name = "TheDocking"; this.TheDocking.TabIndex = 3; this.TheDocking.SelectedIndexChanged += new System.EventHandler(this.ControlChange); // // label5 // this.label5.Location = new System.Drawing.Point(15, 11); this.label5.Name = "label5"; this.label5.Size = new System.Drawing.Size(148, 16); this.label5.TabIndex = 0; this.label5.Text = "&Style:"; this.label5.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // label7 // this.label7.Location = new System.Drawing.Point(15, 108); this.label7.Name = "label7"; this.label7.Size = new System.Drawing.Size(148, 16); this.label7.TabIndex = 4; this.label7.Text = "&Alignment:"; this.label7.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // label8 // this.label8.Location = new System.Drawing.Point(15, 75); this.label8.Name = "label8"; this.label8.Size = new System.Drawing.Size(148, 16); this.label8.TabIndex = 2; this.label8.Text = "&Docking:"; this.label8.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // label9 // this.label9.Font = new System.Drawing.Font("Verdana", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0))); this.label9.Location = new System.Drawing.Point(16, 8); this.label9.Name = "label9"; this.label9.Size = new System.Drawing.Size(704, 34); this.label9.TabIndex = 0; this.label9.Text = "This sample demonstrates how to set legend style and position within the chart."; this.label9.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // panel1 // this.panel1.Controls.AddRange(new System.Windows.Forms.Control[] { this.cb_Reversed, this.label1, this.TheTableStyle, this.DisableCheck, this.InsideCheck, this.label5, this.TheStyle, this.label7, this.label8, this.TheDocking, this.TheAlignment }); this.panel1.Location = new System.Drawing.Point(432, 56); this.panel1.Name = "panel1"; this.panel1.Size = new System.Drawing.Size(292, 288); this.panel1.TabIndex = 2; // // cb_Reversed // this.cb_Reversed.CheckAlign = System.Drawing.ContentAlignment.MiddleRight; this.cb_Reversed.Location = new System.Drawing.Point(13, 197); this.cb_Reversed.Name = "cb_Reversed"; this.cb_Reversed.Size = new System.Drawing.Size(168, 24); this.cb_Reversed.TabIndex = 11; this.cb_Reversed.Text = "&Reversed:"; this.cb_Reversed.TextAlign = System.Drawing.ContentAlignment.MiddleRight; this.cb_Reversed.CheckedChanged += new System.EventHandler(this.cb_Reversed_CheckedChanged); // // label1 // this.label1.Location = new System.Drawing.Point(16, 44); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(148, 16); this.label1.TabIndex = 9; this.label1.Text = "&Table Style:"; this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // TheTableStyle // this.TheTableStyle.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.TheTableStyle.Enabled = false; this.TheTableStyle.Items.AddRange(new object[] { "Auto", "Wide", "Tall" }); this.TheTableStyle.Location = new System.Drawing.Point(168, 40); this.TheTableStyle.Name = "TheTableStyle"; this.TheTableStyle.TabIndex = 2; this.TheTableStyle.SelectedIndexChanged += new System.EventHandler(this.ControlChange); // // DisableCheck // this.DisableCheck.CheckAlign = System.Drawing.ContentAlignment.MiddleRight; this.DisableCheck.Location = new System.Drawing.Point(13, 167); this.DisableCheck.Name = "DisableCheck"; this.DisableCheck.Size = new System.Drawing.Size(168, 24); this.DisableCheck.TabIndex = 8; this.DisableCheck.Text = "&Disable Legend:"; this.DisableCheck.TextAlign = System.Drawing.ContentAlignment.MiddleRight; this.DisableCheck.CheckedChanged += new System.EventHandler(this.DisableCheck_CheckedChanged); // // InsideCheck // this.InsideCheck.CheckAlign = System.Drawing.ContentAlignment.MiddleRight; this.InsideCheck.Location = new System.Drawing.Point(13, 136); this.InsideCheck.Name = "InsideCheck"; this.InsideCheck.Size = new System.Drawing.Size(168, 24); this.InsideCheck.TabIndex = 6; this.InsideCheck.Text = "&Inside Chart Area:"; this.InsideCheck.TextAlign = System.Drawing.ContentAlignment.MiddleRight; this.InsideCheck.CheckedChanged += new System.EventHandler(this.ControlChange); // // Chart1 // this.Chart1.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(243)), ((System.Byte)(223)), ((System.Byte)(193))); this.Chart1.BackGradientStyle = System.Windows.Forms.DataVisualization.Charting.GradientStyle.TopBottom; this.Chart1.BorderlineColor = System.Drawing.Color.FromArgb(((System.Byte)(181)), ((System.Byte)(64)), ((System.Byte)(1))); this.Chart1.BorderlineDashStyle = System.Windows.Forms.DataVisualization.Charting.ChartDashStyle.Solid; this.Chart1.BorderlineWidth = 2; this.Chart1.BorderSkin.SkinStyle = System.Windows.Forms.DataVisualization.Charting.BorderSkinStyle.Emboss; chartArea1.Area3DStyle.IsClustered = true; chartArea1.Area3DStyle.Perspective = 10; chartArea1.Area3DStyle.IsRightAngleAxes = false; chartArea1.Area3DStyle.WallWidth = 0; chartArea1.Area3DStyle.Inclination = 15; chartArea1.Area3DStyle.Rotation = 10; chartArea1.AxisX.IsLabelAutoFit = false; chartArea1.AxisX.LabelStyle.Font = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold); chartArea1.AxisX.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))); axisScaleBreakStyle1.Enabled = false; chartArea1.AxisX.ScaleBreakStyle = axisScaleBreakStyle1; chartArea1.AxisX.TitleFont = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0))); chartArea1.AxisX2.MajorGrid.Enabled = false; axisScaleBreakStyle2.Enabled = false; chartArea1.AxisX2.ScaleBreakStyle = axisScaleBreakStyle2; chartArea1.AxisY.IsLabelAutoFit = false; chartArea1.AxisY.LabelStyle.Font = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold); chartArea1.AxisY.LineColor = System.Drawing.Color.FromArgb(((System.Byte)(64)), ((System.Byte)(64)), ((System.Byte)(64)), ((System.Byte)(64))); chartArea1.AxisY.MajorGrid.LineColor = System.Drawing.Color.FromArgb(((System.Byte)(64)), ((System.Byte)(64)), ((System.Byte)(64)), ((System.Byte)(64))); axisScaleBreakStyle3.Enabled = false; chartArea1.AxisY.ScaleBreakStyle = axisScaleBreakStyle3; chartArea1.AxisY2.MajorGrid.Enabled = false; axisScaleBreakStyle4.Enabled = false; chartArea1.AxisY2.ScaleBreakStyle = axisScaleBreakStyle4; chartArea1.BackColor = System.Drawing.Color.OldLace; chartArea1.BackSecondaryColor = System.Drawing.Color.White; chartArea1.BackGradientStyle = System.Windows.Forms.DataVisualization.Charting.GradientStyle.TopBottom; chartArea1.BorderColor = System.Drawing.Color.FromArgb(((System.Byte)(64)), ((System.Byte)(64)), ((System.Byte)(64)), ((System.Byte)(64))); chartArea1.Name = "Default"; chartArea1.ShadowColor = System.Drawing.Color.Transparent; this.Chart1.ChartAreas.Add(chartArea1); legend1.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.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, 48); this.Chart1.Name = "Chart1"; this.Chart1.Palette = System.Windows.Forms.DataVisualization.Charting.ChartColorPalette.BrightPastel; series1.BorderColor = System.Drawing.Color.FromArgb(((System.Byte)(180)), ((System.Byte)(26)), ((System.Byte)(59)), ((System.Byte)(105))); series1.LegendText = "Projected"; series1.Name = "Series 1"; dataPoint1.Label = ""; dataPoint2.Label = ""; dataPoint3.Label = ""; dataPoint4.Label = ""; dataPoint5.Label = ""; 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(((System.Byte)(180)), ((System.Byte)(26)), ((System.Byte)(59)), ((System.Byte)(105))); series2.LegendText = "Actual"; series2.Name = "Series 2"; 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(((System.Byte)(180)), ((System.Byte)(26)), ((System.Byte)(59)), ((System.Byte)(105))); series3.BorderWidth = 2; series3.ChartType = SeriesChartType.Line; series3.LegendText = "Historical"; series3.MarkerStyle = System.Windows.Forms.DataVisualization.Charting.MarkerStyle.Circle; series3.Name = "Series 3"; series3.Points.Add(dataPoint11); series3.Points.Add(dataPoint12); series3.Points.Add(dataPoint13); series3.Points.Add(dataPoint14); series3.Points.Add(dataPoint15); series3.ShadowOffset = 1; series4.BorderColor = System.Drawing.Color.FromArgb(((System.Byte)(180)), ((System.Byte)(26)), ((System.Byte)(59)), ((System.Byte)(105))); series4.BorderWidth = 2; series4.ChartType = SeriesChartType.Line; series4.LegendText = "Target"; series4.MarkerStyle = System.Windows.Forms.DataVisualization.Charting.MarkerStyle.Circle; series4.Name = "Series 4"; series4.Points.Add(dataPoint16); series4.Points.Add(dataPoint17); series4.Points.Add(dataPoint18); series4.Points.Add(dataPoint19); series4.Points.Add(dataPoint20); series4.ShadowOffset = 1; this.Chart1.Series.Add(series1); this.Chart1.Series.Add(series2); this.Chart1.Series.Add(series3); this.Chart1.Series.Add(series4); this.Chart1.Size = new System.Drawing.Size(412, 296); this.Chart1.TabIndex = 1; // // LegendStylePosition // this.Controls.AddRange(new System.Windows.Forms.Control[] { this.Chart1, this.panel1, this.label9 }); this.Font = new System.Drawing.Font("Verdana", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0))); this.Name = "LegendStylePosition"; 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.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, 88); System.Windows.Forms.DataVisualization.Charting.Series series2 = new System.Windows.Forms.DataVisualization.Charting.Series(); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint5 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(1, 65); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint6 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(2, 70); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint7 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(3, 60); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint8 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(4, 75); System.Windows.Forms.DataVisualization.Charting.Series series3 = new System.Windows.Forms.DataVisualization.Charting.Series(); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint9 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(1, 50); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint10 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(2, 55); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint11 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(3, 40); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint12 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(4, 70); System.Windows.Forms.DataVisualization.Charting.Title title1 = new System.Windows.Forms.DataVisualization.Charting.Title(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(CustomDrawnTitles)); 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.PointGapDepth = 0; chartArea1.Area3DStyle.Rotation = 5; chartArea1.Area3DStyle.WallWidth = 0; chartArea1.AxisX.Interval = 1; chartArea1.AxisX.IsLabelAutoFit = false; chartArea1.AxisX.LabelStyle.Font = new System.Drawing.Font("Trebuchet MS", 8.25F); chartArea1.AxisX.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea1.AxisX.MajorGrid.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea1.AxisY.IsLabelAutoFit = false; chartArea1.AxisY.LabelStyle.Font = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold); chartArea1.AxisY.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea1.AxisY.MajorGrid.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea1.BackColor = System.Drawing.Color.OldLace; chartArea1.BackGradientStyle = System.Windows.Forms.DataVisualization.Charting.GradientStyle.TopBottom; chartArea1.BackSecondaryColor = System.Drawing.Color.White; chartArea1.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea1.Name = "Default"; chartArea1.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 = "Default"; series1.Name = "Series1"; series1.Points.Add(dataPoint1); series1.Points.Add(dataPoint2); series1.Points.Add(dataPoint3); series1.Points.Add(dataPoint4); series1.ShadowColor = System.Drawing.Color.Transparent; series1.XValueType = System.Windows.Forms.DataVisualization.Charting.ChartValueType.Double; series1.YValueType = System.Windows.Forms.DataVisualization.Charting.ChartValueType.Double; series2.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(180)))), ((int)(((byte)(26)))), ((int)(((byte)(59)))), ((int)(((byte)(105))))); series2.ChartArea = "Default"; series2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(252)))), ((int)(((byte)(180)))), ((int)(((byte)(65))))); series2.CustomProperties = "DrawingStyle=Cylinder"; series2.Legend = "Default"; series2.Name = "Series2"; series2.Points.Add(dataPoint5); series2.Points.Add(dataPoint6); series2.Points.Add(dataPoint7); series2.Points.Add(dataPoint8); series3.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(180)))), ((int)(((byte)(26)))), ((int)(((byte)(59)))), ((int)(((byte)(105))))); series3.ChartArea = "Default"; series3.Color = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(64)))), ((int)(((byte)(10))))); series3.CustomProperties = "DrawingStyle=Cylinder"; series3.Legend = "Default"; series3.Name = "Series3"; series3.Points.Add(dataPoint9); series3.Points.Add(dataPoint10); series3.Points.Add(dataPoint11); series3.Points.Add(dataPoint12); this.Chart1.Series.Add(series1); this.Chart1.Series.Add(series2); this.Chart1.Series.Add(series3); this.Chart1.Size = new System.Drawing.Size(412, 296); this.Chart1.TabIndex = 0; title1.Alignment = System.Drawing.ContentAlignment.TopLeft; title1.Font = new System.Drawing.Font("Trebuchet MS", 14.25F, System.Drawing.FontStyle.Bold); title1.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(26)))), ((int)(((byte)(59)))), ((int)(((byte)(105))))); title1.Name = "Title1"; title1.Position.Auto = false; title1.Position.Height = 8.738057F; title1.Position.Width = 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 = "Draw an Image"; 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); this.labelSampleComment.Location = new System.Drawing.Point(16, 8); this.labelSampleComment.Name = "labelSampleComment"; this.labelSampleComment.Size = new System.Drawing.Size(702, 34); this.labelSampleComment.TabIndex = 2; this.labelSampleComment.Text = "This sample demonstrates how to draw an image on the chart."; this.labelSampleComment.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // panel1 // this.panel1.Location = new System.Drawing.Point(432, 56); this.panel1.Name = "panel1"; this.panel1.Size = new System.Drawing.Size(292, 288); this.panel1.TabIndex = 1; // // label1 // this.label1.Font = new System.Drawing.Font("Verdana", 11F); this.label1.Location = new System.Drawing.Point(16, 360); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(702, 56); this.label1.TabIndex = 3; this.label1.Text = resources.GetString("label1.Text"); this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // CustomDrawnTitles // 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); this.Name = "CustomDrawnTitles"; this.Size = new System.Drawing.Size(728, 448); ((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() { this.components = new System.ComponentModel.Container(); System.Windows.Forms.DataVisualization.Charting.ChartArea chartArea1 = new System.Windows.Forms.DataVisualization.Charting.ChartArea(); System.Windows.Forms.DataVisualization.Charting.Legend legend1 = new System.Windows.Forms.DataVisualization.Charting.Legend(); System.Windows.Forms.DataVisualization.Charting.Series series1 = new System.Windows.Forms.DataVisualization.Charting.Series(); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint1 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, "5,0"); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint2 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, "8.10000038146973,0"); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint3 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, "9,0"); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint4 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, "7,0"); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint5 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, "5,0"); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint6 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, "5.5,0"); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint7 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, "7.80000019073486,0"); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint8 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, "7,0"); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint9 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, "8.5,0"); 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, 5); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint11 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 4); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint12 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 5); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint13 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 3.5); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint14 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 4); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint15 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 5.5); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint16 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 6); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint17 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 3); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint18 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 2); this._chart1 = new System.Windows.Forms.DataVisualization.Charting.Chart(); this._labelSampleComment = new System.Windows.Forms.Label(); this._panel1 = new System.Windows.Forms.Panel(); this._lightingType = new System.Windows.Forms.ComboBox(); this._label3 = new System.Windows.Forms.Label(); this._showMarkerLines = new System.Windows.Forms.CheckBox(); this._comboBoxTension = new System.Windows.Forms.ComboBox(); this._label1 = new System.Windows.Forms.Label(); this._checkBoxShowMargin = new System.Windows.Forms.CheckBox(); this._radioButtonSplineArea = new System.Windows.Forms.RadioButton(); this._radioButtonArea = new System.Windows.Forms.RadioButton(); this._timer1 = new System.Windows.Forms.Timer(this.components); ((System.ComponentModel.ISupportInitialize)(this._chart1)).BeginInit(); this._panel1.SuspendLayout(); this.SuspendLayout(); // // chart1 // this._chart1.BackColor = System.Drawing.Color.WhiteSmoke; this._chart1.BackGradientStyle = System.Windows.Forms.DataVisualization.Charting.GradientStyle.TopBottom; this._chart1.BackSecondaryColor = System.Drawing.Color.White; this._chart1.BorderlineColor = System.Drawing.Color.FromArgb(((int)(((byte)(26)))), ((int)(((byte)(59)))), ((int)(((byte)(105))))); this._chart1.BorderlineDashStyle = System.Windows.Forms.DataVisualization.Charting.ChartDashStyle.Solid; this._chart1.BorderlineWidth = 2; this._chart1.BorderSkin.SkinStyle = System.Windows.Forms.DataVisualization.Charting.BorderSkinStyle.Emboss; chartArea1.Area3DStyle.Enable3D = true; chartArea1.Area3DStyle.Inclination = 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.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, 57); 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.Area; series1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(220)))), ((int)(((byte)(65)))), ((int)(((byte)(140)))), ((int)(((byte)(240))))); series1.CustomProperties = "ShowMarkerLines=true"; series1.Legend = "Default"; series1.Name = "Series1"; series1.Points.Add(dataPoint1); series1.Points.Add(dataPoint2); series1.Points.Add(dataPoint3); series1.Points.Add(dataPoint4); series1.Points.Add(dataPoint5); series1.Points.Add(dataPoint6); series1.Points.Add(dataPoint7); series1.Points.Add(dataPoint8); series1.Points.Add(dataPoint9); 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.Area; series2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(220)))), ((int)(((byte)(252)))), ((int)(((byte)(180)))), ((int)(((byte)(65))))); series2.CustomProperties = "ShowMarkerLines=true"; 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); this._chart1.Series.Add(series1); this._chart1.Series.Add(series2); this._chart1.Size = new System.Drawing.Size(412, 296); this._chart1.TabIndex = 1; // // labelSampleComment // this._labelSampleComment.Font = new System.Drawing.Font("Verdana", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this._labelSampleComment.Location = new System.Drawing.Point(16, 8); this._labelSampleComment.Name = "_labelSampleComment"; this._labelSampleComment.Size = new System.Drawing.Size(702, 45); this._labelSampleComment.TabIndex = 0; this._labelSampleComment.Text = "This sample demonstrates 3D Area and Spline Area charts. The X axis margin and da" + "ta point marker lines can be toggled on and off, and the lighting can also be mo" + "dified."; this._labelSampleComment.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; this._labelSampleComment.Click += new System.EventHandler(this.labelSampleComment_Click); // // panel1 // this._panel1.Controls.Add(this._lightingType); this._panel1.Controls.Add(this._label3); this._panel1.Controls.Add(this._showMarkerLines); this._panel1.Controls.Add(this._comboBoxTension); this._panel1.Controls.Add(this._label1); this._panel1.Controls.Add(this._checkBoxShowMargin); this._panel1.Controls.Add(this._radioButtonSplineArea); this._panel1.Controls.Add(this._radioButtonArea); this._panel1.Location = new System.Drawing.Point(432, 57); this._panel1.Name = "_panel1"; this._panel1.Size = new System.Drawing.Size(292, 288); this._panel1.TabIndex = 2; // // LightingType // this._lightingType.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this._lightingType.Items.AddRange(new object[] { "None", "Simplistic", "Realistic" }); this._lightingType.Location = new System.Drawing.Point(168, 112); this._lightingType.Name = "_lightingType"; this._lightingType.Size = new System.Drawing.Size(80, 22); this._lightingType.TabIndex = 5; this._lightingType.SelectedIndexChanged += new System.EventHandler(this.LightingType_SelectedIndexChanged); // // label3 // this._label3.Location = new System.Drawing.Point(61, 112); this._label3.Name = "_label3"; this._label3.Size = new System.Drawing.Size(104, 23); this._label3.TabIndex = 4; this._label3.Text = "&Lighting:"; this._label3.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // ShowMarkerLines // this._showMarkerLines.CheckAlign = System.Drawing.ContentAlignment.MiddleRight; this._showMarkerLines.Location = new System.Drawing.Point(14, 176); this._showMarkerLines.Name = "_showMarkerLines"; this._showMarkerLines.Size = new System.Drawing.Size(168, 24); this._showMarkerLines.TabIndex = 7; this._showMarkerLines.Text = "Show Marker &Lines:"; this._showMarkerLines.TextAlign = System.Drawing.ContentAlignment.MiddleRight; this._showMarkerLines.CheckedChanged += new System.EventHandler(this.ShowMarkerLines_CheckedChanged); // // comboBoxTension // this._comboBoxTension.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this._comboBoxTension.Items.AddRange(new object[] { "1.2", "0.8", "0.4", "0.2" }); this._comboBoxTension.Location = new System.Drawing.Point(168, 80); this._comboBoxTension.Name = "_comboBoxTension"; this._comboBoxTension.Size = new System.Drawing.Size(80, 22); this._comboBoxTension.TabIndex = 3; this._comboBoxTension.SelectedIndexChanged += new System.EventHandler(this.comboBoxTension_SelectedIndexChanged); // // label1 // this._label1.Location = new System.Drawing.Point(29, 80); this._label1.Name = "_label1"; this._label1.Size = new System.Drawing.Size(136, 23); this._label1.TabIndex = 2; this._label1.Text = "Spline &Tension:"; this._label1.TextAlign = System.Drawing.ContentAlignment.MiddleRight; this._label1.Click += new System.EventHandler(this.label1_Click); // // checkBoxShowMargin // this._checkBoxShowMargin.CheckAlign = System.Drawing.ContentAlignment.MiddleRight; this._checkBoxShowMargin.Location = new System.Drawing.Point(-2, 144); this._checkBoxShowMargin.Name = "_checkBoxShowMargin"; this._checkBoxShowMargin.Size = new System.Drawing.Size(184, 24); this._checkBoxShowMargin.TabIndex = 6; this._checkBoxShowMargin.Text = "Show X Axis &Margin:"; this._checkBoxShowMargin.TextAlign = System.Drawing.ContentAlignment.MiddleRight; this._checkBoxShowMargin.CheckedChanged += new System.EventHandler(this.checkBoxShowMargin_CheckedChanged); // // radioButtonSplineArea // this._radioButtonSplineArea.CheckAlign = System.Drawing.ContentAlignment.MiddleRight; this._radioButtonSplineArea.Location = new System.Drawing.Point(36, 45); this._radioButtonSplineArea.Name = "_radioButtonSplineArea"; this._radioButtonSplineArea.Size = new System.Drawing.Size(144, 24); this._radioButtonSplineArea.TabIndex = 1; this._radioButtonSplineArea.Text = "&Spline Area:"; this._radioButtonSplineArea.TextAlign = System.Drawing.ContentAlignment.MiddleRight; this._radioButtonSplineArea.CheckedChanged += new System.EventHandler(this.radioButtonSplineArea_CheckedChanged); // // radioButtonArea // this._radioButtonArea.CheckAlign = System.Drawing.ContentAlignment.MiddleRight; this._radioButtonArea.Checked = true; this._radioButtonArea.Location = new System.Drawing.Point(36, 16); this._radioButtonArea.Name = "_radioButtonArea"; this._radioButtonArea.Size = new System.Drawing.Size(144, 24); this._radioButtonArea.TabIndex = 0; this._radioButtonArea.TabStop = true; this._radioButtonArea.Text = "&Area:"; this._radioButtonArea.TextAlign = System.Drawing.ContentAlignment.MiddleRight; this._radioButtonArea.CheckedChanged += new System.EventHandler(this.radioButtonArea_CheckedChanged); // // timer1 // this._timer1.Enabled = true; this._timer1.Tick += new System.EventHandler(this.timer1_Tick); // // AreaChart3D // 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 = "AreaChart3D"; this.Size = new System.Drawing.Size(728, 480); this.Load += new System.EventHandler(this.AreaChart3D_Load); ((System.ComponentModel.ISupportInitialize)(this._chart1)).EndInit(); this._panel1.ResumeLayout(false); this.ResumeLayout(false); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { System.Windows.Forms.DataVisualization.Charting.ChartArea chartArea1 = new System.Windows.Forms.DataVisualization.Charting.ChartArea(); System.Windows.Forms.DataVisualization.Charting.Legend legend1 = new System.Windows.Forms.DataVisualization.Charting.Legend(); System.Windows.Forms.DataVisualization.Charting.LegendItem legendItem1 = new System.Windows.Forms.DataVisualization.Charting.LegendItem(); System.Windows.Forms.DataVisualization.Charting.LegendItem legendItem2 = new System.Windows.Forms.DataVisualization.Charting.LegendItem(); System.Windows.Forms.DataVisualization.Charting.Series series1 = new System.Windows.Forms.DataVisualization.Charting.Series(); System.Windows.Forms.DataVisualization.Charting.Series series2 = new System.Windows.Forms.DataVisualization.Charting.Series(); System.Windows.Forms.DataVisualization.Charting.Title title1 = new System.Windows.Forms.DataVisualization.Charting.Title(); this._chart1 = new System.Windows.Forms.DataVisualization.Charting.Chart(); this._labelSampleComment = new System.Windows.Forms.Label(); this._panel1 = new System.Windows.Forms.Panel(); this._rotation = new System.Windows.Forms.NumericUpDown(); this._inclination = new System.Windows.Forms.NumericUpDown(); this._label2 = new System.Windows.Forms.Label(); this._label1 = new System.Windows.Forms.Label(); ((System.ComponentModel.ISupportInitialize)(this._chart1)).BeginInit(); this._panel1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this._rotation)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this._inclination)).BeginInit(); this.SuspendLayout(); // // chart1 // this._chart1.BackColor = System.Drawing.Color.WhiteSmoke; this._chart1.BackGradientStyle = System.Windows.Forms.DataVisualization.Charting.GradientStyle.TopBottom; this._chart1.BackSecondaryColor = System.Drawing.Color.White; this._chart1.BorderlineColor = System.Drawing.Color.FromArgb(((int)(((byte)(26)))), ((int)(((byte)(59)))), ((int)(((byte)(105))))); this._chart1.BorderlineDashStyle = System.Windows.Forms.DataVisualization.Charting.ChartDashStyle.Solid; this._chart1.BorderlineWidth = 2; this._chart1.BorderSkin.SkinStyle = System.Windows.Forms.DataVisualization.Charting.BorderSkinStyle.Emboss; chartArea1.Area3DStyle.Enable3D = true; chartArea1.Area3DStyle.Inclination = 15; chartArea1.Area3DStyle.IsRightAngleAxes = false; chartArea1.Area3DStyle.PointDepth = 200; chartArea1.Area3DStyle.Rotation = 10; chartArea1.Area3DStyle.WallWidth = 0; chartArea1.AxisX.LabelStyle.Font = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold); chartArea1.AxisX.LabelStyle.IsEndLabelVisible = false; chartArea1.AxisX.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea1.AxisX.MajorGrid.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea1.AxisY.IsLabelAutoFit = false; chartArea1.AxisY.LabelStyle.Font = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold); chartArea1.AxisY.LabelStyle.Format = "dd MMM"; chartArea1.AxisY.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea1.AxisY.MajorGrid.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea1.BackColor = System.Drawing.Color.WhiteSmoke; chartArea1.BackSecondaryColor = System.Drawing.Color.White; chartArea1.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea1.BorderDashStyle = System.Windows.Forms.DataVisualization.Charting.ChartDashStyle.Solid; chartArea1.Name = "Default"; chartArea1.ShadowColor = System.Drawing.Color.Transparent; this._chart1.ChartAreas.Add(chartArea1); legend1.Alignment = System.Drawing.StringAlignment.Center; legend1.BackColor = System.Drawing.Color.Transparent; legendItem1.Color = System.Drawing.Color.Red; legendItem1.Name = "Completed"; legendItem2.Color = System.Drawing.Color.Gray; legendItem2.Name = "Late"; legend1.CustomItems.Add(legendItem1); legend1.CustomItems.Add(legendItem2); legend1.Docking = System.Windows.Forms.DataVisualization.Charting.Docking.Bottom; legend1.Font = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold); legend1.IsTextAutoFit = false; legend1.LegendStyle = System.Windows.Forms.DataVisualization.Charting.LegendStyle.Row; legend1.Name = "Default"; this._chart1.Legends.Add(legend1); this._chart1.Location = new System.Drawing.Point(16, 45); this._chart1.Name = "_chart1"; series1.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(180)))), ((int)(((byte)(26)))), ((int)(((byte)(59)))), ((int)(((byte)(105))))); series1.ChartArea = "Default"; series1.ChartType = System.Windows.Forms.DataVisualization.Charting.SeriesChartType.RangeBar; series1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(220)))), ((int)(((byte)(65)))), ((int)(((byte)(140)))), ((int)(((byte)(240))))); series1.CustomProperties = "DrawSideBySide=True"; series1.Legend = "Default"; series1.Name = "Estimated"; series1.YValuesPerPoint = 2; series1.YValueType = System.Windows.Forms.DataVisualization.Charting.ChartValueType.DateTime; series2.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(180)))), ((int)(((byte)(26)))), ((int)(((byte)(59)))), ((int)(((byte)(105))))); series2.ChartArea = "Default"; series2.ChartType = System.Windows.Forms.DataVisualization.Charting.SeriesChartType.RangeBar; series2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(220)))), ((int)(((byte)(252)))), ((int)(((byte)(180)))), ((int)(((byte)(65))))); series2.CustomProperties = "DrawSideBySide=True, PointWidth=0.3"; series2.Legend = "Default"; series2.Name = "Actual"; series2.YValuesPerPoint = 2; series2.YValueType = System.Windows.Forms.DataVisualization.Charting.ChartValueType.DateTime; this._chart1.Series.Add(series1); this._chart1.Series.Add(series2); this._chart1.Size = new System.Drawing.Size(412, 296); this._chart1.TabIndex = 1; title1.Font = new System.Drawing.Font("Trebuchet MS", 14.25F, System.Drawing.FontStyle.Bold); title1.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(26)))), ((int)(((byte)(59)))), ((int)(((byte)(105))))); title1.Name = "Title1"; title1.ShadowColor = System.Drawing.Color.FromArgb(((int)(((byte)(32)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); title1.ShadowOffset = 3; title1.Text = "3D Range Bar Chart"; this._chart1.Titles.Add(title1); this._chart1.PostPaint += new System.EventHandler <System.Windows.Forms.DataVisualization.Charting.ChartPaintEventArgs>( this.chart1_PostPaint); // // labelSampleComment // this._labelSampleComment.Font = new System.Drawing.Font("Verdana", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this._labelSampleComment.Location = new System.Drawing.Point(16, 8); this._labelSampleComment.Name = "_labelSampleComment"; this._labelSampleComment.Size = new System.Drawing.Size(702, 29); this._labelSampleComment.TabIndex = 0; this._labelSampleComment.Text = "This sample demonstrates a 3D Range Bar chart."; this._labelSampleComment.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // panel1 // this._panel1.Controls.Add(this._rotation); this._panel1.Controls.Add(this._inclination); this._panel1.Controls.Add(this._label2); this._panel1.Controls.Add(this._label1); this._panel1.Location = new System.Drawing.Point(432, 53); this._panel1.Name = "_panel1"; this._panel1.Size = new System.Drawing.Size(292, 280); this._panel1.TabIndex = 2; // // Rotation // this._rotation.Increment = new decimal(new int[] { 10, 0, 0, 0 }); this._rotation.Location = new System.Drawing.Point(168, 56); this._rotation.Maximum = new decimal(new int[] { 1000, 0, 0, 0 }); this._rotation.Minimum = new decimal(new int[] { 1000, 0, 0, -2147483648 }); this._rotation.Name = "_rotation"; this._rotation.Size = new System.Drawing.Size(64, 22); this._rotation.TabIndex = 3; this._rotation.Value = new decimal(new int[] { 10, 0, 0, 0 }); this._rotation.ValueChanged += new System.EventHandler(this.Rotation_ValueChanged); // // Inclination // this._inclination.Increment = new decimal(new int[] { 10, 0, 0, 0 }); this._inclination.Location = new System.Drawing.Point(168, 16); this._inclination.Maximum = new decimal(new int[] { 1000, 0, 0, 0 }); this._inclination.Minimum = new decimal(new int[] { 1000, 0, 0, -2147483648 }); this._inclination.Name = "_inclination"; this._inclination.Size = new System.Drawing.Size(64, 22); this._inclination.TabIndex = 1; this._inclination.Value = new decimal(new int[] { 15, 0, 0, 0 }); this._inclination.ValueChanged += new System.EventHandler(this.Inclination_ValueChanged); // // label2 // this._label2.Location = new System.Drawing.Point(40, 56); this._label2.Name = "_label2"; this._label2.Size = new System.Drawing.Size(120, 23); this._label2.TabIndex = 2; this._label2.Text = "Rotate &Y:"; this._label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // label1 // this._label1.Location = new System.Drawing.Point(40, 15); this._label1.Name = "_label1"; this._label1.Size = new System.Drawing.Size(120, 23); this._label1.TabIndex = 0; this._label1.Text = "Rotate &X:"; this._label1.TextAlign = System.Drawing.ContentAlignment.MiddleRight; this._label1.Click += new System.EventHandler(this.label1_Click); // // RangeBar3D // this.BackColor = System.Drawing.Color.White; this.Controls.Add(this._panel1); this.Controls.Add(this._labelSampleComment); this.Controls.Add(this._chart1); this.Font = new System.Drawing.Font("Verdana", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.Name = "Range Bar 3D"; this.Size = new System.Drawing.Size(728, 424); this.Load += new System.EventHandler(this.RangeBar3D_Load); ((System.ComponentModel.ISupportInitialize)(this._chart1)).EndInit(); this._panel1.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this._rotation)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this._inclination)).EndInit(); this.ResumeLayout(false); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { System.Windows.Forms.DataVisualization.Charting.ChartArea chartArea1 = new System.Windows.Forms.DataVisualization.Charting.ChartArea(); System.Windows.Forms.DataVisualization.Charting.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); }
private void InitializeComponent() { System.Windows.Forms.DataVisualization.Charting.ChartArea chartArea3 = new System.Windows.Forms.DataVisualization.Charting.ChartArea(); System.Windows.Forms.DataVisualization.Charting.Legend legend3 = new System.Windows.Forms.DataVisualization.Charting.Legend(); System.Windows.Forms.DataVisualization.Charting.Series series3 = new System.Windows.Forms.DataVisualization.Charting.Series(); this.errorGraph = new System.Windows.Forms.DataVisualization.Charting.Chart(); this.downArrow = new System.Windows.Forms.PictureBox(); this.upArrow = new System.Windows.Forms.PictureBox(); this.outputBox = new System.Windows.Forms.RichTextBox(); this.trainingProgressBar = new System.Windows.Forms.ProgressBar(); this.trainingLabel = new System.Windows.Forms.Label(); this.trainingPer = new System.Windows.Forms.Label(); this.label1 = new System.Windows.Forms.Label(); this.label2 = new System.Windows.Forms.Label(); this.rateInput = new System.Windows.Forms.TextBox(); this.momentumInput = new System.Windows.Forms.TextBox(); this.button1 = new System.Windows.Forms.Button(); ((System.ComponentModel.ISupportInitialize)(this.errorGraph)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.downArrow)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.upArrow)).BeginInit(); this.SuspendLayout(); // // errorGraph // this.errorGraph.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.errorGraph.BackColor = System.Drawing.Color.SteelBlue; this.errorGraph.BackGradientStyle = System.Windows.Forms.DataVisualization.Charting.GradientStyle.TopBottom; this.errorGraph.BackSecondaryColor = System.Drawing.Color.Black; this.errorGraph.BorderlineColor = System.Drawing.Color.DimGray; this.errorGraph.BorderlineDashStyle = System.Windows.Forms.DataVisualization.Charting.ChartDashStyle.Solid; this.errorGraph.BorderlineWidth = 2; chartArea3.Name = "ChartArea1"; this.errorGraph.ChartAreas.Add(chartArea3); legend3.Name = "Legend1"; this.errorGraph.Legends.Add(legend3); this.errorGraph.Location = new System.Drawing.Point(17, 242); this.errorGraph.Name = "errorGraph"; series3.ChartArea = "ChartArea1"; series3.Legend = "Legend1"; series3.Name = "Series1"; this.errorGraph.Series.Add(series3); this.errorGraph.Size = new System.Drawing.Size(897, 363); this.errorGraph.TabIndex = 5; this.errorGraph.Text = "errorGraph"; // // downArrow // this.downArrow.BackColor = System.Drawing.Color.SteelBlue; this.downArrow.BackgroundImage = global::NeuralNetwork_UI.Properties.Resources.Down; this.downArrow.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom; this.downArrow.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.downArrow.Cursor = System.Windows.Forms.Cursors.Hand; this.downArrow.Location = new System.Drawing.Point(26, 295); this.downArrow.Name = "downArrow"; this.downArrow.Size = new System.Drawing.Size(30, 30); this.downArrow.TabIndex = 7; this.downArrow.TabStop = false; this.downArrow.Click += new System.EventHandler(this.downArrow_Click); // // upArrow // this.upArrow.BackColor = System.Drawing.Color.SteelBlue; this.upArrow.BackgroundImage = global::NeuralNetwork_UI.Properties.Resources.Up; this.upArrow.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom; this.upArrow.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.upArrow.Cursor = System.Windows.Forms.Cursors.Hand; this.upArrow.Location = new System.Drawing.Point(26, 259); this.upArrow.Name = "upArrow"; this.upArrow.Size = new System.Drawing.Size(30, 30); this.upArrow.TabIndex = 6; this.upArrow.TabStop = false; this.upArrow.Click += new System.EventHandler(this.upArrow_Click); // // outputBox // this.outputBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.outputBox.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(64))))); this.outputBox.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.outputBox.Font = new System.Drawing.Font("Corbel", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.outputBox.ForeColor = System.Drawing.Color.White; this.outputBox.Location = new System.Drawing.Point(12, 12); this.outputBox.MinimumSize = new System.Drawing.Size(550, 140); this.outputBox.Name = "outputBox"; this.outputBox.ReadOnly = true; this.outputBox.Size = new System.Drawing.Size(902, 204); this.outputBox.TabIndex = 8; this.outputBox.Text = ""; // // trainingProgressBar // this.trainingProgressBar.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.trainingProgressBar.Location = new System.Drawing.Point(115, 223); this.trainingProgressBar.Name = "trainingProgressBar"; this.trainingProgressBar.Size = new System.Drawing.Size(799, 12); this.trainingProgressBar.Step = 1; this.trainingProgressBar.Style = System.Windows.Forms.ProgressBarStyle.Continuous; this.trainingProgressBar.TabIndex = 11; // // trainingLabel // this.trainingLabel.AutoSize = true; this.trainingLabel.BackColor = System.Drawing.Color.Transparent; this.trainingLabel.ForeColor = System.Drawing.Color.Black; this.trainingLabel.Location = new System.Drawing.Point(17, 220); this.trainingLabel.Name = "trainingLabel"; this.trainingLabel.Size = new System.Drawing.Size(80, 16); this.trainingLabel.TabIndex = 12; this.trainingLabel.Text = "TRAINING"; // // trainingPer // this.trainingPer.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.trainingPer.AutoSize = true; this.trainingPer.BackColor = System.Drawing.Color.Transparent; this.trainingPer.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.trainingPer.ForeColor = System.Drawing.Color.Black; this.trainingPer.Location = new System.Drawing.Point(508, 219); this.trainingPer.Name = "trainingPer"; this.trainingPer.Size = new System.Drawing.Size(27, 16); this.trainingPer.TabIndex = 13; this.trainingPer.Text = "0%"; // // label1 // this.label1.Anchor = System.Windows.Forms.AnchorStyles.Bottom; this.label1.AutoSize = true; this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label1.ForeColor = System.Drawing.Color.Black; this.label1.Location = new System.Drawing.Point(16, 626); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(99, 18); this.label1.TabIndex = 14; this.label1.Text = "Learning Rate"; // // label2 // this.label2.Anchor = System.Windows.Forms.AnchorStyles.Bottom; this.label2.AutoSize = true; this.label2.Font = new System.Drawing.Font("Microsoft Sans Serif", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label2.ForeColor = System.Drawing.Color.Black; this.label2.Location = new System.Drawing.Point(298, 626); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(84, 18); this.label2.TabIndex = 15; this.label2.Text = "Momentum"; // // rateInput // this.rateInput.Anchor = System.Windows.Forms.AnchorStyles.Bottom; this.rateInput.BackColor = System.Drawing.SystemColors.InactiveCaption; this.rateInput.Font = new System.Drawing.Font("Bahnschrift", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.rateInput.ForeColor = System.Drawing.Color.DarkCyan; this.rateInput.Location = new System.Drawing.Point(121, 626); this.rateInput.Name = "rateInput"; this.rateInput.Size = new System.Drawing.Size(100, 23); this.rateInput.TabIndex = 16; // // momentumInput // this.momentumInput.Anchor = System.Windows.Forms.AnchorStyles.Bottom; this.momentumInput.BackColor = System.Drawing.SystemColors.InactiveCaption; this.momentumInput.Font = new System.Drawing.Font("Bahnschrift", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.momentumInput.ForeColor = System.Drawing.Color.DarkCyan; this.momentumInput.Location = new System.Drawing.Point(388, 626); this.momentumInput.Name = "momentumInput"; this.momentumInput.Size = new System.Drawing.Size(100, 23); this.momentumInput.TabIndex = 17; // // button1 // this.button1.BackColor = System.Drawing.Color.DodgerBlue; this.button1.ForeColor = System.Drawing.Color.White; this.button1.Location = new System.Drawing.Point(566, 626); this.button1.Name = "button1"; this.button1.Size = new System.Drawing.Size(89, 23); this.button1.TabIndex = 18; this.button1.Text = "UPDATE"; this.button1.UseVisualStyleBackColor = false; this.button1.Click += new System.EventHandler(this.button1_Click); // // NNUIFORM // this.BackColor = System.Drawing.Color.White; this.ClientSize = new System.Drawing.Size(938, 660); this.ControlBox = false; this.Controls.Add(this.button1); this.Controls.Add(this.momentumInput); this.Controls.Add(this.rateInput); this.Controls.Add(this.label2); this.Controls.Add(this.label1); this.Controls.Add(this.trainingPer); this.Controls.Add(this.trainingLabel); this.Controls.Add(this.trainingProgressBar); this.Controls.Add(this.outputBox); this.Controls.Add(this.downArrow); this.Controls.Add(this.upArrow); this.Controls.Add(this.errorGraph); this.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.ForeColor = System.Drawing.Color.SeaShell; this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; this.MinimumSize = new System.Drawing.Size(800, 550); this.Name = "NNUIFORM"; this.Text = "Neural Network UI"; ((System.ComponentModel.ISupportInitialize)(this.errorGraph)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.downArrow)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.upArrow)).EndInit(); 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.Series series2 = new System.Windows.Forms.DataVisualization.Charting.Series(); System.Windows.Forms.DataVisualization.Charting.Series series3 = new System.Windows.Forms.DataVisualization.Charting.Series(); this.chart1 = new System.Windows.Forms.DataVisualization.Charting.Chart(); this.labelSampleComment = new System.Windows.Forms.Label(); this.panel1 = new System.Windows.Forms.Panel(); this.comboBoxPeriod = new System.Windows.Forms.ComboBox(); this.label2 = new System.Windows.Forms.Label(); this.buttonRandomData = new System.Windows.Forms.Button(); this.comboBoxFormulaName = 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.Inclination = 15; chartArea1.Area3DStyle.IsClustered = true; chartArea1.Area3DStyle.IsRightAngleAxes = false; chartArea1.Area3DStyle.Perspective = 10; chartArea1.Area3DStyle.Rotation = 10; chartArea1.Area3DStyle.WallWidth = 0; chartArea1.AxisX.LabelAutoFitStyle = ((System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles)((((System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles.DecreaseFont | System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles.StaggeredLabels) | System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles.LabelsAngleStep30) | System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles.WordWrap))); chartArea1.AxisX.LabelStyle.Font = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold); chartArea1.AxisX.LabelStyle.Format = "dd MMM"; chartArea1.AxisX.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea1.AxisX.MajorGrid.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea1.AxisX.Minimum = 37266; chartArea1.AxisX2.LabelAutoFitStyle = ((System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles)((((System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles.DecreaseFont | System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles.StaggeredLabels) | System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles.LabelsAngleStep30) | System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles.WordWrap))); chartArea1.AxisY.IsStartedFromZero = false; chartArea1.AxisY.LabelAutoFitStyle = ((System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles)((((System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles.DecreaseFont | System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles.StaggeredLabels) | System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles.LabelsAngleStep30) | System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles.WordWrap))); chartArea1.AxisY.LabelStyle.Font = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold); chartArea1.AxisY.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea1.AxisY.MajorGrid.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea1.AxisY2.LabelAutoFitStyle = ((System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles)((((System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles.DecreaseFont | System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles.StaggeredLabels) | System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles.LabelsAngleStep30) | System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles.WordWrap))); chartArea1.BackColor = System.Drawing.Color.OldLace; chartArea1.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.DockedToChartArea = "Default"; legend1.Docking = System.Windows.Forms.DataVisualization.Charting.Docking.Bottom; legend1.Font = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold); legend1.IsDockedInsideChartArea = false; legend1.IsTextAutoFit = false; legend1.LegendStyle = System.Windows.Forms.DataVisualization.Charting.LegendStyle.Row; legend1.Name = "Default"; this.chart1.Legends.Add(legend1); this.chart1.Location = new System.Drawing.Point(16, 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.Range; series1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(65)))), ((int)(((byte)(140)))), ((int)(((byte)(240))))); series1.Legend = "Default"; series1.MarkerStep = 10; series1.Name = "Indicators"; series1.XValueType = System.Windows.Forms.DataVisualization.Charting.ChartValueType.DateTime; series1.YValuesPerPoint = 2; series2.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(26)))), ((int)(((byte)(59)))), ((int)(((byte)(105))))); series2.BorderWidth = 0; series2.ChartArea = "Default"; series2.ChartType = System.Windows.Forms.DataVisualization.Charting.SeriesChartType.Point; series2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(196)))), ((int)(((byte)(224)))), ((int)(((byte)(64)))), ((int)(((byte)(10))))); series2.Legend = "Default"; series2.MarkerSize = 4; series2.Name = "Input"; series2.ShadowOffset = 1; series2.XValueType = System.Windows.Forms.DataVisualization.Charting.ChartValueType.DateTime; series2.YValuesPerPoint = 4; series3.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(180)))), ((int)(((byte)(26)))), ((int)(((byte)(59)))), ((int)(((byte)(105))))); series3.BorderWidth = 2; series3.ChartArea = "Default"; series3.ChartType = System.Windows.Forms.DataVisualization.Charting.SeriesChartType.Line; series3.Color = System.Drawing.Color.FromArgb(((int)(((byte)(252)))), ((int)(((byte)(180)))), ((int)(((byte)(65))))); series3.Legend = "Default"; series3.Name = "Moving Average"; series3.ShadowOffset = 1; series3.XValueType = System.Windows.Forms.DataVisualization.Charting.ChartValueType.DateTime; this.chart1.Series.Add(series1); this.chart1.Series.Add(series2); this.chart1.Series.Add(series3); this.chart1.Size = new System.Drawing.Size(412, 296); this.chart1.TabIndex = 1; // // labelSampleComment // this.labelSampleComment.Font = new System.Drawing.Font("Verdana", 11F); this.labelSampleComment.Location = new System.Drawing.Point(16, 14); this.labelSampleComment.Name = "labelSampleComment"; this.labelSampleComment.Size = new System.Drawing.Size(702, 43); this.labelSampleComment.TabIndex = 0; this.labelSampleComment.Text = "This sample shows how to use the Bollinger Band and Envelopes formulas, which can" + " be displayed using the Range Line chart type. It also displays the moving avera" + "ge of the data using a�line chart."; this.labelSampleComment.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // panel1 // this.panel1.Controls.Add(this.comboBoxPeriod); this.panel1.Controls.Add(this.label2); this.panel1.Controls.Add(this.buttonRandomData); this.panel1.Controls.Add(this.comboBoxFormulaName); this.panel1.Controls.Add(this.label1); this.panel1.Location = new System.Drawing.Point(432, 71); this.panel1.Name = "panel1"; this.panel1.Size = new System.Drawing.Size(292, 288); this.panel1.TabIndex = 2; // // comboBoxPeriod // this.comboBoxPeriod.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.comboBoxPeriod.Items.AddRange(new object[] { "200", "150", "100", "75" }); this.comboBoxPeriod.Location = new System.Drawing.Point(168, 40); this.comboBoxPeriod.Name = "comboBoxPeriod"; this.comboBoxPeriod.Size = new System.Drawing.Size(112, 22); this.comboBoxPeriod.TabIndex = 3; this.comboBoxPeriod.SelectedIndexChanged += new System.EventHandler(this.comboBoxPeriod_SelectedIndexChanged); // // label2 // this.label2.Location = new System.Drawing.Point(16, 40); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(152, 23); this.label2.TabIndex = 2; this.label2.Text = "&Period:"; this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // buttonRandomData // this.buttonRandomData.BackColor = System.Drawing.SystemColors.Control; this.buttonRandomData.Location = new System.Drawing.Point(72, 72); this.buttonRandomData.Name = "buttonRandomData"; this.buttonRandomData.Size = new System.Drawing.Size(208, 24); this.buttonRandomData.TabIndex = 4; this.buttonRandomData.Text = "&Generate Random Data"; this.buttonRandomData.UseVisualStyleBackColor = false; this.buttonRandomData.Click += new System.EventHandler(this.buttonRandomData_Click); // // comboBoxFormulaName // this.comboBoxFormulaName.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.comboBoxFormulaName.Items.AddRange(new object[] { "Envelopes", "BollingerBands" }); this.comboBoxFormulaName.Location = new System.Drawing.Point(168, 8); this.comboBoxFormulaName.Name = "comboBoxFormulaName"; this.comboBoxFormulaName.Size = new System.Drawing.Size(112, 22); this.comboBoxFormulaName.TabIndex = 1; this.comboBoxFormulaName.SelectedIndexChanged += new System.EventHandler(this.comboBoxFormulaName_SelectedIndexChanged); // // label1 // this.label1.Location = new System.Drawing.Point(16, 8); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(152, 23); this.label1.TabIndex = 0; this.label1.Text = "Formula &Name:"; this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // RangeIndicators // this.BackColor = System.Drawing.Color.White; this.Controls.Add(this.panel1); this.Controls.Add(this.labelSampleComment); this.Controls.Add(this.chart1); this.Font = new System.Drawing.Font("Verdana", 9F); this.Name = "RangeIndicators"; 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.CalloutAnnotation calloutAnnotation1 = new System.Windows.Forms.DataVisualization.Charting.CalloutAnnotation(); System.Windows.Forms.DataVisualization.Charting.ChartArea chartArea1 = new System.Windows.Forms.DataVisualization.Charting.ChartArea(); System.Windows.Forms.DataVisualization.Charting.Legend legend1 = new System.Windows.Forms.DataVisualization.Charting.Legend(); System.Windows.Forms.DataVisualization.Charting.Series series1 = new System.Windows.Forms.DataVisualization.Charting.Series(); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint1 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(1, 700); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint2 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(2, 400); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint3 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(3, 200); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint4 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(4, 450); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint5 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(5, 300); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint6 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(6, 756); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint7 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(7, 398); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint8 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(8, 467); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint9 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(9, 612); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint10 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(10, 356); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint11 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(11, 678); System.Windows.Forms.DataVisualization.Charting.Title title1 = new System.Windows.Forms.DataVisualization.Charting.Title(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(AnnotationPositionChanging)); this.label9 = new System.Windows.Forms.Label(); this.panel1 = new System.Windows.Forms.Panel(); this.AnchorY = new System.Windows.Forms.Label(); this.AnchorX = new System.Windows.Forms.Label(); this.label1 = new System.Windows.Forms.Label(); this.AnchorXLocation = new System.Windows.Forms.Label(); this.ResetPosition = new System.Windows.Forms.Button(); this.SnapToDataPoint = new System.Windows.Forms.CheckBox(); this.Chart1 = new System.Windows.Forms.DataVisualization.Charting.Chart(); this.label2 = new System.Windows.Forms.Label(); this.panel1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.Chart1)).BeginInit(); this.SuspendLayout(); // // label9 // this.label9.Font = new System.Drawing.Font("Verdana", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label9.Location = new System.Drawing.Point(16, 8); this.label9.Name = "label9"; this.label9.Size = new System.Drawing.Size(702, 34); this.label9.TabIndex = 1; this.label9.Text = "This sample demonstrates the AnnotationPositionChanging event. "; this.label9.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // panel1 // this.panel1.Controls.Add(this.AnchorY); this.panel1.Controls.Add(this.AnchorX); this.panel1.Controls.Add(this.label1); this.panel1.Controls.Add(this.AnchorXLocation); this.panel1.Controls.Add(this.ResetPosition); this.panel1.Controls.Add(this.SnapToDataPoint); 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; // // AnchorY // this.AnchorY.ForeColor = System.Drawing.Color.Red; this.AnchorY.Location = new System.Drawing.Point(168, 80); this.AnchorY.Name = "AnchorY"; this.AnchorY.Size = new System.Drawing.Size(72, 23); this.AnchorY.TabIndex = 8; this.AnchorY.Text = "label4"; this.AnchorY.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // AnchorX // this.AnchorX.ForeColor = System.Drawing.Color.Red; this.AnchorX.Location = new System.Drawing.Point(168, 48); this.AnchorX.Name = "AnchorX"; this.AnchorX.Size = new System.Drawing.Size(72, 23); this.AnchorX.TabIndex = 7; this.AnchorX.Text = "label4"; this.AnchorX.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // label1 // this.label1.Location = new System.Drawing.Point(24, 80); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(136, 23); this.label1.TabIndex = 4; this.label1.Text = "Anchor Position Y:"; this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // AnchorXLocation // this.AnchorXLocation.Location = new System.Drawing.Point(16, 48); this.AnchorXLocation.Name = "AnchorXLocation"; this.AnchorXLocation.Size = new System.Drawing.Size(144, 23); this.AnchorXLocation.TabIndex = 3; this.AnchorXLocation.Text = "Anchor Position X:"; this.AnchorXLocation.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // ResetPosition // this.ResetPosition.BackColor = System.Drawing.SystemColors.Control; this.ResetPosition.Location = new System.Drawing.Point(64, 120); this.ResetPosition.Name = "ResetPosition"; this.ResetPosition.Size = new System.Drawing.Size(136, 23); this.ResetPosition.TabIndex = 2; this.ResetPosition.Text = "&Reset Position"; this.ResetPosition.UseVisualStyleBackColor = false; this.ResetPosition.Click += new System.EventHandler(this.ResetPosition_Click); // // SnapToDataPoint // this.SnapToDataPoint.CheckAlign = System.Drawing.ContentAlignment.MiddleRight; this.SnapToDataPoint.Checked = true; this.SnapToDataPoint.CheckState = System.Windows.Forms.CheckState.Checked; this.SnapToDataPoint.Location = new System.Drawing.Point(11, 16); this.SnapToDataPoint.Name = "SnapToDataPoint"; this.SnapToDataPoint.Size = new System.Drawing.Size(168, 24); this.SnapToDataPoint.TabIndex = 0; this.SnapToDataPoint.Text = "&Snap to DataPoint"; this.SnapToDataPoint.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // Chart1 // calloutAnnotation1.AllowAnchorMoving = true; calloutAnnotation1.AllowSelecting = true; calloutAnnotation1.AnchorDataPointName = "Default\\r2"; calloutAnnotation1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(220)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(240))))); calloutAnnotation1.Font = new System.Drawing.Font("Trebuchet MS", 9F); calloutAnnotation1.Name = "Callout1"; calloutAnnotation1.Text = "Select this Annotation Object\\nand move the Anchor point"; calloutAnnotation1.ToolTip = "Don\'t forget to move the anchor point"; this.Chart1.Annotations.Add(calloutAnnotation1); 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.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", 10F, 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.Enabled = false; chartArea1.AxisX.MajorGrid.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea1.AxisX2.Enabled = System.Windows.Forms.DataVisualization.Charting.AxisEnabled.False; chartArea1.AxisY.LabelStyle.Font = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold); chartArea1.AxisY.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea1.AxisY.MajorGrid.Enabled = false; chartArea1.AxisY.MajorGrid.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea1.AxisY2.MajorGrid.Enabled = false; chartArea1.BackColor = System.Drawing.Color.OldLace; chartArea1.BackGradientStyle = System.Windows.Forms.DataVisualization.Charting.GradientStyle.TopBottom; chartArea1.BackSecondaryColor = System.Drawing.Color.White; chartArea1.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea1.BorderDashStyle = System.Windows.Forms.DataVisualization.Charting.ChartDashStyle.Solid; chartArea1.InnerPlotPosition.Auto = false; chartArea1.InnerPlotPosition.Height = 67F; chartArea1.InnerPlotPosition.Width = 80F; chartArea1.InnerPlotPosition.X = 12F; chartArea1.InnerPlotPosition.Y = 22F; chartArea1.Name = "Default"; chartArea1.Position.Auto = false; chartArea1.Position.Height = 95F; chartArea1.Position.Width = 99F; chartArea1.Position.X = 1F; chartArea1.Position.Y = 1F; chartArea1.ShadowColor = System.Drawing.Color.Transparent; this.Chart1.ChartAreas.Add(chartArea1); legend1.BackColor = System.Drawing.Color.Transparent; legend1.Enabled = false; legend1.Font = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold); legend1.IsTextAutoFit = false; legend1.Name = "Default"; this.Chart1.Legends.Add(legend1); this.Chart1.Location = new System.Drawing.Point(16, 48); this.Chart1.Name = "Chart1"; series1.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(180)))), ((int)(((byte)(26)))), ((int)(((byte)(59)))), ((int)(((byte)(105))))); series1.ChartArea = "Default"; series1.Legend = "Default"; series1.Name = "Default"; series1.Points.Add(dataPoint1); series1.Points.Add(dataPoint2); series1.Points.Add(dataPoint3); series1.Points.Add(dataPoint4); series1.Points.Add(dataPoint5); series1.Points.Add(dataPoint6); series1.Points.Add(dataPoint7); series1.Points.Add(dataPoint8); series1.Points.Add(dataPoint9); series1.Points.Add(dataPoint10); series1.Points.Add(dataPoint11); 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 = "Position Changed Event"; this.Chart1.Titles.Add(title1); this.Chart1.AnnotationPositionChanged += new System.EventHandler(this.Chart1_AnnotationPositionChanged); this.Chart1.AnnotationSelectionChanged += new System.EventHandler(this.Chart1_AnnotationSelectionChanged); this.Chart1.AnnotationPositionChanging += new System.EventHandler <System.Windows.Forms.DataVisualization.Charting.AnnotationPositionChangingEventArgs>(this.Chart1_AnnotationPositionChanging); // // label2 // this.label2.Font = new System.Drawing.Font("Verdana", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label2.Location = new System.Drawing.Point(16, 357); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(702, 57); this.label2.TabIndex = 20; this.label2.Text = resources.GetString("label2.Text"); this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // AnnotationPositionChanging // this.BackColor = System.Drawing.Color.White; this.Controls.Add(this.label2); 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 = "AnnotationPositionChanging"; this.Size = new System.Drawing.Size(728, 480); this.panel1.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.Chart1)).EndInit(); this.ResumeLayout(false); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { System.Windows.Forms.DataVisualization.Charting.ChartArea chartArea1 = new System.Windows.Forms.DataVisualization.Charting.ChartArea(); System.Windows.Forms.DataVisualization.Charting.CustomLabel customLabel1 = new System.Windows.Forms.DataVisualization.Charting.CustomLabel(); System.Windows.Forms.DataVisualization.Charting.CustomLabel customLabel2 = new System.Windows.Forms.DataVisualization.Charting.CustomLabel(); System.Windows.Forms.DataVisualization.Charting.CustomLabel customLabel3 = new System.Windows.Forms.DataVisualization.Charting.CustomLabel(); System.Windows.Forms.DataVisualization.Charting.CustomLabel customLabel4 = new System.Windows.Forms.DataVisualization.Charting.CustomLabel(); System.Windows.Forms.DataVisualization.Charting.Legend legend1 = new System.Windows.Forms.DataVisualization.Charting.Legend(); System.Windows.Forms.DataVisualization.Charting.Series series1 = new System.Windows.Forms.DataVisualization.Charting.Series(); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint1 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(1, 70); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint2 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(2, 80); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint3 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(3, 70); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint4 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(4, 85); System.Windows.Forms.DataVisualization.Charting.Series series2 = new System.Windows.Forms.DataVisualization.Charting.Series(); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint5 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(1, 65); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint6 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(2, 70); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint7 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(3, 60); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint8 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(4, 75); System.Windows.Forms.DataVisualization.Charting.Series series3 = new System.Windows.Forms.DataVisualization.Charting.Series(); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint9 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(1, 50); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint10 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(2, 55); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint11 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(3, 40); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint12 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(4, 70); System.Windows.Forms.DataVisualization.Charting.Title title1 = new System.Windows.Forms.DataVisualization.Charting.Title(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(TitleCustomPosition)); this.label9 = new System.Windows.Forms.Label(); this.Chart1 = new System.Windows.Forms.DataVisualization.Charting.Chart(); this.panel1 = new System.Windows.Forms.Panel(); this.numericUpDownHeight = new System.Windows.Forms.NumericUpDown(); this.numericUpDownWidth = new System.Windows.Forms.NumericUpDown(); this.numericUpDownY = new System.Windows.Forms.NumericUpDown(); this.numericUpDownX = new System.Windows.Forms.NumericUpDown(); this.label5 = new System.Windows.Forms.Label(); this.label4 = new System.Windows.Forms.Label(); this.label3 = new System.Windows.Forms.Label(); this.label2 = new System.Windows.Forms.Label(); this.label1 = new System.Windows.Forms.Label(); ((System.ComponentModel.ISupportInitialize)(this.Chart1)).BeginInit(); this.panel1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.numericUpDownHeight)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.numericUpDownWidth)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.numericUpDownY)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.numericUpDownX)).BeginInit(); this.SuspendLayout(); // // label9 // this.label9.Font = new System.Drawing.Font("Verdana", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label9.Location = new System.Drawing.Point(16, 12); this.label9.Name = "label9"; this.label9.Size = new System.Drawing.Size(702, 45); this.label9.TabIndex = 0; this.label9.Text = "This sample demonstrates how to position the chart by setting the coordinates of " + "its top left corner, width, and height. "; this.label9.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // Chart1 // this.Chart1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(211)))), ((int)(((byte)(223)))), ((int)(((byte)(240))))); this.Chart1.BackGradientStyle = System.Windows.Forms.DataVisualization.Charting.GradientStyle.TopBottom; this.Chart1.BackSecondaryColor = System.Drawing.Color.White; this.Chart1.BorderlineColor = System.Drawing.Color.FromArgb(((int)(((byte)(26)))), ((int)(((byte)(59)))), ((int)(((byte)(105))))); this.Chart1.BorderlineDashStyle = System.Windows.Forms.DataVisualization.Charting.ChartDashStyle.Solid; this.Chart1.BorderlineWidth = 2; this.Chart1.BorderSkin.SkinStyle = System.Windows.Forms.DataVisualization.Charting.BorderSkinStyle.Emboss; chartArea1.Area3DStyle.Inclination = 15; chartArea1.Area3DStyle.IsClustered = true; chartArea1.Area3DStyle.IsRightAngleAxes = false; chartArea1.Area3DStyle.Perspective = 10; chartArea1.Area3DStyle.PointGapDepth = 0; chartArea1.Area3DStyle.Rotation = 5; chartArea1.Area3DStyle.WallWidth = 0; customLabel1.FromPosition = 0.5; customLabel1.Text = "John"; customLabel1.ToPosition = 1.5; customLabel2.FromPosition = 1.5; customLabel2.Text = "Mary"; customLabel2.ToPosition = 2.5; customLabel3.FromPosition = 2.5; customLabel3.Text = "Jeff"; customLabel3.ToPosition = 3.5; customLabel4.FromPosition = 3.5; customLabel4.Text = "Bob"; customLabel4.ToPosition = 4.5; chartArea1.AxisX.CustomLabels.Add(customLabel1); chartArea1.AxisX.CustomLabels.Add(customLabel2); chartArea1.AxisX.CustomLabels.Add(customLabel3); chartArea1.AxisX.CustomLabels.Add(customLabel4); chartArea1.AxisX.Interval = 1; chartArea1.AxisX.IsLabelAutoFit = false; chartArea1.AxisX.LabelStyle.Font = new System.Drawing.Font("Trebuchet MS", 8.25F); chartArea1.AxisX.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea1.AxisX.MajorGrid.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea1.AxisY.IsLabelAutoFit = false; chartArea1.AxisY.LabelStyle.Font = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold); chartArea1.AxisY.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea1.AxisY.MajorGrid.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(165)))), ((int)(((byte)(191)))), ((int)(((byte)(228))))); chartArea1.BackGradientStyle = System.Windows.Forms.DataVisualization.Charting.GradientStyle.TopBottom; chartArea1.BackSecondaryColor = System.Drawing.Color.White; chartArea1.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea1.Name = "Default"; chartArea1.Position.Auto = false; chartArea1.Position.Height = 75F; chartArea1.Position.Width = 90F; chartArea1.Position.X = 2F; chartArea1.Position.Y = 13F; chartArea1.ShadowColor = System.Drawing.Color.Transparent; this.Chart1.ChartAreas.Add(chartArea1); legend1.BackColor = System.Drawing.Color.Transparent; legend1.BorderColor = System.Drawing.Color.Black; legend1.BorderWidth = 0; legend1.Docking = System.Windows.Forms.DataVisualization.Charting.Docking.Bottom; legend1.Font = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold); legend1.IsTextAutoFit = false; legend1.LegendStyle = System.Windows.Forms.DataVisualization.Charting.LegendStyle.Row; legend1.Name = "Default"; this.Chart1.Legends.Add(legend1); this.Chart1.Location = new System.Drawing.Point(16, 65); this.Chart1.Name = "Chart1"; this.Chart1.Palette = System.Windows.Forms.DataVisualization.Charting.ChartColorPalette.Pastel; series1.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(180)))), ((int)(((byte)(26)))), ((int)(((byte)(59)))), ((int)(((byte)(105))))); series1.ChartArea = "Default"; series1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(65)))), ((int)(((byte)(140)))), ((int)(((byte)(240))))); series1.CustomProperties = "DrawingStyle=Cylinder"; series1.Legend = "Default"; series1.LegendText = "Total"; series1.Name = "Series2"; series1.Points.Add(dataPoint1); series1.Points.Add(dataPoint2); series1.Points.Add(dataPoint3); series1.Points.Add(dataPoint4); series1.ShadowColor = System.Drawing.Color.Transparent; series1.XValueType = System.Windows.Forms.DataVisualization.Charting.ChartValueType.Double; series1.YValueType = System.Windows.Forms.DataVisualization.Charting.ChartValueType.Double; series2.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(180)))), ((int)(((byte)(26)))), ((int)(((byte)(59)))), ((int)(((byte)(105))))); series2.ChartArea = "Default"; series2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(252)))), ((int)(((byte)(180)))), ((int)(((byte)(65))))); series2.CustomProperties = "DrawingStyle=Cylinder"; series2.Legend = "Default"; series2.LegendText = "Sales"; series2.Name = "Series3"; series2.Points.Add(dataPoint5); series2.Points.Add(dataPoint6); series2.Points.Add(dataPoint7); series2.Points.Add(dataPoint8); series2.XValueType = System.Windows.Forms.DataVisualization.Charting.ChartValueType.Double; series2.YValueType = System.Windows.Forms.DataVisualization.Charting.ChartValueType.Double; series3.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(180)))), ((int)(((byte)(26)))), ((int)(((byte)(59)))), ((int)(((byte)(105))))); series3.ChartArea = "Default"; series3.Color = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(64)))), ((int)(((byte)(10))))); series3.CustomProperties = "DrawingStyle=Cylinder"; series3.Legend = "Default"; series3.LegendText = "Clients"; series3.Name = "Series4"; series3.Points.Add(dataPoint9); series3.Points.Add(dataPoint10); series3.Points.Add(dataPoint11); series3.Points.Add(dataPoint12); series3.XValueType = System.Windows.Forms.DataVisualization.Charting.ChartValueType.Double; series3.YValueType = System.Windows.Forms.DataVisualization.Charting.ChartValueType.Double; this.Chart1.Series.Add(series1); this.Chart1.Series.Add(series2); this.Chart1.Series.Add(series3); this.Chart1.Size = new System.Drawing.Size(412, 296); this.Chart1.TabIndex = 1; title1.Alignment = System.Drawing.ContentAlignment.TopLeft; title1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(120)))), ((int)(((byte)(160)))), ((int)(((byte)(240))))); title1.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(26)))), ((int)(((byte)(59)))), ((int)(((byte)(105))))); title1.Font = new System.Drawing.Font("Trebuchet MS", 14.25F, System.Drawing.FontStyle.Bold); title1.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(26)))), ((int)(((byte)(59)))), ((int)(((byte)(105))))); title1.Name = "Title1"; title1.Position.Auto = false; title1.Position.Height = 8.738057F; title1.Position.Width = 80F; title1.Position.X = 4F; title1.Position.Y = 4F; title1.ShadowColor = System.Drawing.Color.FromArgb(((int)(((byte)(32)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); title1.Text = "Chart Control for .NET Framework"; this.Chart1.Titles.Add(title1); this.Chart1.MouseDown += new System.Windows.Forms.MouseEventHandler(this.Chart1_MouseDown); // // panel1 // this.panel1.Controls.Add(this.numericUpDownHeight); this.panel1.Controls.Add(this.numericUpDownWidth); this.panel1.Controls.Add(this.numericUpDownY); this.panel1.Controls.Add(this.numericUpDownX); this.panel1.Controls.Add(this.label5); this.panel1.Controls.Add(this.label4); this.panel1.Controls.Add(this.label3); this.panel1.Controls.Add(this.label2); this.panel1.Location = new System.Drawing.Point(432, 73); this.panel1.Name = "panel1"; this.panel1.Size = new System.Drawing.Size(292, 296); this.panel1.TabIndex = 2; // // numericUpDownHeight // this.numericUpDownHeight.Location = new System.Drawing.Point(168, 104); this.numericUpDownHeight.Maximum = new decimal(new int[] { 90, 0, 0, 0 }); this.numericUpDownHeight.Name = "numericUpDownHeight"; this.numericUpDownHeight.Size = new System.Drawing.Size(72, 22); this.numericUpDownHeight.TabIndex = 7; this.numericUpDownHeight.Value = new decimal(new int[] { 9, 0, 0, 0 }); this.numericUpDownHeight.ValueChanged += new System.EventHandler(this.numericUpDownHeight_ValueChanged); // // numericUpDownWidth // this.numericUpDownWidth.Location = new System.Drawing.Point(168, 72); this.numericUpDownWidth.Maximum = new decimal(new int[] { 90, 0, 0, 0 }); this.numericUpDownWidth.Name = "numericUpDownWidth"; this.numericUpDownWidth.Size = new System.Drawing.Size(72, 22); this.numericUpDownWidth.TabIndex = 5; this.numericUpDownWidth.Value = new decimal(new int[] { 55, 0, 0, 0 }); this.numericUpDownWidth.ValueChanged += new System.EventHandler(this.numericUpDownWidth_ValueChanged); // // numericUpDownY // this.numericUpDownY.Location = new System.Drawing.Point(168, 40); this.numericUpDownY.Maximum = new decimal(new int[] { 90, 0, 0, 0 }); this.numericUpDownY.Name = "numericUpDownY"; this.numericUpDownY.Size = new System.Drawing.Size(72, 22); this.numericUpDownY.TabIndex = 3; this.numericUpDownY.Value = new decimal(new int[] { 4, 0, 0, 0 }); this.numericUpDownY.ValueChanged += new System.EventHandler(this.numericUpDownY_ValueChanged); // // numericUpDownX // this.numericUpDownX.Location = new System.Drawing.Point(168, 8); this.numericUpDownX.Maximum = new decimal(new int[] { 70, 0, 0, 0 }); this.numericUpDownX.Name = "numericUpDownX"; this.numericUpDownX.Size = new System.Drawing.Size(72, 22); this.numericUpDownX.TabIndex = 1; this.numericUpDownX.Value = new decimal(new int[] { 4, 0, 0, 0 }); this.numericUpDownX.ValueChanged += new System.EventHandler(this.numericUpDownX_ValueChanged); // // label5 // this.label5.Location = new System.Drawing.Point(12, 104); this.label5.Name = "label5"; this.label5.Size = new System.Drawing.Size(152, 22); this.label5.TabIndex = 6; this.label5.Text = "&Height:"; this.label5.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // label4 // this.label4.Location = new System.Drawing.Point(12, 72); this.label4.Name = "label4"; this.label4.Size = new System.Drawing.Size(152, 22); this.label4.TabIndex = 4; this.label4.Text = "&Width:"; this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // label3 // this.label3.Location = new System.Drawing.Point(12, 40); this.label3.Name = "label3"; this.label3.Size = new System.Drawing.Size(152, 22); this.label3.TabIndex = 2; this.label3.Text = "&Y:"; this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // label2 // this.label2.Location = new System.Drawing.Point(12, 8); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(152, 22); this.label2.TabIndex = 0; this.label2.Text = "&X:"; this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // label1 // this.label1.Font = new System.Drawing.Font("Verdana", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label1.Location = new System.Drawing.Point(16, 377); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(702, 71); this.label1.TabIndex = 3; this.label1.Text = resources.GetString("label1.Text"); // // TitleCustomPosition // this.BackColor = System.Drawing.Color.White; this.Controls.Add(this.label1); this.Controls.Add(this.panel1); this.Controls.Add(this.Chart1); this.Controls.Add(this.label9); this.Font = new System.Drawing.Font("Verdana", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.Name = "TitleCustomPosition"; this.Size = new System.Drawing.Size(728, 448); this.Load += new System.EventHandler(this.LegendCustomPosition_Load); ((System.ComponentModel.ISupportInitialize)(this.Chart1)).EndInit(); this.panel1.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.numericUpDownHeight)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.numericUpDownWidth)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.numericUpDownY)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.numericUpDownX)).EndInit(); this.ResumeLayout(false); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { System.Windows.Forms.DataVisualization.Charting.ChartArea chartArea1 = new System.Windows.Forms.DataVisualization.Charting.ChartArea(); System.Windows.Forms.DataVisualization.Charting.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, 39); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint2 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 18); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint3 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 15); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint4 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 12); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint5 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 8); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint6 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 4.5); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint7 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 3.2000000476837158); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint8 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 2); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint9 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 1); this.chart1 = new System.Windows.Forms.DataVisualization.Charting.Chart(); this.labelSampleComment = new System.Windows.Forms.Label(); this.comboBoxCollectedThreshold = new System.Windows.Forms.ComboBox(); this.textBoxCollectedLabel = new System.Windows.Forms.TextBox(); this.label6 = new System.Windows.Forms.Label(); this.label5 = new System.Windows.Forms.Label(); this.comboBoxCollectedColor = new System.Windows.Forms.ComboBox(); this.label4 = new System.Windows.Forms.Label(); this.checkBoxCollectPieSlices = new System.Windows.Forms.CheckBox(); this.checkBoxShowExploded = new System.Windows.Forms.CheckBox(); this.comboBoxChartType = new System.Windows.Forms.ComboBox(); this.label1 = new System.Windows.Forms.Label(); this.panel1 = new System.Windows.Forms.Panel(); this.textBoxCollectedLegend = new System.Windows.Forms.TextBox(); this.label2 = new System.Windows.Forms.Label(); ((System.ComponentModel.ISupportInitialize)(this.chart1)).BeginInit(); this.panel1.SuspendLayout(); this.SuspendLayout(); // // chart1 // this.chart1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(211)))), ((int)(((byte)(223)))), ((int)(((byte)(240))))); this.chart1.BackGradientStyle = System.Windows.Forms.DataVisualization.Charting.GradientStyle.TopBottom; this.chart1.BorderlineColor = System.Drawing.Color.FromArgb(((int)(((byte)(26)))), ((int)(((byte)(59)))), ((int)(((byte)(105))))); this.chart1.BorderlineDashStyle = System.Windows.Forms.DataVisualization.Charting.ChartDashStyle.Solid; this.chart1.BorderlineWidth = 2; this.chart1.BorderSkin.SkinStyle = System.Windows.Forms.DataVisualization.Charting.BorderSkinStyle.Emboss; chartArea1.Area3DStyle.IsClustered = true; chartArea1.Area3DStyle.IsRightAngleAxes = false; chartArea1.Area3DStyle.PointGapDepth = 900; chartArea1.Area3DStyle.Rotation = 162; chartArea1.Area3DStyle.WallWidth = 25; 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.Enabled = false; 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.MajorGrid.Enabled = false; chartArea1.AxisX2.MajorTickMark.Enabled = false; chartArea1.AxisY.LabelStyle.Font = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold); chartArea1.AxisY.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea1.AxisY.MajorGrid.Enabled = false; chartArea1.AxisY.MajorGrid.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea1.AxisY.MajorTickMark.Enabled = false; chartArea1.AxisY2.MajorGrid.Enabled = false; chartArea1.AxisY2.MajorTickMark.Enabled = false; chartArea1.BackColor = System.Drawing.Color.Transparent; 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 = "Area1"; chartArea1.ShadowColor = System.Drawing.Color.Transparent; this.chart1.ChartAreas.Add(chartArea1); this.chart1.IsSoftShadows = false; legend1.BackColor = System.Drawing.Color.Transparent; legend1.Font = new System.Drawing.Font("Trebuchet MS", 8F, System.Drawing.FontStyle.Bold); legend1.IsEquallySpacedItems = true; legend1.IsTextAutoFit = false; legend1.Name = "Default"; this.chart1.Legends.Add(legend1); this.chart1.Location = new System.Drawing.Point(16, 61); this.chart1.Name = "chart1"; series1.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); series1.ChartArea = "Area1"; series1.ChartType = System.Windows.Forms.DataVisualization.Charting.SeriesChartType.Pie; series1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(180)))), ((int)(((byte)(65)))), ((int)(((byte)(140)))), ((int)(((byte)(240))))); series1.CustomProperties = "DoughnutRadius=25, PieDrawingStyle=Concave, CollectedLabel=Other, MinimumRelative" + "PieSize=20"; series1.Font = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold); series1.Label = "#PERCENT{P1}"; series1.Legend = "Default"; series1.MarkerStyle = System.Windows.Forms.DataVisualization.Charting.MarkerStyle.Circle; series1.Name = "Series1"; dataPoint1.CustomProperties = "OriginalPointIndex=0"; dataPoint1.IsValueShownAsLabel = false; dataPoint1.LegendText = "RUS"; dataPoint2.CustomProperties = "OriginalPointIndex=1"; dataPoint2.IsValueShownAsLabel = false; dataPoint2.LegendText = "CAN"; dataPoint3.CustomProperties = "OriginalPointIndex=2"; dataPoint3.IsValueShownAsLabel = false; dataPoint3.LegendText = "USA"; dataPoint4.CustomProperties = "OriginalPointIndex=3"; dataPoint4.LegendText = "PRC"; dataPoint5.CustomProperties = "OriginalPointIndex=5"; dataPoint5.LegendText = "DEN"; dataPoint6.LegendText = "AUS"; dataPoint7.CustomProperties = "OriginalPointIndex=4"; dataPoint7.LegendText = "IND"; dataPoint8.LegendText = "ARG"; dataPoint9.LegendText = "FRA"; 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.XValueType = System.Windows.Forms.DataVisualization.Charting.ChartValueType.Double; series1.YValueType = System.Windows.Forms.DataVisualization.Charting.ChartValueType.Double; this.chart1.Series.Add(series1); this.chart1.Size = new System.Drawing.Size(412, 296); this.chart1.TabIndex = 1; // // labelSampleComment // this.labelSampleComment.Font = new System.Drawing.Font("Verdana", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.labelSampleComment.Location = new System.Drawing.Point(16, 8); this.labelSampleComment.Name = "labelSampleComment"; this.labelSampleComment.Size = new System.Drawing.Size(702, 45); this.labelSampleComment.TabIndex = 0; this.labelSampleComment.Text = "This sample demonstrates how to group many small segments of a pie or doughnut ch" + "art into one collected slice to improve chart readability."; this.labelSampleComment.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // comboBoxCollectedThreshold // this.comboBoxCollectedThreshold.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.comboBoxCollectedThreshold.Font = new System.Drawing.Font("Verdana", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.comboBoxCollectedThreshold.ItemHeight = 14; this.comboBoxCollectedThreshold.Items.AddRange(new object[] { "5", "8", "12", "15" }); this.comboBoxCollectedThreshold.Location = new System.Drawing.Point(184, 40); this.comboBoxCollectedThreshold.Name = "comboBoxCollectedThreshold"; this.comboBoxCollectedThreshold.Size = new System.Drawing.Size(104, 22); this.comboBoxCollectedThreshold.TabIndex = 2; this.comboBoxCollectedThreshold.SelectedIndexChanged += new System.EventHandler(this.comboBoxCollectedThreshold_SelectedIndexChanged); // // textBoxCollectedLabel // this.textBoxCollectedLabel.Font = new System.Drawing.Font("Verdana", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.textBoxCollectedLabel.Location = new System.Drawing.Point(184, 104); this.textBoxCollectedLabel.MaxLength = 12; this.textBoxCollectedLabel.Name = "textBoxCollectedLabel"; this.textBoxCollectedLabel.Size = new System.Drawing.Size(104, 22); this.textBoxCollectedLabel.TabIndex = 4; this.textBoxCollectedLabel.TextChanged += new System.EventHandler(this.textBoxCollectedLabel_TextChanged); // // label6 // this.label6.BackColor = System.Drawing.Color.White; this.label6.Font = new System.Drawing.Font("Verdana", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label6.Location = new System.Drawing.Point(35, 104); this.label6.Name = "label6"; this.label6.Size = new System.Drawing.Size(144, 23); this.label6.TabIndex = 4; this.label6.Text = "Collected &Label:"; this.label6.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // label5 // this.label5.BackColor = System.Drawing.Color.White; this.label5.Font = new System.Drawing.Font("Verdana", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label5.Location = new System.Drawing.Point(35, 72); this.label5.Name = "label5"; this.label5.Size = new System.Drawing.Size(144, 23); this.label5.TabIndex = 3; this.label5.Text = "Collected &Color:"; this.label5.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // comboBoxCollectedColor // this.comboBoxCollectedColor.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.comboBoxCollectedColor.Font = new System.Drawing.Font("Verdana", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.comboBoxCollectedColor.ItemHeight = 14; this.comboBoxCollectedColor.Items.AddRange(new object[] { "Green", "Gold", "Gray", "Magenta" }); this.comboBoxCollectedColor.Location = new System.Drawing.Point(184, 72); this.comboBoxCollectedColor.Name = "comboBoxCollectedColor"; this.comboBoxCollectedColor.Size = new System.Drawing.Size(104, 22); this.comboBoxCollectedColor.TabIndex = 3; this.comboBoxCollectedColor.SelectedIndexChanged += new System.EventHandler(this.comboBoxCollectedColor_SelectedIndexChanged); // // label4 // this.label4.BackColor = System.Drawing.Color.White; this.label4.Font = new System.Drawing.Font("Verdana", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label4.Location = new System.Drawing.Point(4, 40); this.label4.Name = "label4"; this.label4.Size = new System.Drawing.Size(176, 23); this.label4.TabIndex = 2; this.label4.Text = "Collected &Threshold (in %):"; this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // checkBoxCollectPieSlices // this.checkBoxCollectPieSlices.BackColor = System.Drawing.Color.White; this.checkBoxCollectPieSlices.CheckAlign = System.Drawing.ContentAlignment.MiddleRight; this.checkBoxCollectPieSlices.Font = new System.Drawing.Font("Verdana", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.checkBoxCollectPieSlices.Location = new System.Drawing.Point(38, 8); this.checkBoxCollectPieSlices.Name = "checkBoxCollectPieSlices"; this.checkBoxCollectPieSlices.Size = new System.Drawing.Size(160, 24); this.checkBoxCollectPieSlices.TabIndex = 1; this.checkBoxCollectPieSlices.Text = "Collect &Pie Slices: "; this.checkBoxCollectPieSlices.TextAlign = System.Drawing.ContentAlignment.MiddleRight; this.checkBoxCollectPieSlices.UseVisualStyleBackColor = false; this.checkBoxCollectPieSlices.CheckedChanged += new System.EventHandler(this.checkBoxCollectPieSlices_CheckedChanged); // // checkBoxShowExploded // this.checkBoxShowExploded.BackColor = System.Drawing.Color.White; this.checkBoxShowExploded.CheckAlign = System.Drawing.ContentAlignment.MiddleRight; this.checkBoxShowExploded.Font = new System.Drawing.Font("Verdana", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.checkBoxShowExploded.Location = new System.Drawing.Point(62, 165); this.checkBoxShowExploded.Name = "checkBoxShowExploded"; this.checkBoxShowExploded.Size = new System.Drawing.Size(136, 24); this.checkBoxShowExploded.TabIndex = 6; this.checkBoxShowExploded.Text = "&Show Exploded: "; this.checkBoxShowExploded.TextAlign = System.Drawing.ContentAlignment.MiddleRight; this.checkBoxShowExploded.UseVisualStyleBackColor = false; this.checkBoxShowExploded.CheckedChanged += new System.EventHandler(this.checkBoxcollectSmallSegments_CheckedChanged); // // comboBoxChartType // this.comboBoxChartType.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.comboBoxChartType.Font = new System.Drawing.Font("Verdana", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.comboBoxChartType.ItemHeight = 14; this.comboBoxChartType.Items.AddRange(new object[] { "Pie", "Doughnut" }); this.comboBoxChartType.Location = new System.Drawing.Point(184, 195); this.comboBoxChartType.Name = "comboBoxChartType"; this.comboBoxChartType.Size = new System.Drawing.Size(104, 22); this.comboBoxChartType.TabIndex = 7; this.comboBoxChartType.SelectedIndexChanged += new System.EventHandler(this.comboBoxChartType_SelectedIndexChanged); // // label1 // this.label1.BackColor = System.Drawing.Color.White; this.label1.Font = new System.Drawing.Font("Verdana", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label1.Location = new System.Drawing.Point(99, 194); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(80, 23); this.label1.TabIndex = 7; this.label1.Text = "Chart &Type:"; this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // panel1 // this.panel1.BackColor = System.Drawing.Color.White; this.panel1.Controls.Add(this.textBoxCollectedLegend); this.panel1.Controls.Add(this.label2); this.panel1.Controls.Add(this.comboBoxCollectedThreshold); this.panel1.Controls.Add(this.textBoxCollectedLabel); this.panel1.Controls.Add(this.label6); this.panel1.Controls.Add(this.label5); this.panel1.Controls.Add(this.comboBoxCollectedColor); this.panel1.Controls.Add(this.label4); this.panel1.Controls.Add(this.checkBoxCollectPieSlices); this.panel1.Controls.Add(this.checkBoxShowExploded); this.panel1.Controls.Add(this.comboBoxChartType); this.panel1.Controls.Add(this.label1); this.panel1.Font = new System.Drawing.Font("Verdana", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.panel1.Location = new System.Drawing.Point(432, 69); this.panel1.Name = "panel1"; this.panel1.Size = new System.Drawing.Size(292, 288); this.panel1.TabIndex = 0; // // textBoxCollectedLegend // this.textBoxCollectedLegend.Font = new System.Drawing.Font("Verdana", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.textBoxCollectedLegend.Location = new System.Drawing.Point(184, 136); this.textBoxCollectedLegend.MaxLength = 12; this.textBoxCollectedLegend.Name = "textBoxCollectedLegend"; this.textBoxCollectedLegend.Size = new System.Drawing.Size(104, 22); this.textBoxCollectedLegend.TabIndex = 5; this.textBoxCollectedLegend.TextChanged += new System.EventHandler(this.textBoxCollectedLegend_TextChanged); // // label2 // this.label2.BackColor = System.Drawing.Color.White; this.label2.Font = new System.Drawing.Font("Verdana", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label2.Location = new System.Drawing.Point(27, 136); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(152, 23); this.label2.TabIndex = 5; this.label2.Text = "Collected &Legend Text:"; this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // PieCollected // 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 = "PieCollected"; this.Size = new System.Drawing.Size(728, 368); this.Load += new System.EventHandler(this.PieChartType_Load); ((System.ComponentModel.ISupportInitialize)(this.chart1)).EndInit(); this.panel1.ResumeLayout(false); this.panel1.PerformLayout(); this.ResumeLayout(false); }
public void Update_DataChart(BoTech.Button sender, double Target, double IntercalY, double SelectionStartY, double SelectionEndY, double[] DataSoures) { //初始化图表显示 Chart_CheckData.Titles.Clear(); Chart_CheckData.Series.Clear(); Chart_CheckData.ChartAreas.Clear(); Chart_CheckData.ChartAreas.Add("CheckData"); System.Windows.Forms.DataVisualization.Charting.ChartArea with_2 = Chart_CheckData.ChartAreas["CheckData"]; //作图区的显示属性设置 with_2.BackColor = Color.White; with_2.AxisX.IsMarginVisible = false; with_2.Area3DStyle.Enable3D = false; with_2.AxisX.LineColor = Color.Black; with_2.AxisY.LineColor = Color.Black; with_2.AxisX.LineWidth = 1; with_2.AxisY.LineWidth = 1; with_2.AxisX.Title = ""; with_2.AxisY.Title = ""; with_2.AxisX.MajorGrid.LineColor = Color.LightGray; with_2.AxisY.MajorGrid.LineColor = Color.LightGray; with_2.AxisX.MajorGrid.LineDashStyle = ChartDashStyle.Solid; with_2.AxisY.MajorGrid.LineDashStyle = ChartDashStyle.Solid; with_2.AxisX.MajorTickMark.Interval = 5; with_2.AxisX.IsLabelAutoFit = false; with_2.AxisX.Interval = 5; with_2.AxisX.MajorGrid.Interval = 1; with_2.AxisY.Interval = IntercalY; with_2.AxisY.MajorGrid.Interval = IntercalY; with_2.AxisY.Maximum = SelectionEndY; with_2.AxisY.Minimum = SelectionStartY; with_2.AxisX.Maximum = 50; //USL + 0.1 with_2.AxisX.Minimum = 0; // LSL - 0.1 Chart_CheckData.Series.Add("Data_" + sender.Text); System.Windows.Forms.DataVisualization.Charting.Series with_3 = Chart_CheckData.Series["Data_" + sender.Text]; //点颜色 with_3.ChartType = System.Windows.Forms.DataVisualization.Charting.SeriesChartType.Line; with_3.Color = Color.Blue; with_3.IsVisibleInLegend = false; with_3.IsValueShownAsLabel = false; for (int i = 0; i <= 50; i++) { with_3.Points.AddXY(i, DataSoures[50 - i]); with_3.Points[i].MarkerStyle = MarkerStyle.Diamond; with_3.Points[i].MarkerColor = Color.Gold; } Chart_CheckData.Series.Add("Target"); System.Windows.Forms.DataVisualization.Charting.Series with_4 = Chart_CheckData.Series["Target"]; with_4.ChartType = System.Windows.Forms.DataVisualization.Charting.SeriesChartType.Spline; with_4.Color = Color.Red; with_4.IsVisibleInLegend = false; with_4.IsValueShownAsLabel = false; for (int i = 0; i <= 50; i++) { with_4.Points.AddXY(i, Target); } //Chart_CheckData.Update(); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.components = new System.ComponentModel.Container(); System.Windows.Forms.DataVisualization.Charting.ChartArea 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 series3 = new System.Windows.Forms.DataVisualization.Charting.Series(); System.Windows.Forms.DataVisualization.Charting.Series series4 = new System.Windows.Forms.DataVisualization.Charting.Series(); this.contextMenuStrip1 = new System.Windows.Forms.ContextMenuStrip(this.components); this.制绘图ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.移动图例LToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator(); this.绘图另存为SToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.toolStripSeparator2 = new System.Windows.Forms.ToolStripSeparator(); this.隐藏打开按钮面板VToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.buttonZoomInY = new System.Windows.Forms.Button(); this.buttonZoomOutY = new System.Windows.Forms.Button(); this.buttonZoomXIn = new System.Windows.Forms.Button(); this.buttonZoomXOut = new System.Windows.Forms.Button(); this.buttonDouwnY = new System.Windows.Forms.Button(); this.button_upX = new System.Windows.Forms.Button(); this.buttonUpY = new System.Windows.Forms.Button(); this.button_downX = new System.Windows.Forms.Button(); this.button_resetY = new System.Windows.Forms.Button(); this.button_resetX = new System.Windows.Forms.Button(); this.chart1 = new System.Windows.Forms.DataVisualization.Charting.Chart(); this.button_setting = new System.Windows.Forms.Button(); this.button_openNewTableWihFormat = new System.Windows.Forms.Button(); this.saveFileDialog1 = new System.Windows.Forms.SaveFileDialog(); this.button_simpleSet = new System.Windows.Forms.Button(); this.panel_buttons = new System.Windows.Forms.Panel(); this.label_notice = new System.Windows.Forms.Label(); this.新窗口打开绘图NToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.toolStripSeparator3 = new System.Windows.Forms.ToolStripSeparator(); this.contextMenuStrip1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.chart1)).BeginInit(); this.panel_buttons.SuspendLayout(); this.SuspendLayout(); // // contextMenuStrip1 // this.contextMenuStrip1.ImageScalingSize = new System.Drawing.Size(20, 20); this.contextMenuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.制绘图ToolStripMenuItem, this.移动图例LToolStripMenuItem, this.toolStripSeparator3, this.新窗口打开绘图NToolStripMenuItem, this.toolStripSeparator1, this.绘图另存为SToolStripMenuItem, this.toolStripSeparator2, this.隐藏打开按钮面板VToolStripMenuItem }); this.contextMenuStrip1.Name = "contextMenuStrip1"; this.contextMenuStrip1.Size = new System.Drawing.Size(194, 132); // // 复制绘图ToolStripMenuItem // this.制绘图ToolStripMenuItem.Name = "复制绘图ToolStripMenuItem"; this.制绘图ToolStripMenuItem.Size = new System.Drawing.Size(193, 22); this.制绘图ToolStripMenuItem.Text = "复制绘图(&C)"; this.制绘图ToolStripMenuItem.Click += new System.EventHandler(this.制绘图ToolStripMenuItem_Click); // // 移动图例LToolStripMenuItem // this.移动图例LToolStripMenuItem.Name = "移动图例LToolStripMenuItem"; this.移动图例LToolStripMenuItem.Size = new System.Drawing.Size(193, 22); this.移动图例LToolStripMenuItem.Text = "移动图例(&L)"; this.移动图例LToolStripMenuItem.Click += new System.EventHandler(this.移动图例LToolStripMenuItem_Click); // // toolStripSeparator1 // this.toolStripSeparator1.Name = "toolStripSeparator1"; this.toolStripSeparator1.Size = new System.Drawing.Size(190, 6); // // 绘图另存为SToolStripMenuItem // this.绘图另存为SToolStripMenuItem.Name = "绘图另存为SToolStripMenuItem"; this.绘图另存为SToolStripMenuItem.Size = new System.Drawing.Size(193, 22); this.绘图另存为SToolStripMenuItem.Text = "绘图另存为(&S)"; this.绘图另存为SToolStripMenuItem.Click += new System.EventHandler(this.绘图另存为SToolStripMenuItem_Click); // // toolStripSeparator2 // this.toolStripSeparator2.Name = "toolStripSeparator2"; this.toolStripSeparator2.Size = new System.Drawing.Size(190, 6); // // 隐藏打开按钮面板VToolStripMenuItem // this.隐藏打开按钮面板VToolStripMenuItem.Name = "隐藏打开按钮面板VToolStripMenuItem"; this.隐藏打开按钮面板VToolStripMenuItem.Size = new System.Drawing.Size(193, 22); this.隐藏打开按钮面板VToolStripMenuItem.Text = "隐藏/打开按钮面板(&V)"; this.隐藏打开按钮面板VToolStripMenuItem.Click += new System.EventHandler(this.隐藏打开按钮面板VToolStripMenuItem_Click); // // buttonZoomInY // this.buttonZoomInY.Location = new System.Drawing.Point(488, 4); this.buttonZoomInY.Name = "buttonZoomInY"; this.buttonZoomInY.Size = new System.Drawing.Size(33, 23); this.buttonZoomInY.TabIndex = 1; this.buttonZoomInY.Text = "Y+"; this.buttonZoomInY.UseVisualStyleBackColor = true; this.buttonZoomInY.Click += new System.EventHandler(this.buttonZoomInY_Click); // // buttonZoomOutY // this.buttonZoomOutY.Location = new System.Drawing.Point(522, 4); this.buttonZoomOutY.Name = "buttonZoomOutY"; this.buttonZoomOutY.Size = new System.Drawing.Size(33, 23); this.buttonZoomOutY.TabIndex = 2; this.buttonZoomOutY.Text = "Y-"; this.buttonZoomOutY.UseVisualStyleBackColor = true; this.buttonZoomOutY.Click += new System.EventHandler(this.buttonZoomOutY_Click); // // buttonZoomXIn // this.buttonZoomXIn.Location = new System.Drawing.Point(359, 4); this.buttonZoomXIn.Name = "buttonZoomXIn"; this.buttonZoomXIn.Size = new System.Drawing.Size(33, 23); this.buttonZoomXIn.TabIndex = 1; this.buttonZoomXIn.Text = "X+"; this.buttonZoomXIn.UseVisualStyleBackColor = true; this.buttonZoomXIn.Click += new System.EventHandler(this.buttonZoomXIn_Click); // // buttonZoomXOut // this.buttonZoomXOut.Location = new System.Drawing.Point(396, 4); this.buttonZoomXOut.Name = "buttonZoomXOut"; this.buttonZoomXOut.Size = new System.Drawing.Size(33, 23); this.buttonZoomXOut.TabIndex = 2; this.buttonZoomXOut.Text = "X-"; this.buttonZoomXOut.UseVisualStyleBackColor = true; this.buttonZoomXOut.Click += new System.EventHandler(this.buttonZoomXOut_Click); // // buttonDouwnY // this.buttonDouwnY.Location = new System.Drawing.Point(622, 4); this.buttonDouwnY.Name = "buttonDouwnY"; this.buttonDouwnY.Size = new System.Drawing.Size(33, 23); this.buttonDouwnY.TabIndex = 1; this.buttonDouwnY.Text = "↓"; this.buttonDouwnY.UseVisualStyleBackColor = true; this.buttonDouwnY.Click += new System.EventHandler(this.buttonDouwnY_Click); // // button_upX // this.button_upX.Location = new System.Drawing.Point(656, 4); this.button_upX.Name = "button_upX"; this.button_upX.Size = new System.Drawing.Size(32, 23); this.button_upX.TabIndex = 1; this.button_upX.Text = "→"; this.button_upX.UseVisualStyleBackColor = true; this.button_upX.Click += new System.EventHandler(this.button_upX_Click); // // buttonUpY // this.buttonUpY.Location = new System.Drawing.Point(586, 4); this.buttonUpY.Name = "buttonUpY"; this.buttonUpY.Size = new System.Drawing.Size(33, 23); this.buttonUpY.TabIndex = 2; this.buttonUpY.Text = "↑"; this.buttonUpY.UseVisualStyleBackColor = true; this.buttonUpY.Click += new System.EventHandler(this.buttonUpY_Click); // // button_downX // this.button_downX.Location = new System.Drawing.Point(556, 4); this.button_downX.Name = "button_downX"; this.button_downX.Size = new System.Drawing.Size(28, 23); this.button_downX.TabIndex = 2; this.button_downX.Text = "←"; this.button_downX.UseVisualStyleBackColor = true; this.button_downX.Click += new System.EventHandler(this.button_downX_Click); // // button_resetY // this.button_resetY.Location = new System.Drawing.Point(433, 4); this.button_resetY.Name = "button_resetY"; this.button_resetY.Size = new System.Drawing.Size(55, 23); this.button_resetY.TabIndex = 3; this.button_resetY.Text = "重置 Y"; this.button_resetY.UseVisualStyleBackColor = true; this.button_resetY.Click += new System.EventHandler(this.button_resetY_Click); // // button_resetX // this.button_resetX.Location = new System.Drawing.Point(300, 4); this.button_resetX.Name = "button_resetX"; this.button_resetX.Size = new System.Drawing.Size(55, 23); this.button_resetX.TabIndex = 4; this.button_resetX.Text = "重置 X"; this.button_resetX.UseVisualStyleBackColor = true; this.button_resetX.Click += new System.EventHandler(this.button_resetX_Click); // // chart1 // chartArea2.AxisX.IntervalAutoMode = System.Windows.Forms.DataVisualization.Charting.IntervalAutoMode.VariableCount; chartArea2.AxisX.IsMarginVisible = false; chartArea2.AxisX.IsStartedFromZero = false; chartArea2.AxisX.MajorGrid.LineColor = System.Drawing.Color.Silver; chartArea2.AxisX.MajorGrid.LineDashStyle = System.Windows.Forms.DataVisualization.Charting.ChartDashStyle.Dash; chartArea2.AxisY.IntervalAutoMode = System.Windows.Forms.DataVisualization.Charting.IntervalAutoMode.VariableCount; chartArea2.AxisY.MajorGrid.LineColor = System.Drawing.Color.DimGray; chartArea2.AxisY.MajorGrid.LineDashStyle = System.Windows.Forms.DataVisualization.Charting.ChartDashStyle.Dash; chartArea2.AxisY.ScrollBar.IsPositionedInside = false; chartArea2.Name = "ChartArea1"; this.chart1.ChartAreas.Add(chartArea2); this.chart1.ContextMenuStrip = this.contextMenuStrip1; this.chart1.Dock = System.Windows.Forms.DockStyle.Fill; legend2.Name = "Legend1"; this.chart1.Legends.Add(legend2); this.chart1.Location = new System.Drawing.Point(0, 0); this.chart1.Name = "chart1"; series3.ChartArea = "ChartArea1"; series3.ChartType = System.Windows.Forms.DataVisualization.Charting.SeriesChartType.Line; series3.Legend = "Legend1"; series3.Name = "Series1"; series4.ChartArea = "ChartArea1"; series4.ChartType = System.Windows.Forms.DataVisualization.Charting.SeriesChartType.Line; series4.Legend = "Legend1"; series4.Name = "Series2"; this.chart1.Series.Add(series3); this.chart1.Series.Add(series4); this.chart1.Size = new System.Drawing.Size(827, 392); this.chart1.TabIndex = 0; this.chart1.Text = "chart1"; this.chart1.KeyDown += new System.Windows.Forms.KeyEventHandler(this.chart1_KeyDown); this.chart1.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.chart1_KeyPress); this.chart1.MouseDown += new System.Windows.Forms.MouseEventHandler(this.chart1_MouseDown); this.chart1.MouseMove += new System.Windows.Forms.MouseEventHandler(this.chart1_MouseMove); this.chart1.MouseUp += new System.Windows.Forms.MouseEventHandler(this.chart1_MouseUp); this.chart1.PreviewKeyDown += new System.Windows.Forms.PreviewKeyDownEventHandler(this.chart1_PreviewKeyDown); // // button_setting // this.button_setting.Location = new System.Drawing.Point(219, 4); this.button_setting.Name = "button_setting"; this.button_setting.Size = new System.Drawing.Size(75, 23); this.button_setting.TabIndex = 5; this.button_setting.Text = "详细设置"; this.button_setting.UseVisualStyleBackColor = true; this.button_setting.Click += new System.EventHandler(this.button_setting_Click); // // button_openNewTableWihFormat // this.button_openNewTableWihFormat.Location = new System.Drawing.Point(85, 4); this.button_openNewTableWihFormat.Name = "button_openNewTableWihFormat"; this.button_openNewTableWihFormat.Size = new System.Drawing.Size(128, 23); this.button_openNewTableWihFormat.TabIndex = 6; this.button_openNewTableWihFormat.Text = "保留格式打开新文件"; this.button_openNewTableWihFormat.UseVisualStyleBackColor = true; this.button_openNewTableWihFormat.Click += new System.EventHandler(this.button_openNewTableWihFormat_Click); // // saveFileDialog1 // this.saveFileDialog1.Filter = "PNG 图片|*.png|JPG 图片|*.jpg"; // // button_simpleSet // this.button_simpleSet.Location = new System.Drawing.Point(4, 4); this.button_simpleSet.Name = "button_simpleSet"; this.button_simpleSet.Size = new System.Drawing.Size(75, 23); this.button_simpleSet.TabIndex = 5; this.button_simpleSet.Text = "简要设置"; this.button_simpleSet.UseVisualStyleBackColor = true; this.button_simpleSet.Click += new System.EventHandler(this.button_simpleSet_Click); // // panel_buttons // this.panel_buttons.Controls.Add(this.label_notice); this.panel_buttons.Controls.Add(this.button_openNewTableWihFormat); this.panel_buttons.Controls.Add(this.button_upX); this.panel_buttons.Controls.Add(this.button_resetX); this.panel_buttons.Controls.Add(this.button_resetY); this.panel_buttons.Controls.Add(this.buttonZoomInY); this.panel_buttons.Controls.Add(this.buttonDouwnY); this.panel_buttons.Controls.Add(this.buttonZoomOutY); this.panel_buttons.Controls.Add(this.button_setting); this.panel_buttons.Controls.Add(this.buttonZoomXOut); this.panel_buttons.Controls.Add(this.button_downX); this.panel_buttons.Controls.Add(this.buttonZoomXIn); this.panel_buttons.Controls.Add(this.button_simpleSet); this.panel_buttons.Controls.Add(this.buttonUpY); this.panel_buttons.Dock = System.Windows.Forms.DockStyle.Bottom; this.panel_buttons.Location = new System.Drawing.Point(0, 392); this.panel_buttons.Name = "panel_buttons"; this.panel_buttons.Size = new System.Drawing.Size(827, 37); this.panel_buttons.TabIndex = 7; // // label_notice // this.label_notice.AutoSize = true; this.label_notice.Location = new System.Drawing.Point(694, 9); this.label_notice.Name = "label_notice"; this.label_notice.Size = new System.Drawing.Size(281, 12); this.label_notice.TabIndex = 7; this.label_notice.Text = "提示:滚动鼠标+Shift/Alt/Control键,可实现放缩"; // // 新窗口打开绘图NToolStripMenuItem // this.新窗口打开绘图NToolStripMenuItem.Name = "新窗口打开绘图NToolStripMenuItem"; this.新窗口打开绘图NToolStripMenuItem.Size = new System.Drawing.Size(193, 22); this.新窗口打开绘图NToolStripMenuItem.Text = "新窗口打开绘图(&N)"; this.新窗口打开绘图NToolStripMenuItem.Click += new System.EventHandler(this.新窗口打开绘图NToolStripMenuItem_Click); // // toolStripSeparator3 // this.toolStripSeparator3.Name = "toolStripSeparator3"; this.toolStripSeparator3.Size = new System.Drawing.Size(190, 6); // // CommonChartControl // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.Controls.Add(this.chart1); this.Controls.Add(this.panel_buttons); this.Name = "CommonChartControl"; this.Size = new System.Drawing.Size(827, 429); this.Load += new System.EventHandler(this.CommonChartForm_Load); this.contextMenuStrip1.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.chart1)).EndInit(); this.panel_buttons.ResumeLayout(false); this.panel_buttons.PerformLayout(); this.ResumeLayout(false); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { System.Windows.Forms.DataVisualization.Charting.ChartArea chartArea1 = new System.Windows.Forms.DataVisualization.Charting.ChartArea(); System.Windows.Forms.DataVisualization.Charting.Legend legend1 = new System.Windows.Forms.DataVisualization.Charting.Legend(); System.Windows.Forms.DataVisualization.Charting.Series series1 = new System.Windows.Forms.DataVisualization.Charting.Series(); System.Windows.Forms.DataVisualization.Charting.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.label1 = new System.Windows.Forms.Label(); ((System.ComponentModel.ISupportInitialize)(this.chart1)).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.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.IsMarginVisible = false; chartArea1.AxisX.LabelStyle.Font = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold); chartArea1.AxisX.LabelStyle.Format = "MMM dd"; chartArea1.AxisX.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea1.AxisX.MajorGrid.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea1.AxisX.ScaleView.Position = 10; chartArea1.AxisX.ScaleView.Size = 20; chartArea1.AxisX.ScrollBar.BackColor = System.Drawing.Color.AliceBlue; chartArea1.AxisX.ScrollBar.ButtonColor = System.Drawing.Color.LightSteelBlue; chartArea1.AxisX.ScrollBar.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea1.AxisY.IsLabelAutoFit = false; chartArea1.AxisY.LabelStyle.Font = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold); chartArea1.AxisY.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea1.AxisY.MajorGrid.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea1.AxisY.ScrollBar.BackColor = System.Drawing.Color.AliceBlue; chartArea1.AxisY.ScrollBar.ButtonColor = System.Drawing.Color.LightSteelBlue; chartArea1.AxisY.ScrollBar.LineColor = System.Drawing.Color.FromArgb(((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.CursorX.IsUserEnabled = true; chartArea1.CursorX.IsUserSelectionEnabled = true; chartArea1.CursorX.SelectionColor = System.Drawing.Color.Gray; chartArea1.CursorY.SelectionColor = System.Drawing.Color.Gray; 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.XValueType = System.Windows.Forms.DataVisualization.Charting.ChartValueType.DateTime; this.chart1.Series.Add(series1); this.chart1.Size = new System.Drawing.Size(412, 296); this.chart1.TabIndex = 0; title1.Name = "Title1"; title1.Text = "AxisViewChanged Event"; this.chart1.Titles.Add(title1); this.chart1.AxisViewChanged += new System.EventHandler <System.Windows.Forms.DataVisualization.Charting.ViewEventArgs>(this.chart1_AxisViewChanged); 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, 48); this.labelSampleComment.TabIndex = 2; this.labelSampleComment.Text = "This sample demonstrates how to use the AxisViewChanged event to dynamically chan" + "ge the chart title based on the position and size of the X axis data view."; 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, 48); this.label1.TabIndex = 3; this.label1.Text = "The AxisViewChanged and AxisViewChanging events can also be used to limit the siz" + "e of data views."; this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // ViewChangedEvent // 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 = "ViewChangedEvent"; this.Size = new System.Drawing.Size(728, 448); this.Load += new System.EventHandler(this.ViewChangedEvent_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.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.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); }
private bool drawLineChart(Chart chartName, string chartTitle, double[] normDistdataX, double[] normDistdataY, double[] densitydataX, double[] densitydataY, string seriesName1, string seriesName2, double USL = 0, double LSL = 0, double Target = 0) { try { //初始化图表显示 Chart with_1 = chartName; with_1.Titles.Clear(); with_1.Series.Clear(); with_1.ChartAreas.Clear(); with_1.ChartAreas.Add("CPK"); System.Windows.Forms.DataVisualization.Charting.ChartArea with_2 = chartName.ChartAreas["CPK"]; //作图区的显示属性设置 with_2.AxisX.IsMarginVisible = false; with_2.Area3DStyle.Enable3D = false; with_2.AxisX.LineColor = Color.LightGray; with_2.AxisY.LineColor = Color.LightGray; with_2.AxisX.LineWidth = 2; with_2.AxisY.LineWidth = 2; with_2.AxisX.Title = ""; with_2.AxisY.Title = ""; with_2.AxisX.MajorGrid.LineColor = Color.LightGray; with_2.AxisY.MajorGrid.LineColor = Color.LightGray; with_2.AxisX.MajorGrid.LineDashStyle = ChartDashStyle.Solid; with_2.AxisY.MajorGrid.LineDashStyle = ChartDashStyle.Solid; with_2.AxisX.MajorGrid.Interval = USL / 2; with_2.AxisY.MajorGrid.Interval = 0.04; //.AxisY.IsLabelAutoFit = True //.AxisY.IsStartedFromZero = False with_2.AxisX.MajorTickMark.Interval = 0.5; with_2.AxisX.IsLabelAutoFit = false; with_2.AxisX.Interval = USL; with_2.AxisY.Maximum = 1; with_2.AxisY.Minimum = 0; //.AxisX.Maximum = USL + 0.1 //.AxisX.Minimum = LSL - 0.1 with_2.AxisX.Maximum = USL * 2; with_2.AxisX.Minimum = LSL * 2; chartName.Series.Add("Shadow"); System.Windows.Forms.DataVisualization.Charting.Series with_3 = chartName.Series["Shadow"]; with_3.ChartType = System.Windows.Forms.DataVisualization.Charting.SeriesChartType.Column; with_3.CustomProperties += "PointWidth=2"; with_3.Color = Color.FromArgb(229, 242, 249); with_3.IsVisibleInLegend = false; with_3.IsValueShownAsLabel = false; for (int i = 0; i <= densitydataX.Length - 1; i++) { chartName.Series["Shadow"].Points.AddXY(densitydataX[i], densitydataY[i]); } chartName.Series.Add(seriesName2); System.Windows.Forms.DataVisualization.Charting.Series with_4 = chartName.Series[seriesName2]; with_4.ChartType = System.Windows.Forms.DataVisualization.Charting.SeriesChartType.Spline; with_4.Color = Color.Green; //Color.FromArgb(192, 250, 192) 'Color.FromArgb(229, 242, 249) with_4.BorderWidth = (int)1.2; with_4.IsVisibleInLegend = false; with_4.IsValueShownAsLabel = false; for (int i = 0; i <= densitydataX.Length - 1; i++) { chartName.Series[seriesName2].Points.AddXY(densitydataX[i], densitydataY[i]); } chartName.Series.Add(seriesName1); System.Windows.Forms.DataVisualization.Charting.Series with_5 = chartName.Series[seriesName1]; with_5.ChartType = System.Windows.Forms.DataVisualization.Charting.SeriesChartType.Spline; with_5.Color = Color.Blue; with_5.BorderWidth = (int)1.1; with_5.IsVisibleInLegend = false; with_5.IsValueShownAsLabel = false; for (int i = 0; i <= normDistdataX.Length - 1; i++) { chartName.Series[seriesName1].Points.AddXY(normDistdataX[i], normDistdataY[i]); } drawStripLines(chartName, "USL", USL, 2, Color.Blue); drawStripLines(chartName, "Target", Target, 2, Color.Black); drawStripLines(chartName, "LSL", LSL, 2, Color.BlueViolet); return(true); } catch (Exception ex) { MessageBox.Show(ex.Message); return(false); } }
public Chart GenerateChart(string title, List <string> keys, List <string> names, DateTime startTime, DateTime endTime) { List <DataSeries> dataSeriesList; Chart chart; ChartArea area; Series series; DateTime dataStart; DateTime dataEnd; DateTime topOfMinute; double seconds; if (keys.Count == 0) { return(null); } dataSeriesList = keys.Select(GetDataSeries).ToList(); // Snap startTime and endTime // to the data's time boundaries dataStart = ToDateTime(0); dataEnd = ToDateTime(dataSeriesList[0].DataPoints.Count - 1); if (startTime < dataStart) { startTime = dataStart; } if (endTime > dataEnd) { endTime = dataEnd; } // Align startTime with top of the minute topOfMinute = startTime.AddTicks(-(startTime.Ticks % TimeSpan.TicksPerMinute)); area = new ChartArea(); area.AxisX.Title = string.Format("Seconds since {0:MM/dd/yyyy HH:mm}", startTime); area.AxisX.MajorGrid.Enabled = false; area.AxisX.LabelStyle.Format = "0.000"; area.AxisY.Title = title; area.AxisY.LabelStyle.Format = "0"; area.AxisY.MajorGrid.LineColor = Color.LightGray; chart = new Chart(); chart.Legends.Add(new Legend()); chart.ChartAreas.Add(area); for (int i = 0; i < dataSeriesList.Count; i++) { if ((object)dataSeriesList[i] == null) { continue; } series = new Series(names[i]); series.ChartType = SeriesChartType.FastLine; series.BorderWidth = 5; foreach (DataPoint dataPoint in dataSeriesList[i].DataPoints) { if (dataPoint.Time < startTime) { continue; } if (dataPoint.Time > endTime) { break; } if (double.IsNaN(dataPoint.Value)) { continue; } seconds = (dataPoint.Time - topOfMinute).TotalSeconds; series.Points.AddXY(seconds, dataPoint.Value); } chart.Series.Add(series); } area.AxisX.Maximum = (endTime - topOfMinute).TotalSeconds; area.AxisX.Minimum = (startTime - topOfMinute).TotalSeconds; return(chart); }
/// <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.DataPoint dataPoint1 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 12); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint2 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 12); 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, 15); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint5 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 24); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint6 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 15); System.Windows.Forms.DataVisualization.Charting.Series series2 = new System.Windows.Forms.DataVisualization.Charting.Series(); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint7 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 20); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint8 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 33); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint9 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 96); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint10 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 66); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint11 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 8); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint12 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, 30); System.Windows.Forms.DataVisualization.Charting.Title title1 = new System.Windows.Forms.DataVisualization.Charting.Title(); System.Windows.Forms.DataVisualization.Charting.Title title2 = new System.Windows.Forms.DataVisualization.Charting.Title(); this.label9 = new System.Windows.Forms.Label(); this.panel1 = new System.Windows.Forms.Panel(); this.checkBox1 = new System.Windows.Forms.CheckBox(); this.Chart1 = new System.Windows.Forms.DataVisualization.Charting.Chart(); this.panel1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.Chart1)).BeginInit(); this.SuspendLayout(); // // label9 // this.label9.Font = new System.Drawing.Font("Verdana", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0))); this.label9.Location = new System.Drawing.Point(16, 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 seperate one legend into two seperate legends."; this.label9.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // panel1 // this.panel1.Controls.AddRange(new System.Windows.Forms.Control[] { this.checkBox1 }); this.panel1.Location = new System.Drawing.Point(432, 56); this.panel1.Name = "panel1"; this.panel1.Size = new System.Drawing.Size(292, 288); this.panel1.TabIndex = 1; // // checkBox1 // this.checkBox1.Location = new System.Drawing.Point(48, 8); this.checkBox1.Name = "checkBox1"; this.checkBox1.RightToLeft = System.Windows.Forms.RightToLeft.No; this.checkBox1.Size = new System.Drawing.Size(192, 16); this.checkBox1.TabIndex = 0; this.checkBox1.Text = "&Use two separate legends"; this.checkBox1.CheckedChanged += new System.EventHandler(this.checkBox1_CheckedChanged); // // Chart1 // this.Chart1.BackColor = System.Drawing.Color.WhiteSmoke; this.Chart1.BackSecondaryColor = System.Drawing.Color.White; this.Chart1.BackGradientStyle = System.Windows.Forms.DataVisualization.Charting.GradientStyle.TopBottom; this.Chart1.BorderlineColor = System.Drawing.Color.FromArgb(((System.Byte)(26)), ((System.Byte)(59)), ((System.Byte)(105))); this.Chart1.BorderlineDashStyle = System.Windows.Forms.DataVisualization.Charting.ChartDashStyle.Solid; this.Chart1.BorderlineWidth = 2; this.Chart1.BorderSkin.SkinStyle = System.Windows.Forms.DataVisualization.Charting.BorderSkinStyle.Emboss; chartArea1.Area3DStyle.IsClustered = true; chartArea1.Area3DStyle.Enable3D = true; chartArea1.Area3DStyle.Perspective = 10; chartArea1.Area3DStyle.PointGapDepth = 0; chartArea1.Area3DStyle.IsRightAngleAxes = false; chartArea1.Area3DStyle.WallWidth = 0; chartArea1.Area3DStyle.Inclination = 15; chartArea1.Area3DStyle.Rotation = 10; chartArea1.AxisX.LabelStyle.Font = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold); chartArea1.AxisX.LineColor = System.Drawing.Color.FromArgb(((System.Byte)(64)), ((System.Byte)(64)), ((System.Byte)(64)), ((System.Byte)(64))); chartArea1.AxisX.MajorGrid.LineColor = System.Drawing.Color.FromArgb(((System.Byte)(64)), ((System.Byte)(64)), ((System.Byte)(64)), ((System.Byte)(64))); chartArea1.AxisY.LabelStyle.Font = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold); chartArea1.AxisY.LineColor = System.Drawing.Color.FromArgb(((System.Byte)(64)), ((System.Byte)(64)), ((System.Byte)(64)), ((System.Byte)(64))); chartArea1.AxisY.MajorGrid.LineColor = System.Drawing.Color.FromArgb(((System.Byte)(64)), ((System.Byte)(64)), ((System.Byte)(64)), ((System.Byte)(64))); chartArea1.BackColor = System.Drawing.Color.Transparent; chartArea1.BackSecondaryColor = System.Drawing.Color.White; chartArea1.BorderColor = System.Drawing.Color.FromArgb(((System.Byte)(64)), ((System.Byte)(64)), ((System.Byte)(64)), ((System.Byte)(64))); chartArea1.Name = "Default"; chartArea1.Position.Auto = false; chartArea1.Position.Height = 42.32203F; chartArea1.Position.Width = 86F; chartArea1.Position.X = 4.824818F; chartArea1.Position.Y = 5.542373F; chartArea1.ShadowColor = System.Drawing.Color.Transparent; chartArea2.AlignWithChartArea = "Default"; chartArea2.Area3DStyle.IsClustered = true; chartArea2.Area3DStyle.Enable3D = true; chartArea2.Area3DStyle.Perspective = 10; chartArea2.Area3DStyle.PointGapDepth = 0; chartArea2.Area3DStyle.IsRightAngleAxes = false; chartArea2.Area3DStyle.WallWidth = 0; chartArea2.Area3DStyle.Inclination = 15; chartArea2.Area3DStyle.Rotation = 10; chartArea2.AxisX.LabelStyle.Font = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold); chartArea2.AxisX.LineColor = System.Drawing.Color.FromArgb(((System.Byte)(64)), ((System.Byte)(64)), ((System.Byte)(64)), ((System.Byte)(64))); chartArea2.AxisX.MajorGrid.LineColor = System.Drawing.Color.FromArgb(((System.Byte)(64)), ((System.Byte)(64)), ((System.Byte)(64)), ((System.Byte)(64))); chartArea2.AxisY.LabelStyle.Font = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold); chartArea2.AxisY.LineColor = System.Drawing.Color.FromArgb(((System.Byte)(64)), ((System.Byte)(64)), ((System.Byte)(64)), ((System.Byte)(64))); chartArea2.AxisY.MajorGrid.LineColor = System.Drawing.Color.FromArgb(((System.Byte)(64)), ((System.Byte)(64)), ((System.Byte)(64)), ((System.Byte)(64))); chartArea2.BackColor = System.Drawing.Color.Transparent; chartArea2.BackSecondaryColor = System.Drawing.Color.White; chartArea2.BorderColor = System.Drawing.Color.FromArgb(((System.Byte)(64)), ((System.Byte)(64)), ((System.Byte)(64)), ((System.Byte)(64))); chartArea2.Name = "Chart Area 2"; chartArea2.Position.Auto = false; chartArea2.Position.Height = 42.32203F; chartArea2.Position.Width = 80F; chartArea2.Position.X = 4.824818F; chartArea2.Position.Y = 50.86441F; chartArea2.ShadowColor = System.Drawing.Color.Transparent; this.Chart1.ChartAreas.Add(chartArea1); this.Chart1.ChartAreas.Add(chartArea2); legend1.IsTextAutoFit = false; legend1.BackColor = System.Drawing.Color.Transparent; legend1.BorderColor = System.Drawing.Color.Gray; legend1.IsDockedInsideChartArea = 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, 48); this.Chart1.Name = "Chart1"; this.Chart1.Palette = System.Windows.Forms.DataVisualization.Charting.ChartColorPalette.BrightPastel; series1.BorderColor = System.Drawing.Color.FromArgb(((System.Byte)(180)), ((System.Byte)(26)), ((System.Byte)(59)), ((System.Byte)(105))); series1.ChartArea = "Default"; series1.ChartType = SeriesChartType.Pie; series1.Color = System.Drawing.Color.FromArgb(((System.Byte)(220)), ((System.Byte)(65)), ((System.Byte)(140)), ((System.Byte)(240))); series1.Name = "Series 1"; series1.Points.Add(dataPoint1); series1.Points.Add(dataPoint2); series1.Points.Add(dataPoint3); series1.Points.Add(dataPoint4); series1.Points.Add(dataPoint5); series1.Points.Add(dataPoint6); series2.BorderColor = System.Drawing.Color.FromArgb(((System.Byte)(180)), ((System.Byte)(26)), ((System.Byte)(59)), ((System.Byte)(105))); series2.ChartArea = "Chart Area 2"; series2.ChartType = SeriesChartType.Pie; series2.Color = System.Drawing.Color.FromArgb(((System.Byte)(220)), ((System.Byte)(252)), ((System.Byte)(180)), ((System.Byte)(65))); series2.Name = "Series 2"; series2.Points.Add(dataPoint7); series2.Points.Add(dataPoint8); series2.Points.Add(dataPoint9); series2.Points.Add(dataPoint10); series2.Points.Add(dataPoint11); series2.Points.Add(dataPoint12); this.Chart1.Series.Add(series1); this.Chart1.Series.Add(series2); this.Chart1.Size = new System.Drawing.Size(412, 296); this.Chart1.TabIndex = 1; title1.ForeColor = System.Drawing.Color.FromArgb(((System.Byte)(26)), ((System.Byte)(59)), ((System.Byte)(105))); title1.Docking = System.Windows.Forms.DataVisualization.Charting.Docking.Left; title1.DockedToChartArea = "Default"; 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 = "Series 1"; title2.ForeColor = System.Drawing.Color.FromArgb(((System.Byte)(26)), ((System.Byte)(59)), ((System.Byte)(105))); title2.Docking = System.Windows.Forms.DataVisualization.Charting.Docking.Left; title2.DockedToChartArea = "Chart Area 2"; title2.Font = new System.Drawing.Font("Trebuchet MS", 14.25F, System.Drawing.FontStyle.Bold); title2.ShadowColor = System.Drawing.Color.FromArgb(((System.Byte)(32)), ((System.Byte)(0)), ((System.Byte)(0)), ((System.Byte)(0))); title2.ShadowOffset = -3; title2.Text = "Series 2"; this.Chart1.Titles.Add(title1); this.Chart1.Titles.Add(title2); // // MultipleLegendsWithCheckBox // this.Controls.AddRange(new System.Windows.Forms.Control[] { this.Chart1, this.panel1, this.label9 }); this.Font = new System.Drawing.Font("Verdana", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0))); this.Name = "MultipleLegendsWithCheckBox"; 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.DataPoint dataPoint1 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(36890, 32); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint2 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(36891, 56); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint3 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(36892, 35); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint4 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(36893, 12); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint5 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(36894, 35); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint6 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(36895, 6); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint7 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(36896, 23); 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(36890, 67); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint9 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(36891, 24); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint10 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(36892, 12); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint11 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(36893, 8); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint12 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(36894, 46); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint13 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(36895, 14); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint14 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(36896, 76); 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.comboBoxDrawingStyle = new System.Windows.Forms.ComboBox(); this.label2 = new System.Windows.Forms.Label(); this.comboBoxChartType = new System.Windows.Forms.ComboBox(); this.checkBoxShow3D = new System.Windows.Forms.CheckBox(); this.label3 = new System.Windows.Forms.Label(); this.comboBoxPointWidth = 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.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 = "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.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.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.XValueType = 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.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); series2.XValueType = System.Windows.Forms.DataVisualization.Charting.ChartValueType.DateTime; this.chart1.Series.Add(series1); this.chart1.Series.Add(series2); this.chart1.Size = new System.Drawing.Size(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 = "Column 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, 39); this.labelSampleComment.TabIndex = 2; this.labelSampleComment.Text = "This sample demonstrates the Column and Bar chart types."; this.labelSampleComment.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // panel1 // this.panel1.Controls.Add(this.comboBoxDrawingStyle); this.panel1.Controls.Add(this.label2); this.panel1.Controls.Add(this.comboBoxChartType); this.panel1.Controls.Add(this.checkBoxShow3D); this.panel1.Controls.Add(this.label3); this.panel1.Controls.Add(this.comboBoxPointWidth); this.panel1.Controls.Add(this.label1); this.panel1.Location = new System.Drawing.Point(432, 64); this.panel1.Name = "panel1"; this.panel1.Size = new System.Drawing.Size(292, 288); this.panel1.TabIndex = 0; // // comboBoxDrawingStyle // this.comboBoxDrawingStyle.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.comboBoxDrawingStyle.Items.AddRange(new object[] { "Default", "Emboss", "Cylinder", "Wedge", "LightToDark" }); this.comboBoxDrawingStyle.Location = new System.Drawing.Point(168, 72); this.comboBoxDrawingStyle.Name = "comboBoxDrawingStyle"; this.comboBoxDrawingStyle.Size = new System.Drawing.Size(112, 22); this.comboBoxDrawingStyle.TabIndex = 11; this.comboBoxDrawingStyle.SelectedIndexChanged += new System.EventHandler(this.comboBoxDrawingEffect_SelectedIndexChanged); // // label2 // this.label2.Location = new System.Drawing.Point(51, 72); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(112, 23); this.label2.TabIndex = 10; this.label2.Text = "Drawing Style:"; this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // comboBoxChartType // this.comboBoxChartType.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.comboBoxChartType.Items.AddRange(new object[] { "Column", "Bar" }); this.comboBoxChartType.Location = new System.Drawing.Point(168, 8); this.comboBoxChartType.Name = "comboBoxChartType"; this.comboBoxChartType.Size = new System.Drawing.Size(112, 22); this.comboBoxChartType.TabIndex = 9; this.comboBoxChartType.SelectedIndexChanged += new System.EventHandler(this.comboBoxChartType_SelectedIndexChanged); // // checkBoxShow3D // this.checkBoxShow3D.CheckAlign = System.Drawing.ContentAlignment.MiddleRight; this.checkBoxShow3D.Location = new System.Drawing.Point(22, 103); this.checkBoxShow3D.Name = "checkBoxShow3D"; this.checkBoxShow3D.Size = new System.Drawing.Size(160, 24); this.checkBoxShow3D.TabIndex = 5; this.checkBoxShow3D.Text = "Display chart as 3&D:"; this.checkBoxShow3D.TextAlign = System.Drawing.ContentAlignment.MiddleRight; this.checkBoxShow3D.CheckedChanged += new System.EventHandler(this.checkBoxShow3D_CheckedChanged); // // label3 // this.label3.Location = new System.Drawing.Point(43, 8); this.label3.Name = "label3"; this.label3.Size = new System.Drawing.Size(120, 23); this.label3.TabIndex = 7; this.label3.Text = "Chart &Type:"; this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // comboBoxPointWidth // this.comboBoxPointWidth.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.comboBoxPointWidth.Items.AddRange(new object[] { "1.0", "0.8", "0.6", "0.4" }); this.comboBoxPointWidth.Location = new System.Drawing.Point(168, 40); this.comboBoxPointWidth.Name = "comboBoxPointWidth"; this.comboBoxPointWidth.Size = new System.Drawing.Size(112, 22); this.comboBoxPointWidth.TabIndex = 2; this.comboBoxPointWidth.SelectedIndexChanged += new System.EventHandler(this.comboBoxPointWidth_SelectedIndexChanged); // // label1 // this.label1.Location = new System.Drawing.Point(64, 40); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(96, 23); this.label1.TabIndex = 3; this.label1.Text = "Point &Width:"; this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // BarColumnChartType // 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 = "BarColumnChartType"; this.Size = new System.Drawing.Size(728, 384); this.Load += new System.EventHandler(this.BarColumnChartType_Load); ((System.ComponentModel.ISupportInitialize)(this.chart1)).EndInit(); this.panel1.ResumeLayout(false); this.ResumeLayout(false); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { System.Windows.Forms.DataVisualization.Charting.ChartArea chartArea1 = new System.Windows.Forms.DataVisualization.Charting.ChartArea(); System.Windows.Forms.DataVisualization.Charting.Legend legend1 = new System.Windows.Forms.DataVisualization.Charting.Legend(); System.Windows.Forms.DataVisualization.Charting.Series series1 = new System.Windows.Forms.DataVisualization.Charting.Series(); System.Windows.Forms.DataVisualization.Charting.Series series2 = new System.Windows.Forms.DataVisualization.Charting.Series(); System.Windows.Forms.DataVisualization.Charting.Series series3 = new System.Windows.Forms.DataVisualization.Charting.Series(); this.label9 = new System.Windows.Forms.Label(); this.panel1 = new System.Windows.Forms.Panel(); this.checkBoxUseMultipleYAxis = new System.Windows.Forms.CheckBox(); this.Chart1 = new System.Windows.Forms.DataVisualization.Charting.Chart(); this.panel1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.Chart1)).BeginInit(); this.SuspendLayout(); // // label9 // this.label9.Font = new System.Drawing.Font("Verdana", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label9.Location = new System.Drawing.Point(16, 8); this.label9.Name = "label9"; this.label9.Size = new System.Drawing.Size(702, 34); this.label9.TabIndex = 0; this.label9.Text = "This sample demonstrates how to display a data series using multiple Y axes. "; this.label9.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // panel1 // this.panel1.Controls.Add(this.checkBoxUseMultipleYAxis); this.panel1.Location = new System.Drawing.Point(432, 56); this.panel1.Name = "panel1"; this.panel1.Size = new System.Drawing.Size(292, 288); this.panel1.TabIndex = 2; // // checkBoxUseMultipleYAxis // this.checkBoxUseMultipleYAxis.Location = new System.Drawing.Point(48, 8); this.checkBoxUseMultipleYAxis.Name = "checkBoxUseMultipleYAxis"; this.checkBoxUseMultipleYAxis.Size = new System.Drawing.Size(172, 24); this.checkBoxUseMultipleYAxis.TabIndex = 0; this.checkBoxUseMultipleYAxis.Text = "Use Multiple &Y Axis: "; this.checkBoxUseMultipleYAxis.CheckedChanged += new System.EventHandler(this.checkBoxUseMultipleYAxis_CheckedChanged); // // Chart1 // this.Chart1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(243)))), ((int)(((byte)(223)))), ((int)(((byte)(193))))); this.Chart1.BackGradientStyle = System.Windows.Forms.DataVisualization.Charting.GradientStyle.TopBottom; this.Chart1.BorderlineColor = System.Drawing.Color.FromArgb(((int)(((byte)(181)))), ((int)(((byte)(64)))), ((int)(((byte)(1))))); this.Chart1.BorderlineDashStyle = System.Windows.Forms.DataVisualization.Charting.ChartDashStyle.Solid; this.Chart1.BorderlineWidth = 2; this.Chart1.BorderSkin.SkinStyle = System.Windows.Forms.DataVisualization.Charting.BorderSkinStyle.Emboss; chartArea1.Area3DStyle.Inclination = 15; chartArea1.Area3DStyle.IsClustered = true; chartArea1.Area3DStyle.IsRightAngleAxes = false; chartArea1.Area3DStyle.Perspective = 10; chartArea1.Area3DStyle.Rotation = 10; chartArea1.Area3DStyle.WallWidth = 0; chartArea1.AxisX.IntervalAutoMode = System.Windows.Forms.DataVisualization.Charting.IntervalAutoMode.VariableCount; chartArea1.AxisX.IsLabelAutoFit = false; chartArea1.AxisX.LabelStyle.Font = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold); chartArea1.AxisX.LabelStyle.Format = "MM/dd"; chartArea1.AxisX.LabelStyle.Interval = 0; chartArea1.AxisX.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea1.AxisX.MajorGrid.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea1.AxisX.MajorTickMark.Size = 2F; chartArea1.AxisY.IsLabelAutoFit = false; chartArea1.AxisY.IsStartedFromZero = false; chartArea1.AxisY.LabelStyle.Font = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold); chartArea1.AxisY.LabelStyle.Format = "N0"; chartArea1.AxisY.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea1.AxisY.MajorGrid.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea1.BackColor = System.Drawing.Color.OldLace; chartArea1.BackGradientStyle = System.Windows.Forms.DataVisualization.Charting.GradientStyle.TopBottom; chartArea1.BackSecondaryColor = System.Drawing.Color.White; chartArea1.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea1.Name = "Default"; chartArea1.ShadowColor = System.Drawing.Color.Transparent; this.Chart1.ChartAreas.Add(chartArea1); legend1.BackColor = System.Drawing.Color.Transparent; legend1.Enabled = false; legend1.Font = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold); legend1.IsTextAutoFit = false; legend1.Name = "Default"; this.Chart1.Legends.Add(legend1); this.Chart1.Location = new System.Drawing.Point(16, 48); this.Chart1.Name = "Chart1"; series1.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(180)))), ((int)(((byte)(26)))), ((int)(((byte)(59)))), ((int)(((byte)(105))))); series1.BorderWidth = 2; series1.ChartArea = "Default"; series1.ChartType = System.Windows.Forms.DataVisualization.Charting.SeriesChartType.Line; series1.Legend = "Default"; series1.Name = "Series1"; series1.ShadowColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); series1.ShadowOffset = 2; series2.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(180)))), ((int)(((byte)(26)))), ((int)(((byte)(59)))), ((int)(((byte)(105))))); series2.BorderWidth = 2; series2.ChartArea = "Default"; series2.ChartType = System.Windows.Forms.DataVisualization.Charting.SeriesChartType.Line; series2.Legend = "Default"; series2.Name = "Series2"; series2.ShadowColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); series2.ShadowOffset = 2; series3.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(180)))), ((int)(((byte)(26)))), ((int)(((byte)(59)))), ((int)(((byte)(105))))); series3.BorderWidth = 2; series3.ChartArea = "Default"; series3.ChartType = System.Windows.Forms.DataVisualization.Charting.SeriesChartType.Line; series3.Legend = "Default"; series3.Name = "Series3"; series3.ShadowColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); series3.ShadowOffset = 2; this.Chart1.Series.Add(series1); this.Chart1.Series.Add(series2); this.Chart1.Series.Add(series3); this.Chart1.Size = new System.Drawing.Size(412, 306); this.Chart1.TabIndex = 1; // // MultipleYAxis // this.Controls.Add(this.Chart1); this.Controls.Add(this.panel1); this.Controls.Add(this.label9); this.Font = new System.Drawing.Font("Verdana", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.Name = "MultipleYAxis"; this.Size = new System.Drawing.Size(728, 480); this.Load += new System.EventHandler(this.MultipleYAxis_Load); this.panel1.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.Chart1)).EndInit(); this.ResumeLayout(false); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { System.Windows.Forms.DataVisualization.Charting.ChartArea chartArea1 = new System.Windows.Forms.DataVisualization.Charting.ChartArea(); System.Windows.Forms.DataVisualization.Charting.Legend legend1 = new System.Windows.Forms.DataVisualization.Charting.Legend(); System.Windows.Forms.DataVisualization.Charting.Series series1 = new System.Windows.Forms.DataVisualization.Charting.Series(); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint1 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, "15,8"); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint2 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, "18,14"); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint3 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, "15,8"); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint4 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, "16,13"); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint5 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, "14,11"); System.Windows.Forms.DataVisualization.Charting.Series series2 = new System.Windows.Forms.DataVisualization.Charting.Series(); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint6 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, "9,15"); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint7 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, "8,14"); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint8 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, "12,10"); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint9 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, "9,14"); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint10 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(0, "7,12"); System.Windows.Forms.DataVisualization.Charting.Title title1 = new System.Windows.Forms.DataVisualization.Charting.Title(); this.chart1 = new System.Windows.Forms.DataVisualization.Charting.Chart(); this.labelSampleComment = new System.Windows.Forms.Label(); this.panel1 = new System.Windows.Forms.Panel(); this.checkBoxShow3D = new System.Windows.Forms.CheckBox(); this.checkBoxShowSizeInLabel = new System.Windows.Forms.CheckBox(); this.comboBoxMinScale = new System.Windows.Forms.ComboBox(); this.label4 = new System.Windows.Forms.Label(); this.comboBoxMaxScale = new System.Windows.Forms.ComboBox(); this.label3 = new System.Windows.Forms.Label(); this.comboBoxMaxSize = new System.Windows.Forms.ComboBox(); this.label2 = new System.Windows.Forms.Label(); this.comboBoxShape = new System.Windows.Forms.ComboBox(); this.label1 = new System.Windows.Forms.Label(); ((System.ComponentModel.ISupportInitialize)(this.chart1)).BeginInit(); this.panel1.SuspendLayout(); this.SuspendLayout(); // // chart1 // this.chart1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(243)))), ((int)(((byte)(223)))), ((int)(((byte)(193))))); this.chart1.BackGradientStyle = System.Windows.Forms.DataVisualization.Charting.GradientStyle.TopBottom; this.chart1.BorderlineColor = System.Drawing.Color.FromArgb(((int)(((byte)(181)))), ((int)(((byte)(64)))), ((int)(((byte)(1))))); this.chart1.BorderlineDashStyle = System.Windows.Forms.DataVisualization.Charting.ChartDashStyle.Solid; this.chart1.BorderlineWidth = 2; this.chart1.BorderSkin.SkinStyle = System.Windows.Forms.DataVisualization.Charting.BorderSkinStyle.Emboss; chartArea1.Area3DStyle.Enable3D = true; chartArea1.Area3DStyle.Inclination = 15; chartArea1.Area3DStyle.IsClustered = true; chartArea1.Area3DStyle.IsRightAngleAxes = false; chartArea1.Area3DStyle.Perspective = 10; chartArea1.Area3DStyle.Rotation = 10; chartArea1.Area3DStyle.WallWidth = 0; chartArea1.AxisX.LabelStyle.Font = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold); chartArea1.AxisX.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea1.AxisX.MajorGrid.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea1.AxisY.LabelStyle.Font = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold); chartArea1.AxisY.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea1.AxisY.MajorGrid.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea1.BackColor = System.Drawing.Color.OldLace; chartArea1.BackSecondaryColor = System.Drawing.Color.White; chartArea1.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); chartArea1.BorderDashStyle = System.Windows.Forms.DataVisualization.Charting.ChartDashStyle.Solid; chartArea1.Name = "Default"; chartArea1.ShadowColor = System.Drawing.Color.Transparent; this.chart1.ChartAreas.Add(chartArea1); legend1.BackColor = System.Drawing.Color.Transparent; legend1.Enabled = false; legend1.Font = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold); legend1.IsTextAutoFit = false; legend1.Name = "Default"; this.chart1.Legends.Add(legend1); this.chart1.Location = new System.Drawing.Point(16, 63); this.chart1.Name = "chart1"; series1.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(180)))), ((int)(((byte)(26)))), ((int)(((byte)(59)))), ((int)(((byte)(105))))); series1.ChartArea = "Default"; series1.ChartType = System.Windows.Forms.DataVisualization.Charting.SeriesChartType.Bubble; series1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(220)))), ((int)(((byte)(65)))), ((int)(((byte)(140)))), ((int)(((byte)(240))))); series1.Font = new System.Drawing.Font("Trebuchet MS", 9F); series1.IsValueShownAsLabel = true; series1.Legend = "Default"; series1.Name = "Default"; series1.Points.Add(dataPoint1); series1.Points.Add(dataPoint2); series1.Points.Add(dataPoint3); series1.Points.Add(dataPoint4); series1.Points.Add(dataPoint5); series1.YValuesPerPoint = 2; series2.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(180)))), ((int)(((byte)(26)))), ((int)(((byte)(59)))), ((int)(((byte)(105))))); series2.ChartArea = "Default"; series2.ChartType = System.Windows.Forms.DataVisualization.Charting.SeriesChartType.Bubble; series2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(220)))), ((int)(((byte)(255)))), ((int)(((byte)(64)))), ((int)(((byte)(10))))); series2.Font = new System.Drawing.Font("Trebuchet MS", 9F); series2.IsValueShownAsLabel = true; series2.Legend = "Default"; series2.Name = "Series2"; series2.Points.Add(dataPoint6); series2.Points.Add(dataPoint7); series2.Points.Add(dataPoint8); series2.Points.Add(dataPoint9); series2.Points.Add(dataPoint10); series2.YValuesPerPoint = 2; this.chart1.Series.Add(series1); this.chart1.Series.Add(series2); this.chart1.Size = new System.Drawing.Size(412, 296); this.chart1.TabIndex = 0; title1.Font = new System.Drawing.Font("Trebuchet MS", 14.25F, System.Drawing.FontStyle.Bold); title1.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(26)))), ((int)(((byte)(59)))), ((int)(((byte)(105))))); title1.Name = "Title1"; title1.ShadowColor = System.Drawing.Color.FromArgb(((int)(((byte)(32)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); title1.ShadowOffset = 3; title1.Text = "Bubble Chart"; this.chart1.Titles.Add(title1); // // labelSampleComment // this.labelSampleComment.Font = new System.Drawing.Font("Verdana", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.labelSampleComment.Location = new System.Drawing.Point(16, 0); this.labelSampleComment.Name = "labelSampleComment"; this.labelSampleComment.Size = new System.Drawing.Size(702, 56); this.labelSampleComment.TabIndex = 2; this.labelSampleComment.Text = "This sample displays a Bubble chart that uses different shapes, including an imag" + "e, for the bubble. It demonstrates how to control the maximum bubble size and sc" + "ale as well as how to enable 3D."; this.labelSampleComment.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // panel1 // this.panel1.Controls.Add(this.checkBoxShow3D); this.panel1.Controls.Add(this.checkBoxShowSizeInLabel); this.panel1.Controls.Add(this.comboBoxMinScale); this.panel1.Controls.Add(this.label4); this.panel1.Controls.Add(this.comboBoxMaxScale); this.panel1.Controls.Add(this.label3); this.panel1.Controls.Add(this.comboBoxMaxSize); this.panel1.Controls.Add(this.label2); this.panel1.Controls.Add(this.comboBoxShape); this.panel1.Controls.Add(this.label1); this.panel1.Location = new System.Drawing.Point(432, 63); this.panel1.Name = "panel1"; this.panel1.Size = new System.Drawing.Size(292, 280); this.panel1.TabIndex = 1; // // checkBoxShow3D // this.checkBoxShow3D.CheckAlign = System.Drawing.ContentAlignment.MiddleRight; this.checkBoxShow3D.Location = new System.Drawing.Point(13, 170); this.checkBoxShow3D.Name = "checkBoxShow3D"; this.checkBoxShow3D.Size = new System.Drawing.Size(168, 24); this.checkBoxShow3D.TabIndex = 9; this.checkBoxShow3D.Text = "Display chart as 3&D:"; this.checkBoxShow3D.TextAlign = System.Drawing.ContentAlignment.MiddleRight; this.checkBoxShow3D.CheckedChanged += new System.EventHandler(this.checkBoxShow3D_CheckedChanged); // // checkBoxShowSizeInLabel // this.checkBoxShowSizeInLabel.CheckAlign = System.Drawing.ContentAlignment.MiddleRight; this.checkBoxShowSizeInLabel.Location = new System.Drawing.Point(-27, 138); this.checkBoxShowSizeInLabel.Name = "checkBoxShowSizeInLabel"; this.checkBoxShowSizeInLabel.Size = new System.Drawing.Size(208, 24); this.checkBoxShowSizeInLabel.TabIndex = 8; this.checkBoxShowSizeInLabel.Text = "Show Size in &Labels:"; this.checkBoxShowSizeInLabel.TextAlign = System.Drawing.ContentAlignment.MiddleRight; this.checkBoxShowSizeInLabel.CheckedChanged += new System.EventHandler(this.checkBoxShowSizeInLabel_CheckedChanged); // // comboBoxMinScale // this.comboBoxMinScale.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.comboBoxMinScale.Items.AddRange(new object[] { "Auto", "-4", "0", "4" }); this.comboBoxMinScale.Location = new System.Drawing.Point(168, 104); this.comboBoxMinScale.Name = "comboBoxMinScale"; this.comboBoxMinScale.Size = new System.Drawing.Size(120, 22); this.comboBoxMinScale.TabIndex = 7; this.comboBoxMinScale.SelectedIndexChanged += new System.EventHandler(this.comboBoxMaxScale_SelectedIndexChanged); // // label4 // this.label4.Location = new System.Drawing.Point(4, 104); this.label4.Name = "label4"; this.label4.Size = new System.Drawing.Size(160, 23); this.label4.TabIndex = 6; this.label4.Text = "Bubble Size M&in. Scale:"; this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // comboBoxMaxScale // this.comboBoxMaxScale.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.comboBoxMaxScale.Items.AddRange(new object[] { "Auto", "20", "25", "30", "40" }); this.comboBoxMaxScale.Location = new System.Drawing.Point(168, 72); this.comboBoxMaxScale.Name = "comboBoxMaxScale"; this.comboBoxMaxScale.Size = new System.Drawing.Size(120, 22); this.comboBoxMaxScale.TabIndex = 5; this.comboBoxMaxScale.SelectedIndexChanged += new System.EventHandler(this.comboBoxMaxScale_SelectedIndexChanged); // // label3 // this.label3.Location = new System.Drawing.Point(4, 72); this.label3.Name = "label3"; this.label3.Size = new System.Drawing.Size(160, 23); this.label3.TabIndex = 4; this.label3.Text = "Bubble Size Ma&x. Scale:"; this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // comboBoxMaxSize // this.comboBoxMaxSize.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.comboBoxMaxSize.Items.AddRange(new object[] { "5", "10", "15", "20", "25" }); this.comboBoxMaxSize.Location = new System.Drawing.Point(168, 40); this.comboBoxMaxSize.Name = "comboBoxMaxSize"; this.comboBoxMaxSize.Size = new System.Drawing.Size(120, 22); this.comboBoxMaxSize.TabIndex = 3; this.comboBoxMaxSize.SelectedIndexChanged += new System.EventHandler(this.comboBoxMaxScale_SelectedIndexChanged); // // label2 // this.label2.Location = new System.Drawing.Point(4, 40); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(160, 23); this.label2.TabIndex = 2; this.label2.Text = "&Max. Bubble Size:"; this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // comboBoxShape // this.comboBoxShape.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.comboBoxShape.Items.AddRange(new object[] { "Circle", "Square", "Diamond", "Triangle", "Cross", "Image" }); this.comboBoxShape.Location = new System.Drawing.Point(168, 8); this.comboBoxShape.Name = "comboBoxShape"; this.comboBoxShape.Size = new System.Drawing.Size(120, 22); this.comboBoxShape.TabIndex = 1; this.comboBoxShape.SelectedIndexChanged += new System.EventHandler(this.comboBoxMaxScale_SelectedIndexChanged); // // label1 // this.label1.Location = new System.Drawing.Point(4, 8); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(160, 23); this.label1.TabIndex = 0; this.label1.Text = "Bubble &Shape:"; this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // BubbleChartType // this.BackColor = System.Drawing.Color.White; this.Controls.Add(this.panel1); this.Controls.Add(this.labelSampleComment); this.Controls.Add(this.chart1); this.Font = new System.Drawing.Font("Verdana", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.Name = "BubbleChartType"; this.Size = new System.Drawing.Size(728, 392); this.Load += new System.EventHandler(this.BubbleChartType_Load); ((System.ComponentModel.ISupportInitialize)(this.chart1)).EndInit(); this.panel1.ResumeLayout(false); this.ResumeLayout(false); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { System.Windows.Forms.DataVisualization.Charting.ChartArea chartArea1 = new System.Windows.Forms.DataVisualization.Charting.ChartArea(); System.Windows.Forms.DataVisualization.Charting.Legend legend1 = new System.Windows.Forms.DataVisualization.Charting.Legend(); System.Windows.Forms.DataVisualization.Charting.Series series1 = new System.Windows.Forms.DataVisualization.Charting.Series(); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint1 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(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, 82); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint8 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(4, 75); System.Windows.Forms.DataVisualization.Charting.Series series3 = new System.Windows.Forms.DataVisualization.Charting.Series(); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint9 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(1, 50); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint10 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(2, 55); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint11 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(3, 40); System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint12 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(4, 70); System.Windows.Forms.DataVisualization.Charting.Title title1 = new System.Windows.Forms.DataVisualization.Charting.Title(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MultilineLabels)); this.label9 = new System.Windows.Forms.Label(); this.panel1 = new System.Windows.Forms.Panel(); this.ShowValueLabels = new System.Windows.Forms.CheckBox(); this.PointLabel = new System.Windows.Forms.TextBox(); this.AxisLabel = new System.Windows.Forms.TextBox(); this.label2 = new System.Windows.Forms.Label(); this.label1 = new System.Windows.Forms.Label(); this.label6 = new System.Windows.Forms.Label(); this.label5 = new System.Windows.Forms.Label(); this.label4 = new System.Windows.Forms.Label(); this.label3 = new System.Windows.Forms.Label(); this.label15 = new System.Windows.Forms.Label(); this.Chart1 = new System.Windows.Forms.DataVisualization.Charting.Chart(); this.label7 = new System.Windows.Forms.Label(); this.panel1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.Chart1)).BeginInit(); this.SuspendLayout(); // // label9 // this.label9.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.label9.Font = new System.Drawing.Font("Verdana", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label9.Location = new System.Drawing.Point(16, 8); this.label9.Name = "label9"; this.label9.Size = new System.Drawing.Size(702, 48); this.label9.TabIndex = 0; this.label9.Text = "This sample demonstrates how to set labels for point values. It also shows how to" + " set labels for individual data points."; // // panel1 // this.panel1.Controls.Add(this.ShowValueLabels); this.panel1.Controls.Add(this.PointLabel); this.panel1.Controls.Add(this.AxisLabel); this.panel1.Controls.Add(this.label2); 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; // // ShowValueLabels // this.ShowValueLabels.CheckAlign = System.Drawing.ContentAlignment.MiddleRight; this.ShowValueLabels.Location = new System.Drawing.Point(26, 7); this.ShowValueLabels.Name = "ShowValueLabels"; this.ShowValueLabels.Size = new System.Drawing.Size(156, 23); this.ShowValueLabels.TabIndex = 0; this.ShowValueLabels.Text = "&Show Point Values:"; this.ShowValueLabels.TextAlign = System.Drawing.ContentAlignment.MiddleRight; this.ShowValueLabels.CheckedChanged += new System.EventHandler(this.Combo_SelectedIndexChanged); // // PointLabel // this.PointLabel.Location = new System.Drawing.Point(168, 72); this.PointLabel.Name = "PointLabel"; this.PointLabel.Size = new System.Drawing.Size(120, 22); this.PointLabel.TabIndex = 4; this.PointLabel.Text = "Point Label #3"; this.PointLabel.TextChanged += new System.EventHandler(this.Combo_SelectedIndexChanged); // // AxisLabel // this.AxisLabel.Location = new System.Drawing.Point(168, 40); this.AxisLabel.Name = "AxisLabel"; this.AxisLabel.Size = new System.Drawing.Size(120, 22); this.AxisLabel.TabIndex = 3; this.AxisLabel.Text = "Axis Label #3"; this.AxisLabel.TextChanged += new System.EventHandler(this.Combo_SelectedIndexChanged); // // label2 // this.label2.Location = new System.Drawing.Point(28, 72); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(136, 23); this.label2.TabIndex = 2; this.label2.Text = "&Point Label:"; this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // label1 // this.label1.Location = new System.Drawing.Point(28, 40); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(136, 23); this.label1.TabIndex = 1; this.label1.Text = "&Axis Label:"; this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // label6 // this.label6.Location = new System.Drawing.Point(64, 403); this.label6.Name = "label6"; this.label6.Size = new System.Drawing.Size(100, 23); this.label6.TabIndex = 5; this.label6.Text = "Border Size:"; // // label5 // this.label5.Location = new System.Drawing.Point(64, 380); this.label5.Name = "label5"; this.label5.Size = new System.Drawing.Size(100, 23); this.label5.TabIndex = 4; this.label5.Text = "Border Color:"; // // label4 // this.label4.Location = new System.Drawing.Point(64, 357); this.label4.Name = "label4"; this.label4.Size = new System.Drawing.Size(100, 23); this.label4.TabIndex = 3; this.label4.Text = "Hatch Style:"; // // label3 // this.label3.Location = new System.Drawing.Point(64, 334); this.label3.Name = "label3"; this.label3.Size = new System.Drawing.Size(100, 23); this.label3.TabIndex = 2; this.label3.Text = "Gradient:"; // // label15 // this.label15.Location = new System.Drawing.Point(64, 426); this.label15.Name = "label15"; this.label15.Size = new System.Drawing.Size(100, 23); this.label15.TabIndex = 5; this.label15.Text = "Border Size:"; // // Chart1 // this.Chart1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(243)))), ((int)(((byte)(223)))), ((int)(((byte)(193))))); this.Chart1.BackGradientStyle = System.Windows.Forms.DataVisualization.Charting.GradientStyle.TopBottom; this.Chart1.BorderlineColor = System.Drawing.Color.FromArgb(((int)(((byte)(181)))), ((int)(((byte)(64)))), ((int)(((byte)(1))))); this.Chart1.BorderlineDashStyle = System.Windows.Forms.DataVisualization.Charting.ChartDashStyle.Solid; this.Chart1.BorderlineWidth = 2; this.Chart1.BorderSkin.SkinStyle = System.Windows.Forms.DataVisualization.Charting.BorderSkinStyle.Emboss; chartArea1.Area3DStyle.Inclination = 15; chartArea1.Area3DStyle.IsClustered = true; chartArea1.Area3DStyle.IsRightAngleAxes = false; chartArea1.Area3DStyle.Perspective = 10; chartArea1.Area3DStyle.PointGapDepth = 0; chartArea1.Area3DStyle.Rotation = 5; chartArea1.Area3DStyle.WallWidth = 0; chartArea1.AxisX.Interval = 1; 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.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, 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.Font = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); series1.Legend = "Legend2"; series1.Name = "Series2"; series1.Points.Add(dataPoint1); series1.Points.Add(dataPoint2); series1.Points.Add(dataPoint3); series1.Points.Add(dataPoint4); series1.ShadowColor = System.Drawing.Color.Transparent; series1.XValueType = System.Windows.Forms.DataVisualization.Charting.ChartValueType.Double; series1.YValueType = System.Windows.Forms.DataVisualization.Charting.ChartValueType.Double; series2.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); series2.ChartArea = "Default"; series2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(252)))), ((int)(((byte)(180)))), ((int)(((byte)(65))))); series2.CustomProperties = "DrawingStyle=Cylinder"; series2.Font = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); series2.Legend = "Default"; series2.Name = "Series1"; dataPoint5.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); dataPoint7.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(220)))), ((int)(((byte)(26)))), ((int)(((byte)(59)))), ((int)(((byte)(105))))); dataPoint7.BorderWidth = 2; series2.Points.Add(dataPoint5); series2.Points.Add(dataPoint6); series2.Points.Add(dataPoint7); series2.Points.Add(dataPoint8); series3.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); series3.ChartArea = "Default"; series3.Color = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(64)))), ((int)(((byte)(10))))); series3.CustomProperties = "DrawingStyle=Cylinder"; series3.Font = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); series3.Legend = "Default"; series3.Name = "Series3"; 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); // // label7 // this.label7.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.label7.Font = new System.Drawing.Font("Verdana", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label7.Location = new System.Drawing.Point(16, 368); this.label7.Name = "label7"; this.label7.Size = new System.Drawing.Size(702, 57); this.label7.TabIndex = 3; this.label7.Text = resources.GetString("label7.Text"); // // MultilineLabels // this.BackColor = System.Drawing.Color.White; this.Controls.Add(this.label7); this.Controls.Add(this.Chart1); this.Controls.Add(this.panel1); this.Controls.Add(this.label9); this.Font = new System.Drawing.Font("Verdana", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.Name = "MultilineLabels"; this.Size = new System.Drawing.Size(728, 480); this.Load += new System.EventHandler(this.AxisLabelsInterval_Load); this.panel1.ResumeLayout(false); this.panel1.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.Chart1)).EndInit(); this.ResumeLayout(false); }