Using Statistical Formulas
Statistical analysis goes hand in hand with charting and data visualization, and the ASP.NET charting control provides a wealth of functionality in this area. The DataManipulator
property makes it easy to add statistical analyses to your charts. You can use the Statistics
property on the DataManipulator
to perform statistical analyses on data series without having to hand-write custom algorithms. (Though you can do that too, if necessary.)
The code in Listing 15.5 illustrates adding a label to the top of a page that contains a chart showing the mean value of a series of data points (see Figure 15.5).
Figure 15.5. Displaying the mean.
Listing 15.5. ShowMean.aspx
You can also use these calculated statistics to display ...
Get ASP.NET 4 Unleashed now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.