Performs a sort on a series' data points using the specified order. The sort is based on the first Y-value of data points.
Sort series data points in specified order.
Syntax
Parameters
- order
- A PointsSortOrder enumeration value that determines if the sort is ascending or descending.
Sorting order.
- series
- The Series object to be sorted.
Series to sort.
Example
Perform an ascending sort on a series named "Series1" before data is displayed by the chart.
Visual Basic |
Copy Code |
Imports Dundas.Charting.WebControl ...
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Chart1.DataManipulator.Sort(PointsSortOrder.Ascending, Chart1.Series("Series1")) End Sub |
C# |
Copy Code |
using Dundas.Charting.WebControl; ...
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) { Chart1.DataManipulator.Sort(PointsSortOrder.Ascending, Chart1.Series["Series1"]); } |
Remarks
Requirements
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
See Also