I am using TeeChart Pro 7.06. I can't figure out how to change the origin of a chart containing horizontal stacked bars.
Using non-stacked bars it's simply a matter of setting Series.UseYOrigin := true and Series.YOrigin := -100 (for example). But when I introduce a stack, the origin seems to have little to no effect. Any suggestions as to why? I would like to have two stacked horizontal bar series, and have the lower bar's origin somewhere around -95.
Thanks,
-A
Changing origin for sidestacked bars
Hello Andrew S,
I tried to reproduce your problem. For me this works fine:
Maybe I miss understood your question. Let use know if there is any further information helping use to help you.
Alex
Steema Crew
I tried to reproduce your problem. For me this works fine:
Code: Select all
Series2.UseYOrigin := true;
Series2.YOrigin := -100 ;
Series1.UseYOrigin := true ;
Series1.YOrigin := -100 ;
Series1.FillSampleValues(2);
Series2.FillSampleValues(2);
Alex
Steema Crew
A slight modification to your code shows exactly what I'm asking...
Notice that, even though the bottomaxis' minimum has been modified, the stack still originates at 0?
-A
Code: Select all
Series2.UseYOrigin := true;
Series2.YOrigin := -100;
Series2.StackGroup := 1;
Series2.MultiBar := mbStacked;
Series1.UseYOrigin := true;
Series1.YOrigin := -100;
Series1.Stackgroup := 1;
Series1.MultiBar := mbStacked;
Series1.FillSampleValues(2);
Series2.FillSampleValues(2);
-A
Hi Alex,
yes, you're correct, it still not prepared to be used with Stack and negative YOrigin, I've adde this on our defect/wish list to be considered for the next maintenance releases.
yes, you're correct, it still not prepared to be used with Stack and negative YOrigin, I've adde this on our defect/wish list to be considered for the next maintenance releases.
Pep Jorge
http://support.steema.com
http://support.steema.com