stacked area series problem

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
TestAlways
Advanced
Posts: 228
Joined: Tue Aug 28, 2007 12:00 am
Location: Oregon, USA

stacked area series problem

Post by TestAlways » Fri Apr 25, 2008 9:01 pm

I am having a stacked area series problem--the series appear different depending upon the order I create them.

Here is an image of a chart when I create "Account #1' before "Account #2":

Image

What works in this chart is the way Account #2 starts in year 4--that is what I want. What I don't like is (a) the way account #1 finishes (should be blocked, not slanted); and (b) I want a continuous line going from year 3 to 4, not the drop off and the block start.

In this example, year 3's values for Act 1 and 2 respectively are ~ (100, 0). Years 4 values are ~(50, 50). I want the line to be level, not slanted down as it appears.


If I change the order they were created, I get a different start/finish to the two series:

Image

Account #2 changes the way it starts (I wish it was blocked) and again, there is a dip in year 4.

Is there a way to do this?

My demo was created with the code in the link below:

http://www.RetireNeeds.com/misc/StackedAreaSeries.zip

Ed Dressel

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

Post by Narcís » Mon Apr 28, 2008 8:19 am

Hi Ed,

In that case you might be interested in usin Area series Stairs property, for example:

Code: Select all

    lsrsAct1.Stairs:=true;
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

Post Reply