Stacked Line Charts

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Gertrude
Newbie
Newbie
Posts: 35
Joined: Thu Mar 11, 2004 5:00 am
Contact:

Stacked Line Charts

Post by Gertrude » Mon Jul 28, 2008 6:28 pm

Hi

1) Is it possible to stack line charts when not all of the x coordinates are the same?

2) Actually, I would like to just display a line series which is identical to the final result of stacking several line charts (not all having the same x values),
without having to actually stack the individual line charts. Is there a way of doing this. Finally is this also possible with area charts?

Thanks

Colin

Yeray
Site Admin
Site Admin
Posts: 9534
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Post by Yeray » Tue Jul 29, 2008 8:11 am

Hi Colin,

I'm afraid it won't work as you expect. Both Line and Area series calculate the stacked result following the series' indexes. So, the first, result point will be the result of the addition of the firsts values if stacked series. And if they don't coincide in x, it won't look as expected.

I think that you will need to calculate each result point "manually".
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Gertrude
Newbie
Newbie
Posts: 35
Joined: Thu Mar 11, 2004 5:00 am
Contact:

Post by Gertrude » Tue Jul 29, 2008 6:46 pm

Thanks for letting me know how it works.

i was afraid that was the way. I was hoping I would not have to do all the interpolation.

Regards

Colin

Yeray
Site Admin
Site Admin
Posts: 9534
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Post by Yeray » Wed Jul 30, 2008 7:46 am

Hi Colin,

In that case you may be interested in having a look at the interpolation example from Narcis.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Gertrude
Newbie
Newbie
Posts: 35
Joined: Thu Mar 11, 2004 5:00 am
Contact:

Post by Gertrude » Wed Jul 30, 2008 9:35 am

Thanks for pointing me to that example.

i think I have now worked out how to do what I want.

regards

Colin

Post Reply