[英]How can a graph in visual studio for Noise Criteria Curve be made that can be re-sized dynamically?
Here is a rework of my question. 这是我的问题的重做。 Since it hasn't been answered.
由于尚未得到答复。
How can this graph be made in visual studio that allows for it to be re-sized in a non web based application? 如何在Visual Studio中制作此图,以允许在非基于Web的应用程序中调整图的大小? I have tried with WPF applications previously.
我以前尝试过WPF应用程序。 At the current time the graph that is made is static and all points are plotted based on where it is in the window.
目前,生成的图形是静态的,并且根据其在窗口中的位置绘制所有点。
Issues that I can not seem to address: 我似乎无法解决的问题:
Infragistics has some nice charts, but the documentation is not great and the web service often has trouble pulling up pages. Infragistics有一些不错的图表,但是文档不是很好,Web服务通常在拉动页面时遇到麻烦。
A few things first: - I used Visual Studio 2008 - You have to install the infragistic tools before you will see the chart option available - After tools are installed you will have NetAdvantage tab in Toolbox; 首先要注意以下几点:-我使用了Visual Studio 2008-必须先安装基础设施工具,然后才能看到可用的图表选项-安装工具后,您将在“工具箱”中具有“ NetAdvantage”选项卡; I used UltraChart These are needed: using Infragistics.UltraChart.Resources.Appearance;
我使用了UltraChart,这些是必需的:Infragistics.UltraChart.Resources.Appearance; using Infragistics.UltraChart.Shared.Styles;
使用Infragistics.UltraChart.Shared.Styles;
Some of the code: 一些代码:
DataTable mydata = new DataTable();
// Define the columns and their names
mydata.Columns.Add("Series Labels", typeof(string));
mydata.Columns.Add("63", typeof(int));
mydata.Columns.Add("125", typeof(int));
mydata.Columns.Add("250", typeof(int));
mydata.Columns.Add("500", typeof(int));
mydata.Columns.Add("1k", typeof(int));
mydata.Columns.Add("2k", typeof(int));
mydata.Columns.Add("4k", typeof(int));
// Add the rows of data
mydata.Rows.Add(new Object[] { "RC 50", 70, 65, 60, 55, 50, 45, 40 });
mydata.Rows.Add(new Object[] { "RC 45", 65, 60, 55, 50, 45, 40, 35 });
mydata.Rows.Add(new Object[] { "RC 40", 60, 55, 50, 45, 40, 35, 30 });
mydata.Rows.Add(new Object[] { "RC 35", 55, 50, 45, 40, 35, 30, 25 });
mydata.Rows.Add(new Object[] { "RC 30", 50, 45, 40, 35, 30, 25, 20 });
mydata.Rows.Add(new Object[] { "RC 25", 45, 40, 35, 30, 25, 20, 15 });
mydata.Rows.Add(new Object[] { "User Input", userInput[0], userInput[1], userInput[2], userInput[3], userInput[4], userInput[5], userInput[6] });
mydata.Rows.Add(new Object[] { "Rumble Limit", speechInterferenceLine + 25, speechInterferenceLine + 20, speechInterferenceLine + 15, speechInterferenceLine + 10, null, null, null });
mydata.Rows.Add(new Object[] { "Hissy Limit", null, null, null, null, speechInterferenceLine + 3, speechInterferenceLine + -2, speechInterferenceLine - 7 });
mydata.Rows.Add(new Object[] { "Reference Line", speechInterferenceLine + 20, speechInterferenceLine + 15, speechInterferenceLine + 10, speechInterferenceLine + 5, speechInterferenceLine, speechInterferenceLine - 5, speechInterferenceLine - 10 });
Hope this helps someone. 希望这对某人有帮助。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.