Filters all data points in a series except for a specified number of points with the smallest or largest values.
Keeps only N top/bottom points of the series.
Visual Basic (Declaration) | |
---|---|
Public Overloads Sub FilterTopN( _ ByVal pointCount As Integer, _ ByVal inputSeries As Series, _ ByVal outputSeries As Series, _ ByVal usingValue As String, _ ByVal getTopValues As Boolean _ ) |
Visual Basic (Usage) | Copy Code |
---|---|
|
C# | |
---|---|
public void FilterTopN( int pointCount, Series inputSeries, Series outputSeries, string usingValue, bool getTopValues ) |
Parameters
- pointCount
- The number of data points that the filtering operation will not remove (or mark as empty).
Number of top/bottom points to return. - inputSeries
- Series object that is filtered.
Input series. - outputSeries
- Series object that stores the remaining data points. If it does not exist an exception will be thrown.
Output series. - usingValue
- The data point value that is examined (e.g. "X", "Y", "Y2", etc.).
Defines which value of the point use in comparison (X, Y, Y2, ...). - getTopValues
- Largest values are kept if true, otherwise smallest values are kept.
Indicate that N top values must be retrieved, otherwise N bottom values.
Visual Basic | Copy Code |
---|---|
Imports Dundas.Charting.WinControl |
C# | Copy Code |
---|---|
using Dundas.Charting.WinControl |
This method removes all data points from the input series except for the specified number of points that have the largest or smallest values (depends on the getTopValues parameter).
The data point value that is examined is determined by the usingValue parameter, and the remaining points are stored in the output series.
If the specified output series has not been created and added to the SeriesCollection when this function call is made an exception will be thrown.
Filtered points can be either removed from a series (default) or displayed as empty points, depending on the FilterSetEmptyPoints value.
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