A newer version of this page is available. Switch to the current version.

SeriesBase.SeriesPointsSorting Property

Gets or sets the sort order of the series' points.

Namespace: DevExpress.XtraCharts

Assembly: DevExpress.XtraCharts.v18.2.dll


public SortingMode SeriesPointsSorting { get; set; }
Public Property SeriesPointsSorting As SortingMode

Property Value

Type Description

A SortingMode enumeration value.


Series points can be sorted based on either their arguments or data values, specified by the SeriesBase.SeriesPointsSortingKey property. Use the SeriesPointsSorting property to choose a mode for sorting data points within the series.

When there are multiple series available in a chart's collection, and point sorting is applied to either of these series, points are sorted within all existing series.

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

SeriesPointsSorting = None

SeriesPointsSorting = Ascending

SeriesPointsSortingKey = Value_1

SeriesPointsSorting = Descending

SeriesPointsSortingKey = Value_1




For more information, refer to Sorting Data.


The following properties allow you to sort series points within a series.

Property Description
SeriesBase.SeriesPointsSortingKey Specifies the point sort order.
SeriesBase.SeriesPointsSorting Specifies the value by which series points should be sorted.
using DevExpress.XtraCharts;
using System;
using System.Windows.Forms;

namespace SeriesPointsSorting {
    public partial class Form1 : Form {
        public Form1() {

        #region #SeriesPointSorting
        private void Form1_Load(object sender, EventArgs e) {

            SeriesBase seriesTemplate = chart.SeriesTemplate;
            seriesTemplate.SeriesPointsSorting = SortingMode.Ascending;
            seriesTemplate.SeriesPointsSortingKey = SeriesPointKey.Value_1;
        #endregion #SeriesPointSorting
See Also