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 

Tee chart using AddXY

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (VCL Components Usage)
View previous topic :: View next topic  
Author Message
Terry
Guest





PostPosted: Mon Mar 21, 2005 11:31 pm    Post subject: Tee chart using AddXY Reply with quote



I have a simple TeeChart with one series. I'm trying to make a bar
graph show the following values:

Green: 3 units long
Red: 4 units long
Blue: 5 units long

I use the following code.

Series1->MultiBar = mbStacked;

Series1->AddXY(3, 0, "My Bar", clGreen);
Series1->AddXY(4, 0, "", clRed);
Series1->AddXY(5, 0, "", clBlue);

What I get is a single bar 5 units long. I would expect to see a bar 12
units long with 3 colors.

What am I doing wrong?

Thanks,
Terry
Back to top
Palle Meinert
Guest





PostPosted: Mon Mar 21, 2005 11:56 pm    Post subject: Re: Tee chart using AddXY Reply with quote



Since you are only using one series I guess i should be
Series1->MultiBar = mbSelfStack;

/Palle


Back to top
Terry
Guest





PostPosted: Mon Mar 21, 2005 11:58 pm    Post subject: Re: Tee chart using AddXY Reply with quote



Palle Meinert wrote:
Quote:
Since you are only using one series I guess i should be
Series1->MultiBar = mbSelfStack;

/Palle


I tried that and I get the error :

[C++ Error] TapeDriveTrends.cpp(171): E2451 Undefined symbol 'mbSelfStack'

I'm using C++ Builder 6.0 Professional.

Back to top
Palle Meinert
Guest





PostPosted: Tue Mar 22, 2005 12:05 am    Post subject: Re: Tee chart using AddXY Reply with quote

Quote:
I'm using C++ Builder 6.0 Professional.

So am I, but i have TeeChart professional...

btw, you did not tell which series type you use.

/Palle



Back to top
Palle Meinert
Guest





PostPosted: Tue Mar 22, 2005 12:11 am    Post subject: Re: Tee chart using AddXY Reply with quote

if mbSelfStack is not possible with the default version of TeeChart, you
could obtain the same effect with mbStacked by creating more series with
only a single value.

/Palle


Back to top
Terry
Guest





PostPosted: Tue Mar 22, 2005 1:27 am    Post subject: Re: Tee chart using AddXY Reply with quote

Palle Meinert wrote:
Quote:
I'm using C++ Builder 6.0 Professional.


So am I, but i have TeeChart professional...

btw, you did not tell which series type you use.

/Palle


I'm using a Horizontal bar.


Back to top
Palle Meinert
Guest





PostPosted: Tue Mar 22, 2005 8:18 am    Post subject: Re: Tee chart using AddXY Reply with quote

Ok. At least in the professionel TChart edition mbSelfStack also work on
Horizontal bar.

btw. Steema the creator of TChart has their own newsgroups, try look at
www.steema.com

/Palle


Back to top
Analian
Guest





PostPosted: Tue Mar 29, 2005 2:41 pm    Post subject: Re: Tee chart using AddXY Reply with quote

Shouldn't this be:

Series1->AddXY(3, 0, "My Bar", clGreen);
Series1->AddXY(7, 0, "", clRed);
Series1->AddXY(12, 0, "", clBlue);

So the actual lines you get are ((0,0), (3,0)) , ((0,0), (7,0)) ,
((0,0), (12,0)) ?


Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (VCL Components Usage) 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.