⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 frequencytable.aspx

📁 掌握学习.net开发的非常好的资料
💻 ASPX
字号:
<%@ Page Language="C#" Description="dotnetCHARTING Component" %>
<%@ Register TagPrefix="dotnet"  Namespace="dotnetCHARTING" Assembly="dotnetCHARTING"%>
<%@ Import Namespace="System.Drawing" %>
<%@ Import Namespace="System.Drawing.Drawing2D" %>


<HTML>
	<HEAD>
		<TITLE>.netCHARTING Sample</TITLE>
		<script runat="server">

void Page_Load(Object sender,EventArgs e)
{ 
	// This sample demonstrates the use of statistical procedures for summarize quantitative data from
	// within DataPresentation class from within WebCab.Statistics module. 
	
	// The Correlation Chart
	CorrelationChart.Title="Frequency";
	CorrelationChart.TempDirectory = "temp";
	CorrelationChart.Debug=true;
	CorrelationChart.Size = "600x400";
	CorrelationChart.LegendBox.Template ="%icon %name";
	CorrelationChart.XAxis.Scale = Scale.Normal;
	CorrelationChart.TitleBox.Position = TitleBoxPosition.FullWithLegend;
	CorrelationChart.DefaultSeries.Type = SeriesType.Cylinder;

	Random myR = new Random(1);
	SeriesCollection scorrelation = new SeriesCollection();
	Series sampledata1 = new Series ("Sample 1");
	for ( int a=1; a<=15; a++) {
		Element el = new Element();
		el.YValue = myR.Next(10);
		el.XValue = a ;
		sampledata1.Elements.Add (el);
	}
	
	scorrelation.Add (sampledata1);
	scorrelation[0].Type = SeriesType.Spline;
	scorrelation[0].DefaultElement.Color = Color.FromArgb(255,99,49);


	// CFrequencyTableAOL - Calculates the cumulative frequency table from above for a discrete data set 
    // in accordance with the open left boundary (OLB) convention. 
	Series ftableAOL = StatisticalEngine.CFrequencyTableAOL("CFrequencyAOL",sampledata1,	new double[] {1,5,10,15});
									  
	CorrelationChart.SeriesCollection.Add(ftableAOL);
		
	// CFrequencyTableBOL - Calculates the cumulative frequency table from below for a discrete data set in 
	// accordance with the open left boundary (OLB) convention. 
	Series ftableBOL = StatisticalEngine.CFrequencyTableBOL("CFrequencyBOL",sampledata1,
		new double[] {1,5,10,15});
	CorrelationChart.SeriesCollection.Add(ftableBOL);
	CorrelationChart.SeriesCollection.Add (scorrelation);
}


		</script>
	</HEAD>
	<BODY>
		<DIV align="center">
			
			<dotnet:Chart id="CorrelationChart" runat="server"/>
			</dotnet:Chart>
			
		</DIV>
	</BODY>
</HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -