Back to Devexpress

ChartControlSettings.SeriesSorting Property

aspnetmvc-devexpress-dot-web-dot-mvc-dot-chartcontrolsettings-2a4104f1.md

latest2.5 KB
Original Source

ChartControlSettings.SeriesSorting Property

Gets or sets a value that specifies how series are sorted within the chart control based upon the series names.

Namespace : DevExpress.Web.Mvc

Assembly : DevExpress.Web.Mvc5.v25.2.dll

NuGet Package : DevExpress.Web.Mvc5

Declaration

csharp
public SortingMode SeriesSorting { get; set; }
vb
Public Property SeriesSorting As SortingMode

Property Value

TypeDescription
SortingMode

A SortingMode enumeration value.

|

Available values:

NameDescription
None

The values are not sorted.

| | Ascending |

The values are sorted in ascending order.

| | Descending |

The values are sorted in descending order.

|

Remarks

Use the SeriesSorting property to specify the order in which automatically generated series objects are sorted within the chart control based upon the series names. Note that the names of the dynamically created series are taken from the data field specified by the ChartControlSettings.SeriesDataMember property.

The sorting order which is applied to the chart control’s series can be visually identified within the chart control’s legend. In some series views (the most obvious example is the bar series ), the applied sorting order affects the order in which the chart elements (in particular, bars) that represent data points with an identical argument are displayed within the diagram.

SeriesSorting = NoneSeriesSorting = AscendingSeriesSorting = Descending

See Also

ChartControlSettings Class

ChartControlSettings Members

DevExpress.Web.Mvc Namespace