Page 1 of 1

access programatically series -> stack -> use origin (

Posted: Fri Nov 05, 2004 2:37 am
by 9338017
Is there a way to change the origin of a horizontal bar series stack origin programatically the way you can in the chart editor at design time?


Thanks :)

Posted: Fri Nov 05, 2004 8:34 am
by Marjan
Hi, Steve.

Yes, it can be done. Basically, all you have to do is move the series up or down in the SeriesList array. One of the methods available is using the ExchangeSeries method. Example:

Code: Select all

Chart1.ExchangeSeries(0,1); 
// exchange 1st and 2nd series position in SeriesList array