Change SeriesType at Runtime

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
andreask
Newbie
Newbie
Posts: 4
Joined: Fri Nov 15, 2002 12:00 am
Location: Berlin
Contact:

Change SeriesType at Runtime

Post by andreask » Mon Feb 23, 2004 3:24 pm

Hallo
I change the SeriesType with the following codesnipet

tmp := dbChart.Series[0];
ChangeSeriesType(tmp, TBarSeries);

The ChartListbox notifies the new style. In the Charteditor I can see the old Values. But I cannot see the serie. What I am doing wrong?

Pep
Site Admin
Site Admin
Posts: 3273
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Tue Feb 24, 2004 12:11 pm

Hi Andreas,

strange, it works fine here using the TeeChart Pro v6.01. I've post one example to the steema.public.attachments newsgroups. Could you please download it and test if it works fine for you ?

andreask
Newbie
Newbie
Posts: 4
Joined: Fri Nov 15, 2002 12:00 am
Location: Berlin
Contact:

Post by andreask » Tue Feb 24, 2004 2:26 pm

Hi Pep,
Thanks for the quick answer. The sample project works fine for me to (Version 5.02). I have found the error. After changing the seriestype my series lost the connection to the custom axis. I have created a customvertaxis with property otherside := true which shows datetimes. The left axis shows integers, so values < 1 i don't see. The chart has done his work well but I couldn't see it.
Best regards
Andreas

Post Reply