access programatically series -> stack -> use origin (

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
stevep
Newbie
Newbie
Posts: 2
Joined: Thu Jul 01, 2004 4:00 am
Location: portland public school

access programatically series -> stack -> use origin (

Post by stevep » Fri Nov 05, 2004 2:37 am

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 :)

Marjan
Site Admin
Site Admin
Posts: 745
Joined: Fri Nov 07, 2003 5:00 am
Location: Slovenia
Contact:

Post by Marjan » Fri Nov 05, 2004 8:34 am

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
Marjan Slatinek,
http://www.steema.com

Post Reply