MindFusion.Charting Programmer's Guide

Chart.SortSeriesBy Property

See Also
 





Specifies the sort order of data series.

Namespace: MindFusion.Charting
Assembly: MindFusion.Charting

 Syntax

C#  Copy Code

public SortSeriesBy SortSeriesBy { get; set; }

Visual Basic  Copy Code

Public Property SortSeriesBy As SortSeriesBy

 Property Value

One of the SortSeriesBy Enumeration values.

 Remarks

This property specifies the sort order of data series relatively to each other.

When considered for charts that use the Cartesian coordinate system, the XData and YData properties are sorted. Sorting is performed on the YData for vertical charts and XData for horizontal ones. When it is considered for charts that use one data list, BarChart.Data, PieChart.Data or RadarChart.Data are considered.

Sorting is performed on the lists as complex objects and not on the numbers inside the lists. The property that sorts the data in the data lists is called SortOrder.

When the data lists consist of lists with members similar in count, it is better to sort them by their sum. Otherwise, it is better to use SortSeriesBy.MaxValue as sorting criterion.

When the data lists are sorted, the same sorting order is applied to all label lists for the chart.

Default value for the SortSeriesBy property is SortSeriesBy.Nothing.

 See Also