This method returns the median of all data points in the specified series.
Returns the median of the given numbers. The median is the number in the middle of a set of numbers; that is, half the numbers have values that are greater than the median, and half have values that are less.
Visual Basic (Declaration) | |
---|---|
Public Function Median( _ ByVal inputSeriesName As String _ ) As Double |
Visual Basic (Usage) | Copy Code |
---|---|
|
C# | |
---|---|
public double Median( string inputSeriesName ) |
Parameters
- inputSeriesName
- The name of a data series. The median of all data points in the series will be calculated, using the first Y-values (Y1) of the points.
Input Series Name
Return Value
Returns MedianThis sample gets the median of the data points in a series named "Series1". Note that the Y1 value of the data points is used.
Visual Basic | Copy Code |
---|---|
Imports Dundas.Charting.WinControl |
C# | Copy Code |
---|---|
using Dundas.Charting.WinControl; |
Use this method to calculate the median of the points stored in a series.
The median is the middle value of a sample set, where half of the members are greater in size and half the members are lesser in size.
If the specified input series does not exist in the SeriesCollection at the time of the method call than an exception will be thrown.
Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family