Stacked area vs Stcked Bar returns different Y Max

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 vs Stcked Bar returns different Y Max

Post by TestAlways » Tue Apr 20, 2010 11:28 pm

I have a chart that based on a user setting can either be displayed as stacked bar or stacked area. Here are the images below:

Image

and

Image

The code doesn't change except for the way the series is created--the chart is never adjusted for the difference. (It does grab a different values list--there are ~12 times as many values used in the stacked area chart as the stacked bar chart).

So why will the Y axis have different maximum value when it is an area series vs. a bar series?

Thanks,

Ed Dressel

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

Re: Stacked area vs Stcked Bar returns different Y Max

Post by Narcís » Wed Apr 21, 2010 10:05 am

Hi Ed,

Looking at your images I get the impression that left axis in the area chart has a MaximumOffset or Maximum value fixed. Is that the case? If this isn't, can you please attach a simple example project we can run "as-is" to reproduce the problem here?

Thanks in advance.
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