 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Terry Guest
|
Posted: Mon Mar 21, 2005 11:31 pm Post subject: Tee chart using AddXY |
|
|
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
|
Posted: Mon Mar 21, 2005 11:56 pm Post subject: Re: Tee chart using AddXY |
|
|
Since you are only using one series I guess i should be
Series1->MultiBar = mbSelfStack;
/Palle
|
|
| Back to top |
|
 |
Terry Guest
|
Posted: Mon Mar 21, 2005 11:58 pm Post subject: Re: Tee chart using AddXY |
|
|
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
|
Posted: Tue Mar 22, 2005 12:05 am Post subject: Re: Tee chart using AddXY |
|
|
| 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
|
Posted: Tue Mar 22, 2005 12:11 am Post subject: Re: Tee chart using AddXY |
|
|
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
|
Posted: Tue Mar 22, 2005 1:27 am Post subject: Re: Tee chart using AddXY |
|
|
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
|
Posted: Tue Mar 22, 2005 8:18 am Post subject: Re: Tee chart using AddXY |
|
|
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
|
Posted: Tue Mar 29, 2005 2:41 pm Post subject: Re: Tee chart using AddXY |
|
|
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 |
|
 |
|
|
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
|
|