Page 1 of 1

TBarSeries and Order

Posted: Fri Jul 02, 2010 9:52 am
by 10050873
Hello,

On the chart we can see that the BarSeries are orderd by the yellow color.
Is there is a quickly method to order it by the purple color?

Thanks for help

Regards

Re: TBarSeries and Order

Posted: Fri Jul 02, 2010 10:40 am
by yeray
Hi Calou,

Have you tried the following?

Code: Select all

Chart1.ExchangeSeries(0,1);

Re: TBarSeries and Order

Posted: Fri Jul 02, 2010 2:14 pm
by 10050873
no this is not what i want.
In the case the yellow bar graph is in descendant order.
I would like in an other case to order the purple bar in descendant order by calling one function.
Of course i am able to recalculate all the point values in order to do that but perhaps you have it in your methods.

Regards

Re: TBarSeries and Order

Posted: Fri Jul 02, 2010 2:17 pm
by 10050873
I think "sorted" in order of "ordered" is more correct

Re: TBarSeries and Order

Posted: Fri Jul 02, 2010 3:11 pm
by yeray
Hi Calou,

If you want to Order a Series by the YValues ValueList, you can do it by:

Code: Select all

  Chart1[1].YValues.Order:=loDescending;
  Chart1[1].CheckOrder;