[Expand]General Information
[Collapse]WinForms Controls
  .NET Core Support
 [Expand]What's Installed
 [Expand]Build an Application
 [Collapse]Controls and Libraries
  [Expand]Forms and User Controls
  [Expand]Messages, Notifications, and Dialogs
  [Expand]Editors and Simple Controls
  [Expand]Ribbon, Bars and Menu
  [Expand]Application UI Manager
  [Expand]Docking Library
  [Expand]Data Grid
  [Expand]Vertical Grid
  [Expand]Property Grid
  [Expand]Pivot Grid
  [Expand]Tree List
  [Expand]Gantt Control
  [Collapse]Chart Control
   [Expand]Getting Started
   [Expand]Charting Basics
   [Expand]Series Views
   [Expand]Chart Elements
   [Expand]Providing Data
   [Collapse]Data Representation
     Filter Series Data
     Sorting Data
     Data Aggregation
     Calculating Summaries
    [Expand]Financial Charting
     Using The Top-N Feature
     Work Time and Workday Configuration
     Empty Points
   [Expand]Appearance Customization
   [Expand]End-User Features
   [Expand]Design-Time Features
   [Expand]Visual Elements
   [Expand]Additional Resources
  [Expand]Map Control
  [Expand]Rich Text Editor
  [Expand]Spell Checker
  [Expand]Form Layout Managers
  [Expand]Navigation Controls
  [Expand]PDF Viewer
  [Expand]TreeMap Control
  [Expand]Sunburst Control
 [Expand]Common Features
  Get More Help
 [Expand]API Reference
[Expand]ASP.NET Controls and MVC Extensions
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Office File API
[Expand]Report and Dashboard Server
[Expand]eXpressApp Framework
[Expand]eXpress Persistent Objects
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation
View this topic on docs.devexpress.com (Learn more)

Sorting Data

This document describes how to sort auto-created series or Series Points in an ascending or descending order, and in the case of series points, choose whether sorting should be performed by series point values or arguments. To learn more about a data point, its argument and value, refer to Charting Basics.

These sorting capabilities are detailed in the following sections.

Expanded Sorting Series

For auto-created series, it is possible to define the order in which automatically generated series objects are sorted within the chart control, based upon the series names.


The names of the dynamically created series are taken from a data field specified by the ChartControl.SeriesDataMember property.

To toggle between ascending and descending sort order of auto-created series, use the ChartControl.SeriesSorting property. The following images demonstrate this property in action.

The property's value Resulting image
SeriesSorting = None
SeriesSorting = Ascending
SeriesSorting = Descending

Note that the defined sorting affects the order of series within both a chart's diagram, and its legend.

As for series that are manually added to a chart's series collection (by the ChartControl.Series property), it's only possible to sort them at runtime by managing their order within the collection.

Expanded Sorting Series Points

To sort data points of a series, use the SeriesBase.SeriesPointsSorting property. The SeriesBase.SeriesPointsSortingKey property determines whether series points should be sorted by their arguments or values.

The following images demonstrate the three modes available for the SeriesBase.SeriesPointsSorting property, with the series points sorted by their values.

Property values

Resulting image

SeriesPointsSorting = None

SeriesPointsSortingKey = Value

SeriesPointsSorting = Ascending

SeriesPointsSortingKey = Value

SeriesPointsSorting = Descending

SeriesPointsSortingKey = Value

Expanded See Also

Is this topic helpful?​​​​​​​