Page 1 of 1

How to sort the series value by asc and dsc

Posted: Thu Jun 24, 2004 7:05 am
by 8125487
Dear Sir

I need sort the series value by ascending or descending.

How do i do in vb.net

Thank
Cliven


Posted: Thu Jun 24, 2004 12:57 pm
by Pep
Hi Cliven,

you can use the ValueListOrder like :

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

Can't

Posted: Tue Jun 29, 2004 10:01 am
by 8125487
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

Thank I Solved it already

Posted: Tue Jun 29, 2004 10:26 am
by 8125487
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....