Is a stacked barchart with z-order possible?

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Claes Enskar
Newbie
Newbie
Posts: 5
Joined: Wed Mar 05, 2008 12:00 am

Is a stacked barchart with z-order possible?

Post by Claes Enskar » Fri Mar 28, 2008 2:16 pm

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

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Fri Mar 28, 2008 3:50 pm

Hi Claes,

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

Code: Select all

  Series1.MultiBar:=mbNone;
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Claes Enskar
Newbie
Newbie
Posts: 5
Joined: Wed Mar 05, 2008 12:00 am

Post by Claes Enskar » Fri Mar 28, 2008 4:53 pm

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)

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

Post by Yeray » Mon Mar 31, 2008 9:06 am

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.
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

Claes Enskar
Newbie
Newbie
Posts: 5
Joined: Wed Mar 05, 2008 12:00 am

Post by Claes Enskar » Mon Mar 31, 2008 9:30 am

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

Pep
Site Admin
Site Admin
Posts: 3303
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Mon Apr 07, 2008 9:52 am

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.

Post Reply