BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

TChart - changing series type at run time?

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Reporting-Charting
View previous topic :: View next topic  
Author Message
Karl
Guest





PostPosted: Fri Nov 05, 2004 5:35 pm    Post subject: TChart - changing series type at run time? Reply with quote



Can I change the chart type (3d bar to line) at runtime?

If so, how?


I've looed at the TeeChart Series types, but it's not clear to me what I
need to do.

TIA.



Back to top
John Herbster
Guest





PostPosted: Fri Nov 05, 2004 5:51 pm    Post subject: Re: TChart - changing series type at run time? Reply with quote




"Karl" <kthompson (AT) nospame (DOT) pine-grove.com> wrote
Quote:
Can I change the chart type (3d bar to line) at runtime?

Karl, I would create the new series, copy the properties
that you want to keep and free the old series. Rgds, JohnH

Back to top
Karl
Guest





PostPosted: Fri Nov 05, 2004 6:30 pm    Post subject: Re: TChart - changing series type at run time? Reply with quote



Thanks, but I still don't understand what the path is to the property which
allows me to set the chart type that I want.....



"John Herbster" <herb-sci1_AT_sbcglobal.net> wrote

Quote:

"Karl" <kthompson (AT) nospame (DOT) pine-grove.com> wrote
Can I change the chart type (3d bar to line) at runtime?

Karl, I would create the new series, copy the properties
that you want to keep and free the old series. Rgds, JohnH



Back to top
Karl
Guest





PostPosted: Fri Nov 05, 2004 6:50 pm    Post subject: Re: TChart - changing series type at run time? One method Reply with quote

Actually Google came through again:

uses Chart, Series;

var CS : TChartSeries;

CS := Series1;

ChangeSeriesType( CS, TPieSeries );

Or so this appears to work.

ChangeSeriesType is a global routine.



"Karl" <kthompson (AT) nospame (DOT) pine-grove.com> wrote

Quote:
Thanks, but I still don't understand what the path is to the property
which allows me to set the chart type that I want.....



"John Herbster" <herb-sci1_AT_sbcglobal.net> wrote in message
news:418bbd86$1 (AT) newsgroups (DOT) borland.com...

"Karl" <kthompson (AT) nospame (DOT) pine-grove.com> wrote
Can I change the chart type (3d bar to line) at runtime?

Karl, I would create the new series, copy the properties
that you want to keep and free the old series. Rgds, JohnH





Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Reporting-Charting All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.