deselecting series in legend resizes y axis

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
FOCUS electronics
Newbie
Newbie
Posts: 3
Joined: Wed Apr 14, 2021 12:00 am

deselecting series in legend resizes y axis

Post by FOCUS electronics » Wed Oct 13, 2021 12:37 pm

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 6630 times
When disabling the first series, the top axis disappears:
chart2.png
chart2.png (3.26 KiB) Viewed 6630 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).

Yeray
Site Admin
Site Admin
Posts: 9622
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: deselecting series in legend resizes y axis

Post by Yeray » Fri Oct 15, 2021 11:03 am

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.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

FOCUS electronics
Newbie
Newbie
Posts: 3
Joined: Wed Apr 14, 2021 12:00 am

Re: deselecting series in legend resizes y axis

Post by FOCUS electronics » Mon Oct 18, 2021 7:59 am

Argh I wasn't aware of TLineSeries.HorizAxis
Works as expected now.. Thanks a lot.

Post Reply