Page 1 of 1

deselecting series in legend resizes y axis

Posted: Wed Oct 13, 2021 12:37 pm
by 17591001
I have a TeeChart displaying two data series which might be enabled/disabled via legend.
When both series are visible, the chart looks fine:
chart1.png
chart1.png (5.81 KiB) Viewed 6314 times
When disabling the first series, the top axis disappears:
chart2.png
chart2.png (3.26 KiB) Viewed 6314 times
What I recognized is that the left axis IAxisSize property changes but unfortunally I am not able to fix this (manually settings the property shows no effect).

Re: deselecting series in legend resizes y axis

Posted: Fri Oct 15, 2021 11:03 am
by yeray
Hello,

Only the axes with an active series are shown. So you may have different axes assigned to each series.
Also note the Walls.Back also can draw that line at the top, when Visible.
If you still find problems with it, please arrange a simple example project we can run as-is to reproduce the problem.

Re: deselecting series in legend resizes y axis

Posted: Mon Oct 18, 2021 7:59 am
by 17591001
Argh I wasn't aware of TLineSeries.HorizAxis
Works as expected now.. Thanks a lot.