How to sort the series value by asc and dsc

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Cliven
Newbie
Newbie
Posts: 18
Joined: Fri May 14, 2004 4:00 am
Location: Malaysia

How to sort the series value by asc and dsc

Post by Cliven » Thu Jun 24, 2004 7:05 am

Dear Sir

I need sort the series value by ascending or descending.

How do i do in vb.net

Thank
Cliven


Pep
Site Admin
Site Admin
Posts: 3295
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Thu Jun 24, 2004 12:57 pm

Hi Cliven,

you can use the ValueListOrder like :

line1.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending

Cliven
Newbie
Newbie
Posts: 18
Joined: Fri May 14, 2004 4:00 am
Location: Malaysia

Can't

Post by Cliven » Tue Jun 29, 2004 10:01 am

Dear Sir

I try to use below the code to sort the chart.. But nothing happen!!!

Dim i As Long
For i = 0 To Chart.Series.Count - 1
TChart.Series(i).YValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending
Next

XValue and YValue also can't sort the series figure??
Any ideas?
Cliven

Cliven
Newbie
Newbie
Posts: 18
Joined: Fri May 14, 2004 4:00 am
Location: Malaysia

Thank I Solved it already

Post by Cliven » Tue Jun 29, 2004 10:26 am

Dim i As Long
For i = 0 To Chart.Series.Count - 1
TChart.Series(i).YValues.Order = Steema.TeeChart.Styles.ValueListOrder.Descending
TChart.Series(i).XValues.Order = Steema.TeeChart.Styles.ValueListOrder.None
TChart.Series(i).YValues.Sort()
TChart.Series(i).XValues.Sort()
TChart.Series(i).SortByLabels(Steema.TeeChart.Styles.ValueListOrder.Descending)
TChart.Series(i).RefreshSeries()
Next

this is the source code.....
anywhere thank alot....

Post Reply