TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
-
TestAlways
- Advanced
- Posts: 228
- Joined: Tue Aug 28, 2007 12:00 am
- Location: Oregon, USA
Post
by TestAlways » Tue Apr 28, 2009 9:02 pm
I am using an area series that I would like the area between the zero x axis and the series to be filled in.
But when I add negative values, it fills in the area between the lowest Y margin axis and the value of the axis. Here's an example:
Is something like that possible?
Thank you,
Ed Dressel
-
TestAlways
- Advanced
- Posts: 228
- Joined: Tue Aug 28, 2007 12:00 am
- Location: Oregon, USA
Post
by TestAlways » Tue Apr 28, 2009 11:39 pm
It seems setting it to a stacked chart solves this problem--though I don't know why stacking it makes it fill in the area while the regular one does not.
-
Yeray
- Site Admin

- Posts: 9648
- Joined: Tue Dec 05, 2006 12:00 am
- Location: Girona, Catalonia
-
Contact:
Post
by Yeray » Wed Apr 29, 2009 9:09 am
Hi Ed Dressel,
Note that there are two properties more logic for achieving it:
Code: Select all
Series1.UseYOrigin := true;
Series1.YOrigin := 0;
The area series, by default comes from "infinite". When you have two areas and set them as stacked, the second area shouldn't start at "infinite" but just over the first area. So that's why with stacked areas, the first one has origin to at zero.
I hope this helps.