Page 1 of 1

Stacked Line Charts

Posted: Mon Jul 28, 2008 6:28 pm
by 9336349
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

Posted: Tue Jul 29, 2008 8:11 am
by yeray
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".

Posted: Tue Jul 29, 2008 6:46 pm
by 9336349
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

Posted: Wed Jul 30, 2008 7:46 am
by yeray
Hi Colin,

In that case you may be interested in having a look at the interpolation example from Narcis.

Posted: Wed Jul 30, 2008 9:35 am
by 9336349
Thanks for pointing me to that example.

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

regards

Colin