Page 1 of 1

Is a stacked barchart with z-order possible?

Posted: Fri Mar 28, 2008 2:16 pm
by 10548508
Hi.
Is it possible to make a stacked barchart with a z-order?
When I try, I only manage to make it side-by-side?
(I have series with monthly values and want a separate bar-row
for each year)


Regards
Claes Enskär

Posted: Fri Mar 28, 2008 3:50 pm
by narcis
Hi Claes,

Have you tried using line below with more than one bar series in a chart?

Code: Select all

  Series1.MultiBar:=mbNone;

Posted: Fri Mar 28, 2008 4:53 pm
by 10548508
Hi.
The problem is that I want stacked series
I'm using

Code: Select all

  Series1.MultiBar:=mbStacked;
with stackgroups
and it seems that if some series is mbStacked, then it doesn't matter
if I set mbNone on the others?

(I'm using Pro 8.02 with Rad Studio 2007 dec update)

Posted: Mon Mar 31, 2008 9:06 am
by yeray
Hi Claes,

We are not sure of what exactly are you trying to achieve.

If you simply want some series stacked and some not stacked, you should set stack groups and multibar as stacked. For example:

Code: Select all

Series1.FillSampleValues();
Series1.StackGroup := 1;

Series2.FillSampleValues();
Series2.StackGroup := 2;

Series3.FillSampleValues();
Series3.StackGroup := 2;

Series1.MultiBar := mbStacked;
If you want one series in front of other, you don't need groups and you should set multibar as mbNone, as Narcis pointed to you. For example:

Code: Select all

Series1.FillSampleValues();
Series2.FillSampleValues();
Series3.FillSampleValues();

Series1.MultiBar := mbNone;
But if you are trying to mix both styles, I'm afraid it's not possible because you cannot set multibar as mbNone and mbStacked at the same time. So, if you want something similar as one series in the front and and two series stacked behind, we will have to think in a workarround and study the possibility to add it to the wish list to be enhanced in further releases.

Posted: Mon Mar 31, 2008 9:30 am
by 10548508
Hi.
one series in the front and and two series stacked behind

is exactly what I was wondering if it was possible and also the
variant with
two (several) series stacked in front and two (several) series stacked behind.

It's no biggie if it's not possible. I'l just rethink the chart a little. I was just experimenting what was doable or not :) .

Regards

Claes Enskär

Posted: Mon Apr 07, 2008 9:52 am
by Pep
Hi Claes,

I've been doing some tests here, and it's difficult to accomplish what you're trying to do as you cannot set a specific ZPos for each Series (and being stacked).

I've added this feature on our wish list to be considered for further releases.