Page 1 of 1

Negative values with an area series

Posted: Tue Apr 28, 2009 9:02 pm
by 10546565
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:

Image

Is something like that possible?

Thank you,

Ed Dressel

Posted: Tue Apr 28, 2009 11:39 pm
by 10546565
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.

Posted: Wed Apr 29, 2009 9:09 am
by yeray
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.