The Microsoft Chart controls make it easy to take data from a database or some other data store and present it as a chart. As discussed in [url="http://www.4guysfromrolla.com/articles/072909-1.aspx"]Plotting
Chart Data[/url], the Chart controls offer a myriad of ways to get data into a chart. You can add the data programmatically, point-by-point, or you can bind an ADO.NET DataTable
directly to the Chart. You can even use declarative data source controls, like the SqlDataSource or ObjectDataSource controls.
In addition to converting your specified data points into a chart image, the Chart controls also include a wealth of statistical formulae that you can use to analyze the
plotted data. For example, with a single line of code you determine the mean (average) value for data in a particular series. Likewise, with one line of code you can get
the median, variance, or standard deviation. These values can be displayed as text on the page or as a
stripe line on the chart itself. What's more, the Chart controls
include functions to forecast future values, to compute moving averages, to identify trends, and to determine rates of change, among others.
This article looks at how to use two statistical formulae. Specifically, we'll look at how to compute and display the mean of a series, as well as how to display an exponential
trend line on the chart to forecast future values. Read on to learn more!
Read More >Source:
http://www.4guysfromrolla.com/articles/111809-1.aspx