Hi Caraka,
Thanks for contacting Syncfusion support.
We have analyzed your query. Your requirement can be achieved by using SortBy property of series. In this enum property you can specify either X or Y with respect to which you need to sort the points. This is applicable only if you render the x axis as category, since if you render in double it will render linearly and will not able to sort it. Find the code snippet below to achieve this requirement.
|
Windows Forms:
series1.SortBy = ChartSeriesSortingType.Y;
series1.Points.Add("Server 1", 256);
series1.Points.Add("Server 2", 351);
series1.Points.Add("Server 3", 210);
series1.Points.Add("Server 4", 200);
series1.Points.Add("Server 5", 240);
|
Screenshot for sorting with respect to Y:
Sorting with respect to X:
Thanks,
Dharani.